"use strict";var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)n[i]=a[o];return n},__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},__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])}}},__makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};return function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}();(ts||(ts={})).createMapShim=function(){function n(){var e=Object.create(null);return e.__=void 0,delete e.__,e}var e=(t.prototype.next=function(){for(;this.currentEntry;){var e=!!this.currentEntry.skipNext;if(this.currentEntry=this.currentEntry.nextEntry,!e)break}return this.currentEntry?{value:this.selector(this.currentEntry.key,this.currentEntry.value),done:!1}:{value:void 0,done:!0}},t);function t(e,t){this.currentEntry=e,this.selector=t}return r.prototype.get=function(e){e=this.data[e];return e&&e.value},r.prototype.set=function(e,t){return this.has(e)?this.data[e].value=t:(this.size++,t={key:e,value:t},this.data[e]=t,((e=this.lastEntry).nextEntry=t).previousEntry=e,this.lastEntry=t),this},r.prototype.has=function(e){return e in this.data},r.prototype.delete=function(e){if(this.has(e)){this.size--;var t=this.data[e];delete this.data[e];e=t.previousEntry;return e.nextEntry=t.nextEntry,t.nextEntry&&(t.nextEntry.previousEntry=e),this.lastEntry===t&&(this.lastEntry=e),t.previousEntry=void 0,t.nextEntry=e,t.skipNext=!0}return!1},r.prototype.clear=function(){this.data=n(),this.size=0;for(var e=this.firstEntry,t=e.nextEntry;t;){var r=t.nextEntry;t.previousEntry=void 0,t.nextEntry=e,t.skipNext=!0,t=r}e.nextEntry=void 0,this.lastEntry=e},r.prototype.keys=function(){return new e(this.firstEntry,function(e){return e})},r.prototype.values=function(){return new e(this.firstEntry,function(e,t){return t})},r.prototype.entries=function(){return new e(this.firstEntry,function(e,t){return[e,t]})},r.prototype.forEach=function(e){for(var t=this.entries();;){var r=t.next();if(r.done)break;var n=r.value,r=n[0];e(n[1],r)}},r;function r(){this.data=n(),this.size=0,this.firstEntry={},this.lastEntry=this.firstEntry}},function(e){function t(){return"undefined"!=typeof Map&&"entries"in Map.prototype?Map:void 0}var r;e.versionMajorMinor="3.9",e.version="3.9.9",e.tryGetNativeMap=t,e.Map=t()||function(){if("function"==typeof e.createMapShim)return e.createMapShim();throw new Error("TypeScript requires an environment that provides a compatible native Map implementation.")}(),(r=e.Comparison||(e.Comparison={}))[r.LessThan=-1]="LessThan",r[r.EqualTo=0]="EqualTo",r[r.GreaterThan=1]="GreaterThan"}(ts=ts||{}),function(p){function c(){return new p.Map}function i(e,t,r){if(void 0===r&&(r=P),e)for(var n=0,i=e;n<i.length;n++)if(r(i[n],t))return!0;return!1}function u(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 u(t)?u(e)?__spreadArrays(e,t):t:e}function t(e,t){return t}function l(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 _(e,t,r){return!i(e,t,r)&&(e.push(t),!0)}function d(r,e,n){e.sort(function(e,t){return n(r[e],r[t])||I(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 g(e,t,r,n,i){return m(e,r(t),r,n,i)}function m(e,t,r,n,i){if(!u(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]),t)){case-1:a=s+1;break;case 0:return s;case 1:o=s-1}}return~a}function y(e,t,r,n,i){if(e&&0<e.length){var a=e.length;if(0<a){var o=void 0===n||n<0?0:n,s=void 0===i||a-1<o+i?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}p.emptyArray=[],p.createMap=c,p.createMapFromEntries=function(e){for(var t=c(),r=0,n=e;r<n.length;r++){var i=n[r],a=i[0],i=i[1];t.set(a,i)}return t},p.createMapFromTemplate=function(e){var t,r=new p.Map;for(t in e)h.call(e,t)&&r.set(t,e[t]);return r},p.length=function(e){return e?e.length:0},p.forEach=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}},p.forEachRight=function(e,t){if(e)for(var r=e.length-1;0<=r;r--){var n=t(e[r],r);if(n)return n}},p.firstDefined=function(e,t){if(void 0!==e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(void 0!==n)return n}},p.firstDefinedIterator=function(e,t){for(;;){var r=e.next();if(r.done)return;r=t(r.value);if(void 0!==r)return r}},p.zipWith=function(e,t,r){var n=[];p.Debug.assertEqual(e.length,t.length);for(var i=0;i<e.length;i++)n.push(r(e[i],t[i],i));return n},p.zipToIterator=function(e,t){p.Debug.assertEqual(e.length,t.length);var r=0;return{next:function(){return r===e.length?{value:void 0,done:!0}:{value:[e[++r-1],t[r-1]],done:!1}}}},p.zipToMap=function(e,t){p.Debug.assert(e.length===t.length);for(var r=c(),n=0;n<e.length;++n)r.set(e[n],t[n]);return r},p.every=function(e,t){if(e)for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0},p.find=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n,r))return n}},p.findLast=function(e,t){for(var r=e.length-1;0<=r;r--){var n=e[r];if(t(n,r))return n}},p.findIndex=function(e,t,r){for(var n=r||0;n<e.length;n++)if(t(e[n],n))return n;return-1},p.findLastIndex=function(e,t,r){for(var n=void 0===r?e.length-1:r;0<=n;n--)if(t(e[n],n))return n;return-1},p.findMap=function(e,t){for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}return p.Debug.fail()},p.contains=i,p.arraysEqual=function(e,r,n){return void 0===n&&(n=P),e.length===r.length&&e.every(function(e,t){return n(e,r[t])})},p.indexOfAnyCharCode=function(e,t,r){for(var n=r||0;n<e.length;n++)if(i(t,e.charCodeAt(n)))return n;return-1},p.countWhere=function(e,t){var r=0;if(e)for(var n=0;n<e.length;n++)t(e[n],n)&&r++;return r},p.filter=function(e,t){if(e){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;if(n<r){var i=e.slice(0,n);for(n++;n<r;){var a=e[n];t(a)&&i.push(a),n++}return i}}return e},p.filterMutate=function(e,t){for(var r=0,n=0;n<e.length;n++)t(e[n],n,e)&&(e[r]=e[n],r++);e.length=r},p.clear=function(e){e.length=0},p.map=function(e,t){var r;if(e){r=[];for(var n=0;n<e.length;n++)r.push(t(e[n],n))}return r},p.mapIterator=function(t,r){return{next:function(){var e=t.next();return e.done?e:{value:r(e.value),done:!1}}}},p.sameMap=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=e[r],i=t(n,r);if(n!==i){var a=e.slice(0,r);for(a.push(i),r++;r<e.length;r++)a.push(t(e[r],r));return a}}return e},p.flatten=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];i&&(T(i)?s(t,i):t.push(i))}return t},p.flatMap=function(e,t){var r;if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);i&&(r=(T(i)?s:a)(r,i))}return r||p.emptyArray},p.flatMapToMutable=function(e,t){var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);i&&(T(i)?s(r,i):r.push(i))}return r},p.flatMapIterator=function(t,r){var e=t.next();if(e.done)return p.emptyIterator;var n=i(e.value);return{next:function(){for(;;){var e=n.next();if(!e.done)return e;e=t.next();if(e.done)return e;n=i(e.value)}}};function i(e){e=r(e);return void 0===e?p.emptyIterator:T(e)?f(e):e}},p.sameFlatMap=function(e,t){var r;if(e)for(var n=0;n<e.length;n++){var i=e[n],a=t(i,n);(r||i!==a||T(a))&&(r=r||e.slice(0,n),T(a)?s(r,a):r.push(a))}return r||e},p.mapAllOrFail=function(e,t){for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);if(void 0===i)return;r.push(i)}return r},p.mapDefined=function(e,t){var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);void 0!==i&&r.push(i)}return r},p.mapDefinedIterator=function(t,r){return{next:function(){for(;;){var e=t.next();if(e.done)return e;e=r(e.value);if(void 0!==e)return{value:e,done:!1}}}}},p.mapDefinedMap=function(e,r,n){void 0===n&&(n=E);var i=c();return e.forEach(function(e,t){e=r(e,t);void 0!==e&&i.set(n(t),e)}),i},p.emptyIterator={next:function(){return{value:void 0,done:!0}}},p.singleIterator=function(t){var r=!1;return{next:function(){var e=r;return r=!0,e?{value:void 0,done:!0}:{value:t,done:!1}}}},p.spanMap=function(e,t,r){var n;if(e){n=[];for(var i,a=e.length,o=void 0,s=void 0,c=0,u=0;c<a;){for(;u<a;){s=t(e[u],u);if(0===u)o=s;else if(s!==o)break;u++}c<u&&((i=r(e.slice(c,u),o,c,u))&&n.push(i),c=u),o=s,u++}}return n},p.mapEntries=function(e,r){if(e){var n=c();return e.forEach(function(e,t){t=r(t,e),e=t[0],t=t[1];n.set(e,t)}),n}},p.some=u,p.getRangesWhere=function(e,t,r){for(var n,i=0;i<e.length;i++)t(e[i])?n=void 0===n?i:n:void 0!==n&&(r(n,i),n=void 0);void 0!==n&&r(n,e.length)},p.concatenate=r,p.indicesOf=l,p.deduplicate=function(e,t,r){return 0===e.length?[]:1===e.length?e.slice():r?function(t,e,r){var n=l(t);d(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++)_(r,i[n],t);return r}(e,t)},p.insertSorted=function(e,t,r){0!==e.length?(r=g(e,t,E,r))<0&&e.splice(~r,0,t):e.push(t)},p.sortAndDeduplicate=function(e,t,r){return function(e,t){if(0===e.length)return p.emptyArray;for(var r=e[0],n=[r],i=1;i<e.length;i++){var a=e[i];switch(t(a,r)){case!0:case 0:continue;case-1:return p.Debug.fail("Array is unsorted.")}n.push(r=a)}return n}(n(e,t),r||t||M)},p.arrayIsEqualTo=function(e,t,r){if(void 0===r&&(r=P),!e||!t)return e===t;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!r(e[n],t[n],n))return!1;return!0},p.compact=function(e){var t;if(e)for(var r=0;r<e.length;r++){var n=e[r];!t&&n||(t=t||e.slice(0,r),n&&t.push(n))}return t||e},p.relativeComplement=function(e,t,r){if(!t||!e||0===t.length||0===e.length)return t;var n=[];e:for(var i=0,a=0;a<t.length;a++){0<a&&p.Debug.assertGreaterThanOrEqual(r(t[a],t[a-1]),0);t:for(var o=i;i<e.length;i++)switch(o<i&&p.Debug.assertGreaterThanOrEqual(r(e[i],e[i-1]),0),r(t[a],e[i])){case-1:n.push(t[a]);continue e;case 0:continue e;case 1:continue t}}return n},p.sum=function(e,t){for(var r=0,n=0,i=e;n<i.length;n++)r+=i[n][t];return r},p.append=a,p.combine=function(e,t){return void 0===e?t:void 0===t?e:T(e)?(T(t)?r:a)(e,t):T(t)?a(t,e):[e,t]},p.addRange=s,p.pushIfUnique=_,p.appendIfUnique=function(e,t,r){return e?(_(e,t,r),e):[t]},p.sort=n,p.arrayIterator=f,p.arrayReverseIterator=function(e){var t=e.length;return{next:function(){return 0===t?{value:void 0,done:!0}:{value:e[--t],done:!1}}}},p.stableSort=function(t,e){var r=l(t);return d(t,r,e),r.map(function(e){return t[e]})},p.rangeEquals=function(e,t,r,n){for(;r<n;){if(e[r]!==t[r])return!1;r++}return!0},p.elementAt=function(e,t){if(e&&(t=o(e,t))<e.length)return e[t]},p.firstOrUndefined=function(e){return 0===e.length?void 0:e[0]},p.first=function(e){return p.Debug.assert(0!==e.length),e[0]},p.lastOrUndefined=function(e){return 0===e.length?void 0:e[e.length-1]},p.last=function(e){return p.Debug.assert(0!==e.length),e[e.length-1]},p.singleOrUndefined=function(e){return e&&1===e.length?e[0]:void 0},p.singleOrMany=function(e){return e&&1===e.length?e[0]:e},p.replaceElement=function(e,t,r){return(e=e.slice(0))[t]=r,e},p.binarySearch=g,p.binarySearchKey=m,p.reduceLeft=y;var h=Object.prototype.hasOwnProperty;function v(e,t){return h.call(e,t)}function b(e,t){for(var r=[],n=e.next();!n.done;n=e.next())r.push(t?t(n.value):n.value);return r}function x(e,t,r){void 0===r&&(r=E);for(var n=D(),i=0,a=e;i<a.length;i++){var o=a[i];n.add(t(o),r(o))}return n}function D(){var e=c();return e.add=S,e.remove=C,e}function S(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&&(Q(r,t),r.length||this.delete(e))}function T(e){return Array.isArray?Array.isArray(e):e instanceof Array}function k(e){}function E(e){return e}function N(e){return e.toLowerCase()}p.hasProperty=v,p.getProperty=function(e,t){return h.call(e,t)?e[t]:void 0},p.getOwnKeys=function(e){var t,r=[];for(t in e)h.call(e,t)&&r.push(t);return r},p.getAllKeys=function(e){var t=[];do{for(var r=0,n=Object.getOwnPropertyNames(e);r<n.length;r++)_(t,n[r])}while(e=Object.getPrototypeOf(e));return t},p.getOwnValues=function(e){var t,r=[];for(t in e)h.call(e,t)&&r.push(e[t]);return r},p.arrayFrom=b,p.assign=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++){var a=i[n];if(void 0!==a)for(var o in a)v(a,o)&&(e[o]=a[o])}return e},p.equalOwnProperties=function(e,t,r){if(void 0===r&&(r=P),e===t)return!0;if(!e||!t)return!1;for(var n in e)if(h.call(e,n)){if(!h.call(t,n))return!1;if(!r(e[n],t[n]))return!1}for(var n in t)if(h.call(t,n)&&!h.call(e,n))return!1;return!0},p.arrayToMap=function(e,t,r){void 0===r&&(r=E);for(var n=c(),i=0,a=e;i<a.length;i++){var o=a[i],s=t(o);void 0!==s&&n.set(s,r(o))}return n},p.arrayToNumericMap=function(e,t,r){void 0===r&&(r=E);for(var n=[],i=0,a=e;i<a.length;i++){var o=a[i];n[t(o)]=r(o)}return n},p.arrayToMultiMap=x,p.group=function(e,t,r){return void 0===r&&(r=E),b(x(e,t).values(),r)},p.clone=function(e){var t,r={};for(t in e)h.call(e,t)&&(r[t]=e[t]);return r},p.extend=function(e,t){var r,n={};for(r in t)h.call(t,r)&&(n[r]=t[r]);for(r in e)h.call(e,r)&&(n[r]=e[r]);return n},p.copyProperties=function(e,t){for(var r in t)h.call(t,r)&&(e[r]=t[r])},p.maybeBind=function(e,t){return t?t.bind(e):void 0},p.mapMap=function(e,r){var n=c();return e.forEach(function(e,t){return n.set.apply(n,r(e,t))}),n},p.createMultiMap=D,p.createUnderscoreEscapedMultiMap=D,p.isArray=T,p.toArray=function(e){return T(e)?e:[e]},p.isString=function(e){return"string"==typeof e},p.isNumber=function(e){return"number"==typeof e},p.tryCast=function(e,t){return void 0!==e&&t(e)?e:void 0},p.cast=function(e,t){return void 0!==e&&t(e)?e:p.Debug.fail("Invalid cast. The supplied value "+e+" did not pass the test '"+p.Debug.getFunctionName(t)+"'.")},p.noop=k,p.returnFalse=function(){return!1},p.returnTrue=function(){return!0},p.returnUndefined=function(){},p.identity=E,p.toLowerCase=N;var e,A=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function F(e){return A.test(e)?e.replace(A,N):e}function P(e,t){return e===t}function w(e,t){return e===t?0:void 0===e||void 0!==t&&e<t?-1:1}function I(e,t){return w(e,t)}function O(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 M(e,t){return w(e,t)}p.toFileNameLowerCase=F,p.notImplemented=function(){throw new Error("Not implemented")},p.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},p.compose=function(t,r,n,i,e){if(e){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return function(e){return y(a,function(e,t){return t(e)},e)}}return i?function(e){return i(n(r(t(e))))}:n?function(e){return n(r(t(e)))}:r?function(e){return r(t(e))}:t?function(e){return t(e)}:function(e){return e}},(e=p.AssertionLevel||(p.AssertionLevel={}))[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",p.equateValues=P,p.equateStringsCaseInsensitive=function(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()},p.equateStringsCaseSensitive=function(e,t){return e===t},p.compareValues=I,p.compareTextSpans=function(e,t){return I(null==e?void 0:e.start,null==t?void 0:t.start)||I(null==e?void 0:e.length,null==t?void 0:t.length)},p.min=function(e,t,r){return-1===r(e,t)?e:t},p.compareStringsCaseInsensitive=O,p.compareStringsCaseSensitive=M,p.getStringComparer=function(e){return e?O:M};var L,R,B,j,J,z=(B=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 K;return q}(),function(e){return void 0===e?L=L||B(e):"en-US"===e?R=R||B(e):B(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 K(e){return void 0!==e?q():function(e,t){return U(e,t,r)};function r(e,t){return e.localeCompare(t)}}function q(){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 W(e,t){var r=e.length-t.length;return 0<=r&&e.indexOf(t,r)===r}function H(e,t){for(var r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function G(e,t){e[t]=e[e.length-1],e.pop()}function Q(e,t){return function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return G(e,r),!0;return!1}(e,function(e){return e===t})}function X(e,t){return 0===e.lastIndexOf(t,0)}function Y(e,t){var r=e.prefix,e=e.suffix;return t.length>=r.length+e.length&&X(t,r)&&W(t,e)}p.getUILocale=function(){return J},p.setUILocale=function(e){J!==e&&(J=e,j=void 0)},p.compareStringsCaseSensitiveUI=function(e,t){return(j=j||z(J))(e,t)},p.compareProperties=function(e,t,r,n){return e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r])},p.compareBooleans=function(e,t){return I(e?1:0,t?1:0)},p.getSpellingSuggestion=function(e,t,r){for(var n,i=Math.min(2,Math.floor(.34*e.length)),a=Math.floor(.4*e.length)+1,o=!1,s=e.toLowerCase(),c=0,u=t;c<u.length;c++){var l=u[c],_=r(l);if(void 0!==_&&Math.abs(_.length-s.length)<=i){var d=_.toLowerCase();if(d===s){if(_===e)continue;return l}o||_.length<3||void 0!==(d=function(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+1,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){for(var s=e.charCodeAt(o-1),c=r<o?o-r:1,u=t.length>r+o?r+o:t.length,l=i[0]=o,_=1;_<c;_++)i[_]=a;for(_=c;_<=u;_++){var d=s===t.charCodeAt(_-1)?n[_-1]:Math.min(n[_]+1,i[_-1]+1,n[_-1]+2);i[_]=d,l=Math.min(l,d)}for(_=u+1;_<=t.length;_++)i[_]=a;if(r<l)return;var p=n;n=i,i=p}var f=n[t.length];return r<f?void 0:f}(s,d,a-1))&&(n=(d<3?o=!0:(p.Debug.assert(d<a),a=d),l))}}return n},p.endsWith=W,p.removeSuffix=function(e,t){return W(e,t)?e.slice(0,e.length-t.length):e},p.tryRemoveSuffix=function(e,t){return W(e,t)?e.slice(0,e.length-t.length):void 0},p.stringContains=function(e,t){return-1!==e.indexOf(t)},p.removeMinAndVersionNumbers=function(e){var t=/[.-]((min)|(\d+(\.\d+)*))$/;return e.replace(t,"").replace(t,"")},p.orderedRemoveItem=function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return H(e,r),!0;return!1},p.orderedRemoveItemAt=H,p.unorderedRemoveItemAt=G,p.unorderedRemoveItem=Q,p.createGetCanonicalFileName=function(e){return e?E:F},p.patternText=function(e){return e.prefix+"*"+e.suffix},p.matchedText=function(e,t){return p.Debug.assert(Y(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)},p.findBestPatternMatch=function(e,t,r){for(var n,i=-1,a=0,o=e;a<o.length;a++){var s=o[a],c=t(s);Y(c,r)&&c.prefix.length>i&&(i=c.prefix.length,n=s)}return n},p.startsWith=X,p.removePrefix=function(e,t){return X(e,t)?e.substr(t.length):e},p.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=E),X(r(e),r(t))?e.substring(t.length):void 0},p.and=function(t,r){return function(e){return t(e)&&r(e)}},p.or=function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=i;r<n.length;r++)if(n[r].apply(void 0,e))return!0;return!1}},p.not=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return!r.apply(void 0,e)}},p.assertType=function(e){},p.singleElementArray=function(e){return void 0===e?void 0:[e]},p.enumerateInsertsAndDeletes=function(e,t,r,n,i,a){a=a||k;for(var o=0,s=0,c=e.length,u=t.length;o<c&&s<u;){var l=e[o],_=t[s],d=r(l,_);-1===d?(n(l),o++):(1===d?i(_):(a(_,l),o++),s++)}for(;o<c;)n(e[o++]);for(;s<u;)i(t[s++])},p.fill=function(e,t){for(var r=Array(e),n=0;n<e;n++)r[n]=t(n);return r},p.cartesianProduct=function(e){var t=[];return function e(t,r,n,i){for(var a=0,o=t[i];a<o.length;a++){var s=o[a],c=void 0;n?(c=n.slice()).push(s):c=[s],i===t.length-1?r.push(c):e(t,r,c,i+1)}}(e,t,void 0,0),t},p.padLeft=function(e,t){for(;e.length<t;)e=" "+e;return e},p.padRight=function(e,t){for(;e.length<t;)e+=" ";return e}}(ts=ts||{}),function(T){!function(a){var o=0;a.isDebugging=!1;var s={};function e(e){return e<=o}function c(e,t){return e<=o||(s[t]={level:e,assertion:a[t]},void(a[t]=T.noop))}function u(e,t){e=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(e,t||u),e}function l(e,t,r,n){e||(t=t?"False expression: "+t:"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),u(t,n||l))}function _(e,t,r){null==e&&u(t,r||_)}function n(e,t,r){return _(e,t,r||n),e}function d(e,t,r){for(var n=0,i=e;n<i.length;n++)_(i[n],t,r||d)}function i(e,t,r){return d(e,t,r||i),e}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 t(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 T.stableSort(r,function(e,t){return T.compareValues(e[0],t[0])})}(t);if(0===e)return 0<t.length&&0===t[0][0]?t[0][1]:"0";if(r){for(var n="",i=e,a=0,o=t;a<o.length;a++){var s=o[a],c=s[0],u=s[1];if(e<c)break;0!==c&&c&e&&(n=n+(n?"|":"")+u,i&=~c)}if(0===i)return n}else for(var l=0,_=t;l<_.length;l++){var d=_[l],c=d[0],u=d[1];if(c===e)return u}return e.toString()}function f(e){return t(e,T.SyntaxKind,!1)}function g(e){return t(e,T.NodeFlags,!0)}function m(e){return t(e,T.ModifierFlags,!0)}function y(e){return t(e,T.TransformFlags,!0)}function h(e){return t(e,T.EmitFlags,!0)}function v(e){return t(e,T.SymbolFlags,!0)}function b(e){return t(e,T.TypeFlags,!0)}function x(e){return t(e,T.ObjectFlags,!0)}a.getAssertionLevel=function(){return o},a.setAssertionLevel=function(e){if(o<(o=e))for(var t=0,r=T.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=e,a.fail=u,a.failBadSyntaxKind=function e(t,r,n){return u((r||"Unexpected node.")+"\r\nNode "+f(t.kind)+" was unexpected.",n||e)},a.assert=l,a.assertEqual=function e(t,r,n,i,a){t!==r&&u("Expected "+t+" === "+r+". "+(n?i?n+" "+i:n:""),a||e)},a.assertLessThan=function e(t,r,n,i){r<=t&&u("Expected "+t+" < "+r+". "+(n||""),i||e)},a.assertLessThanOrEqual=function e(t,r,n){r<t&&u("Expected "+t+" <= "+r,n||e)},a.assertGreaterThanOrEqual=function e(t,r,n){t<r&&u("Expected "+t+" >= "+r,n||e)},a.assertIsDefined=_,a.checkDefined=n,a.assertDefined=n,a.assertEachIsDefined=d,a.checkEachDefined=i,a.assertEachDefined=i,a.assertNever=function e(t,r,n){return void 0===r&&(r="Illegal value:"),u(r+" "+("object"==typeof t&&T.hasProperty(t,"kind")&&T.hasProperty(t,"pos")&&f?"SyntaxKind: "+f(t.kind):JSON.stringify(t)),n||e)},a.assertEachNode=function e(t,r,n,i){c(1,"assertEachNode")&&l(void 0===r||T.every(t,r),n||"Unexpected node.",function(){return"Node array did not pass test '"+p(r)+"'."},i||e)},a.assertNode=function e(t,r,n,i){c(1,"assertNode")&&l(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",function(){return"Node "+f(t.kind)+" did not pass test '"+p(r)+"'."},i||e)},a.assertNotNode=function e(t,r,n,i){c(1,"assertNotNode")&&l(void 0===t||void 0===r||!r(t),n||"Unexpected node.",function(){return"Node "+f(t.kind)+" should not have passed test '"+p(r)+"'."},i||e)},a.assertOptionalNode=function e(t,r,n,i){c(1,"assertOptionalNode")&&l(void 0===r||void 0===t||r(t),n||"Unexpected node.",function(){return"Node "+f(t.kind)+" did not pass test '"+p(r)+"'."},i||e)},a.assertOptionalToken=function e(t,r,n,i){c(1,"assertOptionalToken")&&l(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",function(){return"Node "+f(t.kind)+" was not a '"+f(r)+"' token."},i||e)},a.assertMissingNode=function e(t,r,n){c(1,"assertMissingNode")&&l(void 0===t,r||"Unexpected node.",function(){return"Node "+f(t.kind)+" was unexpected'."},n||e)},a.getFunctionName=p,a.formatSymbol=function(e){return"{ name: "+T.unescapeLeadingUnderscores(e.escapedName)+"; flags: "+v(e.flags)+"; declarations: "+T.map(e.declarations,function(e){return f(e.kind)})+" }"},a.formatEnum=t,a.formatSyntaxKind=f,a.formatNodeFlags=g,a.formatModifierFlags=m,a.formatTransformFlags=y,a.formatEmitFlags=h,a.formatSymbolFlags=v,a.formatTypeFlags=b,a.formatObjectFlags=x;var D,S=!1;function r(e){return function(){if(C(),!D)throw new Error("Debugging helpers could not be loaded.");return D}().formatControlFlowGraph(e)}function C(){if(!S){Object.defineProperties(T.objectAllocator.getSymbolConstructor().prototype,{__debugFlags:{get:function(){return v(this.flags)}}}),Object.defineProperties(T.objectAllocator.getTypeConstructor().prototype,{__debugFlags:{get:function(){return b(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?x(this.objectFlags):""}},__debugTypeToString:{value:function(){return this.checker.typeToString(this)}}});for(var e,t=0,r=[T.objectAllocator.getNodeConstructor(),T.objectAllocator.getIdentifierConstructor(),T.objectAllocator.getTokenConstructor(),T.objectAllocator.getSourceFileConstructor()];t<r.length;t++){var n=r[t];n.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(n.prototype,{__debugKind:{get:function(){return f(this.kind)}},__debugNodeFlags:{get:function(){return g(this.flags)}},__debugModifierFlags:{get:function(){return m(T.getModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return y(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return T.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return h(T.getEmitFlags(this))}},__debugGetText:{value:function(e){if(T.nodeIsSynthesized(this))return"";var t=T.getParseTreeNode(this),r=t&&T.getSourceFileOfNode(t);return r?T.getSourceTextOfNodeFromSourceFile(r,t,e):""}}})}try{T.sys&&T.sys.require&&(e=T.getDirectoryPath(T.resolvePath(T.sys.getExecutingFilePath())),(e=T.sys.require(e,"./compiler-debug")).error||(e.module.init(T),D=e.module))}catch(e){}S=!0}}a.printControlFlowGraph=function(e){return console.log(r(e))},a.formatControlFlowGraph=r,a.attachFlowNodeDebugInfo=function(e){S&&("__debugFlowFlags"in e||Object.defineProperties(e,{__debugFlowFlags:{get:function(){return t(this.flags,T.FlowFlags,!0)}},__debugToString:{value:function(){return r(this)}}}))},a.enableDebugInfo=C}(T.Debug||(T.Debug={}))}(ts=ts||{}),(ts||(ts={})).timestamp="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:Date.now||function(){return+new Date},function(i){var a,t,n,o,r,s,c;function u(e,t,r){var n=0;return{enter:function(){1==++n&&l(t)},exit:function(){0==--n?(l(r),_(e,t,r)):n<0&&i.Debug.fail("enter/exit count does not match.")}}}function l(e){s&&(n.set(e,i.timestamp()),t.set(e,(t.get(e)||0)+1),r(e))}function _(e,t,r){s&&(r=r&&n.get(r)||i.timestamp(),t=t&&n.get(t)||c,o.set(e,(o.get(e)||0)+(r-t)))}a=i.performance||(i.performance={}),r="function"==typeof onProfilerEvent&&!0===onProfilerEvent.profiler?onProfilerEvent:function(){},s=!1,c=0,a.createTimerIf=function(e,t,r,n){return e?u(t,r,n):a.nullTimer},a.createTimer=u,a.nullTimer={enter:i.noop,exit:i.noop},a.mark=l,a.measure=_,a.getCount=function(e){return t&&t.get(e)||0},a.getDuration=function(e){return o&&o.get(e)||0},a.forEachMeasure=function(r){o.forEach(function(e,t){r(t,e)})},a.enable=function(){t=i.createMap(),n=i.createMap(),o=i.createMap(),s=!0,c=i.timestamp()},a.disable=function(){s=!1}}(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(u){var a=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,o=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,s=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,l=/^(0|[1-9]\d*)$/,_=(t.tryParse=function(e){e=c(e);if(e)return new t(e.major,e.minor,e.patch,e.prerelease,e.build)},t.prototype.compareTo=function(e){return this===e?0:void 0===e?1:u.compareValues(this.major,e.major)||u.compareValues(this.minor,e.minor)||u.compareValues(this.patch,e.patch)||function(e,t){if(e===t)return 0;if(0===e.length)return 0===t.length?0:1;if(0===t.length)return-1;for(var r=Math.min(e.length,t.length),n=0;n<r;n++){var i=e[n],a=t[n];if(i!==a){var o,s=l.test(i),c=l.test(a);if(s||c){if(s!==c)return s?-1:1;if(o=u.compareValues(+i,+a))return o}else if(o=u.compareStringsCaseSensitive(i,a))return o}}return u.compareValues(e.length,t.length)}(this.prerelease,e.prerelease)},t.prototype.increment=function(e){switch(e){case"major":return new t(this.major+1,0,0);case"minor":return new t(this.major,this.minor+1,0);case"patch":return new t(this.major,this.minor,this.patch+1);default:return u.Debug.assertNever(e)}},t.prototype.toString=function(){var e=this.major+"."+this.minor+"."+this.patch;return u.some(this.prerelease)&&(e+="-"+this.prerelease.join(".")),u.some(this.build)&&(e+="+"+this.build.join(".")),e},t.zero=new t(0,0,0),t);function t(e,t,r,n,i){var a;void 0===t&&(t=0),void 0===r&&(r=0),void 0===n&&(n=""),void 0===i&&(i=""),"string"==typeof e&&(e=(a=u.Debug.checkDefined(c(e),"Invalid version")).major,t=a.minor,r=a.patch,n=a.prerelease,i=a.build),u.Debug.assert(0<=e,"Invalid argument: major"),u.Debug.assert(0<=t,"Invalid argument: minor"),u.Debug.assert(0<=r,"Invalid argument: patch"),u.Debug.assert(!n||o.test(n),"Invalid argument: prerelease"),u.Debug.assert(!i||s.test(i),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=r,this.prerelease=n?n.split("."):u.emptyArray,this.build=i?i.split("."):u.emptyArray}function c(e){var t=a.exec(e);if(t){var r=t[1],n=t[2],i=void 0===n?"0":n,e=t[3],n=void 0===e?"0":e,e=t[4],e=void 0===e?"":e,t=t[5],t=void 0===t?"":t;if((!e||o.test(e))&&(!t||s.test(t)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(n,10),prerelease:e,build:t}}}u.Version=_;var e=(r.tryParse=function(e){var t=n(e);if(t){e=new r("");return e._alternatives=t,e}},r.prototype.test=function(e){return"string"==typeof e&&(e=new _(e)),function(e,t){if(0===t.length)return!0;for(var r=0,n=t;r<n.length;r++){var i=n[r];if(function(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!function(e,t,r){var n=e.compareTo(r);switch(t){case"<":return n<0;case"<=":return n<=0;case">":return 0<n;case">=":return 0<=n;case"=":return 0===n;default:return u.Debug.assertNever(t)}}(e,i.operator,i.operand))return!1}return!0}(e,i))return!0}return!1}(e,this._alternatives)},r.prototype.toString=function(){return e=this._alternatives,u.map(e,i).join(" || ")||"*";var e},r);function r(e){this._alternatives=e?u.Debug.checkDefined(n(e),"Invalid range spec."):u.emptyArray}u.VersionRange=e;var d=/\s*\|\|\s*/g,p=/\s+/g,f=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,g=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,m=/^\s*(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function n(e){for(var t=[],r=0,n=e.trim().split(d);r<n.length;r++){var i=n[r];if(i){var a=[],o=g.exec(i);if(o){if(!function(e,t,r){e=y(e);if(!e)return!1;t=y(t);if(!t)return!1;h(e.major)||r.push(v(">=",e.version));h(t.major)||r.push(h(t.minor)?v("<",t.version.increment("major")):h(t.patch)?v("<",t.version.increment("minor")):v("<=",t.version));return!0}(o[1],o[2],a))return}else for(var s=0,c=i.split(p);s<c.length;s++){var u=c[s],u=m.exec(u);if(!u||!function(e,t,r){var n=y(t);if(!n)return!1;var i=n.version,t=n.major,a=n.minor,o=n.patch;if(h(t))"<"!==e&&">"!==e||r.push(v("<",_.zero));else switch(e){case"~":r.push(v(">=",i)),r.push(v("<",i.increment(h(a)?"major":"minor")));break;case"^":r.push(v(">=",i)),r.push(v("<",i.increment(0<i.major||h(a)?"major":0<i.minor||h(o)?"minor":"patch")));break;case"<":case">=":r.push(v(e,i));break;case"<=":case">":r.push(h(a)?v("<="===e?"<":">=",i.increment("major")):h(o)?v("<="===e?"<":">=",i.increment("minor")):v(e,i));break;case"=":case void 0:h(a)||h(o)?(r.push(v(">=",i)),r.push(v("<",i.increment(h(a)?"major":"minor")))):r.push(v("=",i));break;default:return!1}return!0}(u[1],u[2],a))return}t.push(a)}}return t}function y(e){var t=f.exec(e);if(t){var r=t[1],n=t[2],i=void 0===n?"*":n,e=t[3],n=void 0===e?"*":e,e=t[4],t=t[5];return{version:new _(h(r)?0:parseInt(r,10),h(r)||h(i)?0:parseInt(i,10),h(r)||h(i)||h(n)?0:parseInt(n,10),e,t),major:r,minor:i,patch:n}}}function h(e){return"*"===e||"x"===e||"X"===e}function v(e,t){return{operator:e,operand:t}}function i(e){return u.map(e,b).join(" ")}function b(e){return""+e.operator+e.operand}}(ts=ts||{}),function(e){(t=e.SyntaxKind||(e.SyntaxKind={}))[t.Unknown=0]="Unknown",t[t.EndOfFileToken=1]="EndOfFileToken",t[t.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",t[t.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",t[t.NewLineTrivia=4]="NewLineTrivia",t[t.WhitespaceTrivia=5]="WhitespaceTrivia",t[t.ShebangTrivia=6]="ShebangTrivia",t[t.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",t[t.NumericLiteral=8]="NumericLiteral",t[t.BigIntLiteral=9]="BigIntLiteral",t[t.StringLiteral=10]="StringLiteral",t[t.JsxText=11]="JsxText",t[t.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",t[t.RegularExpressionLiteral=13]="RegularExpressionLiteral",t[t.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",t[t.TemplateHead=15]="TemplateHead",t[t.TemplateMiddle=16]="TemplateMiddle",t[t.TemplateTail=17]="TemplateTail",t[t.OpenBraceToken=18]="OpenBraceToken",t[t.CloseBraceToken=19]="CloseBraceToken",t[t.OpenParenToken=20]="OpenParenToken",t[t.CloseParenToken=21]="CloseParenToken",t[t.OpenBracketToken=22]="OpenBracketToken",t[t.CloseBracketToken=23]="CloseBracketToken",t[t.DotToken=24]="DotToken",t[t.DotDotDotToken=25]="DotDotDotToken",t[t.SemicolonToken=26]="SemicolonToken",t[t.CommaToken=27]="CommaToken",t[t.QuestionDotToken=28]="QuestionDotToken",t[t.LessThanToken=29]="LessThanToken",t[t.LessThanSlashToken=30]="LessThanSlashToken",t[t.GreaterThanToken=31]="GreaterThanToken",t[t.LessThanEqualsToken=32]="LessThanEqualsToken",t[t.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",t[t.EqualsEqualsToken=34]="EqualsEqualsToken",t[t.ExclamationEqualsToken=35]="ExclamationEqualsToken",t[t.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",t[t.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",t[t.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",t[t.PlusToken=39]="PlusToken",t[t.MinusToken=40]="MinusToken",t[t.AsteriskToken=41]="AsteriskToken",t[t.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",t[t.SlashToken=43]="SlashToken",t[t.PercentToken=44]="PercentToken",t[t.PlusPlusToken=45]="PlusPlusToken",t[t.MinusMinusToken=46]="MinusMinusToken",t[t.LessThanLessThanToken=47]="LessThanLessThanToken",t[t.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",t[t.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",t[t.AmpersandToken=50]="AmpersandToken",t[t.BarToken=51]="BarToken",t[t.CaretToken=52]="CaretToken",t[t.ExclamationToken=53]="ExclamationToken",t[t.TildeToken=54]="TildeToken",t[t.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",t[t.BarBarToken=56]="BarBarToken",t[t.QuestionToken=57]="QuestionToken",t[t.ColonToken=58]="ColonToken",t[t.AtToken=59]="AtToken",t[t.QuestionQuestionToken=60]="QuestionQuestionToken",t[t.BacktickToken=61]="BacktickToken",t[t.EqualsToken=62]="EqualsToken",t[t.PlusEqualsToken=63]="PlusEqualsToken",t[t.MinusEqualsToken=64]="MinusEqualsToken",t[t.AsteriskEqualsToken=65]="AsteriskEqualsToken",t[t.AsteriskAsteriskEqualsToken=66]="AsteriskAsteriskEqualsToken",t[t.SlashEqualsToken=67]="SlashEqualsToken",t[t.PercentEqualsToken=68]="PercentEqualsToken",t[t.LessThanLessThanEqualsToken=69]="LessThanLessThanEqualsToken",t[t.GreaterThanGreaterThanEqualsToken=70]="GreaterThanGreaterThanEqualsToken",t[t.GreaterThanGreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanGreaterThanEqualsToken",t[t.AmpersandEqualsToken=72]="AmpersandEqualsToken",t[t.BarEqualsToken=73]="BarEqualsToken",t[t.CaretEqualsToken=74]="CaretEqualsToken",t[t.Identifier=75]="Identifier",t[t.PrivateIdentifier=76]="PrivateIdentifier",t[t.BreakKeyword=77]="BreakKeyword",t[t.CaseKeyword=78]="CaseKeyword",t[t.CatchKeyword=79]="CatchKeyword",t[t.ClassKeyword=80]="ClassKeyword",t[t.ConstKeyword=81]="ConstKeyword",t[t.ContinueKeyword=82]="ContinueKeyword",t[t.DebuggerKeyword=83]="DebuggerKeyword",t[t.DefaultKeyword=84]="DefaultKeyword",t[t.DeleteKeyword=85]="DeleteKeyword",t[t.DoKeyword=86]="DoKeyword",t[t.ElseKeyword=87]="ElseKeyword",t[t.EnumKeyword=88]="EnumKeyword",t[t.ExportKeyword=89]="ExportKeyword",t[t.ExtendsKeyword=90]="ExtendsKeyword",t[t.FalseKeyword=91]="FalseKeyword",t[t.FinallyKeyword=92]="FinallyKeyword",t[t.ForKeyword=93]="ForKeyword",t[t.FunctionKeyword=94]="FunctionKeyword",t[t.IfKeyword=95]="IfKeyword",t[t.ImportKeyword=96]="ImportKeyword",t[t.InKeyword=97]="InKeyword",t[t.InstanceOfKeyword=98]="InstanceOfKeyword",t[t.NewKeyword=99]="NewKeyword",t[t.NullKeyword=100]="NullKeyword",t[t.ReturnKeyword=101]="ReturnKeyword",t[t.SuperKeyword=102]="SuperKeyword",t[t.SwitchKeyword=103]="SwitchKeyword",t[t.ThisKeyword=104]="ThisKeyword",t[t.ThrowKeyword=105]="ThrowKeyword",t[t.TrueKeyword=106]="TrueKeyword",t[t.TryKeyword=107]="TryKeyword",t[t.TypeOfKeyword=108]="TypeOfKeyword",t[t.VarKeyword=109]="VarKeyword",t[t.VoidKeyword=110]="VoidKeyword",t[t.WhileKeyword=111]="WhileKeyword",t[t.WithKeyword=112]="WithKeyword",t[t.ImplementsKeyword=113]="ImplementsKeyword",t[t.InterfaceKeyword=114]="InterfaceKeyword",t[t.LetKeyword=115]="LetKeyword",t[t.PackageKeyword=116]="PackageKeyword",t[t.PrivateKeyword=117]="PrivateKeyword",t[t.ProtectedKeyword=118]="ProtectedKeyword",t[t.PublicKeyword=119]="PublicKeyword",t[t.StaticKeyword=120]="StaticKeyword",t[t.YieldKeyword=121]="YieldKeyword",t[t.AbstractKeyword=122]="AbstractKeyword",t[t.AsKeyword=123]="AsKeyword",t[t.AssertsKeyword=124]="AssertsKeyword",t[t.AnyKeyword=125]="AnyKeyword",t[t.AsyncKeyword=126]="AsyncKeyword",t[t.AwaitKeyword=127]="AwaitKeyword",t[t.BooleanKeyword=128]="BooleanKeyword",t[t.ConstructorKeyword=129]="ConstructorKeyword",t[t.DeclareKeyword=130]="DeclareKeyword",t[t.GetKeyword=131]="GetKeyword",t[t.InferKeyword=132]="InferKeyword",t[t.IsKeyword=133]="IsKeyword",t[t.KeyOfKeyword=134]="KeyOfKeyword",t[t.ModuleKeyword=135]="ModuleKeyword",t[t.NamespaceKeyword=136]="NamespaceKeyword",t[t.NeverKeyword=137]="NeverKeyword",t[t.ReadonlyKeyword=138]="ReadonlyKeyword",t[t.RequireKeyword=139]="RequireKeyword",t[t.NumberKeyword=140]="NumberKeyword",t[t.ObjectKeyword=141]="ObjectKeyword",t[t.SetKeyword=142]="SetKeyword",t[t.StringKeyword=143]="StringKeyword",t[t.SymbolKeyword=144]="SymbolKeyword",t[t.TypeKeyword=145]="TypeKeyword",t[t.UndefinedKeyword=146]="UndefinedKeyword",t[t.UniqueKeyword=147]="UniqueKeyword",t[t.UnknownKeyword=148]="UnknownKeyword",t[t.FromKeyword=149]="FromKeyword",t[t.GlobalKeyword=150]="GlobalKeyword",t[t.BigIntKeyword=151]="BigIntKeyword",t[t.OfKeyword=152]="OfKeyword",t[t.QualifiedName=153]="QualifiedName",t[t.ComputedPropertyName=154]="ComputedPropertyName",t[t.TypeParameter=155]="TypeParameter",t[t.Parameter=156]="Parameter",t[t.Decorator=157]="Decorator",t[t.PropertySignature=158]="PropertySignature",t[t.PropertyDeclaration=159]="PropertyDeclaration",t[t.MethodSignature=160]="MethodSignature",t[t.MethodDeclaration=161]="MethodDeclaration",t[t.Constructor=162]="Constructor",t[t.GetAccessor=163]="GetAccessor",t[t.SetAccessor=164]="SetAccessor",t[t.CallSignature=165]="CallSignature",t[t.ConstructSignature=166]="ConstructSignature",t[t.IndexSignature=167]="IndexSignature",t[t.TypePredicate=168]="TypePredicate",t[t.TypeReference=169]="TypeReference",t[t.FunctionType=170]="FunctionType",t[t.ConstructorType=171]="ConstructorType",t[t.TypeQuery=172]="TypeQuery",t[t.TypeLiteral=173]="TypeLiteral",t[t.ArrayType=174]="ArrayType",t[t.TupleType=175]="TupleType",t[t.OptionalType=176]="OptionalType",t[t.RestType=177]="RestType",t[t.UnionType=178]="UnionType",t[t.IntersectionType=179]="IntersectionType",t[t.ConditionalType=180]="ConditionalType",t[t.InferType=181]="InferType",t[t.ParenthesizedType=182]="ParenthesizedType",t[t.ThisType=183]="ThisType",t[t.TypeOperator=184]="TypeOperator",t[t.IndexedAccessType=185]="IndexedAccessType",t[t.MappedType=186]="MappedType",t[t.LiteralType=187]="LiteralType",t[t.ImportType=188]="ImportType",t[t.ObjectBindingPattern=189]="ObjectBindingPattern",t[t.ArrayBindingPattern=190]="ArrayBindingPattern",t[t.BindingElement=191]="BindingElement",t[t.ArrayLiteralExpression=192]="ArrayLiteralExpression",t[t.ObjectLiteralExpression=193]="ObjectLiteralExpression",t[t.PropertyAccessExpression=194]="PropertyAccessExpression",t[t.ElementAccessExpression=195]="ElementAccessExpression",t[t.CallExpression=196]="CallExpression",t[t.NewExpression=197]="NewExpression",t[t.TaggedTemplateExpression=198]="TaggedTemplateExpression",t[t.TypeAssertionExpression=199]="TypeAssertionExpression",t[t.ParenthesizedExpression=200]="ParenthesizedExpression",t[t.FunctionExpression=201]="FunctionExpression",t[t.ArrowFunction=202]="ArrowFunction",t[t.DeleteExpression=203]="DeleteExpression",t[t.TypeOfExpression=204]="TypeOfExpression",t[t.VoidExpression=205]="VoidExpression",t[t.AwaitExpression=206]="AwaitExpression",t[t.PrefixUnaryExpression=207]="PrefixUnaryExpression",t[t.PostfixUnaryExpression=208]="PostfixUnaryExpression",t[t.BinaryExpression=209]="BinaryExpression",t[t.ConditionalExpression=210]="ConditionalExpression",t[t.TemplateExpression=211]="TemplateExpression",t[t.YieldExpression=212]="YieldExpression",t[t.SpreadElement=213]="SpreadElement",t[t.ClassExpression=214]="ClassExpression",t[t.OmittedExpression=215]="OmittedExpression",t[t.ExpressionWithTypeArguments=216]="ExpressionWithTypeArguments",t[t.AsExpression=217]="AsExpression",t[t.NonNullExpression=218]="NonNullExpression",t[t.MetaProperty=219]="MetaProperty",t[t.SyntheticExpression=220]="SyntheticExpression",t[t.TemplateSpan=221]="TemplateSpan",t[t.SemicolonClassElement=222]="SemicolonClassElement",t[t.Block=223]="Block",t[t.EmptyStatement=224]="EmptyStatement",t[t.VariableStatement=225]="VariableStatement",t[t.ExpressionStatement=226]="ExpressionStatement",t[t.IfStatement=227]="IfStatement",t[t.DoStatement=228]="DoStatement",t[t.WhileStatement=229]="WhileStatement",t[t.ForStatement=230]="ForStatement",t[t.ForInStatement=231]="ForInStatement",t[t.ForOfStatement=232]="ForOfStatement",t[t.ContinueStatement=233]="ContinueStatement",t[t.BreakStatement=234]="BreakStatement",t[t.ReturnStatement=235]="ReturnStatement",t[t.WithStatement=236]="WithStatement",t[t.SwitchStatement=237]="SwitchStatement",t[t.LabeledStatement=238]="LabeledStatement",t[t.ThrowStatement=239]="ThrowStatement",t[t.TryStatement=240]="TryStatement",t[t.DebuggerStatement=241]="DebuggerStatement",t[t.VariableDeclaration=242]="VariableDeclaration",t[t.VariableDeclarationList=243]="VariableDeclarationList",t[t.FunctionDeclaration=244]="FunctionDeclaration",t[t.ClassDeclaration=245]="ClassDeclaration",t[t.InterfaceDeclaration=246]="InterfaceDeclaration",t[t.TypeAliasDeclaration=247]="TypeAliasDeclaration",t[t.EnumDeclaration=248]="EnumDeclaration",t[t.ModuleDeclaration=249]="ModuleDeclaration",t[t.ModuleBlock=250]="ModuleBlock",t[t.CaseBlock=251]="CaseBlock",t[t.NamespaceExportDeclaration=252]="NamespaceExportDeclaration",t[t.ImportEqualsDeclaration=253]="ImportEqualsDeclaration",t[t.ImportDeclaration=254]="ImportDeclaration",t[t.ImportClause=255]="ImportClause",t[t.NamespaceImport=256]="NamespaceImport",t[t.NamedImports=257]="NamedImports",t[t.ImportSpecifier=258]="ImportSpecifier",t[t.ExportAssignment=259]="ExportAssignment",t[t.ExportDeclaration=260]="ExportDeclaration",t[t.NamedExports=261]="NamedExports",t[t.NamespaceExport=262]="NamespaceExport",t[t.ExportSpecifier=263]="ExportSpecifier",t[t.MissingDeclaration=264]="MissingDeclaration",t[t.ExternalModuleReference=265]="ExternalModuleReference",t[t.JsxElement=266]="JsxElement",t[t.JsxSelfClosingElement=267]="JsxSelfClosingElement",t[t.JsxOpeningElement=268]="JsxOpeningElement",t[t.JsxClosingElement=269]="JsxClosingElement",t[t.JsxFragment=270]="JsxFragment",t[t.JsxOpeningFragment=271]="JsxOpeningFragment",t[t.JsxClosingFragment=272]="JsxClosingFragment",t[t.JsxAttribute=273]="JsxAttribute",t[t.JsxAttributes=274]="JsxAttributes",t[t.JsxSpreadAttribute=275]="JsxSpreadAttribute",t[t.JsxExpression=276]="JsxExpression",t[t.CaseClause=277]="CaseClause",t[t.DefaultClause=278]="DefaultClause",t[t.HeritageClause=279]="HeritageClause",t[t.CatchClause=280]="CatchClause",t[t.PropertyAssignment=281]="PropertyAssignment",t[t.ShorthandPropertyAssignment=282]="ShorthandPropertyAssignment",t[t.SpreadAssignment=283]="SpreadAssignment",t[t.EnumMember=284]="EnumMember",t[t.UnparsedPrologue=285]="UnparsedPrologue",t[t.UnparsedPrepend=286]="UnparsedPrepend",t[t.UnparsedText=287]="UnparsedText",t[t.UnparsedInternalText=288]="UnparsedInternalText",t[t.UnparsedSyntheticReference=289]="UnparsedSyntheticReference",t[t.SourceFile=290]="SourceFile",t[t.Bundle=291]="Bundle",t[t.UnparsedSource=292]="UnparsedSource",t[t.InputFiles=293]="InputFiles",t[t.JSDocTypeExpression=294]="JSDocTypeExpression",t[t.JSDocAllType=295]="JSDocAllType",t[t.JSDocUnknownType=296]="JSDocUnknownType",t[t.JSDocNullableType=297]="JSDocNullableType",t[t.JSDocNonNullableType=298]="JSDocNonNullableType",t[t.JSDocOptionalType=299]="JSDocOptionalType",t[t.JSDocFunctionType=300]="JSDocFunctionType",t[t.JSDocVariadicType=301]="JSDocVariadicType",t[t.JSDocNamepathType=302]="JSDocNamepathType",t[t.JSDocComment=303]="JSDocComment",t[t.JSDocTypeLiteral=304]="JSDocTypeLiteral",t[t.JSDocSignature=305]="JSDocSignature",t[t.JSDocTag=306]="JSDocTag",t[t.JSDocAugmentsTag=307]="JSDocAugmentsTag",t[t.JSDocImplementsTag=308]="JSDocImplementsTag",t[t.JSDocAuthorTag=309]="JSDocAuthorTag",t[t.JSDocClassTag=310]="JSDocClassTag",t[t.JSDocPublicTag=311]="JSDocPublicTag",t[t.JSDocPrivateTag=312]="JSDocPrivateTag",t[t.JSDocProtectedTag=313]="JSDocProtectedTag",t[t.JSDocReadonlyTag=314]="JSDocReadonlyTag",t[t.JSDocCallbackTag=315]="JSDocCallbackTag",t[t.JSDocEnumTag=316]="JSDocEnumTag",t[t.JSDocParameterTag=317]="JSDocParameterTag",t[t.JSDocReturnTag=318]="JSDocReturnTag",t[t.JSDocThisTag=319]="JSDocThisTag",t[t.JSDocTypeTag=320]="JSDocTypeTag",t[t.JSDocTemplateTag=321]="JSDocTemplateTag",t[t.JSDocTypedefTag=322]="JSDocTypedefTag",t[t.JSDocPropertyTag=323]="JSDocPropertyTag",t[t.SyntaxList=324]="SyntaxList",t[t.NotEmittedStatement=325]="NotEmittedStatement",t[t.PartiallyEmittedExpression=326]="PartiallyEmittedExpression",t[t.CommaListExpression=327]="CommaListExpression",t[t.MergeDeclarationMarker=328]="MergeDeclarationMarker",t[t.EndOfDeclarationMarker=329]="EndOfDeclarationMarker",t[t.SyntheticReferenceExpression=330]="SyntheticReferenceExpression",t[t.Count=331]="Count",t[t.FirstAssignment=62]="FirstAssignment",t[t.LastAssignment=74]="LastAssignment",t[t.FirstCompoundAssignment=63]="FirstCompoundAssignment",t[t.LastCompoundAssignment=74]="LastCompoundAssignment",t[t.FirstReservedWord=77]="FirstReservedWord",t[t.LastReservedWord=112]="LastReservedWord",t[t.FirstKeyword=77]="FirstKeyword",t[t.LastKeyword=152]="LastKeyword",t[t.FirstFutureReservedWord=113]="FirstFutureReservedWord",t[t.LastFutureReservedWord=121]="LastFutureReservedWord",t[t.FirstTypeNode=168]="FirstTypeNode",t[t.LastTypeNode=188]="LastTypeNode",t[t.FirstPunctuation=18]="FirstPunctuation",t[t.LastPunctuation=74]="LastPunctuation",t[t.FirstToken=0]="FirstToken",t[t.LastToken=152]="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=74]="LastBinaryOperator",t[t.FirstStatement=225]="FirstStatement",t[t.LastStatement=241]="LastStatement",t[t.FirstNode=153]="FirstNode",t[t.FirstJSDocNode=294]="FirstJSDocNode",t[t.LastJSDocNode=323]="LastJSDocNode",t[t.FirstJSDocTagNode=306]="FirstJSDocTagNode",t[t.LastJSDocTagNode=323]="LastJSDocTagNode",t[t.FirstContextualKeyword=122]="FirstContextualKeyword",t[t.LastContextualKeyword=152]="LastContextualKeyword",(t=e.NodeFlags||(e.NodeFlags={}))[t.None=0]="None",t[t.Let=1]="Let",t[t.Const=2]="Const",t[t.NestedNamespace=4]="NestedNamespace",t[t.Synthesized=8]="Synthesized",t[t.Namespace=16]="Namespace",t[t.OptionalChain=32]="OptionalChain",t[t.ExportContext=64]="ExportContext",t[t.ContainsThis=128]="ContainsThis",t[t.HasImplicitReturn=256]="HasImplicitReturn",t[t.HasExplicitReturn=512]="HasExplicitReturn",t[t.GlobalAugmentation=1024]="GlobalAugmentation",t[t.HasAsyncFunctions=2048]="HasAsyncFunctions",t[t.DisallowInContext=4096]="DisallowInContext",t[t.YieldContext=8192]="YieldContext",t[t.DecoratorContext=16384]="DecoratorContext",t[t.AwaitContext=32768]="AwaitContext",t[t.ThisNodeHasError=65536]="ThisNodeHasError",t[t.JavaScriptFile=131072]="JavaScriptFile",t[t.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",t[t.HasAggregatedChildData=524288]="HasAggregatedChildData",t[t.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",t[t.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",t[t.JSDoc=4194304]="JSDoc",t[t.Ambient=8388608]="Ambient",t[t.InWithStatement=16777216]="InWithStatement",t[t.JsonFile=33554432]="JsonFile",t[t.TypeCached=67108864]="TypeCached",t[t.BlockScoped=3]="BlockScoped",t[t.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",t[t.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",t[t.ContextFlags=25358336]="ContextFlags",t[t.TypeExcludesFlags=40960]="TypeExcludesFlags",t[t.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags",(t=e.ModifierFlags||(e.ModifierFlags={}))[t.None=0]="None",t[t.Export=1]="Export",t[t.Ambient=2]="Ambient",t[t.Public=4]="Public",t[t.Private=8]="Private",t[t.Protected=16]="Protected",t[t.Static=32]="Static",t[t.Readonly=64]="Readonly",t[t.Abstract=128]="Abstract",t[t.Async=256]="Async",t[t.Default=512]="Default",t[t.Const=2048]="Const",t[t.HasComputedFlags=536870912]="HasComputedFlags",t[t.AccessibilityModifier=28]="AccessibilityModifier",t[t.ParameterPropertyModifier=92]="ParameterPropertyModifier",t[t.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",t[t.TypeScriptModifier=2270]="TypeScriptModifier",t[t.ExportDefault=513]="ExportDefault",t[t.All=3071]="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=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=e.FlowFlags||(e.FlowFlags={}))[t.Unreachable=1]="Unreachable",t[t.Start=2]="Start",t[t.BranchLabel=4]="BranchLabel",t[t.LoopLabel=8]="LoopLabel",t[t.Assignment=16]="Assignment",t[t.TrueCondition=32]="TrueCondition",t[t.FalseCondition=64]="FalseCondition",t[t.SwitchClause=128]="SwitchClause",t[t.ArrayMutation=256]="ArrayMutation",t[t.Call=512]="Call",t[t.ReduceLabel=1024]="ReduceLabel",t[t.Referenced=2048]="Referenced",t[t.Shared=4096]="Shared",t[t.Label=12]="Label",t[t.Condition=96]="Condition",(t=e.CommentDirectiveType||(e.CommentDirectiveType={}))[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore";var r,t=function(){};e.OperationCanceledException=t,(t=e.RefFileKind||(e.RefFileKind={}))[t.Import=0]="Import",t[t.ReferenceFile=1]="ReferenceFile",t[t.TypeReferenceDirective=2]="TypeReferenceDirective",(t=e.StructureIsReused||(e.StructureIsReused={}))[t.Not=0]="Not",t[t.SafeModules=1]="SafeModules",t[t.Completely=2]="Completely",(t=e.ExitStatus||(e.ExitStatus={}))[t.Success=0]="Success",t[t.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",t[t.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",t[t.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",t[t.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",t[t.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped",(t=e.UnionReduction||(e.UnionReduction={}))[t.None=0]="None",t[t.Literal=1]="Literal",t[t.Subtype=2]="Subtype",(t=e.ContextFlags||(e.ContextFlags={}))[t.None=0]="None",t[t.Signature=1]="Signature",t[t.NoConstraints=2]="NoConstraints",t[t.Completions=4]="Completions",(t=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.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",t[t.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",t[t.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",t[t.AllowEmptyTuple=524288]="AllowEmptyTuple",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",t[t.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",t[t.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",t[t.IgnoreErrors=70221824]="IgnoreErrors",t[t.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.InInitialEntityName=16777216]="InInitialEntityName",t[t.InReverseMappedType=33554432]="InReverseMappedType",(t=e.TypeFormatFlags||(e.TypeFormatFlags={}))[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AddUndefined=131072]="AddUndefined",t[t.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",t[t.InArrayType=524288]="InArrayType",t[t.InElementType=2097152]="InElementType",t[t.InFirstTypeArgument=4194304]="InFirstTypeArgument",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",t[t.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask",(t=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[t.None=0]="None",t[t.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",t[t.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",t[t.AllowAnyNodeKind=4]="AllowAnyNodeKind",t[t.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",t[t.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain",(t=e.SymbolAccessibility||(e.SymbolAccessibility={}))[t.Accessible=0]="Accessible",t[t.NotAccessible=1]="NotAccessible",t[t.CannotBeNamed=2]="CannotBeNamed",(t=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[t.UnionOrIntersection=0]="UnionOrIntersection",t[t.Spread=1]="Spread",(t=e.TypePredicateKind||(e.TypePredicateKind={}))[t.This=0]="This",t[t.Identifier=1]="Identifier",t[t.AssertsThis=2]="AssertsThis",t[t.AssertsIdentifier=3]="AssertsIdentifier",(t=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[t.Unknown=0]="Unknown",t[t.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",t[t.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",t[t.NumberLikeType=3]="NumberLikeType",t[t.BigIntLikeType=4]="BigIntLikeType",t[t.StringLikeType=5]="StringLikeType",t[t.BooleanType=6]="BooleanType",t[t.ArrayLikeType=7]="ArrayLikeType",t[t.ESSymbolType=8]="ESSymbolType",t[t.Promise=9]="Promise",t[t.TypeWithCallSignature=10]="TypeWithCallSignature",t[t.ObjectType=11]="ObjectType",(t=e.SymbolFlags||(e.SymbolFlags={}))[t.None=0]="None",t[t.FunctionScopedVariable=1]="FunctionScopedVariable",t[t.BlockScopedVariable=2]="BlockScopedVariable",t[t.Property=4]="Property",t[t.EnumMember=8]="EnumMember",t[t.Function=16]="Function",t[t.Class=32]="Class",t[t.Interface=64]="Interface",t[t.ConstEnum=128]="ConstEnum",t[t.RegularEnum=256]="RegularEnum",t[t.ValueModule=512]="ValueModule",t[t.NamespaceModule=1024]="NamespaceModule",t[t.TypeLiteral=2048]="TypeLiteral",t[t.ObjectLiteral=4096]="ObjectLiteral",t[t.Method=8192]="Method",t[t.Constructor=16384]="Constructor",t[t.GetAccessor=32768]="GetAccessor",t[t.SetAccessor=65536]="SetAccessor",t[t.Signature=131072]="Signature",t[t.TypeParameter=262144]="TypeParameter",t[t.TypeAlias=524288]="TypeAlias",t[t.ExportValue=1048576]="ExportValue",t[t.Alias=2097152]="Alias",t[t.Prototype=4194304]="Prototype",t[t.ExportStar=8388608]="ExportStar",t[t.Optional=16777216]="Optional",t[t.Transient=33554432]="Transient",t[t.Assignment=67108864]="Assignment",t[t.ModuleExports=134217728]="ModuleExports",t[t.All=67108863]="All",t[t.Enum=384]="Enum",t[t.Variable=3]="Variable",t[t.Value=111551]="Value",t[t.Type=788968]="Type",t[t.Namespace=1920]="Namespace",t[t.Module=1536]="Module",t[t.Accessor=98304]="Accessor",t[t.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",t[t.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",t[t.ParameterExcludes=111551]="ParameterExcludes",t[t.PropertyExcludes=0]="PropertyExcludes",t[t.EnumMemberExcludes=900095]="EnumMemberExcludes",t[t.FunctionExcludes=110991]="FunctionExcludes",t[t.ClassExcludes=899503]="ClassExcludes",t[t.InterfaceExcludes=788872]="InterfaceExcludes",t[t.RegularEnumExcludes=899327]="RegularEnumExcludes",t[t.ConstEnumExcludes=899967]="ConstEnumExcludes",t[t.ValueModuleExcludes=110735]="ValueModuleExcludes",t[t.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",t[t.MethodExcludes=103359]="MethodExcludes",t[t.GetAccessorExcludes=46015]="GetAccessorExcludes",t[t.SetAccessorExcludes=78783]="SetAccessorExcludes",t[t.TypeParameterExcludes=526824]="TypeParameterExcludes",t[t.TypeAliasExcludes=788968]="TypeAliasExcludes",t[t.AliasExcludes=2097152]="AliasExcludes",t[t.ModuleMember=2623475]="ModuleMember",t[t.ExportHasLocal=944]="ExportHasLocal",t[t.BlockScoped=418]="BlockScoped",t[t.PropertyOrAccessor=98308]="PropertyOrAccessor",t[t.ClassMember=106500]="ClassMember",t[t.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",t[t.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",t[t.Classifiable=2885600]="Classifiable",t[t.LateBindingContainer=6256]="LateBindingContainer",(t=e.EnumKind||(e.EnumKind={}))[t.Numeric=0]="Numeric",t[t.Literal=1]="Literal",(t=e.CheckFlags||(e.CheckFlags={}))[t.Instantiated=1]="Instantiated",t[t.SyntheticProperty=2]="SyntheticProperty",t[t.SyntheticMethod=4]="SyntheticMethod",t[t.Readonly=8]="Readonly",t[t.ReadPartial=16]="ReadPartial",t[t.WritePartial=32]="WritePartial",t[t.HasNonUniformType=64]="HasNonUniformType",t[t.HasLiteralType=128]="HasLiteralType",t[t.ContainsPublic=256]="ContainsPublic",t[t.ContainsProtected=512]="ContainsProtected",t[t.ContainsPrivate=1024]="ContainsPrivate",t[t.ContainsStatic=2048]="ContainsStatic",t[t.Late=4096]="Late",t[t.ReverseMapped=8192]="ReverseMapped",t[t.OptionalParameter=16384]="OptionalParameter",t[t.RestParameter=32768]="RestParameter",t[t.DeferredType=65536]="DeferredType",t[t.HasNeverType=131072]="HasNeverType",t[t.Mapped=262144]="Mapped",t[t.StripOptional=524288]="StripOptional",t[t.Synthetic=6]="Synthetic",t[t.Discriminant=192]="Discriminant",t[t.Partial=48]="Partial",(t=e.InternalSymbolName||(e.InternalSymbolName={})).Call="__call",t.Constructor="__constructor",t.New="__new",t.Index="__index",t.ExportStar="__export",t.Global="__global",t.Missing="__missing",t.Type="__type",t.Object="__object",t.JSXAttributes="__jsxAttributes",t.Class="__class",t.Function="__function",t.Computed="__computed",t.Resolving="__resolving__",t.ExportEquals="export=",t.Default="default",t.This="this",(t=e.NodeCheckFlags||(e.NodeCheckFlags={}))[t.TypeChecked=1]="TypeChecked",t[t.LexicalThis=2]="LexicalThis",t[t.CaptureThis=4]="CaptureThis",t[t.CaptureNewTarget=8]="CaptureNewTarget",t[t.SuperInstance=256]="SuperInstance",t[t.SuperStatic=512]="SuperStatic",t[t.ContextChecked=1024]="ContextChecked",t[t.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",t[t.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",t[t.CaptureArguments=8192]="CaptureArguments",t[t.EnumValuesComputed=16384]="EnumValuesComputed",t[t.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",t[t.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",t[t.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",t[t.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",t[t.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",t[t.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",t[t.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",t[t.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",t[t.AssignmentsMarked=8388608]="AssignmentsMarked",t[t.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",t[t.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",t[t.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",(t=e.TypeFlags||(e.TypeFlags={}))[t.Any=1]="Any",t[t.Unknown=2]="Unknown",t[t.String=4]="String",t[t.Number=8]="Number",t[t.Boolean=16]="Boolean",t[t.Enum=32]="Enum",t[t.BigInt=64]="BigInt",t[t.StringLiteral=128]="StringLiteral",t[t.NumberLiteral=256]="NumberLiteral",t[t.BooleanLiteral=512]="BooleanLiteral",t[t.EnumLiteral=1024]="EnumLiteral",t[t.BigIntLiteral=2048]="BigIntLiteral",t[t.ESSymbol=4096]="ESSymbol",t[t.UniqueESSymbol=8192]="UniqueESSymbol",t[t.Void=16384]="Void",t[t.Undefined=32768]="Undefined",t[t.Null=65536]="Null",t[t.Never=131072]="Never",t[t.TypeParameter=262144]="TypeParameter",t[t.Object=524288]="Object",t[t.Union=1048576]="Union",t[t.Intersection=2097152]="Intersection",t[t.Index=4194304]="Index",t[t.IndexedAccess=8388608]="IndexedAccess",t[t.Conditional=16777216]="Conditional",t[t.Substitution=33554432]="Substitution",t[t.NonPrimitive=67108864]="NonPrimitive",t[t.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=132]="StringLike",t[t.NumberLike=296]="NumberLike",t[t.BigIntLike=2112]="BigIntLike",t[t.BooleanLike=528]="BooleanLike",t[t.EnumLike=1056]="EnumLike",t[t.ESSymbolLike=12288]="ESSymbolLike",t[t.VoidLike=49152]="VoidLike",t[t.DisjointDomains=67238908]="DisjointDomains",t[t.UnionOrIntersection=3145728]="UnionOrIntersection",t[t.StructuredType=3670016]="StructuredType",t[t.TypeVariable=8650752]="TypeVariable",t[t.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",t[t.InstantiablePrimitive=4194304]="InstantiablePrimitive",t[t.Instantiable=63176704]="Instantiable",t[t.StructuredOrInstantiable=66846720]="StructuredOrInstantiable",t[t.ObjectFlagsType=3899393]="ObjectFlagsType",t[t.Simplifiable=25165824]="Simplifiable",t[t.Substructure=66584576]="Substructure",t[t.Narrowable=133970943]="Narrowable",t[t.NotUnionOrUnit=67637251]="NotUnionOrUnit",t[t.NotPrimitiveUnion=66994211]="NotPrimitiveUnion",t[t.IncludesMask=71041023]="IncludesMask",t[t.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",t[t.IncludesNonWideningType=4194304]="IncludesNonWideningType",t[t.IncludesWildcard=8388608]="IncludesWildcard",t[t.IncludesEmptyObject=16777216]="IncludesEmptyObject",(t=e.ObjectFlags||(e.ObjectFlags={}))[t.Class=1]="Class",t[t.Interface=2]="Interface",t[t.Reference=4]="Reference",t[t.Tuple=8]="Tuple",t[t.Anonymous=16]="Anonymous",t[t.Mapped=32]="Mapped",t[t.Instantiated=64]="Instantiated",t[t.ObjectLiteral=128]="ObjectLiteral",t[t.EvolvingArray=256]="EvolvingArray",t[t.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",t[t.ContainsSpread=1024]="ContainsSpread",t[t.ReverseMapped=2048]="ReverseMapped",t[t.JsxAttributes=4096]="JsxAttributes",t[t.MarkerType=8192]="MarkerType",t[t.JSLiteral=16384]="JSLiteral",t[t.FreshLiteral=32768]="FreshLiteral",t[t.ArrayLiteral=65536]="ArrayLiteral",t[t.ObjectRestType=131072]="ObjectRestType",t[t.PrimitiveUnion=262144]="PrimitiveUnion",t[t.ContainsWideningType=524288]="ContainsWideningType",t[t.ContainsObjectOrArrayLiteral=1048576]="ContainsObjectOrArrayLiteral",t[t.NonInferrableType=2097152]="NonInferrableType",t[t.IsGenericObjectTypeComputed=4194304]="IsGenericObjectTypeComputed",t[t.IsGenericObjectType=8388608]="IsGenericObjectType",t[t.IsGenericIndexTypeComputed=16777216]="IsGenericIndexTypeComputed",t[t.IsGenericIndexType=33554432]="IsGenericIndexType",t[t.CouldContainTypeVariablesComputed=67108864]="CouldContainTypeVariablesComputed",t[t.CouldContainTypeVariables=134217728]="CouldContainTypeVariables",t[t.ContainsIntersections=268435456]="ContainsIntersections",t[t.IsNeverIntersectionComputed=268435456]="IsNeverIntersectionComputed",t[t.IsNeverIntersection=536870912]="IsNeverIntersection",t[t.ClassOrInterface=3]="ClassOrInterface",t[t.RequiresWidening=1572864]="RequiresWidening",t[t.PropagatingFlags=3670016]="PropagatingFlags",(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.JsxReferenceKind||(e.JsxReferenceKind={}))[t.Component=0]="Component",t[t.Function=1]="Function",t[t.Mixed=2]="Mixed",(t=e.SignatureKind||(e.SignatureKind={}))[t.Call=0]="Call",t[t.Construct=1]="Construct",(t=e.SignatureFlags||(e.SignatureFlags={}))[t.None=0]="None",t[t.HasRestParameter=1]="HasRestParameter",t[t.HasLiteralTypes=2]="HasLiteralTypes",t[t.IsInnerCallChain=4]="IsInnerCallChain",t[t.IsOuterCallChain=8]="IsOuterCallChain",t[t.IsUntypedSignatureInJSFile=16]="IsUntypedSignatureInJSFile",t[t.PropagatingFlags=3]="PropagatingFlags",t[t.CallChainFlags=12]="CallChainFlags",(t=e.IndexKind||(e.IndexKind={}))[t.String=0]="String",t[t.Number=1]="Number",(t=e.TypeMapKind||(e.TypeMapKind={}))[t.Simple=0]="Simple",t[t.Array=1]="Array",t[t.Function=2]="Function",t[t.Composite=3]="Composite",t[t.Merged=4]="Merged",(t=e.InferencePriority||(e.InferencePriority={}))[t.NakedTypeVariable=1]="NakedTypeVariable",t[t.HomomorphicMappedType=2]="HomomorphicMappedType",t[t.PartialHomomorphicMappedType=4]="PartialHomomorphicMappedType",t[t.MappedTypeConstraint=8]="MappedTypeConstraint",t[t.ContravariantConditional=16]="ContravariantConditional",t[t.ReturnType=32]="ReturnType",t[t.LiteralKeyof=64]="LiteralKeyof",t[t.NoConstraints=128]="NoConstraints",t[t.AlwaysStrict=256]="AlwaysStrict",t[t.MaxValue=512]="MaxValue",t[t.PriorityImpliesCombination=104]="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.Maybe=1]="Maybe",t[t.True=-1]="True",(t=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[t.None=0]="None",t[t.ExportsProperty=1]="ExportsProperty",t[t.ModuleExports=2]="ModuleExports",t[t.PrototypeProperty=3]="PrototypeProperty",t[t.ThisProperty=4]="ThisProperty",t[t.Property=5]="Property",t[t.Prototype=6]="Prototype",t[t.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",t[t.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",t[t.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",(t=r=e.DiagnosticCategory||(e.DiagnosticCategory={}))[t.Warning=0]="Warning",t[t.Error=1]="Error",t[t.Suggestion=2]="Suggestion",t[t.Message=3]="Message",e.diagnosticCategoryName=function(e,t){return void 0===t&&(t=!0),e=r[e.category],t?e.toLowerCase():e},(t=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[t.Classic=1]="Classic",t[t.NodeJs=2]="NodeJs",(t=e.WatchFileKind||(e.WatchFileKind={}))[t.FixedPollingInterval=0]="FixedPollingInterval",t[t.PriorityPollingInterval=1]="PriorityPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.UseFsEvents=3]="UseFsEvents",t[t.UseFsEventsOnParentDirectory=4]="UseFsEventsOnParentDirectory",(t=e.WatchDirectoryKind||(e.WatchDirectoryKind={}))[t.UseFsEvents=0]="UseFsEvents",t[t.FixedPollingInterval=1]="FixedPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",(t=e.PollingWatchKind||(e.PollingWatchKind={}))[t.FixedInterval=0]="FixedInterval",t[t.PriorityInterval=1]="PriorityInterval",t[t.DynamicPriority=2]="DynamicPriority",(t=e.ModuleKind||(e.ModuleKind={}))[t.None=0]="None",t[t.CommonJS=1]="CommonJS",t[t.AMD=2]="AMD",t[t.UMD=3]="UMD",t[t.System=4]="System",t[t.ES2015=5]="ES2015",t[t.ES2020=6]="ES2020",t[t.ESNext=99]="ESNext",(t=e.JsxEmit||(e.JsxEmit={}))[t.None=0]="None",t[t.Preserve=1]="Preserve",t[t.React=2]="React",t[t.ReactNative=3]="ReactNative",(t=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}))[t.Remove=0]="Remove",t[t.Preserve=1]="Preserve",t[t.Error=2]="Error",(t=e.NewLineKind||(e.NewLineKind={}))[t.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",t[t.LineFeed=1]="LineFeed",(t=e.ScriptKind||(e.ScriptKind={}))[t.Unknown=0]="Unknown",t[t.JS=1]="JS",t[t.JSX=2]="JSX",t[t.TS=3]="TS",t[t.TSX=4]="TSX",t[t.External=5]="External",t[t.JSON=6]="JSON",t[t.Deferred=7]="Deferred",(t=e.ScriptTarget||(e.ScriptTarget={}))[t.ES3=0]="ES3",t[t.ES5=1]="ES5",t[t.ES2015=2]="ES2015",t[t.ES2016=3]="ES2016",t[t.ES2017=4]="ES2017",t[t.ES2018=5]="ES2018",t[t.ES2019=6]="ES2019",t[t.ES2020=7]="ES2020",t[t.ESNext=99]="ESNext",t[t.JSON=100]="JSON",t[t.Latest=99]="Latest",(t=e.LanguageVariant||(e.LanguageVariant={}))[t.Standard=0]="Standard",t[t.JSX=1]="JSX",(t=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[t.None=0]="None",t[t.Recursive=1]="Recursive",(t=e.CharacterCodes||(e.CharacterCodes={}))[t.nullCharacter=0]="nullCharacter",t[t.maxAsciiCharacter=127]="maxAsciiCharacter",t[t.lineFeed=10]="lineFeed",t[t.carriageReturn=13]="carriageReturn",t[t.lineSeparator=8232]="lineSeparator",t[t.paragraphSeparator=8233]="paragraphSeparator",t[t.nextLine=133]="nextLine",t[t.space=32]="space",t[t.nonBreakingSpace=160]="nonBreakingSpace",t[t.enQuad=8192]="enQuad",t[t.emQuad=8193]="emQuad",t[t.enSpace=8194]="enSpace",t[t.emSpace=8195]="emSpace",t[t.threePerEmSpace=8196]="threePerEmSpace",t[t.fourPerEmSpace=8197]="fourPerEmSpace",t[t.sixPerEmSpace=8198]="sixPerEmSpace",t[t.figureSpace=8199]="figureSpace",t[t.punctuationSpace=8200]="punctuationSpace",t[t.thinSpace=8201]="thinSpace",t[t.hairSpace=8202]="hairSpace",t[t.zeroWidthSpace=8203]="zeroWidthSpace",t[t.narrowNoBreakSpace=8239]="narrowNoBreakSpace",t[t.ideographicSpace=12288]="ideographicSpace",t[t.mathematicalSpace=8287]="mathematicalSpace",t[t.ogham=5760]="ogham",t[t._=95]="_",t[t.$=36]="$",t[t._0=48]="_0",t[t._1=49]="_1",t[t._2=50]="_2",t[t._3=51]="_3",t[t._4=52]="_4",t[t._5=53]="_5",t[t._6=54]="_6",t[t._7=55]="_7",t[t._8=56]="_8",t[t._9=57]="_9",t[t.a=97]="a",t[t.b=98]="b",t[t.c=99]="c",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.g=103]="g",t[t.h=104]="h",t[t.i=105]="i",t[t.j=106]="j",t[t.k=107]="k",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.p=112]="p",t[t.q=113]="q",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.v=118]="v",t[t.w=119]="w",t[t.x=120]="x",t[t.y=121]="y",t[t.z=122]="z",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.ampersand=38]="ampersand",t[t.asterisk=42]="asterisk",t[t.at=64]="at",t[t.backslash=92]="backslash",t[t.backtick=96]="backtick",t[t.bar=124]="bar",t[t.caret=94]="caret",t[t.closeBrace=125]="closeBrace",t[t.closeBracket=93]="closeBracket",t[t.closeParen=41]="closeParen",t[t.colon=58]="colon",t[t.comma=44]="comma",t[t.dot=46]="dot",t[t.doubleQuote=34]="doubleQuote",t[t.equals=61]="equals",t[t.exclamation=33]="exclamation",t[t.greaterThan=62]="greaterThan",t[t.hash=35]="hash",t[t.lessThan=60]="lessThan",t[t.minus=45]="minus",t[t.openBrace=123]="openBrace",t[t.openBracket=91]="openBracket",t[t.openParen=40]="openParen",t[t.percent=37]="percent",t[t.plus=43]="plus",t[t.question=63]="question",t[t.semicolon=59]="semicolon",t[t.singleQuote=39]="singleQuote",t[t.slash=47]="slash",t[t.tilde=126]="tilde",t[t.backspace=8]="backspace",t[t.formFeed=12]="formFeed",t[t.byteOrderMark=65279]="byteOrderMark",t[t.tab=9]="tab",t[t.verticalTab=11]="verticalTab",(t=e.Extension||(e.Extension={})).Ts=".ts",t.Tsx=".tsx",t.Dts=".d.ts",t.Js=".js",t.Jsx=".jsx",t.Json=".json",t.TsBuildInfo=".tsbuildinfo",(t=e.TransformFlags||(e.TransformFlags={}))[t.None=0]="None",t[t.ContainsTypeScript=1]="ContainsTypeScript",t[t.ContainsJsx=2]="ContainsJsx",t[t.ContainsESNext=4]="ContainsESNext",t[t.ContainsES2020=8]="ContainsES2020",t[t.ContainsES2019=16]="ContainsES2019",t[t.ContainsES2018=32]="ContainsES2018",t[t.ContainsES2017=64]="ContainsES2017",t[t.ContainsES2016=128]="ContainsES2016",t[t.ContainsES2015=256]="ContainsES2015",t[t.ContainsGenerator=512]="ContainsGenerator",t[t.ContainsDestructuringAssignment=1024]="ContainsDestructuringAssignment",t[t.ContainsTypeScriptClassSyntax=2048]="ContainsTypeScriptClassSyntax",t[t.ContainsLexicalThis=4096]="ContainsLexicalThis",t[t.ContainsRestOrSpread=8192]="ContainsRestOrSpread",t[t.ContainsObjectRestOrSpread=16384]="ContainsObjectRestOrSpread",t[t.ContainsComputedPropertyName=32768]="ContainsComputedPropertyName",t[t.ContainsBlockScopedBinding=65536]="ContainsBlockScopedBinding",t[t.ContainsBindingPattern=131072]="ContainsBindingPattern",t[t.ContainsYield=262144]="ContainsYield",t[t.ContainsAwait=524288]="ContainsAwait",t[t.ContainsHoistedDeclarationOrCompletion=1048576]="ContainsHoistedDeclarationOrCompletion",t[t.ContainsDynamicImport=2097152]="ContainsDynamicImport",t[t.ContainsClassFields=4194304]="ContainsClassFields",t[t.HasComputedFlags=536870912]="HasComputedFlags",t[t.AssertTypeScript=1]="AssertTypeScript",t[t.AssertJsx=2]="AssertJsx",t[t.AssertESNext=4]="AssertESNext",t[t.AssertES2020=8]="AssertES2020",t[t.AssertES2019=16]="AssertES2019",t[t.AssertES2018=32]="AssertES2018",t[t.AssertES2017=64]="AssertES2017",t[t.AssertES2016=128]="AssertES2016",t[t.AssertES2015=256]="AssertES2015",t[t.AssertGenerator=512]="AssertGenerator",t[t.AssertDestructuringAssignment=1024]="AssertDestructuringAssignment",t[t.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",t[t.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",t[t.NodeExcludes=536870912]="NodeExcludes",t[t.ArrowFunctionExcludes=538920960]="ArrowFunctionExcludes",t[t.FunctionExcludes=538925056]="FunctionExcludes",t[t.ConstructorExcludes=538923008]="ConstructorExcludes",t[t.MethodOrAccessorExcludes=538923008]="MethodOrAccessorExcludes",t[t.PropertyExcludes=536875008]="PropertyExcludes",t[t.ClassExcludes=536905728]="ClassExcludes",t[t.ModuleExcludes=537991168]="ModuleExcludes",t[t.TypeExcludes=-2]="TypeExcludes",t[t.ObjectLiteralExcludes=536922112]="ObjectLiteralExcludes",t[t.ArrayLiteralOrCallOrNewExcludes=536879104]="ArrayLiteralOrCallOrNewExcludes",t[t.VariableDeclarationListExcludes=537018368]="VariableDeclarationListExcludes",t[t.ParameterExcludes=536870912]="ParameterExcludes",t[t.CatchClauseExcludes=536887296]="CatchClauseExcludes",t[t.BindingPatternExcludes=536879104]="BindingPatternExcludes",t[t.PropertyNamePropagatingFlags=4096]="PropertyNamePropagatingFlags",(t=e.EmitFlags||(e.EmitFlags={}))[t.None=0]="None",t[t.SingleLine=1]="SingleLine",t[t.AdviseOnEmitNode=2]="AdviseOnEmitNode",t[t.NoSubstitution=4]="NoSubstitution",t[t.CapturesThis=8]="CapturesThis",t[t.NoLeadingSourceMap=16]="NoLeadingSourceMap",t[t.NoTrailingSourceMap=32]="NoTrailingSourceMap",t[t.NoSourceMap=48]="NoSourceMap",t[t.NoNestedSourceMaps=64]="NoNestedSourceMaps",t[t.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",t[t.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",t[t.NoTokenSourceMaps=384]="NoTokenSourceMaps",t[t.NoLeadingComments=512]="NoLeadingComments",t[t.NoTrailingComments=1024]="NoTrailingComments",t[t.NoComments=1536]="NoComments",t[t.NoNestedComments=2048]="NoNestedComments",t[t.HelperName=4096]="HelperName",t[t.ExportName=8192]="ExportName",t[t.LocalName=16384]="LocalName",t[t.InternalName=32768]="InternalName",t[t.Indented=65536]="Indented",t[t.NoIndentation=131072]="NoIndentation",t[t.AsyncFunctionBody=262144]="AsyncFunctionBody",t[t.ReuseTempVariableScope=524288]="ReuseTempVariableScope",t[t.CustomPrologue=1048576]="CustomPrologue",t[t.NoHoisting=2097152]="NoHoisting",t[t.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",t[t.Iterator=8388608]="Iterator",t[t.NoAsciiEscaping=16777216]="NoAsciiEscaping",t[t.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",t[t.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",t[t.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",(t=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[t.Extends=1]="Extends",t[t.Assign=2]="Assign",t[t.Rest=4]="Rest",t[t.Decorate=8]="Decorate",t[t.Metadata=16]="Metadata",t[t.Param=32]="Param",t[t.Awaiter=64]="Awaiter",t[t.Generator=128]="Generator",t[t.Values=256]="Values",t[t.Read=512]="Read",t[t.Spread=1024]="Spread",t[t.SpreadArrays=2048]="SpreadArrays",t[t.Await=4096]="Await",t[t.AsyncGenerator=8192]="AsyncGenerator",t[t.AsyncDelegator=16384]="AsyncDelegator",t[t.AsyncValues=32768]="AsyncValues",t[t.ExportStar=65536]="ExportStar",t[t.MakeTemplateObject=131072]="MakeTemplateObject",t[t.ClassPrivateFieldGet=262144]="ClassPrivateFieldGet",t[t.ClassPrivateFieldSet=524288]="ClassPrivateFieldSet",t[t.CreateBinding=1048576]="CreateBinding",t[t.FirstEmitHelper=1]="FirstEmitHelper",t[t.LastEmitHelper=1048576]="LastEmitHelper",t[t.ForOfIncludes=256]="ForOfIncludes",t[t.ForAwaitOfIncludes=32768]="ForAwaitOfIncludes",t[t.AsyncGeneratorIncludes=12288]="AsyncGeneratorIncludes",t[t.AsyncDelegatorIncludes=53248]="AsyncDelegatorIncludes",t[t.SpreadIncludes=1536]="SpreadIncludes",(t=e.EmitHint||(e.EmitHint={}))[t.SourceFile=0]="SourceFile",t[t.Expression=1]="Expression",t[t.IdentifierName=2]="IdentifierName",t[t.MappedTypeParameter=3]="MappedTypeParameter",t[t.Unspecified=4]="Unspecified",t[t.EmbeddedStatement=5]="EmbeddedStatement",t[t.JsxAttributeValue=6]="JsxAttributeValue",(t=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}))[t.None=0]="None",t[t.InParameters=1]="InParameters",t[t.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",(t=e.BundleFileSectionKind||(e.BundleFileSectionKind={})).Prologue="prologue",t.EmitHelpers="emitHelpers",t.NoDefaultLib="no-default-lib",t.Reference="reference",t.Type="type",t.Lib="lib",t.Prepend="prepend",t.Text="text",t.Internal="internal",(t=e.ListFormat||(e.ListFormat={}))[t.None=0]="None",t[t.SingleLine=0]="SingleLine",t[t.MultiLine=1]="MultiLine",t[t.PreserveLines=2]="PreserveLines",t[t.LinesMask=3]="LinesMask",t[t.NotDelimited=0]="NotDelimited",t[t.BarDelimited=4]="BarDelimited",t[t.AmpersandDelimited=8]="AmpersandDelimited",t[t.CommaDelimited=16]="CommaDelimited",t[t.AsteriskDelimited=32]="AsteriskDelimited",t[t.DelimitersMask=60]="DelimitersMask",t[t.AllowTrailingComma=64]="AllowTrailingComma",t[t.Indented=128]="Indented",t[t.SpaceBetweenBraces=256]="SpaceBetweenBraces",t[t.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",t[t.Braces=1024]="Braces",t[t.Parenthesis=2048]="Parenthesis",t[t.AngleBrackets=4096]="AngleBrackets",t[t.SquareBrackets=8192]="SquareBrackets",t[t.BracketsMask=15360]="BracketsMask",t[t.OptionalIfUndefined=16384]="OptionalIfUndefined",t[t.OptionalIfEmpty=32768]="OptionalIfEmpty",t[t.Optional=49152]="Optional",t[t.PreferNewLine=65536]="PreferNewLine",t[t.NoTrailingNewLine=131072]="NoTrailingNewLine",t[t.NoInterveningComments=262144]="NoInterveningComments",t[t.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",t[t.SingleElement=1048576]="SingleElement",t[t.SpaceAfterList=2097152]="SpaceAfterList",t[t.Modifiers=262656]="Modifiers",t[t.HeritageClauses=512]="HeritageClauses",t[t.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",t[t.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",t[t.TupleTypeElements=528]="TupleTypeElements",t[t.UnionTypeConstituents=516]="UnionTypeConstituents",t[t.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",t[t.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",t[t.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",t[t.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",t[t.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",t[t.CommaListElements=528]="CommaListElements",t[t.CallExpressionArguments=2576]="CallExpressionArguments",t[t.NewExpressionArguments=18960]="NewExpressionArguments",t[t.TemplateExpressionSpans=262144]="TemplateExpressionSpans",t[t.SingleLineBlockStatements=768]="SingleLineBlockStatements",t[t.MultiLineBlockStatements=129]="MultiLineBlockStatements",t[t.VariableDeclarationList=528]="VariableDeclarationList",t[t.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",t[t.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",t[t.ClassHeritageClauses=0]="ClassHeritageClauses",t[t.ClassMembers=129]="ClassMembers",t[t.InterfaceMembers=129]="InterfaceMembers",t[t.EnumMembers=145]="EnumMembers",t[t.CaseBlockClauses=129]="CaseBlockClauses",t[t.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",t[t.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",t[t.JsxElementAttributes=262656]="JsxElementAttributes",t[t.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",t[t.HeritageClauseTypes=528]="HeritageClauseTypes",t[t.SourceFileStatements=131073]="SourceFileStatements",t[t.Decorators=2146305]="Decorators",t[t.TypeArguments=53776]="TypeArguments",t[t.TypeParameters=53776]="TypeParameters",t[t.Parameters=2576]="Parameters",t[t.IndexSignatureParameters=8848]="IndexSignatureParameters",t[t.JSDocComment=33]="JSDocComment",(t=e.PragmaKindFlags||(e.PragmaKindFlags={}))[t.None=0]="None",t[t.TripleSlashXML=1]="TripleSlashXML",t[t.SingleLine=2]="SingleLine",t[t.MultiLine=4]="MultiLine",t[t.All=7]="All",t[t.Default=7]="Default",e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4}}}(ts=ts||{}),function(C){function T(e){for(var t=5381,r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}var k,D;function n(e){var t={};return t[D.Low]=e.Low,t[D.Medium]=e.Medium,t[D.High]=e.High,t}C.generateDjb2Hash=T,C.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},(e=k=C.FileWatcherEventKind||(C.FileWatcherEventKind={}))[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",(e=D=C.PollingInterval||(C.PollingInterval={}))[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",C.missingFileModifiedTime=new Date(0);var e,t,o={Low:32,Medium:64,High:256},g=n(o);function r(a){var r;function i(n){var i;return e("Low"),e("Medium"),e("High"),i;function e(e){var t,r,r=(t=n,r=e,a.getEnvironmentVariable(t+"_"+r.toUpperCase()));r&&((i=i||{})[e]=Number(r))}}function e(e,t){e=i(e);return(r||e)&&n(e?__assign(__assign({},t),e):t)}a.getEnvironmentVariable&&(r=function(e,t){var r=i(e);if(r)return n("Low"),n("Medium"),n("High"),!0;return!1;function n(e){t[e]=r[e]||t[e]}}("TSC_WATCH_POLLINGINTERVAL",D),g=e("TSC_WATCH_POLLINGCHUNKSIZE",o)||g,C.unchangedPollThresholds=e("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",o)||C.unchangedPollThresholds)}function S(t){var i=[],u=[],r=e(D.Low),n=e(D.Medium),a=e(D.High);return function(e,t,r){var n={fileName:e,callback:t,unchangedPolls:0,mtime:f(e)};return i.push(n),_(n,r),{close:function(){n.isClosed=!0,C.unorderedRemoveItem(i,n)}}};function e(e){var t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function o(e){e.pollIndex=c(e,e.pollingInterval,e.pollIndex,g[e.pollingInterval]),e.length?p(e.pollingInterval):(C.Debug.assert(0===e.pollIndex),e.pollScheduled=!1)}function s(e){c(u,D.Low,0,u.length),o(e),!e.pollScheduled&&u.length&&p(D.Low)}function c(e,t,r,n){for(var i=e.length,a=r,o=0;o<n&&0<i;++r===e.length&&(a<r&&(e.length=a),a=r=0),i--){var s,c=e[r];c&&(c.isClosed?e[r]=void 0:(o++,s=m(c,f(c.fileName)),c.isClosed?e[r]=void 0:s?(c.unchangedPolls=0,e!==u&&(e[r]=void 0,s=c,u.push(s),d(D.Low))):c.unchangedPolls!==C.unchangedPollThresholds[t]?c.unchangedPolls++:e===u?(c.unchangedPolls=1,e[r]=void 0,_(c,D.Low)):t!==D.High&&(c.unchangedPolls++,e[r]=void 0,_(c,t===D.Low?D.Medium:D.High)),e[r]&&(a<r&&(e[a]=c,e[r]=void 0),a++)))}return r}function l(e){switch(e){case D.Low:return r;case D.Medium:return n;case D.High:return a}}function _(e,t){l(t).push(e),d(t)}function d(e){l(e).pollScheduled||p(e)}function p(e){l(e).pollScheduled=t.setTimeout(e===D.Low?s:o,e,l(e))}function f(e){return t.getModifiedTime(e)||C.missingFileModifiedTime}}function E(s,e){var c=C.createMultiMap(),u=C.createMap(),l=C.createGetCanonicalFileName(e);return function(e,t,r,n){var i=l(e);c.add(i,t);var a=C.getDirectoryPath(i)||".",o=u.get(a)||function(a,e,t){t=s(a,1,function(e,t){if(C.isString(t)){var r=C.getNormalizedAbsolutePath(t,a),t=r&&c.get(l(r));if(t)for(var n=0,i=t;n<i.length;n++)(0,i[n])(r,k.Changed)}},!1,D.Medium,t);return t.referenceCount=0,u.set(e,t),t}(C.getDirectoryPath(e)||".",a,n);return o.referenceCount++,{close:function(){1===o.referenceCount?(o.close(),u.delete(a)):o.referenceCount--,c.remove(i,t)}}}}function N(o,e){var s=C.createMap(),c=C.createMultiMap(),u=C.createGetCanonicalFileName(e);return function(e,t,r,n){var i=u(e),a=s.get(i);return a?a.refCount++:s.set(i,{watcher:o(e,function(t,r){return C.forEach(c.get(i),function(e){return e(t,r)})},r,n),refCount:1}),c.add(i,t),{close:function(){var e=C.Debug.checkDefined(s.get(i));c.remove(i,t),e.refCount--,e.refCount||(s.delete(i),C.closeFileWatcherOf(e))}}}}function m(e,t){var r=e.mtime.getTime(),n=t.getTime();return r!==n&&(e.mtime=t,e.callback(e.fileName,i(r,n)),!0)}function i(e,t){return 0===e?k.Created:0===t?k.Deleted:k.Changed}function A(s){var o,c=C.createMap(),u=C.createMultiMap(),l=C.createMap(),_=C.getStringComparer(!s.useCaseSensitiveFileNames),d=C.createGetCanonicalFileName(s.useCaseSensitiveFileNames);return function(e,t,r,n){return r?p(e,n,t):s.watchDirectory(e,t,r,n)};function p(t,r,e){var n=d(t),i=c.get(n);i?i.refCount++:(i={watcher:s.watchDirectory(t,function(e){y(e)||(null!=r&&r.synchronousWatchDirectory?(f(n,e),m(t,n,r)):function(e,t,r,n){var i=c.get(t);if(i&&s.directoryExists(e))return function(e,t,r){l.has(t)||l.set(t,{dirName:e,options:r}),o&&(s.clearTimeout(o),o=void 0),o=s.setTimeout(g,1e3)}(e,t,n),0;f(t,r),function e(t){if(!t)return;var r=t.childWatches;t.childWatches=C.emptyArray;for(var n=0,i=r;n<i.length;n++){var a=i[n];a.close(),e(c.get(d(a.dirName)))}}(i)}(t,n,e,r))},!1,r),refCount:1,childWatches:C.emptyArray},c.set(n,i),m(t,n,r));var a=e&&{dirName:t,callback:e};return a&&u.add(n,a),{dirName:t,close:function(){var e=C.Debug.checkDefined(c.get(n));a&&u.remove(n,a),e.refCount--,e.refCount||(c.delete(n),C.closeFileWatcherOf(e),e.childWatches.forEach(C.closeFileWatcher))}}}function f(r,e){var n,i;C.isString(e)?n=e:i=e,u.forEach(function(e,t){i&&i.has(t)||(t===r||C.startsWith(r,t)&&r[t.length]===C.directorySeparator)&&(i?i.set(t,!0):e.forEach(function(e){return(0,e.callback)(n)}))})}function g(){o=void 0,C.sysLog("sysLog:: onTimerToUpdateChildWatches:: "+l.size);for(var e=C.timestamp(),r=C.createMap();!o&&l.size;){var t=l.entries().next(),n=t.value,i=n[0],a=n[1],n=a.dirName,a=a.options,t=t.done;C.Debug.assert(!t),l.delete(i),f(i,r),m(n,i,a)}C.sysLog("sysLog:: invokingWatchers:: "+(C.timestamp()-e)+"ms:: "+l.size),u.forEach(function(e,t){r.has(t)&&e.forEach(function(e){return(0,e.callback)(e.dirName)})});e=C.timestamp()-e;C.sysLog("sysLog:: Elapsed "+e+"ms:: onTimerToUpdateChildWatches:: "+l.size+" "+o)}function m(e,t,r){var n,i,a,t=c.get(t);function o(e){(a=a||[]).push(e)}t&&(t.childWatches=(n=e,t=t.childWatches,i=r,C.enumerateInsertsAndDeletes(s.directoryExists(n)?C.mapDefined(s.getAccessibleSortedChildDirectories(n),function(e){e=C.getNormalizedAbsolutePath(e,n);return y(e)||0!==_(e,C.normalizePath(s.realpath(e)))?void 0:e}):C.emptyArray,t,function(e,t){return _(e,t.dirName)},function(e){o(p(e,i))},C.closeFileWatcher,o),a||C.emptyArray))}function y(r){return C.some(C.ignoredPaths,function(e){return t=r,e=e,!!C.stringContains(t,e)||!s.useCaseSensitiveFileNames&&C.stringContains(d(t),e);var t})}}function F(r){return function(e,t){return r(t===k.Changed?"change":"rename","")}}function P(r,n){return function(e,t){"rename"===e&&n(t?C.normalizePath(C.combinePaths(r,t)):r)}}function w(e){var t,a,i,o=e.pollingWatchFile,r=e.getModifiedTime,s=e.setTimeout,c=e.clearTimeout,u=e.fsWatch,l=e.fileExists,_=e.useCaseSensitiveFileNames,d=e.fsSupportsRecursiveFsWatch,p=e.directoryExists,f=e.getAccessibleSortedChildDirectories,g=e.realpath,m=e.tscWatchFile,y=e.useNonPollingWatchers,h=e.tscWatchDirectory;return{watchFile:function(e,t,r,n){n=function(e,t){if(e&&void 0!==e.watchFile)return e;switch(m){case"PriorityPollingInterval":return{watchFile:C.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:C.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return b(C.WatchFileKind.UseFsEvents,C.PollingWatchKind.PriorityInterval,e);case"UseFsEventsWithFallbackDynamicPolling":return b(C.WatchFileKind.UseFsEvents,C.PollingWatchKind.DynamicPriority,e);case"UseFsEventsOnParentDirectory":t=!0;default:return t?b(C.WatchFileKind.UseFsEventsOnParentDirectory,C.PollingWatchKind.PriorityInterval,e):{watchFile:C.WatchFileKind.FixedPollingInterval}}}(n,y);var i=C.Debug.checkDefined(n.watchFile);switch(i){case C.WatchFileKind.FixedPollingInterval:return o(e,t,D.Low,void 0);case C.WatchFileKind.PriorityPollingInterval:return o(e,t,r,void 0);case C.WatchFileKind.DynamicPriorityPolling:return v()(e,t,r,void 0);case C.WatchFileKind.UseFsEvents:return u(e,0,function(t,r,n){return function(e){r(t,"rename"===e?n(t)?k.Created:k.Deleted:k.Changed)}}(e,t,l),!1,r,C.getFallbackOptions(n));case C.WatchFileKind.UseFsEventsOnParentDirectory:return(a=a||E(u,_))(e,t,r,C.getFallbackOptions(n));default:C.Debug.assertNever(i)}},watchDirectory:function(e,t,r,n){if(d)return u(e,1,P(e,t),r,D.Medium,C.getFallbackOptions(n));i=i||A({useCaseSensitiveFileNames:_,directoryExists:p,getAccessibleSortedChildDirectories:f,watchDirectory:x,realpath:g,setTimeout:s,clearTimeout:c});return i(e,t,r,n)}};function v(){return t=t||S({getModifiedTime:r,setTimeout:s})}function b(e,t,r){r=null==r?void 0:r.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?t:r}}function x(e,t,r,n){C.Debug.assert(!r),n=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(h){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:C.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:C.WatchDirectoryKind.DynamicPriorityPolling};default:var t=null==e?void 0:e.fallbackPolling;return{watchDirectory:C.WatchDirectoryKind.UseFsEvents,fallbackPolling:void 0!==t?t:void 0}}}(n);var i=C.Debug.checkDefined(n.watchDirectory);switch(i){case C.WatchDirectoryKind.FixedPollingInterval:return o(e,function(){return t(e)},D.Medium,void 0);case C.WatchDirectoryKind.DynamicPriorityPolling:return v()(e,function(){return t(e)},D.Medium,void 0);case C.WatchDirectoryKind.UseFsEvents:return u(e,1,P(e,t),r,D.Medium,C.getFallbackOptions(n));default:C.Debug.assertNever(i)}}}function a(n){var i=n.writeFile;n.writeFile=function(e,t,r){return C.writeFileEnsuringDirectories(e,t,!!r,function(e,t,r){return i.call(n,e,t,r)},function(e){return n.createDirectory(e)},function(e){return n.directoryExists(e)})}}function I(){if("undefined"!=typeof process){var e=process.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}C.unchangedPollThresholds=n(o),C.setCustomPollingValues=r,C.createDynamicPriorityPollingWatchFile=S,C.createSingleFileWatcherPerName=N,C.onWatchedFileStat=m,C.getFileWatcherEventKind=i,C.ignoredPaths=["/node_modules/.","/.git","/.#"],C.sysLog=C.noop,C.setSysLog=function(e){C.sysLog=e},C.createDirectoryWatcherSupportingRecursive=A,(e=C.FileSystemEntryKind||(C.FileSystemEntryKind={}))[e.File=0]="File",e[e.Directory=1]="Directory",C.createFileWatcherCallback=F,C.createSystemWatchFunctions=w,C.patchWriteFileEnsuringDirectory=a,C.getNodeMajorVersion=I,C.sys=("undefined"!=typeof process&&process.nextTick&&!process.browser&&"undefined"!=typeof require&&(t=function(){var r,i,u=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,g=require("fs"),a=require("path"),e=require("os");try{r=require("crypto")}catch(e){r=void 0}var o="./profile.cpuprofile",n=require("buffer").Buffer,t=4<=I(),m="linux"===process.platform||"darwin"===process.platform,s=e.platform(),l="win32"!==s&&"win64"!==s&&!f(function(e){return e.replace(/\w/g,function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})}(__filename)),y=t&&("win32"===process.platform||"darwin"===process.platform),h=(t=w({pollingWatchFile:N(function(n,i,e){var a;return g.watchFile(n,{persistent:!0,interval:e},t),{close:function(){return g.unwatchFile(n,t)}};function t(e,t){var r=0==+t.mtime||a===k.Deleted;if(0==+e.mtime){if(r)return;a=k.Deleted}else if(r)a=k.Created;else{if(+e.mtime==+t.mtime)return;a=k.Changed}i(n,a)}},l),getModifiedTime:D,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatch:function(r,n,i,t,a,o){var s,c,u;m&&(c=r.substr(r.lastIndexOf(C.directorySeparator)),u=c.slice(C.directorySeparator.length));var l=(v(r,n)?d:f)();return{close:function(){l.close(),l=void 0}};function _(e){C.sysLog("sysLog:: "+r+":: Changing watcher to "+(e===d?"Present":"Missing")+"FileSystemEntryWatcher"),i("rename",""),l&&(l.close(),l=e())}function d(){void 0===s&&(s=y?{persistent:!0,recursive:!!t}:{persistent:!0});try{var e=g.watch(r,s,m?p:i);return e.on("error",function(){return _(f)}),e}catch(e){return C.sysLog("sysLog:: "+r+":: Changing to fsWatchFile"),h(r,F(i),a,o)}}function p(e,t){return"rename"!==e||t&&t!==u&&t.lastIndexOf(c)!==t.length-c.length||v(r,n)?i(e,t):_(f)}function f(){return h(r,function(e,t){t===k.Created&&v(r,n)&&_(d)},a,o)}},useCaseSensitiveFileNames:l,fileExists:f,fsSupportsRecursiveFsWatch:y,directoryExists:b,getAccessibleSortedChildDirectories:function(e){return p(e).directories},realpath:x,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY})).watchFile,t=t.watchDirectory,c={args:process.argv.slice(2),newLine:e.EOL,useCaseSensitiveFileNames:l,write:function(e){process.stdout.write(e)},writeOutputIsTTY:function(){return process.stdout.isTTY},readFile:function(e,t){C.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 C.perfLogger.logStopReadFile(),e},writeFile:function(e,t,r){C.perfLogger.logEvent("WriteFile: "+e),r&&(t="\ufeff"+t);var n;try{n=g.openSync(e,"w"),g.writeSync(n,t,void 0,"utf8")}finally{void 0!==n&&g.closeSync(n)}},watchFile:h,watchDirectory:t,resolvePath:function(e){return a.resolve(e)},fileExists:f,directoryExists:b,createDirectory:function(e){if(!c.directoryExists(e))try{g.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:function(){return __filename},getCurrentDirectory:function(){return process.cwd()},getDirectories:function(e){return p(e).directories.slice()},getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:function(e,t,r,n,i){return C.matchFiles(e,t,r,n,l,process.cwd(),i,p,x)},getModifiedTime:D,setModifiedTime:function(e,t){try{g.utimesSync(e,t,t)}catch(e){return}},deleteFile:function(e){try{return g.unlinkSync(e)}catch(e){return}},createHash:r?S:T,createSHA256Hash:r?S:void 0,getMemoryUsage:function(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=g.statSync(e);if(t.isFile())return t.size}catch(e){}return 0},exit:function(e){_(function(){return process.exit(e)})},enableCPUProfiler:function(e,t){if(i)return t(),!1;var r=require("inspector");if(!r||!r.Session)return t(),!1;var n=new r.Session;return n.connect(),n.post("Profiler.enable",function(){n.post("Profiler.start",function(){i=n,o=e,t()})}),!0},disableCPUProfiler:_,realpath:x,debugMode:!!process.env.NODE_INSPECTOR_IPC||C.some(process.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{require("source-map-support").install()}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:function(){process.stdout.write("c")},setBlocking:function(){process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},bufferFrom:d,base64decode:function(e){return d(e,"base64").toString("utf8")},base64encode:function(e){return d(e).toString("base64")},require:function(e,t){try{var r=C.resolveJSModule(t,e,c);return{module:require(r),modulePath:r,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};return c;function _(r){if(i&&"stopping"!==i){var n=i;return i.post("Profiler.stop",function(e,t){t=t.profile;if(!e){try{g.statSync(o).isDirectory()&&(o=a.join(o,(new Date).toISOString().replace(/:/g,"-")+"+P"+process.pid+".cpuprofile"))}catch(e){}try{g.mkdirSync(a.dirname(o),{recursive:!0})}catch(e){}g.writeFileSync(o,JSON.stringify(function(e){for(var t=0,r=C.createMap(),n=C.normalizeSlashes(__dirname),i="file://"+(1===C.getRootLength(n)?"":"/")+n,a=0,o=e.nodes;a<o.length;a++){var s,c=o[a];c.callFrame.url&&(s=C.normalizeSlashes(c.callFrame.url),C.containsPath(i,s,l)?c.callFrame.url=C.getRelativePathToDirectoryOrUrl(i,s,i,C.createGetCanonicalFileName(l),!0):u.test(s)||(c.callFrame.url=(r.has(s)?r:r.set(s,"external"+t+".js")).get(s),t++))}return e}(t)))}i=void 0,n.disconnect(),r()}),i="stopping",!0}return r(),!1}function d(e,t){return n.from&&n.from!==Int8Array.from?n.from(e,t):new n(e,t)}function p(e){C.perfLogger.logEvent("ReadDir: "+(e||"."));try{for(var t=g.readdirSync(e||".",{withFileTypes:!0}),r=[],n=[],i=0,a=t;i<a.length;i++){var o=a[i],s="string"==typeof o?o:o.name;if("."!==s&&".."!==s){var c=void 0;if("string"==typeof o||o.isSymbolicLink()){var u=C.combinePaths(e,s);try{c=g.statSync(u)}catch(e){continue}}else c=o;c.isFile()?r.push(s):c.isDirectory()&&n.push(s)}}return r.sort(),n.sort(),{files:r,directories:n}}catch(e){return C.emptyFileSystemEntries}}function v(e,t){try{var r=g.statSync(e);switch(t){case 0:return r.isFile();case 1:return r.isDirectory();default:return!1}}catch(e){return!1}}function f(e){return v(e,0)}function b(e){return v(e,1)}function x(t){try{return g.realpathSync(t)}catch(e){return t}}function D(e){try{return g.statSync(e).mtime}catch(e){return}}function S(e){var t=r.createHash("sha256");return t.update(e),t.digest("hex")}}()),t&&a(t),t),C.sys&&C.sys.getEnvironmentVariable&&(r(C.sys),C.Debug.setAssertionLevel(/^development$/i.test(C.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),C.sys&&C.sys.debugMode&&(C.Debug.isDebugging=!0)}(ts=ts||{}),function(_){_.directorySeparator="/";var i="\\",a="://",t=/\\/g;function r(e){return 47===e||92===e}function o(e){return 0<d(e)}function n(e){return 0!==d(e)}function s(e){return/^\.\.?($|[\\/])/.test(e)}function c(e,t){return e.length>t.length&&_.endsWith(e,t)}function u(e){return 0<e.length&&r(e.charCodeAt(e.length-1))}function l(e){return 97<=e&&e<=122||65<=e&&e<=90}function d(e){if(!e)return 0;var t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;var r=e.indexOf(47===t?_.directorySeparator:i,2);return r<0?e.length:r+1}if(l(t)&&58===e.charCodeAt(1)){var n=e.charCodeAt(2);if(47===n||92===n)return 3;if(2===e.length)return 2}r=e.indexOf(a);if(-1===r)return 0;t=r+a.length,n=e.indexOf(_.directorySeparator,t);if(-1===n)return~e.length;r=e.slice(0,r),t=e.slice(t,n);if("file"===r&&(""===t||"localhost"===t)&&l(e.charCodeAt(n+1))){t=function(e,t){var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){e=e.charCodeAt(t+2);if(97===e||65===e)return t+3}return-1}(e,n+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(n+1)}function p(e){e=d(e);return e<0?~e:e}function f(e){var t=p(e=b(e));return t===e.length?e:(e=E(e)).slice(0,Math.max(t,e.lastIndexOf(_.directorySeparator)))}function g(e,t,r){if(p(e=b(e))===e.length)return"";e=(e=E(e)).slice(Math.max(p(e),e.lastIndexOf(_.directorySeparator)+1)),r=void 0!==t&&void 0!==r?y(e,t,r):void 0;return r?e.slice(0,e.length-r.length):e}function m(e,t,r){if(_.startsWith(t,".")||(t="."+t),e.length>=t.length&&46===e.charCodeAt(e.length-t.length)){e=e.slice(e.length-t.length);if(r(e,t))return e}}function y(e,t,r){if(t)return function(e,t,r){if("string"==typeof t)return m(e,t,r)||"";for(var n=0,i=t;n<i.length;n++){var a=m(e,i[n],r);if(a)return a}return""}(E(e),t,r?_.equateStringsCaseInsensitive:_.equateStringsCaseSensitive);r=g(e),e=r.lastIndexOf(".");return 0<=e?r.substring(e):""}function h(e,t){return void 0===t&&(t=""),e=D(t,e),t=p(r=e),e=r.substring(0,t),(t=r.substring(t).split(_.directorySeparator)).length&&!_.lastOrUndefined(t)&&t.pop(),__spreadArrays([e],t);var r}function v(e){return 0===e.length?"":(e[0]&&N(e[0]))+e.slice(1).join(_.directorySeparator)}function b(e){return e.replace(t,_.directorySeparator)}function x(e){if(!_.some(e))return[];for(var t=[e[0]],r=1;r<e.length;r++){var n=e[r];if(n&&"."!==n){if(".."===n)if(1<t.length){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(n)}}return t}function D(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e=e&&b(e);for(var n=0,i=t;n<i.length;n++){var a=i[n];a&&(a=b(a),e=e&&0===p(a)?N(e)+a:a)}return e}function S(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return k(_.some(t)?D.apply(void 0,__spreadArrays([e],t)):b(e))}function C(e,t){return x(h(e,t))}function T(e,t){return v(C(e,t))}function k(e){var t=v(x(h(e=b(e))));return t&&u(e)?N(t):t}function E(e){return u(e)?e.substr(0,e.length-1):e}function N(e){return u(e)?e:e+_.directorySeparator}function A(e){return n(e)||s(e)?e:"./"+e}_.isAnyDirectorySeparator=r,_.isUrl=function(e){return d(e)<0},_.isRootedDiskPath=o,_.isDiskPathRoot=function(e){var t=d(e);return 0<t&&t===e.length},_.pathIsAbsolute=n,_.pathIsRelative=s,_.hasExtension=function(e){return _.stringContains(g(e),".")},_.fileExtensionIs=c,_.fileExtensionIsOneOf=function(e,t){for(var r=0,n=t;r<n.length;r++)if(c(e,n[r]))return!0;return!1},_.hasTrailingDirectorySeparator=u,_.getRootLength=p,_.getDirectoryPath=f,_.getBaseFileName=g,_.getAnyExtensionFromPath=y,_.getPathComponents=h,_.getPathFromPathComponents=v,_.normalizeSlashes=b,_.reducePathComponents=x,_.combinePaths=D,_.resolvePath=S,_.getNormalizedPathComponents=C,_.getNormalizedAbsolutePath=T,_.normalizePath=k,_.getNormalizedAbsolutePathWithoutRoot=function(e,t){return 0===(t=C(e,t)).length?"":t.slice(1).join(_.directorySeparator)},_.toPath=function(e,t,r){return r(o(e)?k(e):T(e,t))},_.normalizePathAndParts=function(e){var t=x(h(e=b(e))),r=t[0],n=t.slice(1);if(n.length){t=r+n.join(_.directorySeparator);return{path:u(e)?N(t):t,parts:n}}return{path:r,parts:n}},_.removeTrailingDirectorySeparator=E,_.ensureTrailingDirectorySeparator=N,_.ensurePathIsNonModuleName=A,_.changeAnyExtension=function(e,t,r,n){return(n=void 0!==r&&void 0!==n?y(e,r,n):y(e))?e.slice(0,e.length-n.length)+(_.startsWith(t,".")?t:"."+t):e};var F=/(^|\/)\.{0,2}($|\/)/;function P(e,t,r){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;var n=e.substring(0,p(e)),i=t.substring(0,p(t)),a=_.compareStringsCaseInsensitive(n,i);if(0!==a)return a;n=e.substring(n.length),i=t.substring(i.length);if(!F.test(n)&&!F.test(i))return r(n,i);for(var o=x(h(e)),s=x(h(t)),c=Math.min(o.length,s.length),u=1;u<c;u++){var l=r(o[u],s[u]);if(0!==l)return l}return _.compareValues(o.length,s.length)}function w(e,t,r,n){for(var i=x(h(e)),a=x(h(t)),o=0;o<i.length&&o<a.length;o++){var s=n(i[o]),c=n(a[o]);if(!(0===o?_.equateStringsCaseInsensitive:r)(s,c))break}if(0===o)return a;for(var t=a.slice(o),u=[];o<i.length;o++)u.push("..");return __spreadArrays([""],u,t)}function I(e,t,r){_.Debug.assert(0<p(e)==0<p(t),"Paths must either both be absolute or both be relative");var n="function"==typeof r?r:_.identity;return v(w(e,t,"boolean"==typeof r&&r?_.equateStringsCaseInsensitive:_.equateStringsCaseSensitive,n))}function O(e,t,r,n,i){t=w(S(r,e),S(r,t),_.equateStringsCaseSensitive,n),n=t[0];return i&&o(n)&&(i=n.charAt(0)===_.directorySeparator?"file://":"file:///",t[0]=i+n),v(t)}_.comparePathsCaseSensitive=function(e,t){return P(e,t,_.compareStringsCaseSensitive)},_.comparePathsCaseInsensitive=function(e,t){return P(e,t,_.compareStringsCaseInsensitive)},_.comparePaths=function(e,t,r,n){return"string"==typeof r?(e=D(r,e),t=D(r,t)):"boolean"==typeof r&&(n=r),P(e,t,_.getStringComparer(n))},_.containsPath=function(e,t,r,n){if("string"==typeof r?(e=D(r,e),t=D(r,t)):"boolean"==typeof r&&(n=r),void 0===e||void 0===t)return!1;if(e===t)return!0;var i=x(h(e)),a=x(h(t));if(a.length<i.length)return!1;for(var o=n?_.equateStringsCaseInsensitive:_.equateStringsCaseSensitive,s=0;s<i.length;s++)if(!(0===s?_.equateStringsCaseInsensitive:o)(i[s],a[s]))return!1;return!0},_.startsWithDirectory=function(e,t,r){return e=r(e),t=r(t),_.startsWith(e,t+"/")||_.startsWith(e,t+"\\")},_.getPathComponentsRelativeTo=w,_.getRelativePathFromDirectory=I,_.convertToRelativePath=function(e,t,r){return o(e)?O(t,e,t,r,!1):e},_.getRelativePathFromFile=function(e,t,r){return A(I(f(e),t,r))},_.getRelativePathToDirectoryOrUrl=O,_.forEachAncestorDirectory=function(e,t){for(;;){var r=t(e);if(void 0!==r)return r;r=f(e);if(r===e)return;e=r}},_.isNodeModulesDirectory=function(e){return _.endsWith(e,"/node_modules")}}(ts=ts||{}),function(e){function t(e,t,r,n,i,a){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i,elidedInCompatabilityPyramid:a}}e.Diagnostics={Unterminated_string_literal:t(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:t(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:t(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:t(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_to_match_the_token_here:t(1007,e.DiagnosticCategory.Error,"The_parser_expected_to_find_a_to_match_the_token_here_1007","The parser expected to find a '}' to match the '{' token here."),Trailing_comma_not_allowed:t(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:t(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:t(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:t(1013,e.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:t(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:t(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:t(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:t(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:t(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:t(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:t(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:t(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:t(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),An_index_signature_parameter_type_must_be_either_string_or_number:t(1023,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_either_string_or_number_1023","An index signature parameter type must be either 'string' or 'number'."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:t(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:t(1025,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:t(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:t(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:t(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_a_class_element:t(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_class_element_1031","'{0}' modifier cannot appear on a class element."),super_must_be_followed_by_an_argument_list_or_member_access:t(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:t(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:t(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:t(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:t(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:t(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_with_a_class_declaration:t(1041,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_class_declaration_1041","'{0}' modifier cannot be used with a class declaration."),_0_modifier_cannot_be_used_here:t(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_data_property:t(1043,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_data_property_1043","'{0}' modifier cannot appear on a data property."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:t(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),A_0_modifier_cannot_be_used_with_an_interface_declaration:t(1045,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045","A '{0}' modifier cannot be used with an interface declaration."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:t(1046,e.DiagnosticCategory.Error,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:t(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:t(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:t(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:t(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:t(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:t(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:t(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:t(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:t(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),An_async_function_or_method_must_have_a_valid_awaitable_return_type:t(1057,e.DiagnosticCategory.Error,"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057","An async function or method must have a valid awaitable return type."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:t(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:t(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:t(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:t(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:t(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:t(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064","The return type of an async function or method must be the global Promise<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:t(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:t(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:t(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:t(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:t(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:t(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:t(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:t(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_cannot_have_a_type_annotation:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),Catch_clause_variable_cannot_have_an_initializer: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."),All_files_must_be_modules_when_the_isolatedModules_flag_is_provided:t(1208,e.DiagnosticCategory.Error,"All_files_must_be_modules_when_the_isolatedModules_flag_is_provided_1208","All files must be modules when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:t(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:t(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:t(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:t(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_can_only_be_used_in_a_module:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:t(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:t(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:t(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:t(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:t(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:t(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:t(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:t(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:t(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:t(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:t(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:t(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_rest_element_must_be_last_in_a_tuple_type:t(1256,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_tuple_type_1256","A rest element must be last in a tuple type."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation:t(1258,e.DiagnosticCategory.Error,"Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation_1258","Definite assignment assertions can only be used along with a type annotation."),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."),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."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:t(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd:t(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'."),Dynamic_import_must_have_one_specifier_as_an_argument:t(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:t(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:t(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:t(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:t(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:t(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:t(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:t(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:t(1336,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:t(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:t(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_esnext_or_system:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_esnext_or_system_1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'esnext' or 'system'."),A_label_is_not_allowed_here:t(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:t(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness"),This_parameter_is_not_allowed_with_use_strict_directive:t(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:t(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:t(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:t(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:t(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:t(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:t(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:t(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:t(1357,e.DiagnosticCategory.Error,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:t(1358,e.DiagnosticCategory.Error,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:t(1359,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Did_you_mean_to_parenthesize_this_function_type:t(1360,e.DiagnosticCategory.Error,"Did_you_mean_to_parenthesize_this_function_type_1360","Did you mean to parenthesize this function type?"),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:t(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:t(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:t(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:t(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:t(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:t(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:t(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:t(1368,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_1368","Specify emit/checking behavior for imports that are only used for types"),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),Only_ECMAScript_imports_may_use_import_type:t(1370,e.DiagnosticCategory.Error,"Only_ECMAScript_imports_may_use_import_type_1370","Only ECMAScript imports may use 'import type'."),This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is__1371","This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:t(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:t(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:t(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:t(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:t(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_t_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:t(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:t(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:t(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:t(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Only_named_exports_may_use_export_type:t(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list:t(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),The_types_of_0_are_incompatible_between_these_types:t(2200,e.DiagnosticCategory.Error,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:t(2201,e.DiagnosticCategory.Error,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:t(2202,e.DiagnosticCategory.Error,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:t(2203,e.DiagnosticCategory.Error,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2204,e.DiagnosticCategory.Error,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:t(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:t(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:t(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:t(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:t(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:t(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:t(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:t(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:t(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:t(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:t(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:t(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type.  Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:t(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:t(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:t(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:t(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:t(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:t(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:t(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:t(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:t(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:t(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:t(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:t(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:t(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:t(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:t(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:t(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:t(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_1_or_more:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:t(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:t(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:t(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:t(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:t(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:t(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:t(2573,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_rest_element_type_2573","Property '{0}' is incompatible with rest element type."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:t(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_is_a_static_member_of_type_1:t(2576,e.DiagnosticCategory.Error,"Property_0_is_a_static_member_of_type_1_2576","Property '{0}' is a static member of type '{1}'"),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:t(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_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_types_Slashje_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_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 es2015 or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the `lib` compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later."),Enum_type_0_circularly_references_itself:t(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:t(2587,e.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:t(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:t(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_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_types_Slashnode_and_th_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @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_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_types_Slashjquery_an_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @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_types_Slashjest_or_npm_i_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_types_Slashje_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:t(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:t(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:t(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_attributes_type_0_may_not_be_a_union_type:t(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:t(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:t(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:t(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:t(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:t(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:t(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:t(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:t(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:t(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:t(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:t(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:t(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:t(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:t(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:t(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:t(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:t(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:t(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:t(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:t(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:t(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:t(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:t(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:t(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:t(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:t(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:t(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:t(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:t(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:t(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:t(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:t(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:t(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:t(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:t(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:t(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:t(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:t(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:t(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),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'."),Module_0_has_no_exported_member_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_2_2724","Module '{0}' has no exported member '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:t(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:t(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension"),Property_0_was_also_declared_here:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:t(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:t(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:t(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:t(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:t(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:t(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:t(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:t(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:t(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:t(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:t(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:t(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:t(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:t(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:t(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:t(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:t(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:t(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:t(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:t(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:t(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:t(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:t(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:t(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:t(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:t(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:t(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:t(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:t(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:t(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:t(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:t(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead:t(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it__2774","This condition will always return true since the function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:t(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:t(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:t(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:t(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:t(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:t(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:t(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:t(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:t(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:t(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:t(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:t(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:t(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:t(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:t(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),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_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:t(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:t(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:t(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:t(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:t(4106,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:t(4107,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4108,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:t(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:t(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:t(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:t(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:t(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character: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}'."),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."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unsupported_locale_0:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:t(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:t(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:t(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:t(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:t(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:t(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused"),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:t(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:t(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:t(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:t(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:t(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:t(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:t(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:t(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:t(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:t(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:t(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_UseFsEvents_UseFsEventsOnParentDirectory:t(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling:t(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority:t(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority'."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:t(6228,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6228","Synchronously call callbacks and update the state of directory watchers on platforms that don't support recursive watching natively."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:t(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:t(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:t(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:t(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:t(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),Projects_to_reference:t(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:t(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:t(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:t(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:t(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:t(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:t(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:t(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:t(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:t(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),delete_this_Project_0_is_up_to_date_because_it_was_previously_built:t(6360,e.DiagnosticCategory.Message,"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360","delete this - Project '{0}' is up to date because it was previously built"),Project_0_is_up_to_date:t(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:t(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:t(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:t(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Enable_verbose_logging:t(6366,e.DiagnosticCategory.Message,"Enable_verbose_logging_6366","Enable verbose logging"),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6368,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6368","Build all projects, including those that appear to be up to date"),Option_build_must_be_the_first_command_line_argument:t(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:t(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:t(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:t(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:t(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:t(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:t(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:t(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:t(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Enable_incremental_compilation:t(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:t(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:t(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:t(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:t(6382,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:t(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),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?"),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_install_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_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @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."),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}'."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:t(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:t(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:t(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:t(9005,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:t(9006,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:t(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:t(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:t(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:t(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:t(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:t(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:t(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:t(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:t(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),JSX_fragment_is_not_supported_when_using_jsxFactory:t(17016,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_jsxFactory_17016","JSX fragment is not supported when using --jsxFactory"),JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma:t(17017,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma_17017","JSX fragment is not supported when using an inline JSX factory pragma"),Unknown_type_acquisition_option_0_Did_you_mean_1:t(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:t(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:t(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:t(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:t(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:t(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:t(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:t(80008,e.DiagnosticCategory.Suggestion,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_destructuring:t(90009,e.DiagnosticCategory.Message,"Remove_destructuring_90009","Remove destructuring"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:t(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032","Import default '{0}' from module \"{1}\""),Add_default_import_0_to_existing_import_declaration_from_1:t(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033","Add default import '{0}' to existing import declaration from \"{1}\""),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:t(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Declare_a_private_field_named_0:t(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:t(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:t(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:t(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:t(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:t(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:t(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:t(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Allow_accessing_UMD_globals_from_modules:t(95076,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_95076","Allow accessing UMD globals from modules."),Extract_type:t(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:t(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:t(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:t(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:t(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:t(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:t(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:t(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:t(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:t(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:t(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:t(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:t(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:t(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:t(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:t(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:t(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:t(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:t(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:t(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:t(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:t(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:t(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:t(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:t(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Add_class_tag:t(95102,e.DiagnosticCategory.Message,"Add_class_tag_95102","Add '@class' tag"),Add_this_tag:t(95103,e.DiagnosticCategory.Message,"Add_this_tag_95103","Add '@this' tag"),Add_this_parameter:t(95104,e.DiagnosticCategory.Message,"Add_this_parameter_95104","Add 'this' parameter."),Convert_function_expression_0_to_arrow_function:t(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:t(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:t(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:t(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:t(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:t(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_block_body_braces:t(95112,e.DiagnosticCategory.Message,"Remove_block_body_braces_95112","Remove block body braces"),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_all_incorrect_body_block_braces:t(95115,e.DiagnosticCategory.Message,"Remove_all_incorrect_body_block_braces_95115","Remove all incorrect body block braces"),Wrap_all_object_literal_with_parentheses:t(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:t(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:t(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:t(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:t(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters"),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:t(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:t(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:t(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:t(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:t(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:t(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:t(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:t(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:t(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:t(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier"),A_method_cannot_be_named_with_a_private_identifier:t(18022,e.DiagnosticCategory.Error,"A_method_cannot_be_named_with_a_private_identifier_18022","A method cannot be named with a private identifier."),An_accessor_cannot_be_named_with_a_private_identifier:t(18023,e.DiagnosticCategory.Error,"An_accessor_cannot_be_named_with_a_private_identifier_18023","An accessor cannot be named with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:t(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:t(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:t(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:t(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:t(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:t(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:t(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:t(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:t(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead.")}}(ts=ts||{}),function(V){function e(e){return 75<=e}V.tokenIsIdentifierOrKeyword=e,V.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||75<=e};var t=((t={abstract:122,any:125,as:123,asserts:124,bigint:151,boolean:128,break:77,case:78,catch:79,class:80,continue:82,const:81}).constructor=129,t.debugger=83,t.declare=130,t.default=84,t.delete=85,t.do=86,t.else=87,t.enum=88,t.export=89,t.extends=90,t.false=91,t.finally=92,t.for=93,t.from=149,t.function=94,t.get=131,t.if=95,t.implements=113,t.import=96,t.in=97,t.infer=132,t.instanceof=98,t.interface=114,t.is=133,t.keyof=134,t.let=115,t.module=135,t.namespace=136,t.never=137,t.new=99,t.null=100,t.number=140,t.object=141,t.package=116,t.private=117,t.protected=118,t.public=119,t.readonly=138,t.require=139,t.global=150,t.return=101,t.set=142,t.static=120,t.string=143,t.super=102,t.switch=103,t.symbol=144,t.this=104,t.throw=105,t.true=106,t.try=107,t.type=145,t.typeof=108,t.undefined=146,t.unique=147,t.unknown=148,t.var=109,t.void=110,t.while=111,t.with=112,t.yield=121,t.async=126,t.await=127,t.of=152,t),K=V.createMapFromTemplate(t),r=V.createMapFromTemplate(__assign(__assign({},t),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":62,"+=":63,"-=":64,"*=":65,"**=":66,"/=":67,"%=":68,"<<=":69,">>=":70,">>>=":71,"&=":72,"|=":73,"^=":74,"@":59,"`":61})),n=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],i=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],a=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],o=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],s=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],c=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],q=/^\s*\/\/\/?\s*@(ts-expect-error|ts-ignore)/,W=/^\s*(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function u(e,t){if(e<t[0])return!1;for(var r,n=0,i=t.length;n+1<i;){if(r=n+(i-n)/2,t[r-=r%2]<=e&&e<=t[1+r])return!0;e<t[r]?i=r:n=2+r}return!1}function l(e,t){return u(e,2<=t?s:1===t?a:n)}V.isUnicodeIdentifierStart=l;var _,d=(_=[],r.forEach(function(e,t){_[e]=t}),_);function p(e){for(var t=new Array,r=0,n=0;r<e.length;){var i=e.charCodeAt(r);switch(r++,i){case 13:10===e.charCodeAt(r)&&r++;case 10:t.push(n),n=r;break;default:127<i&&Q(i)&&(t.push(n),n=r)}}return t.push(n),t}function f(e,t,r,n,i){(t<0||t>=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:V.Debug.fail("Bad line number. Line: "+t+", lineStarts.length: "+e.length+" , line map is correct? "+(void 0!==n?V.arraysEqual(e,p(n)):"unknown")));r=e[t]+r;return i?r>e[t+1]?e[t+1]:"string"==typeof n&&r>n.length?n.length:r:(t<e.length-1?V.Debug.assert(r<e[t+1]):void 0!==n&&V.Debug.assert(r<=n.length),r)}function g(e){return e.lineMap||(e.lineMap=p(e.text))}function m(e,t){var r=y(e,t);return{line:r,character:t-e[r]}}function y(e,t,r){r=V.binarySearch(e,t,V.identity,V.compareValues,r);return r<0&&(r=~r-1,V.Debug.assert(-1!==r,"position cannot precede the beginning of the file")),r}function H(e){return G(e)||Q(e)}function G(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||8192<=e&&e<=8203||8239===e||8287===e||12288===e||65279===e}function Q(e){return 10===e||13===e||8232===e||8233===e}function X(e){return 48<=e&&e<=57}function Y(e){return X(e)||65<=e&&e<=70||97<=e&&e<=102}function Z(e){return 48<=e&&e<=55}V.tokenToString=function(e){return d[e]},V.stringToToken=function(e){return r.get(e)},V.computeLineStarts=p,V.getPositionOfLineAndCharacter=function(e,t,r,n){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):f(g(e),t,r,e.text,n)},V.computePositionOfLineAndCharacter=f,V.getLineStarts=g,V.computeLineAndCharacterOfPosition=m,V.computeLineOfPosition=y,V.getLinesBetweenPositions=function(e,t,r){if(t===r)return 0;var n=g(e),i=Math.min(t,r),r=(e=i===r)?t:r,i=y(n,i),r=y(n,r,i);return e?i-r:r-i},V.getLineAndCharacterOfPosition=function(e,t){return m(g(e),t)},V.isWhiteSpaceLike=H,V.isWhiteSpaceSingleLine=G,V.isLineBreak=Q,V.isOctalDigit=Z,V.couldStartTrivia=function(e,t){var r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return 127<r}},V.skipTrivia=function(e,t,r,n){if(void 0===n&&(n=!1),V.positionIsSynthesized(t))return t;for(;;){var i=e.charCodeAt(t);switch(i){case 13:10===e.charCodeAt(t+1)&&t++;case 10:if(t++,r)return t;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(n)break;if(47===e.charCodeAt(t+1)){for(t+=2;t<e.length&&!Q(e.charCodeAt(t));)t++;continue}if(42!==e.charCodeAt(t+1))break;for(t+=2;t<e.length;){if(42===e.charCodeAt(t)&&47===e.charCodeAt(t+1)){t+=2;break}t++}continue;case 60:case 124:case 61:case 62:if($(e,t)){t=ee(e,t);continue}break;case 35:if(0===t&&te(e,t)){t=re(e,t);continue}break;default:if(127<i&&H(i)){t++;continue}}return t}};var h="<<<<<<<".length;function $(e,t){if(V.Debug.assert(0<=t),0===t||Q(e.charCodeAt(t-1))){var r=e.charCodeAt(t);if(t+h<e.length){for(var n=0;n<h;n++)if(e.charCodeAt(t+n)!==r)return;return 61===r||32===e.charCodeAt(t+h)}}}function ee(e,t,r){r&&r(V.Diagnostics.Merge_conflict_marker_encountered,t,h);var n=e.charCodeAt(t),i=e.length;if(60===n||62===n)for(;t<i&&!Q(e.charCodeAt(t));)t++;else for(V.Debug.assert(124===n||61===n);t<i;){var a=e.charCodeAt(t);if((61===a||62===a)&&a!==n&&$(e,t))break;t++}return t}var v=/^#!.*/;function te(e,t){return V.Debug.assert(0===t),v.test(e)}function re(e,t){return t+=v.exec(e)[0].length}function b(e,t,r,n,i,a,o){var s,c,u,l,_=!1,d=n,p=o;0===r&&(d=!0,(o=C(t))&&(r=o.length));e:for(;0<=r&&r<t.length;){var f=t.charCodeAt(r);switch(f){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)break e;d=!0,_&&(l=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:var g=t.charCodeAt(r+1),m=!1;if(47!==g&&42!==g)break e;var y=47===g?2:3,h=r;if(r+=2,47===g)for(;r<t.length;){if(Q(t.charCodeAt(r))){m=!0;break}r++}else for(;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}if(d){if(_&&(p=i(s,c,u,l,a,p),!e&&p))return p;s=h,c=r,u=y,l=m,_=!0}continue;default:if(127<f&&H(f)){_&&Q(f)&&(l=!0),r++;continue}break e}}return _&&(p=i(s,c,u,l,a,p)),p}function x(e,t,r,n,i){return b(!0,e,t,!1,r,n,i)}function D(e,t,r,n,i){return b(!0,e,t,!0,r,n,i)}function S(e,t,r,n,i,a){return(a=a||[]).push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function C(e){e=v.exec(e);if(e)return e[0]}function ne(e,t){return 65<=e&&e<=90||97<=e&&e<=122||36===e||95===e||127<e&&l(e,t)}function ie(e,t,r){return 65<=e&&e<=90||97<=e&&e<=122||48<=e&&e<=57||36===e||95===e||1===r&&(45===e||58===e)||127<e&&u(e,2<=(t=t)?c:1===t?o:i)}V.isShebangTrivia=te,V.scanShebangTrivia=re,V.forEachLeadingCommentRange=function(e,t,r,n){return b(!1,e,t,!1,r,n)},V.forEachTrailingCommentRange=function(e,t,r,n){return b(!1,e,t,!0,r,n)},V.reduceEachLeadingCommentRange=x,V.reduceEachTrailingCommentRange=D,V.getLeadingCommentRanges=function(e,t){return x(e,t,S,void 0,void 0)},V.getTrailingCommentRanges=function(e,t){return D(e,t,S,void 0,void 0)},V.getShebang=C,V.isIdentifierStart=ne,V.isIdentifierPart=ie,V.isIdentifierText=function(e,t,r){var n=ae(e,0);if(!ne(n,t))return!1;for(var i=oe(n);i<e.length;i+=oe(n))if(!ie(n=ae(e,i),t,r))return!1;return!0},V.createScanner=function(o,s,c,e,i,t,r){void 0===c&&(c=0);var _,d,p,f,g,m,y,h,v=e,u=0;z(v,t,r);var n={getStartPos:function(){return p},getTextPos:function(){return _},getToken:function(){return g},getTokenPos:function(){return f},getTokenText:function(){return v.substring(f,_)},getTokenValue:function(){return m},hasUnicodeEscape:function(){return 0!=(1024&y)},hasExtendedUnicodeEscape:function(){return 0!=(8&y)},hasPrecedingLineBreak:function(){return 0!=(1&y)},isIdentifier:function(){return 75===g||112<g},isReservedWord:function(){return 77<=g&&g<=112},isUnterminated:function(){return 0!=(4&y)},getCommentDirectives:function(){return h},getTokenFlags:function(){return y},reScanGreaterToken:function(){if(31===g){if(62===v.charCodeAt(_))return g=62===v.charCodeAt(_+1)?61===v.charCodeAt(_+2)?(_+=3,71):(_+=2,49):61===v.charCodeAt(_+1)?(_+=2,70):(_++,48);if(61===v.charCodeAt(_))return _++,g=33}return g},reScanSlashToken:function(){if(43===g||67===g){for(var e=f+1,t=!1,r=!1;;){if(d<=e){y|=4,l(V.Diagnostics.Unterminated_regular_expression_literal);break}var n=v.charCodeAt(e);if(Q(n)){y|=4,l(V.Diagnostics.Unterminated_regular_expression_literal);break}if(t)t=!1;else{if(47===n&&!r){e++;break}91===n?r=!0:92===n?t=!0:93===n&&(r=!1)}e++}for(;e<d&&ie(v.charCodeAt(e),o);)e++;_=e,m=v.substring(f,_),g=13}return g},reScanTemplateToken:function(e){return V.Debug.assert(19===g,"'reScanTemplateToken' should only be called on a '}'"),_=f,g=k(e)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return _=f,g=k(!0)},scanJsxIdentifier:function(){if(75<=g)for(;_<d;)if(45!==v.charCodeAt(_)){var e=_;if(m+=w(),_===e)break}else m+="-",_++;return g},scanJsxAttributeValue:j,reScanJsxAttributeValue:function(){return _=f=p,j()},reScanJsxToken:function(){return _=f=p,g=B()},reScanLessThanToken:function(){return 47!==g?g:(_=f+1,g=29)},reScanQuestionToken:function(){return V.Debug.assert(60===g,"'reScanQuestionToken' should only be called on a '??'"),_=f+1,g=57},scanJsxToken:B,scanJsDocToken:function(){if(p=f=_,y=0,d<=_)return g=1;var e=ae(v,_);switch(_+=oe(e),e){case 9:case 11:case 12:case 32:for(;_<d&&G(v.charCodeAt(_));)_++;return g=5;case 64:return g=59;case 10:case 13:return y|=1,g=4;case 42:return g=41;case 123:return g=18;case 125:return g=19;case 91:return g=22;case 93:return g=23;case 60:return g=29;case 62:return g=31;case 61:return g=62;case 44:return g=27;case 46:return g=24;case 96:return g=61;case 92:_--;var t=P();if(0<=t&&ne(t,o))return _+=3,y|=8,m=A()+w(),g=I();t=F();return 0<=t&&ne(t,o)?(_+=6,y|=1024,m=String.fromCharCode(t)+w(),g=I()):(_++,g=0)}{if(ne(e,o)){for(var r=e;_<d&&ie(r=ae(v,_),o)||45===v.charCodeAt(_);)_+=oe(r);return m=v.substring(f,_),92===r&&(m+=w()),g=I()}return g=0}},scan:L,getText:function(){return v},clearCommentDirectives:function(){h=void 0},setText:z,setScriptTarget:function(e){o=e},setLanguageVariant:function(e){c=e},setOnError:function(e){i=e},setTextPos:U,setInJSDocType:function(e){u+=e?1:-1},tryScan:function(e){return J(e,!1)},lookAhead:function(e){return J(e,!0)},scanRange:function(e,t,r){var n=d,i=_,a=p,o=f,s=g,c=m,u=y,l=h;z(v,e,t);r=r();return d=n,_=i,p=a,f=o,g=s,m=c,y=u,h=l,r}};return V.Debug.isDebugging&&Object.defineProperty(n,"__debugShowCurrentPositionInText",{get:function(){var e=n.getText();return e.slice(0,n.getStartPos())+"â•‘"+e.slice(n.getStartPos())}}),n;function l(e,t,r){var n;void 0===t&&(t=_),i&&(n=_,_=t,i(e,r||0),_=n)}function b(){for(var e=_,t=!1,r=!1,n="";;){var i=v.charCodeAt(_);if(95!==i){if(!X(i))break;r=!(t=!0),_++}else y|=512,t?(r=!(t=!1),n+=v.substring(e,_)):l(r?V.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:V.Diagnostics.Numeric_separators_are_not_allowed_here,_,1),e=++_}return 95===v.charCodeAt(_-1)&&l(V.Diagnostics.Numeric_separators_are_not_allowed_here,_-1,1),n+v.substring(e,_)}function x(){var e,t,r=_,n=b();46===v.charCodeAt(_)&&(_++,e=b());var i,a,o=_;if(69!==v.charCodeAt(_)&&101!==v.charCodeAt(_)||(_++,y|=16,43!==v.charCodeAt(_)&&45!==v.charCodeAt(_)||_++,i=_,(a=b())?(t=v.substring(o,i)+a,o=_):l(V.Diagnostics.Digit_expected)),512&y?(s=n,e&&(s+="."+e),t&&(s+=t)):s=v.substring(r,o),void 0!==e||16&y)return D(r,void 0===e&&!!(16&y)),{type:8,value:""+ +s};m=s;var s=M();return D(r),{type:s,value:m}}function D(e,t){var r,n;ne(ae(v,_),o)&&(r=_,1===(n=w().length)&&"n"===v[r]?l(t?V.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:V.Diagnostics.A_bigint_literal_must_be_an_integer,e,r-e+1):(l(V.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,r,n),_=r))}function a(e,t){t=C(e,!1,t);return t?parseInt(t,16):-1}function S(e,t){return C(e,!0,t)}function C(e,t,r){for(var n=[],i=!1,a=!1;n.length<e||t;){var o=v.charCodeAt(_);if(r&&95===o)y|=512,i?a=!(i=!1):l(a?V.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:V.Diagnostics.Numeric_separators_are_not_allowed_here,_,1),_++;else{if(i=r,65<=o&&o<=70)o+=32;else if(!(48<=o&&o<=57||97<=o&&o<=102))break;n.push(o),_++,a=!1}}return n.length<e&&(n=[]),95===v.charCodeAt(_-1)&&l(V.Diagnostics.Numeric_separators_are_not_allowed_here,_-1,1),String.fromCharCode.apply(String,n)}function T(e){void 0===e&&(e=!1);for(var t=v.charCodeAt(_),r="",n=++_;;){if(d<=_){r+=v.substring(n,_),y|=4,l(V.Diagnostics.Unterminated_string_literal);break}var i=v.charCodeAt(_);if(i===t){r+=v.substring(n,_),_++;break}if(92!==i||e){if(Q(i)&&!e){r+=v.substring(n,_),y|=4,l(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,l(V.Diagnostics.Unterminated_template_literal),t=r?14:17;break}var a=v.charCodeAt(_);if(96===a){i+=v.substring(n,_),_++,t=r?14:17;break}if(36===a&&_+1<d&&123===v.charCodeAt(_+1)){i+=v.substring(n,_),_+=2,t=r?15:16;break}92!==a?13!==a?_++:(i+=v.substring(n,_),++_<d&&10===v.charCodeAt(_)&&_++,i+="\n",n=_):(i+=v.substring(n,_),i+=E(e),n=_)}return V.Debug.assert(void 0!==t),m=i,t}function E(e){var t=_;if(d<=++_)return l(V.Diagnostics.Unexpected_end_of_text),"";var r=v.charCodeAt(_);switch(_++,r){case 48:return e&&_<d&&X(v.charCodeAt(_))?(_++,y|=2048,v.substring(t,_)):"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(e)for(var n=_;n<_+4;n++)if(n<d&&!Y(v.charCodeAt(n))&&123!==v.charCodeAt(n))return _=n,y|=2048,v.substring(t,_);if(_<d&&123===v.charCodeAt(_)){if(_++,e&&!Y(v.charCodeAt(_)))return y|=2048,v.substring(t,_);if(e){var i=_,a=S(1,!1);if(!((a?parseInt(a,16):-1)<=1114111&&125===v.charCodeAt(_)))return y|=2048,v.substring(t,_);_=i}return y|=8,A()}return y|=1024,N(4);case 120:if(e){if(!Y(v.charCodeAt(_)))return y|=2048,v.substring(t,_);if(!Y(v.charCodeAt(_+1)))return _++,y|=2048,v.substring(t,_)}return N(2);case 13:_<d&&10===v.charCodeAt(_)&&_++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(r)}}function N(e){e=a(e,!1);return 0<=e?String.fromCharCode(e):(l(V.Diagnostics.Hexadecimal_digit_expected),"")}function A(){var e=S(1,!1),t=e?parseInt(e,16):-1,e=!1;return t<0?(l(V.Diagnostics.Hexadecimal_digit_expected),e=!0):1114111<t&&(l(V.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),e=!0),d<=_?(l(V.Diagnostics.Unexpected_end_of_text),e=!0):125===v.charCodeAt(_)?_++:(l(V.Diagnostics.Unterminated_Unicode_escape_sequence),e=!0),e?"":se(t)}function F(){if(_+5<d&&117===v.charCodeAt(_+1)){var e=_;_+=2;var t=a(4,!1);return _=e,t}return-1}function P(){if(2<=o&&117===ae(v,_+1)&&123===ae(v,_+2)){var e=_;_+=3;var t=S(1,!1),t=t?parseInt(t,16):-1;return _=e,t}return-1}function w(){for(var e="",t=_;_<d;){var r=ae(v,_);if(ie(r,o))_+=oe(r);else{if(92!==r)break;if(0<=(r=P())&&ie(r,o))_+=3,y|=8,e+=A(),t=_;else{if(!(0<=(r=F())&&ie(r,o)))break;y|=1024,e+=v.substring(t,_),e+=se(r),t=_+=6}}}return e+=v.substring(t,_)}function I(){var e=m.length;if(2<=e&&e<=11){e=m.charCodeAt(0);if(97<=e&&e<=122){e=K.get(m);if(void 0!==e)return g=e}}return g=75}function O(e){for(var t="",r=!1,n=!1;;){var i=v.charCodeAt(_);if(95!==i){if(r=!0,!X(i)||e<=i-48)break;t+=v[_],_++,n=!1}else y|=512,r?n=!(r=!1):l(n?V.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:V.Diagnostics.Numeric_separators_are_not_allowed_here,_,1),_++}return 95===v.charCodeAt(_-1)&&l(V.Diagnostics.Numeric_separators_are_not_allowed_here,_-1,1),t}function M(){return 110===v.charCodeAt(_)?(m+="n",384&y&&(m=V.parsePseudoBigInt(m)+"n"),_++,9):(m=""+(128&y?parseInt(m.slice(2),2):256&y?parseInt(m.slice(2),8):+m),8)}function L(){p=_,y=0;for(var e=!1;;){if(d<=(f=_))return g=1;var t=ae(v,_);if(35===t&&0===_&&te(v,_)){if(_=re(v,_),s)continue;return g=6}switch(t){case 10:case 13:if(y|=1,s){_++;continue}return 13===t&&_+1<d&&10===v.charCodeAt(_+1)?_+=2:_++,g=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(s){_++;continue}for(;_<d&&G(v.charCodeAt(_));)_++;return g=5;case 33:return 61===v.charCodeAt(_+1)?g=61===v.charCodeAt(_+2)?(_+=3,37):(_+=2,35):(_++,g=53);case 34:case 39:return m=T(),g=10;case 96:return g=k(!1);case 37:return 61===v.charCodeAt(_+1)?(_+=2,g=68):(_++,g=44);case 38:return 38===v.charCodeAt(_+1)?(_+=2,g=55):g=61===v.charCodeAt(_+1)?(_+=2,72):(_++,50);case 40:return _++,g=20;case 41:return _++,g=21;case 42:if(61===v.charCodeAt(_+1))return _+=2,g=65;if(42===v.charCodeAt(_+1))return g=61===v.charCodeAt(_+2)?(_+=3,66):(_+=2,42);if(_++,u&&!e&&1&y){e=!0;continue}return g=41;case 43:return 43===v.charCodeAt(_+1)?(_+=2,g=45):g=61===v.charCodeAt(_+1)?(_+=2,63):(_++,39);case 44:return _++,g=27;case 45:return 45===v.charCodeAt(_+1)?(_+=2,g=46):g=61===v.charCodeAt(_+1)?(_+=2,64):(_++,40);case 46:return X(v.charCodeAt(_+1))?(m=x().value,g=8):g=46===v.charCodeAt(_+1)&&46===v.charCodeAt(_+2)?(_+=3,25):(_++,24);case 47:if(47===v.charCodeAt(_+1)){for(_+=2;_<d&&!Q(v.charCodeAt(_));)_++;if(h=R(h,v.slice(f,_),q,f),s)continue;return g=2}if(42!==v.charCodeAt(_+1))return g=61===v.charCodeAt(_+1)?(_+=2,67):(_++,43);_+=2,42===v.charCodeAt(_)&&47!==v.charCodeAt(_+1)&&(y|=2);for(var r=!1,n=f;_<d;){var i=v.charCodeAt(_);if(42===i&&47===v.charCodeAt(_+1)){_+=2,r=!0;break}_++,Q(i)&&(n=_,y|=1)}if(h=R(h,v.slice(n,_),W,n),r||l(V.Diagnostics.Asterisk_Slash_expected),s)continue;return r||(y|=4),g=3;case 48:if(_+2<d&&(88===v.charCodeAt(_+1)||120===v.charCodeAt(_+1)))return _+=2,(m=S(1,!0))||(l(V.Diagnostics.Hexadecimal_digit_expected),m="0"),m="0x"+m,y|=64,g=M();if(_+2<d&&(66===v.charCodeAt(_+1)||98===v.charCodeAt(_+1)))return _+=2,(m=O(2))||(l(V.Diagnostics.Binary_digit_expected),m="0"),m="0b"+m,y|=128,g=M();if(_+2<d&&(79===v.charCodeAt(_+1)||111===v.charCodeAt(_+1)))return _+=2,(m=O(8))||(l(V.Diagnostics.Octal_digit_expected),m="0"),m="0o"+m,y|=256,g=M();if(_+1<d&&Z(v.charCodeAt(_+1)))return m=""+function(){for(var e=_;Z(v.charCodeAt(_));)_++;return+v.substring(e,_)}(),y|=32,g=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return a=x(),g=a.type,m=a.value,g;case 58:return _++,g=58;case 59:return _++,g=26;case 60:if($(v,_)){if(_=ee(v,_,l),s)continue;return g=7}return 60===v.charCodeAt(_+1)?g=61===v.charCodeAt(_+2)?(_+=3,69):(_+=2,47):g=61===v.charCodeAt(_+1)?(_+=2,32):1===c&&47===v.charCodeAt(_+1)&&42!==v.charCodeAt(_+2)?(_+=2,30):(_++,29);case 61:if($(v,_)){if(_=ee(v,_,l),s)continue;return g=7}return 61===v.charCodeAt(_+1)?g=61===v.charCodeAt(_+2)?(_+=3,36):(_+=2,34):g=62===v.charCodeAt(_+1)?(_+=2,38):(_++,62);case 62:if($(v,_)){if(_=ee(v,_,l),s)continue;return g=7}return _++,g=31;case 63:return _++,g=46!==v.charCodeAt(_)||X(v.charCodeAt(_+1))?63===v.charCodeAt(_)?(_++,60):57:(_++,28);case 91:return _++,g=22;case 93:return _++,g=23;case 94:return 61===v.charCodeAt(_+1)?(_+=2,g=74):(_++,g=52);case 123:return _++,g=18;case 124:if($(v,_)){if(_=ee(v,_,l),s)continue;return g=7}return 124===v.charCodeAt(_+1)?(_+=2,g=56):g=61===v.charCodeAt(_+1)?(_+=2,73):(_++,51);case 125:return _++,g=19;case 126:return _++,g=54;case 64:return _++,g=59;case 92:var a=P();if(0<=a&&ne(a,o))return _+=3,y|=8,m=A()+w(),g=I();a=F();return 0<=a&&ne(a,o)?(_+=6,y|=1024,m=String.fromCharCode(a)+w(),g=I()):(l(V.Diagnostics.Invalid_character),_++,g=0);case 35:if(0!==_&&"!"===v[_+1])return l(V.Diagnostics.can_only_be_used_at_the_start_of_a_file),_++,g=0;if(_++,ne(t=v.charCodeAt(_),o)){for(_++;_<d&&ie(t=v.charCodeAt(_),o);)_++;m=v.substring(f,_),92===t&&(m+=w())}else m="#",l(V.Diagnostics.Invalid_character);return g=76;default:if(ne(t,o)){for(_+=oe(t);_<d&&ie(t=ae(v,_),o);)_+=oe(t);return m=v.substring(f,_),92===t&&(m+=w()),g=I()}if(G(t)){_+=oe(t);continue}if(Q(t)){y|=1,_+=oe(t);continue}return l(V.Diagnostics.Invalid_character),_+=oe(t),g=0}}}function R(e,t,r,n){r=function(e,t){e=t.exec(e);if(!e)return;switch(e[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}return}(t,r);return void 0===r?e:V.append(e,{range:{pos:n,end:_},type:r})}function B(){if(p=f=_,d<=_)return g=1;var e=v.charCodeAt(_);if(60===e)return g=47===v.charCodeAt(_+1)?(_+=2,30):(_++,29);if(123===e)return _++,g=18;for(var t=0,r=-1;_<d&&(G(e)||(r=_),123!==(e=v.charCodeAt(_)));){if(60===e){if($(v,_))return _=ee(v,_,l),g=7;break}62===e&&l(V.Diagnostics.Unexpected_token_Did_you_mean_or_gt,_,1),125===e&&l(V.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,_,1),0<r&&r++,Q(e)&&0===t?t=-1:H(e)||(t=_),_++}var n=-1===r?_:r;return m=v.substring(p,n),-1===t?12:11}function j(){switch(p=_,v.charCodeAt(_)){case 34:case 39:return m=T(!0),g=10;default:return L()}}function J(e,t){var r=_,n=p,i=f,a=g,o=m,s=y,e=e();return e&&!t||(_=r,p=n,f=i,g=a,m=o,y=s),e}function z(e,t,r){v=e||"",d=void 0===r?v.length:t+r,U(t||0)}function U(e){V.Debug.assert(0<=e),f=p=_=e,m=void(g=0),y=0}};var ae=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n=e.charCodeAt(t);if(55296<=n&&n<=56319&&t+1<r){t=e.charCodeAt(t+1);if(56320<=t&&t<=57343)return 1024*(n-55296)+t-56320+65536}return n}};function oe(e){return 65536<=e?2:1}var T=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){if(V.Debug.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);var t=Math.floor((e-65536)/1024)+55296,e=(e-65536)%1024+56320;return String.fromCharCode(t,e)};function se(e){return T(e)}V.utf16EncodeAsString=se}(ts=ts||{}),function(_){function d(e){return e.start+e.length}function t(e){return 0===e.length}function r(e,t){t=i(e,t);return t&&0===t.length?void 0:t}function n(e,t,r,n){return r<=e+t&&e<=r+n}function i(e,t){var r=Math.max(e.start,t.start),t=Math.min(d(e),d(t));return r<=t?p(r,t):void 0}function a(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function p(e,t){return a(e,t-e)}function f(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function o(e){return!!je(e)&&_.every(e.elements,s)}function s(e){return!!Q(e)||o(e.name)}function c(e){for(var t=e.parent;j(t.parent);)t=t.parent.parent;return t.parent}function u(e,t){j(e)&&(e=c(e));var r=t(e);return 242===e.kind&&(e=e.parent),e&&243===e.kind&&(r|=t(e),e=e.parent),e&&225===e.kind&&(r|=t(e)),r}function l(e,t){if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0}function g(e){return 0==(8&e.flags)}function m(e){return 3<=e.length&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95===e.charCodeAt(2)?e.substr(1):e}function y(e){return m(e.escapedText)}function h(e){var t=e.parent.parent;if(t){if(Xe(t))return v(t);switch(t.kind){case 225:if(t.declarationList&&t.declarationList.declarations[0])return v(t.declarationList.declarations[0]);break;case 226:var r=t.expression;switch(209===r.kind&&62===r.operatorToken.kind&&(r=r.left),r.kind){case 194:return r.name;case 195:var n=r.argumentExpression;if(P(n))return n}break;case 200:return v(t.expression);case 238:if(Xe(t.statement)||Ke(t.statement))return v(t.statement)}}}function v(e){e=S(e);return e&&P(e)?e:void 0}function b(e){return e.name||h(e)}function x(e){return!!e.name}function D(e){switch(e.kind){case 75:return e;case 323:case 317:var t=e.name;if(153===t.kind)return t.right;break;case 196:case 209: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 322:return b(e);case 316:return h(e);case 259:var n=e.expression;return P(n)?n:void 0;case 195:n=e;if(_.isBindableStaticElementAccessExpression(n))return n.argumentExpression}return e.name}function S(e){if(void 0!==e)return D(e)||(W(e)||G(e)?function(e){if(e.parent)return oe(e.parent)||j(e.parent)?e.parent.name:H(e.parent)&&e===e.parent.right?P(e.parent.left)?e.parent.left:_.isAccessExpression(e.parent.left)?_.getElementOrPropertyAccessArgumentExpressionOrName(e.parent.left):void 0:$(e.parent)&&P(e.parent.name)?e.parent.name:void 0}(e):void 0)}function C(e){if(e.name){if(P(e.name)){var t=e.name.escapedText;return N(e.parent).filter(function(e){return be(e)&&P(e.name)&&e.name.escapedText===t})}var r=e.parent.parameters.indexOf(e);_.Debug.assert(-1<r,"Parameters should always be in their parents' parameter list");e=N(e.parent).filter(be);if(r<e.length)return[e[r]]}return _.emptyArray}function T(e){return A(e,xe)}function k(e){e=A(e,De);if(e&&e.typeExpression&&e.typeExpression.type)return e}function E(e){var t=A(e,De);return!t&&I(e)&&(t=_.find(C(e),function(e){return!!e.typeExpression})),t&&t.typeExpression&&t.typeExpression.type}function N(e){var t,r=e.jsDocCache;return void 0===r&&(t=_.getJSDocCommentsAndTags(e),_.Debug.assert(t.length<2||t[0]!==t[1]),e.jsDocCache=r=_.flatMap(t,function(e){return le(e)?e.tags:e})),r}function A(e,t){return _.find(N(e),t)}function F(e,t){return N(e).filter(t)}function P(e){return 75===e.kind}function w(e){return 76===e.kind}function I(e){return 156===e.kind}function O(e){return 159===e.kind}function M(e){return 165===e.kind}function L(e){return 169===e.kind}function R(e){return 170===e.kind}function B(e){return 173===e.kind}function j(e){return 191===e.kind}function J(e){return 194===e.kind}function z(e){return 195===e.kind}function U(e){return 196===e.kind}function V(e){var t=e.kind;return!!(32&e.flags)&&(194===t||195===t||196===t||218===t)}function K(e){return V(e)&&!X(e)&&!!e.questionDotToken}function q(e){return _.skipOuterExpressions(e,8)}function W(e){return 201===e.kind}function H(e){return 209===e.kind}function G(e){return 214===e.kind}function Q(e){return 215===e.kind}function X(e){return 218===e.kind}function Y(e){return 223===e.kind}function Z(e){return 225===e.kind}function $(e){return 242===e.kind}function ee(e){return 243===e.kind}function te(e){return 250===e.kind}function re(e){return 258===e.kind}function ne(e){return 259===e.kind}function ie(e){return 260===e.kind}function ae(e){return 263===e.kind}function oe(e){return 281===e.kind}function se(e){return 290===e.kind}function ce(e){switch(e.kind){case 287:case 288:return!0;default:return!1}}function ue(e){return 300===e.kind}function le(e){return 303===e.kind}function _e(e){return 307===e.kind}function de(e){return 308===e.kind}function pe(e){return 310===e.kind}function fe(e){return 311===e.kind}function ge(e){return 312===e.kind}function me(e){return 313===e.kind}function ye(e){return 314===e.kind}function he(e){return 316===e.kind}function ve(e){return 319===e.kind}function be(e){return 317===e.kind}function xe(e){return 318===e.kind}function De(e){return 320===e.kind}function Se(e){return 321===e.kind}function Ce(e){return 304===e.kind}function Te(e){return 305===e.kind}function ke(e){return 153<=e}function Ee(e){return 8<=e&&e<=14}function Ne(e){return 14<=e&&e<=17}function Ae(e){return O(e)&&w(e.name)}function Fe(e){switch(e){case 122:case 126:case 81:case 130:case 84:case 89:case 119:case 117:case 118:case 138:case 120:return!0}return!1}function Pe(e){return!!(92&_.modifierToFlag(e))}function we(e){return e&&Oe(e.kind)}function Ie(e){switch(e){case 244:case 161:case 162:case 163:case 164:case 201:case 202:return!0;default:return!1}}function Oe(e){switch(e){case 160:case 165:case 305:case 166:case 167:case 170:case 300:case 171:return!0;default:return Ie(e)}}function Me(e){e=e.kind;return 162===e||159===e||161===e||163===e||164===e||167===e||222===e}function Le(e){return e&&(245===e.kind||214===e.kind)}function Re(e){e=e.kind;return 166===e||165===e||158===e||160===e||167===e}function Be(e){e=e.kind;return 281===e||282===e||283===e||161===e||163===e||164===e}function je(e){if(e){e=e.kind;return 190===e||189===e}return!1}function Je(e){switch(e.kind){case 189:case 193:return!0}return!1}function ze(e){switch(e.kind){case 190:case 192:return!0}return!1}function Ue(e){switch(e){case 194:case 195:case 197:case 196:case 266:case 267:case 270:case 198:case 192:case 200:case 193:case 214:case 201:case 75:case 13:case 8:case 9:case 10:case 14:case 211:case 91:case 100:case 104:case 106:case 102:case 218:case 219:case 96:return!0;default:return!1}}function Ve(e){switch(e){case 207:case 208:case 203:case 204:case 205:case 206:case 199:return!0;default:return Ue(e)}}function Ke(e){return function(e){switch(e){case 210:case 212:case 202:case 209:case 213:case 217:case 215:case 327:case 326:return!0;default:return Ve(e)}}(q(e).kind)}function qe(e){return 326===e.kind}function We(e){return 325===e.kind}function He(e){return ne(e)||ie(e)}function Ge(e){return 244===e||264===e||245===e||246===e||247===e||248===e||249===e||254===e||253===e||260===e||259===e||252===e}function Qe(e){return 234===e||233===e||241===e||228===e||226===e||224===e||231===e||232===e||230===e||227===e||238===e||235===e||237===e||239===e||240===e||225===e||229===e||236===e||325===e||329===e||328===e}function Xe(e){return 155===e.kind?e.parent&&321!==e.parent.kind||_.isInJSFile(e):202===(e=e.kind)||191===e||245===e||214===e||162===e||248===e||284===e||263===e||244===e||201===e||163===e||255===e||253===e||258===e||246===e||273===e||161===e||160===e||249===e||252===e||256===e||262===e||156===e||281===e||159===e||158===e||164===e||282===e||247===e||155===e||242===e||322===e||315===e||323===e}function Ye(e){return 306<=e.kind&&e.kind<=323}_.isExternalModuleNameRelative=function(e){return _.pathIsRelative(e)||_.isRootedDiskPath(e)},_.sortAndDeduplicateDiagnostics=function(e){return _.sortAndDeduplicate(e,_.compareDiagnostics)},_.getDefaultLibFileName=function(e){switch(e.target){case 99:return"lib.esnext.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},_.textSpanEnd=d,_.textSpanIsEmpty=t,_.textSpanContainsPosition=function(e,t){return t>=e.start&&t<d(e)},_.textRangeContainsPositionInclusive=function(e,t){return t>=e.pos&&t<=e.end},_.textSpanContainsTextSpan=function(e,t){return t.start>=e.start&&d(t)<=d(e)},_.textSpanOverlapsWith=function(e,t){return void 0!==r(e,t)},_.textSpanOverlap=r,_.textSpanIntersectsWithTextSpan=function(e,t){return n(e.start,e.length,t.start,t.length)},_.textSpanIntersectsWith=function(e,t,r){return n(e.start,e.length,t,r)},_.decodedTextSpanIntersectsWith=n,_.textSpanIntersectsWithPosition=function(e,t){return t<=d(e)&&t>=e.start},_.textSpanIntersection=i,_.createTextSpan=a,_.createTextSpanFromBounds=p,_.textChangeRangeNewSpan=function(e){return a(e.span.start,e.newLength)},_.textChangeRangeIsUnchanged=function(e){return t(e.span)&&0===e.newLength},_.createTextChangeRange=f,_.unchangedTextChangeRange=f(a(0,0),0),_.collapseTextChangeRangesAcrossMultipleVersions=function(e){if(0===e.length)return _.unchangedTextChangeRange;if(1===e.length)return e[0];for(var t=e[0],r=t.span.start,n=d(t.span),i=r+t.newLength,a=1;a<e.length;a++)var o=e[a],s=n,c=i,u=o.span.start,l=d(o.span),o=u+o.newLength,r=Math.min(r,u),n=Math.max(s,s+(l-c)),i=Math.max(o,o+(c-l));return f(p(r,n),i-r)},_.getTypeParameterOwner=function(e){if(e&&155===e.kind)for(var t=e;t;t=t.parent)if(we(t)||Le(t)||246===t.kind)return t},_.isParameterPropertyDeclaration=function(e,t){return _.hasModifier(e,92)&&162===t.kind},_.isEmptyBindingPattern=o,_.isEmptyBindingElement=s,_.walkUpBindingElementsAndPatterns=c,_.getCombinedModifierFlags=function(e){return u(e,_.getModifierFlags)},_.getCombinedNodeFlags=function(e){return u(e,function(e){return e.flags})},_.validateLocaleAndSetLanguage=function(e,o,t){var r,n=/^([a-z]+)([_\-]([a-z]+))?$/.exec(e.toLowerCase());function i(e,t,r){var n=_.normalizePath(o.getExecutingFilePath()),n=_.getDirectoryPath(n),i=_.combinePaths(n,e);if(t&&(i=i+"-"+t),i=o.resolvePath(_.combinePaths(i,"diagnosticMessages.generated.json")),o.fileExists(i)){var a="";try{a=o.readFile(i)}catch(e){return void(r&&r.push(_.createCompilerDiagnostic(_.Diagnostics.Unable_to_open_file_0,i)))}try{_.setLocalizedDiagnosticMessages(JSON.parse(a))}catch(e){return void(r&&r.push(_.createCompilerDiagnostic(_.Diagnostics.Corrupted_locale_file_0,i)))}return 1}}n?(i(r=n[1],n[3],t)||i(r,void 0,t),_.setUILocale(e)):t&&t.push(_.createCompilerDiagnostic(_.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"))},_.getOriginalNode=l,_.isParseTreeNode=g,_.getParseTreeNode=function(e,t){return void 0!==e&&!g(e)&&(!g(e=l(e))||t&&!t(e))?void 0:e},_.escapeLeadingUnderscores=function(e){return 2<=e.length&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},_.unescapeLeadingUnderscores=m,_.idText=y,_.symbolName=function(e){return e.valueDeclaration&&Ae(e.valueDeclaration)?y(e.valueDeclaration.name):m(e.escapedName)},_.nodeHasName=function t(e,r){return!(!x(e)||!P(e.name)||y(e.name)!==y(r))||!(!Z(e)||!_.some(e.declarationList.declarations,function(e){return t(e,r)}))},_.getNameOfJSDocTypedef=b,_.isNamedDeclaration=x,_.getNonAssignedNameOfDeclaration=D,_.getNameOfDeclaration=S,_.getJSDocParameterTags=C,_.getJSDocTypeParameterTags=function(e){var t=e.name.escapedText;return N(e.parent).filter(function(e){return Se(e)&&e.typeParameters.some(function(e){return e.name.escapedText===t})})},_.hasJSDocParameterTags=function(e){return!!A(e,be)},_.getJSDocAugmentsTag=function(e){return A(e,_e)},_.getJSDocImplementsTags=function(e){return F(e,de)},_.getJSDocClassTag=function(e){return A(e,pe)},_.getJSDocPublicTag=function(e){return A(e,fe)},_.getJSDocPrivateTag=function(e){return A(e,ge)},_.getJSDocProtectedTag=function(e){return A(e,me)},_.getJSDocReadonlyTag=function(e){return A(e,ye)},_.getJSDocEnumTag=function(e){return A(e,he)},_.getJSDocThisTag=function(e){return A(e,ve)},_.getJSDocReturnTag=T,_.getJSDocTemplateTag=function(e){return A(e,Se)},_.getJSDocTypeTag=k,_.getJSDocType=E,_.getJSDocReturnType=function(e){var t=T(e);if(t&&t.typeExpression)return t.typeExpression.type;if((t=k(e))&&t.typeExpression){e=t.typeExpression.type;if(B(e)){t=_.find(e.members,M);return t&&t.type}if(R(e)||ue(e))return e.type}},_.getJSDocTags=N,_.getAllJSDocTags=F,_.getAllJSDocTagsOfKind=function(e,t){return N(e).filter(function(e){return e.kind===t})},_.getEffectiveTypeParameterDeclarations=function(e){if(Te(e))return _.emptyArray;if(_.isJSDocTypeAlias(e))return _.Debug.assert(303===e.parent.kind),_.flatMap(e.parent.tags,function(e){return Se(e)?e.typeParameters:void 0});if(e.typeParameters)return e.typeParameters;if(_.isInJSFile(e)){var t=_.getJSDocTypeParameterDeclarations(e);if(t.length)return t;e=E(e);if(e&&R(e)&&e.typeParameters)return e.typeParameters}return _.emptyArray},_.getEffectiveConstraintOfTypeParameter=function(e){return e.constraint||(Se(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0)},_.isNumericLiteral=function(e){return 8===e.kind},_.isBigIntLiteral=function(e){return 9===e.kind},_.isStringLiteral=function(e){return 10===e.kind},_.isJsxText=function(e){return 11===e.kind},_.isRegularExpressionLiteral=function(e){return 13===e.kind},_.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},_.isTemplateHead=function(e){return 15===e.kind},_.isTemplateMiddle=function(e){return 16===e.kind},_.isTemplateTail=function(e){return 17===e.kind},_.isIdentifier=P,_.isQualifiedName=function(e){return 153===e.kind},_.isComputedPropertyName=function(e){return 154===e.kind},_.isPrivateIdentifier=w,_.isIdentifierOrPrivateIdentifier=function(e){return 75===e.kind||76===e.kind},_.isTypeParameterDeclaration=function(e){return 155===e.kind},_.isParameter=I,_.isDecorator=function(e){return 157===e.kind},_.isPropertySignature=function(e){return 158===e.kind},_.isPropertyDeclaration=O,_.isMethodSignature=function(e){return 160===e.kind},_.isMethodDeclaration=function(e){return 161===e.kind},_.isConstructorDeclaration=function(e){return 162===e.kind},_.isGetAccessorDeclaration=function(e){return 163===e.kind},_.isSetAccessorDeclaration=function(e){return 164===e.kind},_.isCallSignatureDeclaration=M,_.isConstructSignatureDeclaration=function(e){return 166===e.kind},_.isIndexSignatureDeclaration=function(e){return 167===e.kind},_.isGetOrSetAccessorDeclaration=function(e){return 164===e.kind||163===e.kind},_.isTypePredicateNode=function(e){return 168===e.kind},_.isTypeReferenceNode=L,_.isFunctionTypeNode=R,_.isConstructorTypeNode=function(e){return 171===e.kind},_.isTypeQueryNode=function(e){return 172===e.kind},_.isTypeLiteralNode=B,_.isArrayTypeNode=function(e){return 174===e.kind},_.isTupleTypeNode=function(e){return 175===e.kind},_.isUnionTypeNode=function(e){return 178===e.kind},_.isIntersectionTypeNode=function(e){return 179===e.kind},_.isConditionalTypeNode=function(e){return 180===e.kind},_.isInferTypeNode=function(e){return 181===e.kind},_.isParenthesizedTypeNode=function(e){return 182===e.kind},_.isThisTypeNode=function(e){return 183===e.kind},_.isTypeOperatorNode=function(e){return 184===e.kind},_.isIndexedAccessTypeNode=function(e){return 185===e.kind},_.isMappedTypeNode=function(e){return 186===e.kind},_.isLiteralTypeNode=function(e){return 187===e.kind},_.isImportTypeNode=function(e){return 188===e.kind},_.isObjectBindingPattern=function(e){return 189===e.kind},_.isArrayBindingPattern=function(e){return 190===e.kind},_.isBindingElement=j,_.isArrayLiteralExpression=function(e){return 192===e.kind},_.isObjectLiteralExpression=function(e){return 193===e.kind},_.isPropertyAccessExpression=J,_.isPropertyAccessChain=function(e){return J(e)&&!!(32&e.flags)},_.isElementAccessExpression=z,_.isElementAccessChain=function(e){return z(e)&&!!(32&e.flags)},_.isCallExpression=U,_.isCallChain=function(e){return U(e)&&!!(32&e.flags)},_.isOptionalChain=V,_.isOptionalChainRoot=K,_.isExpressionOfOptionalChainRoot=function(e){return K(e.parent)&&e.parent.expression===e},_.isOutermostOptionalChain=function(e){return!V(e.parent)||K(e.parent)||e!==e.parent.expression},_.isNullishCoalesce=function(e){return 209===e.kind&&60===e.operatorToken.kind},_.isNewExpression=function(e){return 197===e.kind},_.isTaggedTemplateExpression=function(e){return 198===e.kind},_.isTypeAssertion=function(e){return 199===e.kind},_.isConstTypeReference=function(e){return L(e)&&P(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments},_.isParenthesizedExpression=function(e){return 200===e.kind},_.skipPartiallyEmittedExpressions=q,_.isFunctionExpression=W,_.isArrowFunction=function(e){return 202===e.kind},_.isDeleteExpression=function(e){return 203===e.kind},_.isTypeOfExpression=function(e){return 204===e.kind},_.isVoidExpression=function(e){return 205===e.kind},_.isAwaitExpression=function(e){return 206===e.kind},_.isPrefixUnaryExpression=function(e){return 207===e.kind},_.isPostfixUnaryExpression=function(e){return 208===e.kind},_.isBinaryExpression=H,_.isConditionalExpression=function(e){return 210===e.kind},_.isTemplateExpression=function(e){return 211===e.kind},_.isYieldExpression=function(e){return 212===e.kind},_.isSpreadElement=function(e){return 213===e.kind},_.isClassExpression=G,_.isOmittedExpression=Q,_.isExpressionWithTypeArguments=function(e){return 216===e.kind},_.isAsExpression=function(e){return 217===e.kind},_.isNonNullExpression=X,_.isNonNullChain=function(e){return X(e)&&!!(32&e.flags)},_.isMetaProperty=function(e){return 219===e.kind},_.isTemplateSpan=function(e){return 221===e.kind},_.isSemicolonClassElement=function(e){return 222===e.kind},_.isBlock=Y,_.isVariableStatement=Z,_.isEmptyStatement=function(e){return 224===e.kind},_.isExpressionStatement=function(e){return 226===e.kind},_.isIfStatement=function(e){return 227===e.kind},_.isDoStatement=function(e){return 228===e.kind},_.isWhileStatement=function(e){return 229===e.kind},_.isForStatement=function(e){return 230===e.kind},_.isForInStatement=function(e){return 231===e.kind},_.isForOfStatement=function(e){return 232===e.kind},_.isContinueStatement=function(e){return 233===e.kind},_.isBreakStatement=function(e){return 234===e.kind},_.isBreakOrContinueStatement=function(e){return 234===e.kind||233===e.kind},_.isReturnStatement=function(e){return 235===e.kind},_.isWithStatement=function(e){return 236===e.kind},_.isSwitchStatement=function(e){return 237===e.kind},_.isLabeledStatement=function(e){return 238===e.kind},_.isThrowStatement=function(e){return 239===e.kind},_.isTryStatement=function(e){return 240===e.kind},_.isDebuggerStatement=function(e){return 241===e.kind},_.isVariableDeclaration=$,_.isVariableDeclarationList=ee,_.isFunctionDeclaration=function(e){return 244===e.kind},_.isClassDeclaration=function(e){return 245===e.kind},_.isInterfaceDeclaration=function(e){return 246===e.kind},_.isTypeAliasDeclaration=function(e){return 247===e.kind},_.isEnumDeclaration=function(e){return 248===e.kind},_.isModuleDeclaration=function(e){return 249===e.kind},_.isModuleBlock=te,_.isCaseBlock=function(e){return 251===e.kind},_.isNamespaceExportDeclaration=function(e){return 252===e.kind},_.isImportEqualsDeclaration=function(e){return 253===e.kind},_.isImportDeclaration=function(e){return 254===e.kind},_.isImportClause=function(e){return 255===e.kind},_.isNamespaceImport=function(e){return 256===e.kind},_.isNamespaceExport=function(e){return 262===e.kind},_.isNamedExportBindings=function(e){return 262===e.kind||261===e.kind},_.isNamedImports=function(e){return 257===e.kind},_.isImportSpecifier=re,_.isExportAssignment=ne,_.isExportDeclaration=ie,_.isNamedExports=function(e){return 261===e.kind},_.isExportSpecifier=ae,_.isMissingDeclaration=function(e){return 264===e.kind},_.isExternalModuleReference=function(e){return 265===e.kind},_.isJsxElement=function(e){return 266===e.kind},_.isJsxSelfClosingElement=function(e){return 267===e.kind},_.isJsxOpeningElement=function(e){return 268===e.kind},_.isJsxClosingElement=function(e){return 269===e.kind},_.isJsxFragment=function(e){return 270===e.kind},_.isJsxOpeningFragment=function(e){return 271===e.kind},_.isJsxClosingFragment=function(e){return 272===e.kind},_.isJsxAttribute=function(e){return 273===e.kind},_.isJsxAttributes=function(e){return 274===e.kind},_.isJsxSpreadAttribute=function(e){return 275===e.kind},_.isJsxExpression=function(e){return 276===e.kind},_.isCaseClause=function(e){return 277===e.kind},_.isDefaultClause=function(e){return 278===e.kind},_.isHeritageClause=function(e){return 279===e.kind},_.isCatchClause=function(e){return 280===e.kind},_.isPropertyAssignment=oe,_.isShorthandPropertyAssignment=function(e){return 282===e.kind},_.isSpreadAssignment=function(e){return 283===e.kind},_.isEnumMember=function(e){return 284===e.kind},_.isSourceFile=se,_.isBundle=function(e){return 291===e.kind},_.isUnparsedSource=function(e){return 292===e.kind},_.isUnparsedPrepend=function(e){return 286===e.kind},_.isUnparsedTextLike=ce,_.isUnparsedNode=function(e){return ce(e)||285===e.kind||289===e.kind},_.isJSDocTypeExpression=function(e){return 294===e.kind},_.isJSDocAllType=function(e){return 295===e.kind},_.isJSDocUnknownType=function(e){return 296===e.kind},_.isJSDocNullableType=function(e){return 297===e.kind},_.isJSDocNonNullableType=function(e){return 298===e.kind},_.isJSDocOptionalType=function(e){return 299===e.kind},_.isJSDocFunctionType=ue,_.isJSDocVariadicType=function(e){return 301===e.kind},_.isJSDoc=le,_.isJSDocAuthorTag=function(e){return 309===e.kind},_.isJSDocAugmentsTag=_e,_.isJSDocImplementsTag=de,_.isJSDocClassTag=pe,_.isJSDocPublicTag=fe,_.isJSDocPrivateTag=ge,_.isJSDocProtectedTag=me,_.isJSDocReadonlyTag=ye,_.isJSDocEnumTag=he,_.isJSDocThisTag=ve,_.isJSDocParameterTag=be,_.isJSDocReturnTag=xe,_.isJSDocTypeTag=De,_.isJSDocTemplateTag=Se,_.isJSDocTypedefTag=function(e){return 322===e.kind},_.isJSDocPropertyTag=function(e){return 323===e.kind},_.isJSDocPropertyLikeTag=function(e){return 323===e.kind||317===e.kind},_.isJSDocTypeLiteral=Ce,_.isJSDocCallbackTag=function(e){return 315===e.kind},_.isJSDocSignature=Te,_.isSyntaxList=function(e){return 324===e.kind},_.isNode=function(e){return ke(e.kind)},_.isNodeKind=ke,_.isToken=function(e){return 0<=e.kind&&e.kind<=152},_.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},_.isLiteralKind=Ee,_.isLiteralExpression=function(e){return Ee(e.kind)},_.isTemplateLiteralKind=Ne,_.isTemplateLiteralToken=function(e){return Ne(e.kind)},_.isTemplateMiddleOrTemplateTail=function(e){return 16===(e=e.kind)||17===e},_.isImportOrExportSpecifier=function(e){return re(e)||ae(e)},_.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 258:case 263:return e.parent.parent.isTypeOnly;case 256:return e.parent.isTypeOnly;case 255:return e.isTypeOnly;default:return!1}},_.isStringTextContainingNode=function(e){return 10===e.kind||Ne(e.kind)},_.isGeneratedIdentifier=function(e){return P(e)&&0<(7&e.autoGenerateFlags)},_.isPrivateIdentifierPropertyDeclaration=Ae,_.isPrivateIdentifierPropertyAccessExpression=function(e){return J(e)&&w(e.name)},_.isModifierKind=Fe,_.isParameterPropertyModifier=Pe,_.isClassMemberModifier=function(e){return Pe(e)||120===e},_.isModifier=function(e){return Fe(e.kind)},_.isEntityName=function(e){return 153===(e=e.kind)||75===e},_.isPropertyName=function(e){return 75===(e=e.kind)||76===e||10===e||8===e||154===e},_.isBindingName=function(e){return 75===(e=e.kind)||189===e||190===e},_.isFunctionLike=we,_.isFunctionLikeDeclaration=function(e){return e&&Ie(e.kind)},_.isFunctionLikeKind=Oe,_.isFunctionOrModuleBlock=function(e){return se(e)||te(e)||Y(e)&&we(e.parent)},_.isClassElement=Me,_.isClassLike=Le,_.isAccessor=function(e){return e&&(163===e.kind||164===e.kind)},_.isMethodOrAccessor=function(e){switch(e.kind){case 161:case 163:case 164:return!0;default:return!1}},_.isTypeElement=Re,_.isClassOrTypeElement=function(e){return Re(e)||Me(e)},_.isObjectLiteralElementLike=Be,_.isTypeNode=function(e){return _.isTypeNodeKind(e.kind)},_.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 170:case 171:return!0}return!1},_.isBindingPattern=je,_.isAssignmentPattern=function(e){return 192===(e=e.kind)||193===e},_.isArrayBindingElement=function(e){return 191===(e=e.kind)||215===e},_.isDeclarationBindingElement=function(e){switch(e.kind){case 242:case 156:case 191:return!0}return!1},_.isBindingOrAssignmentPattern=function(e){return Je(e)||ze(e)},_.isObjectBindingOrAssignmentPattern=Je,_.isArrayBindingOrAssignmentPattern=ze,_.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){return 194===(e=e.kind)||153===e||188===e},_.isPropertyAccessOrQualifiedName=function(e){return 194===(e=e.kind)||153===e},_.isCallLikeExpression=function(e){switch(e.kind){case 268:case 267:case 196:case 197:case 198:case 157:return!0;default:return!1}},_.isCallOrNewExpression=function(e){return 196===e.kind||197===e.kind},_.isTemplateLiteral=function(e){return 211===(e=e.kind)||14===e},_.isLeftHandSideExpression=function(e){return Ue(q(e).kind)},_.isUnaryExpression=function(e){return Ve(q(e).kind)},_.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 208:return!0;case 207:return 45===e.operator||46===e.operator;default:return!1}},_.isExpression=Ke,_.isAssertionExpression=function(e){return 199===(e=e.kind)||217===e},_.isPartiallyEmittedExpression=qe,_.isNotEmittedStatement=We,_.isSyntheticReference=function(e){return 330===e.kind},_.isNotEmittedOrPartiallyEmittedNode=function(e){return We(e)||qe(e)},_.isIterationStatement=function e(t,r){switch(t.kind){case 230:case 231:case 232:case 228:case 229:return!0;case 238:return r&&e(t.statement,r)}return!1},_.isScopeMarker=He,_.hasScopeMarker=function(e){return _.some(e,He)},_.needsScopeMarker=function(e){return!(_.isAnyImportOrReExport(e)||ne(e)||_.hasModifier(e,1)||_.isAmbientModule(e))},_.isExternalModuleIndicator=function(e){return _.isAnyImportOrReExport(e)||ne(e)||_.hasModifier(e,1)},_.isForInOrOfStatement=function(e){return 231===e.kind||232===e.kind},_.isConciseBody=function(e){return Y(e)||Ke(e)},_.isFunctionBody=Y,_.isForInitializer=function(e){return ee(e)||Ke(e)},_.isModuleBody=function(e){return 250===(e=e.kind)||249===e||75===e},_.isNamespaceBody=function(e){return 250===(e=e.kind)||249===e},_.isJSDocNamespaceBody=function(e){return 75===(e=e.kind)||249===e},_.isNamedImportBindings=function(e){return 257===(e=e.kind)||256===e},_.isModuleOrEnumDeclaration=function(e){return 249===e.kind||248===e.kind},_.isDeclaration=Xe,_.isDeclarationStatement=function(e){return Ge(e.kind)},_.isStatementButNotDeclaration=function(e){return Qe(e.kind)},_.isStatement=function(e){var t=e.kind;return Qe(t)||Ge(t)||function(e){if(223!==e.kind)return!1;if(void 0!==e.parent&&(240===e.parent.kind||280===e.parent.kind))return!1;return!_.isFunctionBlock(e)}(e)},_.isModuleReference=function(e){return 265===(e=e.kind)||153===e||75===e},_.isJsxTagNameExpression=function(e){return 104===(e=e.kind)||75===e||194===e},_.isJsxChild=function(e){return 266===(e=e.kind)||276===e||267===e||11===e||270===e},_.isJsxAttributeLike=function(e){return 273===(e=e.kind)||275===e},_.isStringLiteralOrJsxExpression=function(e){return 10===(e=e.kind)||276===e},_.isJsxOpeningLikeElement=function(e){return 268===(e=e.kind)||267===e},_.isCaseOrDefaultClause=function(e){return 277===(e=e.kind)||278===e},_.isJSDocNode=function(e){return 294<=e.kind&&e.kind<=323},_.isJSDocCommentContainingNode=function(e){return 303===e.kind||302===e.kind||Ye(e)||Ce(e)||Te(e)},_.isJSDocTag=Ye,_.isSetAccessor=function(e){return 164===e.kind},_.isGetAccessor=function(e){return 163===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 242:case 156:case 191:case 158:case 159:case 281:case 284:return!0;default:return!1}},_.isObjectLiteralElement=function(e){return 273===e.kind||275===e.kind||Be(e)},_.isTypeReferenceType=function(e){return 169===e.kind||216===e.kind};var Ze=1073741823;_.guessIndentation=function(e){for(var t=Ze,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===Ze?void 0:t},_.isStringLiteralLike=function(e){return 10===e.kind||14===e.kind}}(ts=ts||{}),function(S){S.resolvingEmptyArray=[],S.emptyMap=S.createMap(),S.emptyUnderscoreEscapedMap=S.emptyMap,S.externalHelpersModuleNameText="tslib",S.defaultMaximumTruncationLength=160,S.noTruncationMaximumTruncationLength=1e6,S.getDeclarationOfKind=function(e,t){if(e=e.declarations)for(var r=0,n=e;r<n.length;r++){var i=n[r];if(i.kind===t)return i}},S.createUnderscoreEscapedMap=function(){return new S.Map},S.hasEntries=function(e){return!!e&&!!e.size},S.createSymbolTable=function(e){var t=S.createMap();if(e)for(var r=0,n=e;r<n.length;r++){var i=n[r];t.set(i.escapedName,i)}return t},S.isTransientSymbol=function(e){return 0!=(33554432&e.flags)};var t,r=(t="",{getText:function(){return t},write:n,rawWrite:n,writeKeyword:n,writeOperator:n,writePunctuation:n,writeSpace:n,writeStringLiteral:n,writeLiteral:n,writeParameter:n,writeProperty:n,writeSymbol:function(e,t){return n(e)},writeTrailingSemicolon:n,writeComment:n,getTextPos:function(){return t.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!t.length&&S.isWhiteSpaceLike(t.charCodeAt(t.length-1))},writeLine:function(){return t+=" "},increaseIndent:S.noop,decreaseIndent:S.noop,clear:function(){return t=""},trackSymbol:S.noop,reportInaccessibleThisError:S.noop,reportInaccessibleUniqueSymbolError:S.noop,reportPrivateInBaseOfClassExpression:S.noop});function n(e){return t+=e}function i(t,r){return S.moduleResolutionOptionDeclarations.some(function(e){return!wn(Yr(t,e),Yr(r,e))})}function a(e,t){for(;e;){var r=t(e);if("quit"===r)return;if(r)return e;e=e.parent}}function o(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}}function s(e,r){e.forEach(function(e,t){r.set(t,e)})}function c(e){return e.end-e.pos}function u(e){var t;return 524288&(t=e).flags||(0==(65536&t.flags)&&!S.forEachChild(t,u)||(t.flags|=262144),t.flags|=524288),0!=(262144&e.flags)}function l(e){for(;e&&290!==e.kind;)e=e.parent;return e}function _(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 d(e){return void 0===e||e.pos===e.end&&0<=e.pos&&1!==e.kind}function p(e){return!d(e)}function f(e,t,r){if(void 0===t||0===t.length)return e;for(var n=0;n<e.length&&r(e[n]);++n);return e.splice.apply(e,__spreadArrays([n,0],t)),e}function g(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 m(e){return V(e)||!!(1048576&C(e))}function y(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function h(e,t,r){return d(e)?e.pos:S.isJSDocNode(e)?S.skipTrivia((t||l(e)).text,e.pos,!1,!0):r&&S.hasJSDocNodes(e)?h(e.jsDoc[0],t):324===e.kind&&0<e._children.length?h(e._children[0],t,r):S.skipTrivia((t||l(e)).text,e.pos)}function v(e,t,r){return void 0===r&&(r=!1),b(e.text,t,r)}function b(e,t,r){if(void 0===r&&(r=!1),d(t))return"";e=e.substring(r?t.pos:S.skipTrivia(e,t.pos),t.end);return a(t,S.isJSDocTypeExpression)&&(e=e.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),e}function x(e,t){return void 0===t&&(t=!1),v(l(e),e,t)}function D(e){return e.pos}function C(e){e=e.emitNode;return e&&e.flags||0}function T(e){e=mt(e);return 242===e.kind&&280===e.parent.kind}function k(e){return S.isModuleDeclaration(e)&&(10===e.name.kind||N(e))}function E(e){return S.isModuleDeclaration(e)||S.isIdentifier(e)}function N(e){return!!(1024&e.flags)}function A(e){return k(e)&&F(e)}function F(e){switch(e.parent.kind){case 290:return S.isExternalModule(e.parent);case 250:return k(e.parent.parent)&&S.isSourceFile(e.parent.parent.parent)&&!S.isExternalModule(e.parent.parent.parent)}return!1}function P(e,t){switch(e.kind){case 290:case 251:case 280:case 249:case 230:case 231:case 232:case 162:case 161:case 163:case 164:case 244:case 201:case 202:return!0;case 223:return!S.isFunctionLike(t)}return!1}function w(e){switch(e.kind){case 165:case 166:case 160:case 167:case 170:case 171:case 300:case 245:case 214:case 246:case 247:case 321:case 244:case 161:case 162:case 163:case 164:case 201:case 202:return!0;default:return S.assertType(e),!1}}function I(e){switch(e.kind){case 254:case 253:return!0;default:return!1}}function O(e){return e&&0!==c(e)?x(e):"(Missing)"}function M(e){switch(e.kind){case 75:case 76:return e.escapedText;case 10:case 8:case 14:return S.escapeLeadingUnderscores(e.text);case 154:return ot(e.expression)?S.escapeLeadingUnderscores(e.expression.text):S.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return S.Debug.assertNever(e)}}function L(e,t,r,n,i,a,o){t=B(e,t);return Ur(e,t.start,t.length,r,n,i,a,o)}function R(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 B(e,t){var r=t;switch(t.kind){case 290:var n=S.skipTrivia(e.text,0,!1);return n===e.text.length?S.createTextSpan(0,0):R(e,n);case 242:case 191:case 245:case 214:case 246:case 249:case 248:case 284:case 244:case 201:case 161:case 163:case 164:case 247:case 159:case 158:r=t.name;break;case 202:return function(e,t){var r=S.skipTrivia(e.text,t.pos);if(t.body&&223===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,_(n,e)-r+1)}return S.createTextSpanFromBounds(r,t.end)}(e,t);case 277:case 278: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 R(e,t.pos);S.Debug.assert(!S.isJSDoc(r));var a=d(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 j(e){return 6===e.scriptKind}function J(e){return!!(2&S.getCombinedNodeFlags(e))}function z(e){return 196===e.kind&&96===e.expression.kind}function U(e){return S.isImportTypeNode(e)&&S.isLiteralTypeNode(e.argument)&&S.isStringLiteral(e.argument.literal)}function V(e){return 226===e.kind&&10===e.expression.kind}function K(e){return!!(1048576&C(e))}function q(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.findAncestor=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=o,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=s,S.arrayToSet=function(e,t){return S.arrayToMap(e,t||function(e){return e},S.returnTrue)},S.cloneMap=function(e){var t=S.createMap();return s(e,t),t},S.usingSingleLineStringWriter=function(e){var t=r.getText();try{return e(r),r.getText()}finally{r.clear(),r.writeKeyword(t)}},S.getFullWidth=c,S.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},S.setResolvedModule=function(e,t,r){e.resolvedModules||(e.resolvedModules=S.createMap()),e.resolvedModules.set(t,r)},S.setResolvedTypeReferenceDirective=function(e,t,r){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=S.createMap()),e.resolvedTypeReferenceDirectiveNames.set(t,r)},S.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},S.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&(e=e.packageId,t=t.packageId,e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version)},S.packageIdToString=function(e){var t=e.name,r=e.subModuleName;return(r?t+"/"+r:t)+"@"+e.version},S.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary},S.hasChangesInResolutions=function(e,t,r,n){S.Debug.assert(e.length===t.length);for(var i=0;i<e.length;i++){var a=t[i],o=r&&r.get(e[i]);if(o?!a||!n(o,a):a)return!0}return!1},S.containsParseError=u,S.getSourceFileOfNode=l,S.isStatementWithLocals=function(e){switch(e.kind){case 223:case 251:case 230:case 231:case 232: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 t.fileName+"("+(e.line+1)+","+(e.character+1)+")"},S.getEndLinePosition=_,S.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},S.nodeIsMissing=d,S.nodeIsPresent=p,S.insertStatementsAfterStandardPrologue=function(e,t){return f(e,t,V)},S.insertStatementsAfterCustomPrologue=function(e,t){return f(e,t,m)},S.insertStatementAfterStandardPrologue=function(e,t){return g(e,t,V)},S.insertStatementAfterCustomPrologue=function(e,t){return g(e,t,m)},S.isRecognizedTripleSlashComment=function(e,t,r){if(47===e.charCodeAt(t+1)&&t+2<r&&47===e.charCodeAt(t+2)){r=e.substring(t,r);return!!(r.match(S.fullTripleSlashReferencePathRegEx)||r.match(S.fullTripleSlashAMDReferencePathRegEx)||r.match(W)||r.match(H))}return!1},S.isPinnedComment=y,S.createCommentDirectivesMap=function(t,e){var r=S.createMapFromEntries(e.map(function(e){return[""+S.getLineAndCharacterOfPosition(t,e.range.end).line,e]})),n=S.createMap();return{getUnusedExpectations:function(){return S.arrayFrom(r.entries()).filter(function(e){var t=e[0];return 0===e[1].type&&!n.get(t)}).map(function(e){e[0];return e[1]})},markUsed:function(e){return!!r.has(""+e)&&(n.set(""+e,!0),!0)}}},S.getTokenPosOfNode=h,S.getNonDecoratorTokenPosOfNode=function(e,t){return d(e)||!e.decorators?h(e,t):S.skipTrivia((t||l(e)).text,e.decorators.end)},S.getSourceTextOfNodeFromSourceFile=v,S.getTextOfNodeFromSourceText=b,S.getTextOfNode=x,S.indexOfNode=function(e,t){return S.binarySearch(e,t,D,S.compareValues)},S.getEmitFlags=C,S.getLiteralText=function(e,t,r,n){if(!yt(e)&&e.parent&&!(S.isNumericLiteral(e)&&512&e.numericLiteralFlags||S.isBigIntLiteral(e)))return v(t,e);switch(e.kind){case 10:var i=n?Lt:r||16777216&C(e)?At:Pt;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"';case 14:case 15:case 16:case 17:var i=r||16777216&C(e)?At:Pt,a=e.rawText||i(e.text,96).replace(Dt,"\\${");switch(e.kind){case 14:return"`"+a+"`";case 15:return"`"+a+"${";case 16:return"}"+a+"${";case 17:return"}"+a+"`"}break;case 8:case 9:case 13:return e.text}return S.Debug.fail("Literal kind '"+e.kind+"' not accounted for.")},S.getTextOfConstantValue=function(e){return S.isString(e)?'"'+Pt(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=k,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=E,S.isShorthandAmbientModuleSymbol=function(e){return(e=e.valueDeclaration)&&249===e.kind&&!e.body},S.isBlockScopedContainerTopLevel=function(e){return 290===e.kind||249===e.kind||S.isFunctionLike(e)},S.isGlobalScopeAugmentation=N,S.isExternalModuleAugmentation=A,S.isModuleAugmentationExternal=F,S.getNonAugmentationDeclaration=function(e){return S.find(e.declarations,function(e){return!(A(e)||S.isModuleDeclaration(e)&&N(e))})},S.isEffectiveExternalModule=function(e,t){return S.isExternalModule(e)||t.isolatedModules||Gr(t)===S.ModuleKind.CommonJS&&!!e.commonJsModuleIndicator},S.isEffectiveStrictModeSourceFile=function(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!e.isDeclarationFile&&(!!Xr(t,"alwaysStrict")||(!!S.startsWithUseStrict(e.statements)||!(!S.isExternalModule(e)&&!t.isolatedModules)&&(Gr(t)>=S.ModuleKind.ES2015||!t.noImplicitUseStrict)))},S.isBlockScope=P,S.isDeclarationWithTypeParameters=function(e){switch(e.kind){case 315:case 322:case 305:return!0;default:return S.assertType(e),w(e)}},S.isDeclarationWithTypeParameterChildren=w,S.isAnyImportSyntax=I,S.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 254:case 253:case 225:case 245:case 244:case 249:case 247:case 246:case 248:return!0;default:return!1}},S.isAnyImportOrReExport=function(e){return I(e)||S.isExportDeclaration(e)},S.getEnclosingBlockScopeContainer=function(e){return a(e.parent,function(e){return P(e,e.parent)})},S.declarationNameToString=O,S.getNameFromIndexInfo=function(e){return e.declaration?O(e.declaration.parameters[0].name):void 0},S.isComputedNonLiteralName=function(e){return 154===e.kind&&!ot(e.expression)},S.getTextOfPropertyName=M,S.entityNameToString=function e(t){switch(t.kind){case 104:return"this";case 76:case 75:return 0===c(t)?S.idText(t):x(t);case 153:return e(t.left)+"."+e(t.right);case 194:return S.isIdentifier(t.name)||S.isPrivateIdentifier(t.name)?e(t.expression)+"."+e(t.name):S.Debug.assertNever(t.name);default:return S.Debug.assertNever(t)}},S.createDiagnosticForNode=function(e,t,r,n,i,a){return L(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 Ur(e,s,t.end-s,r,n,i,a,o)},S.createDiagnosticForNodeInSourceFile=L,S.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=l(e),e=B(n,e);return{file:n,start:e.start,length:e.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}},S.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=R,S.getErrorSpanForNode=B,S.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},S.isJsonSourceFile=j,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=J,S.isLet=function(e){return!!(1&S.getCombinedNodeFlags(e))},S.isSuperCall=function(e){return 196===e.kind&&102===e.expression.kind},S.isImportCall=z,S.isImportMeta=function(e){return S.isMetaProperty(e)&&96===e.keywordToken&&"meta"===e.name.escapedText},S.isLiteralImportTypeNode=U,S.isPrologueDirective=V,S.isCustomPrologue=K,S.isHoistedFunction=function(e){return K(e)&&S.isFunctionDeclaration(e)},S.isHoistedVariableStatement=function(e){return K(e)&&S.isVariableStatement(e)&&S.every(e.declarationList.declarations,q)},S.getLeadingCommentRangesOfNode=function(e,t){return 11!==e.kind?S.getLeadingCommentRanges(t.text,e.pos):void 0},S.getJSDocCommentRanges=function(e,t){return e=156===e.kind||155===e.kind||201===e.kind||202===e.kind||200===e.kind?S.concatenate(S.getTrailingCommentRanges(t,e.pos),S.getLeadingCommentRanges(t,e.pos)):S.getLeadingCommentRanges(t,e.pos),S.filter(e,function(e){return 42===t.charCodeAt(e.pos+1)&&42===t.charCodeAt(e.pos+2)&&47!==t.charCodeAt(e.pos+3)})},S.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var W=/^(\/\/\/\s*<reference\s+types\s*=\s*)('|")(.+?)\2.*?\/>/;S.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var H=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)('|")(.+?)\2\s*\/>/;function G(e){if(168<=e.kind&&e.kind<=188)return!0;switch(e.kind){case 125:case 148:case 140:case 151:case 143:case 128:case 144:case 141:case 146:case 137:return!0;case 110:return 205!==e.parent.kind;case 216:return!fr(e);case 155:return 186===e.parent.kind||181===e.parent.kind;case 75:(153===e.parent.kind&&e.parent.right===e||194===e.parent.kind&&e.parent.name===e)&&(e=e.parent),S.Debug.assert(75===e.kind||153===e.kind||194===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 153:case 194:case 104:var t=e.parent;if(172===t.kind)return!1;if(188===t.kind)return!t.isTypeOf;if(168<=t.kind&&t.kind<=188)return!0;switch(t.kind){case 216:return!fr(t);case 155:case 321:return e===t.constraint;case 159:case 158:case 156:case 242:return e===t.type;case 244:case 201:case 202:case 162:case 161:case 160:case 163:case 164:return e===t.type;case 165:case 166:case 167:case 199:return e===t.type;case 196:case 197:return S.contains(t.typeArguments,e);case 198:return!1}}return!1}function Q(e){if(e)switch(e.kind){case 191:case 284:case 156:case 281:case 159:case 158:case 282:case 242:return!0}return!1}function X(e){return 243===e.parent.kind&&225===e.parent.parent.kind}function Y(e,t,r){return e.properties.filter(function(e){if(281!==e.kind)return!1;e=M(e.name);return t===e||!!r&&r===e})}function Z(e){if(e&&e.statements.length){e=e.statements[0].expression;return S.tryCast(e,S.isObjectLiteralExpression)}}function $(e,t){e=Z(e);return e?Y(e,t):S.emptyArray}function ee(e,t){for(S.Debug.assert(290!==e.kind);;){if(!(e=e.parent))return S.Debug.fail();switch(e.kind){case 154:if(S.isClassLike(e.parent.parent))return e;e=e.parent;break;case 157:156===e.parent.kind&&S.isClassElement(e.parent.parent)?e=e.parent.parent:S.isClassElement(e.parent)&&(e=e.parent);break;case 202:if(!t)continue;case 244:case 201:case 249:case 159:case 158:case 161:case 160:case 162:case 163:case 164:case 165:case 166:case 167:case 248:case 290:return e}}}function te(e){var t=e.kind;return(194===t||195===t)&&102===e.expression.kind}function re(e,t,r){if(S.isNamedDeclaration(e)&&S.isPrivateIdentifier(e.name))return!1;switch(e.kind){case 245:return!0;case 159:return 245===t.kind;case 163:case 164:case 161:return void 0!==e.body&&245===t.kind;case 156:return void 0!==t.body&&(162===t.kind||161===t.kind||164===t.kind)&&245===r.kind}return!1}function ne(e,t,r){return void 0!==e.decorators&&re(e,t,r)}function ie(e,t,r){return ne(e,t,r)||ae(e,t)}function ae(t,r){switch(t.kind){case 245:return S.some(t.members,function(e){return ie(e,t,r)});case 161:case 164:return S.some(t.parameters,function(e){return ne(e,t,r)});default:return!1}}function oe(e){var t=e.parent;return(268===t.kind||267===t.kind||269===t.kind)&&t.tagName===e}function se(e){switch(e.kind){case 102:case 100:case 106:case 91:case 13:case 192:case 193:case 194:case 195:case 196:case 197:case 198:case 217:case 199:case 218:case 200:case 201:case 214:case 202:case 205:case 203:case 204:case 207:case 208:case 209:case 210:case 213:case 211:case 215:case 266:case 267:case 270:case 212:case 206:case 219:return!0;case 153:for(;153===e.parent.kind;)e=e.parent;return 172===e.parent.kind||oe(e);case 75:if(172===e.parent.kind||oe(e))return!0;case 8:case 9:case 10:case 14:case 104:return ce(e);default:return!1}}function ce(e){var t=e.parent;switch(t.kind){case 242:case 156:case 159:case 158:case 284:case 281:case 191:return t.initializer===e;case 226:case 227:case 228:case 229:case 235:case 236:case 237:case 277:case 239:return t.expression===e;case 230:return t.initializer===e&&243!==t.initializer.kind||t.condition===e||t.incrementor===e;case 231:case 232:return t.initializer===e&&243!==t.initializer.kind||t.expression===e;case 199:case 217:case 221:case 154:return e===t.expression;case 157:case 276:case 275:case 283:return!0;case 216:return t.expression===e&&fr(t);case 282:return t.objectAssignmentInitializer===e;default:return se(t)}}function ue(e){for(;153===e.kind||75===e.kind;)e=e.parent;return 172===e.kind}function le(e){return 253===e.kind&&265===e.moduleReference.kind}function _e(e){return de(e)}function de(e){return!!e&&!!(131072&e.flags)}function pe(e,t){if(196!==e.kind)return!1;var r=e.expression,e=e.arguments;if(75!==r.kind||"require"!==r.escapedText)return!1;if(1!==e.length)return!1;e=e[0];return!t||S.isStringLiteralLike(e)}function fe(e,t){return S.isVariableDeclaration(e)&&!!e.initializer&&pe(e.initializer,t)}function ge(e){return S.isBinaryExpression(e)||Ir(e)||S.isIdentifier(e)||S.isCallExpression(e)}function me(e){return de(e)&&e.initializer&&S.isBinaryExpression(e.initializer)&&(56===e.initializer.operatorToken.kind||60===e.initializer.operatorToken.kind)&&e.name&&gr(e.name)&&he(e.name,e.initializer.left)?e.initializer.right:e.initializer}function ye(e,t){if(S.isCallExpression(e)){var r=Ge(e.expression);return 201===r.kind||202===r.kind?e:void 0}return 201===e.kind||214===e.kind||202===e.kind||S.isObjectLiteralExpression(e)&&(0===e.properties.length||t)?e:void 0}function he(e,t){if(dt(e)&&dt(t))return pt(e)===pt(e);if(S.isIdentifier(e)&&Te(t)&&(104===t.expression.kind||S.isIdentifier(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))){var r=Fe(t);return S.isPrivateIdentifier(r)&&S.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),he(e,r)}return!(!Te(e)||!Te(t))&&(we(e)===we(t)&&he(e.expression,t.expression))}function ve(e){for(;pr(e,!0);)e=e.right;return e}function be(e){return S.isIdentifier(e)&&"exports"===e.escapedText}function xe(e){return S.isIdentifier(e)&&"module"===e.escapedText}function De(e){return(S.isPropertyAccessExpression(e)||ke(e))&&xe(e.expression)&&"exports"===we(e)}function Se(e){var t=function(e){if(S.isCallExpression(e)){if(!Ce(e))return 0;var t=e.arguments[0];return be(t)||De(t)?8:Ee(t)&&"prototype"===we(t)?9:7}if(62!==e.operatorToken.kind||!Ir(e.left))return 0;if(Ae(e.left.expression,!0)&&"prototype"===we(e.left)&&S.isObjectLiteralExpression(Oe(e)))return 6;return Ie(e.left)}(e);return 5===t||de(e)?t:0}function Ce(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)&&ot(e.arguments[1])&&Ae(e.arguments[0],!0)}function Te(e){return S.isPropertyAccessExpression(e)||ke(e)}function ke(e){return S.isElementAccessExpression(e)&&(ot(e.argumentExpression)||lt(e.argumentExpression))}function Ee(e,t){return S.isPropertyAccessExpression(e)&&(!t&&104===e.expression.kind||S.isIdentifier(e.name)&&Ae(e.expression,!0))||Ne(e,t)}function Ne(e,t){return ke(e)&&(!t&&104===e.expression.kind||gr(e.expression)||Ee(e.expression,!0))}function Ae(e,t){return gr(e)||Ee(e,t)}function Fe(e){return S.isPropertyAccessExpression(e)?e.name:e.argumentExpression}function Pe(e){if(S.isPropertyAccessExpression(e))return e.name;var t=Ge(e.argumentExpression);return S.isNumericLiteral(t)||S.isStringLiteralLike(t)?t:e}function we(e){var t=Pe(e);if(t){if(S.isIdentifier(t))return t.escapedText;if(S.isStringLiteralLike(t)||S.isNumericLiteral(t))return S.escapeLeadingUnderscores(t.text)}if(S.isElementAccessExpression(e)&&lt(e.argumentExpression))return ft(S.idText(e.argumentExpression.name))}function Ie(e){if(104===e.expression.kind)return 4;if(De(e))return 2;if(Ae(e.expression,!0)){if(yr(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"===we(t))&&Ee(e))return 1;if(Ae(e,!0)||S.isElementAccessExpression(e)&&ut(e))return 5}return 0}function Oe(e){for(;S.isBinaryExpression(e.right);)e=e.right;return e.right}function Me(e){switch(e.parent.kind){case 254:case 260:return e.parent;case 265:return e.parent.parent;case 196:return z(e.parent)||pe(e.parent,!1)?e.parent:void 0;case 187:return S.Debug.assert(S.isStringLiteral(e)),S.tryCast(e.parent.parent,S.isImportTypeNode);default:return}}function Le(e){return 322===e.kind||315===e.kind||316===e.kind}function Re(e){return S.isExpressionStatement(e)&&S.isBinaryExpression(e.expression)&&0!==Se(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 Be(e){switch(e.kind){case 225:var t=je(e);return t&&t.initializer;case 159:case 281:return e.initializer}}function je(e){return S.isVariableStatement(e)?S.firstOrUndefined(e.declarationList.declarations):void 0}function Je(e){return S.isModuleDeclaration(e)&&e.body&&249===e.body.kind?e.body:void 0}function ze(e){e=Ue(e);return e&&S.isFunctionLike(e)?e:void 0}function Ue(e){var t=Ve(e);return Re(t)||(e=t,S.isExpressionStatement(e)&&S.isBinaryExpression(e.expression)&&62===e.expression.operatorToken.kind?ve(e.expression):void 0)||Be(t)||je(t)||Je(t)||t}function Ve(e){return S.Debug.checkDefined(a(e.parent,S.isJSDoc)).parent}function Ke(e){var t=S.isJSDocParameterTag(e)?e.typeExpression&&e.typeExpression.type:e.type;return void 0!==e.dotDotDotToken||!!t&&301===t.kind}function qe(e){for(var t=e.parent;;){switch(t.kind){case 209:var r=t.operatorToken.kind;return lr(r)&&t.left===e?62===r?1:2:0;case 207:case 208:r=t.operator;return 45===r||46===r?2:0;case 231:case 232:return t.initializer===e?1:0;case 200:case 192:case 213:case 218:e=t;break;case 282:if(t.name!==e)return 0;e=t.parent;break;case 281:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function We(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function He(e){return We(e,200)}function Ge(e){return S.skipOuterExpressions(e,1)}function Qe(e){return gr(e)||S.isClassExpression(e)}function Xe(e){return Qe(Ye(e))}function Ye(e){return S.isExportAssignment(e)?e.expression:e.right}function Ze(e){var t=$e(e);if(t&&de(e)){e=S.getJSDocAugmentsTag(e);if(e)return e.class}return t}function $e(e){e=rt(e.heritageClauses,90);return e&&0<e.types.length?e.types[0]:void 0}function et(e){if(de(e))return S.getJSDocImplementsTags(e).map(function(e){return e.class});e=rt(e.heritageClauses,113);return null==e?void 0:e.types}function tt(e){e=rt(e.heritageClauses,90);return e?e.types:void 0}function rt(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 nt(e){return 77<=e&&e<=152}function it(e){return 122<=e&&e<=152}function at(e){return nt(e)&&!it(e)}function ot(e){return S.isStringLiteralLike(e)||S.isNumericLiteral(e)}function st(e){return S.isPrefixUnaryExpression(e)&&(39===e.operator||40===e.operator)&&S.isNumericLiteral(e.operand)}function ct(e){e=S.getNameOfDeclaration(e);return!!e&&ut(e)}function ut(e){if(154!==e.kind&&195!==e.kind)return!1;e=S.isElementAccessExpression(e)?Ge(e.argumentExpression):e.expression;return!ot(e)&&!st(e)&&!lt(e)}function lt(e){return S.isPropertyAccessExpression(e)&&gt(e.expression)}function _t(e){switch(e.kind){case 75:case 76:return e.escapedText;case 10:case 8:return S.escapeLeadingUnderscores(e.text);case 154:var t=e.expression;return lt(t)?ft(S.idText(t.name)):ot(t)?S.escapeLeadingUnderscores(t.text):void 0;default:return S.Debug.assertNever(e)}}function dt(e){switch(e.kind){case 75:case 10:case 14:case 8:return!0;default:return!1}}function pt(e){return S.isIdentifierOrPrivateIdentifier(e)?S.idText(e):e.text}function ft(e){return"__@"+e}function gt(e){return 75===e.kind&&"Symbol"===e.escapedText}function mt(e){for(;191===e.kind;)e=e.parent.parent;return e}function yt(e){return kn(e.pos)||kn(e.end)}function ht(e,t,r){switch(e){case 197:return r?0:1;case 207:case 204:case 205:case 203:case 206:case 210:case 212:return 1;case 209:switch(t){case 42:case 62:case 63:case 64:case 66:case 65:case 67:case 68:case 69:case 70:case 71:case 72:case 74:case 73:return 1}}return 0}function vt(e){return 209===e.kind?e.operatorToken.kind:207===e.kind||208===e.kind?e.operator:e.kind}function bt(e,t,r){switch(e){case 327:return 0;case 213:return 1;case 212:return 2;case 210:return 4;case 209:switch(t){case 27:return 0;case 62:case 63:case 64:case 66:case 65:case 67:case 68:case 69:case 70:case 71:case 72:case 74:case 73:return 3;default:return xt(t)}case 207:case 204:case 205:case 203:case 206:return 16;case 208:return 17;case 196:return 18;case 197:return r?19:18;case 198:case 194:case 195:return 19;case 104:case 102:case 75:case 100:case 106:case 91:case 8:case 9:case 10:case 192:case 193:case 201:case 202:case 214:case 266:case 267:case 270:case 13:case 14:case 211:case 200:case 215:return 20;default:return-1}}function xt(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 98:case 97:case 123: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=G,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 235:return r(t);case 251:case 223:case 227:case 228:case 229:case 230:case 231:case 232:case 236:case 237:case 277:case 278:case 238:case 240:case 280:return S.forEachChild(t,e)}}(e)},S.forEachYieldExpression=function(e,n){return function e(t){switch(t.kind){case 212:n(t);var r=t.expression;return void(r&&e(r));case 248:case 246:case 249:case 247:return;default:if(S.isFunctionLike(t)){if(t.name&&154===t.name.kind)return void e(t.name.expression)}else G(t)||S.forEachChild(t,e)}}(e)},S.getRestParameterElementType=function(e){return e&&174===e.kind?e.elementType:e&&169===e.kind?S.singleOrUndefined(e.typeArguments):void 0},S.getMembersOfDeclaration=function(e){switch(e.kind){case 246:case 245:case 214:case 173:return e.members;case 193:return e.properties}},S.isVariableLike=Q,S.isVariableLikeOrAccessor=function(e){return Q(e)||S.isAccessor(e)},S.isVariableDeclarationInVariableStatement=X,S.isValidESSymbolDeclaration=function(e){return S.isVariableDeclaration(e)?J(e)&&S.isIdentifier(e.name)&&X(e):S.isPropertyDeclaration(e)?ar(e)&&ir(e):S.isPropertySignature(e)&&ar(e)},S.introducesArgumentsExoticObject=function(e){switch(e.kind){case 161:case 160:case 162:case 163:case 164:case 244:case 201:return!0}return!1},S.unwrapInnermostStatementOfLabel=function(e,t){for(;;){if(t&&t(e),238!==e.statement.kind)return e.statement;e=e.statement}},S.isFunctionBlock=function(e){return e&&223===e.kind&&S.isFunctionLike(e.parent)},S.isObjectLiteralMethod=function(e){return e&&161===e.kind&&193===e.parent.kind},S.isObjectLiteralOrClassExpressionMethod=function(e){return 161===e.kind&&(193===e.parent.kind||214===e.parent.kind)},S.isIdentifierTypePredicate=function(e){return e&&1===e.kind},S.isThisTypePredicate=function(e){return e&&0===e.kind},S.getPropertyAssignment=Y,S.getTsConfigObjectLiteralExpression=Z,S.getTsConfigPropArrayElementValue=function(e,t,r){return S.firstDefined($(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=$,S.getContainingFunction=function(e){return a(e.parent,S.isFunctionLike)},S.getContainingFunctionDeclaration=function(e){return a(e.parent,S.isFunctionLikeDeclaration)},S.getContainingClass=function(e){return a(e.parent,S.isClassLike)},S.getThisContainer=ee,S.getNewTargetContainer=function(e){var t=ee(e,!1);if(t)switch(t.kind){case 162:case 244:case 201:return t}},S.getSuperContainer=function(e,t){for(;;){if(!(e=e.parent))return e;switch(e.kind){case 154:e=e.parent;break;case 244:case 201:case 202:if(!t)continue;case 159:case 158:case 161:case 160:case 162:case 163:case 164:return e;case 157:156===e.parent.kind&&S.isClassElement(e.parent.parent)?e=e.parent.parent:S.isClassElement(e.parent)&&(e=e.parent)}}},S.getImmediatelyInvokedFunctionExpression=function(e){if(201===e.kind||202===e.kind){for(var t=e,r=e.parent;200===r.kind;)r=(t=r).parent;if(196===r.kind&&r.expression===t)return r}},S.isSuperOrSuperProperty=function(e){return 102===e.kind||te(e)},S.isSuperProperty=te,S.isThisProperty=function(e){var t=e.kind;return(194===t||195===t)&&104===e.expression.kind},S.getEntityNameFromTypeNode=function(e){switch(e.kind){case 169:return e.typeName;case 216:return gr(e.expression)?e.expression:void 0;case 75:case 153:return e}},S.getInvokedExpression=function(e){switch(e.kind){case 198:return e.tag;case 268:case 267:return e.tagName;default:return e.expression}},S.nodeCanBeDecorated=re,S.nodeIsDecorated=ne,S.nodeOrChildIsDecorated=ie,S.childIsDecorated=ae,S.isJSXTagName=oe,S.isExpressionNode=se,S.isInExpressionContext=ce,S.isPartOfTypeQuery=ue,S.isExternalModuleImportEqualsDeclaration=le,S.getExternalModuleImportEqualsDeclarationExpression=function(e){return S.Debug.assert(le(e)),e.moduleReference.expression},S.isInternalModuleImportEqualsDeclaration=function(e){return 253===e.kind&&265!==e.moduleReference.kind},S.isSourceFileJS=_e,S.isSourceFileNotJS=function(e){return!de(e)},S.isInJSFile=de,S.isInJsonFile=function(e){return!!e&&!!(33554432&e.flags)},S.isSourceFileNotJson=function(e){return!j(e)},S.isInJSDoc=function(e){return!!e&&!!(4194304&e.flags)},S.isJSDocIndexSignature=function(e){return S.isTypeReferenceNode(e)&&S.isIdentifier(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(143===e.typeArguments[0].kind||140===e.typeArguments[0].kind)},S.isRequireCall=pe,S.isRequireVariableDeclaration=fe,S.isRequireVariableDeclarationStatement=function(e,t){return void 0===t&&(t=!0),S.isVariableStatement(e)&&S.every(e.declarationList.declarations,function(e){return fe(e,t)})},S.isSingleOrDoubleQuote=function(e){return 39===e||34===e},S.isStringDoubleQuoted=function(e,t){return 34===v(t,e).charCodeAt(0)},S.getDeclarationOfExpando=function(e){if(e.parent){var t,r;if(S.isVariableDeclaration(e.parent)&&e.parent.initializer===e){if(!de(e)&&!J(e.parent))return;t=e.parent.name,r=e.parent}else if(S.isBinaryExpression(e.parent)){var n=e.parent,i=e.parent.operatorToken.kind;if(62===i&&n.right===e)r=t=n.left;else if(!(56!==i&&60!==i||(S.isVariableDeclaration(n.parent)&&n.parent.initializer===n?(t=n.parent.name,r=n.parent):S.isBinaryExpression(n.parent)&&62===n.parent.operatorToken.kind&&n.parent.right===n&&(r=t=n.parent.left),t&&Ae(t)&&he(t,n.left))))return}if(t&&ye(e,yr(t)))return r}},S.isAssignmentDeclaration=ge,S.getEffectiveInitializer=me,S.getDeclaredExpandoInitializer=function(e){var t=me(e);return t&&ye(t,yr(e.name))},S.getAssignedExpandoInitializer=function(e){if(e&&e.parent&&S.isBinaryExpression(e.parent)&&62===e.parent.operatorToken.kind){var t=yr(e.parent.left);return ye(e.parent.right,t)||function(e,t,r){r=S.isBinaryExpression(t)&&(56===t.operatorToken.kind||60===t.operatorToken.kind)&&ye(t.right,r);if(r&&he(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&S.isCallExpression(e)&&Ce(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&&ye(e.initializer,r)}));if(t)return t}var r},S.getExpandoInitializer=ye,S.isDefaultedExpandoInitializer=function(e){var t=S.isVariableDeclaration(e.parent)?e.parent.name:S.isBinaryExpression(e.parent)&&62===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&ye(e.right,yr(t))&&gr(t)&&he(t,e.left)},S.getNameOfExpando=function(e){if(S.isBinaryExpression(e.parent)){var t=(56!==e.parent.operatorToken.kind&&60!==e.parent.operatorToken.kind||!S.isBinaryExpression(e.parent.parent)?e:e.parent).parent;if(62===t.operatorToken.kind&&S.isIdentifier(t.left))return t.left}else if(S.isVariableDeclaration(e.parent))return e.parent.name},S.getRightMostAssignedExpression=ve,S.isExportsIdentifier=be,S.isModuleIdentifier=xe,S.isModuleExportsAccessExpression=De,S.getAssignmentDeclarationKind=Se,S.isBindableObjectDefinePropertyCall=Ce,S.isLiteralLikeAccess=Te,S.isLiteralLikeElementAccess=ke,S.isBindableStaticAccessExpression=Ee,S.isBindableStaticElementAccessExpression=Ne,S.isBindableStaticNameExpression=Ae,S.getNameOrArgument=Fe,S.getElementOrPropertyAccessArgumentExpressionOrName=Pe,S.getElementOrPropertyAccessName=we,S.getAssignmentDeclarationPropertyAccessKind=Ie,S.getInitializerOfBinaryExpression=Oe,S.isPrototypePropertyAssignment=function(e){return S.isBinaryExpression(e)&&3===Se(e)},S.isSpecialPropertyDeclaration=function(e){return de(e)&&e.parent&&226===e.parent.kind&&(!S.isElementAccessExpression(e)||ke(e))&&!!S.getJSDocTypeTag(e.parent)},S.setValueDeclaration=function(e,t){var r=e.valueDeclaration;(!r||(!(8388608&t.flags)||8388608&r.flags)&&ge(r)&&!ge(t)||r.kind!==t.kind&&E(r))&&(e.valueDeclaration=t)},S.isFunctionSymbol=function(e){return!(!e||!e.valueDeclaration)&&(244===(e=e.valueDeclaration).kind||S.isVariableDeclaration(e)&&e.initializer&&S.isFunctionLike(e.initializer))},S.importFromModuleSpecifier=function(e){return Me(e)||S.Debug.failBadSyntaxKind(e.parent)},S.tryGetImportFromModuleSpecifier=Me,S.getExternalModuleName=function(e){switch(e.kind){case 254:case 260:return e.moduleSpecifier;case 253:return 265===e.moduleReference.kind?e.moduleReference.expression:void 0;case 188:return U(e)?e.argument.literal:void 0;default:return S.Debug.assertNever(e)}},S.getNamespaceDeclarationNode=function(e){switch(e.kind){case 254:return e.importClause&&S.tryCast(e.importClause.namedBindings,S.isNamespaceImport);case 253:return e;case 260:return e.exportClause&&S.tryCast(e.exportClause,S.isNamespaceExport);default:return S.Debug.assertNever(e)}},S.isDefaultImport=function(e){return 254===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 156:case 161:case 160:case 282:case 281:case 159:case 158: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=Le,S.isTypeAlias=function(e){return Le(e)||S.isTypeAliasDeclaration(e)},S.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Be,S.getJSDocCommentsAndTags=function(e){var t;Q(e)&&S.hasInitializer(e)&&S.hasJSDocNodes(e.initializer)&&(t=S.append(t,S.last(e.initializer.jsDoc)));for(var r,n,i=e;i&&i.parent;){if(S.hasJSDocNodes(i)&&(t=S.append(t,S.last(i.jsDoc))),156===i.kind){t=S.addRange(t,S.getJSDocParameterTags(i));break}if(155===i.kind){t=S.addRange(t,S.getJSDocTypeParameterTags(i));break}n=void 0,i=281===(n=(r=i).parent).kind||259===n.kind||159===n.kind||226===n.kind&&194===r.kind||Je(n)||S.isBinaryExpression(r)&&62===r.operatorToken.kind?n:n.parent&&(je(n.parent)===r||S.isBinaryExpression(n)&&62===n.operatorToken.kind)?n.parent:n.parent&&n.parent.parent&&(je(n.parent.parent)||Be(n.parent.parent)===r||Re(n.parent.parent))?n.parent.parent:void 0}return t||S.emptyArray},S.getParameterSymbolFromJSDoc=function(e){if(e.symbol)return e.symbol;if(S.isIdentifier(e.name)){var t=e.name.escapedText,e=ze(e);if(e){e=S.find(e.parameters,function(e){return 75===e.name.kind&&e.name.escapedText===t});return e&&e.symbol}}},S.getHostSignatureFromJSDoc=ze,S.getEffectiveJSDocHost=Ue,S.getJSDocHost=Ve,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))&&Ke(e)},S.isRestParameter=Ke,S.hasTypeArguments=function(e){return!!e.typeArguments},(An=S.AssignmentKind||(S.AssignmentKind={}))[An.None=0]="None",An[An.Definite=1]="Definite",An[An.Compound=2]="Compound",S.getAssignmentTargetKind=qe,S.isAssignmentTarget=function(e){return 0!==qe(e)},S.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 223:case 225:case 236:case 227:case 237:case 251:case 277:case 278:case 238:case 230:case 231:case 232:case 228:case 229:case 240:case 280: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 We(e,182)},S.walkUpParenthesizedExpressions=He,S.skipParentheses=Ge,S.isDeleteTarget=function(e){return(194===e.kind||195===e.kind)&&((e=He(e.parent))&&203===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 75: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!==Se(r)&&(r.left.symbol||r.symbol)&&S.getNameOfDeclaration(r)===e?r:void 0;case 76:return S.isDeclaration(t)&&t.name===e?t:void 0;default:return}},S.isLiteralComputedPropertyDeclarationName=function(e){return ot(e)&&154===e.parent.kind&&S.isDeclaration(e.parent.parent)},S.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 159:case 158:case 161:case 160:case 163:case 164:case 284:case 281:case 194:return t.name===e;case 153:if(t.right!==e)return!1;for(;153===t.kind;)t=t.parent;return 172===t.kind||169===t.kind;case 191:case 258:return t.propertyName===e;case 263:case 273:return!0}return!1},S.isAliasSymbolDeclaration=function(e){return 253===e.kind||252===e.kind||255===e.kind&&!!e.name||256===e.kind||262===e.kind||258===e.kind||263===e.kind||259===e.kind&&Xe(e)||S.isBinaryExpression(e)&&2===Se(e)&&Xe(e)||S.isPropertyAccessExpression(e)&&S.isBinaryExpression(e.parent)&&e.parent.left===e&&62===e.parent.operatorToken.kind&&Qe(e.parent.right)||282===e.kind||281===e.kind&&Qe(e.initializer)},S.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 255:case 258:case 256:case 263:case 259:case 253:return t.parent;case 153:for(;t=t.parent,153===t.parent.kind;);return e(t)}},S.isAliasableExpression=Qe,S.exportAssignmentIsAlias=Xe,S.getExportAssignmentExpression=Ye,S.getPropertyAssignmentAliasLikeExpression=function(e){return 282===e.kind?e.name:281===e.kind?e.initializer:e.parent.right},S.getEffectiveBaseTypeNode=Ze,S.getClassExtendsHeritageElement=$e,S.getEffectiveImplementsTypeNodes=et,S.getAllSuperTypeNodes=function(e){return S.isInterfaceDeclaration(e)?tt(e)||S.emptyArray:S.isClassLike(e)&&S.concatenate(S.singleElementArray(Ze(e)),et(e))||S.emptyArray},S.getInterfaceBaseTypeNodes=tt,S.getHeritageClause=rt,S.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},S.isKeyword=nt,S.isContextualKeyword=it,S.isNonContextualKeyword=at,S.isFutureReservedKeyword=function(e){return 113<=e&&e<=121},S.isStringANonContextualKeyword=function(e){return void 0!==(e=S.stringToToken(e))&&at(e)},S.isStringAKeyword=function(e){return void 0!==(e=S.stringToToken(e))&&nt(e)},S.isIdentifierANonContextualKeyword=function(e){return!!(e=e.originalKeywordKind)&&!it(e)},S.isTrivia=function(e){return 2<=e&&e<=7},(An=S.FunctionFlags||(S.FunctionFlags={}))[An.Normal=0]="Normal",An[An.Generator=1]="Generator",An[An.Async=2]="Async",An[An.Invalid=4]="Invalid",An[An.AsyncGenerator=3]="AsyncGenerator",S.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 244:case 201:case 161:e.asteriskToken&&(t|=1);case 202:nr(e,256)&&(t|=2)}return e.body||(t|=4),t},S.isAsyncFunction=function(e){switch(e.kind){case 244:case 201:case 202:case 161:return void 0!==e.body&&void 0===e.asteriskToken&&nr(e,256)}return!1},S.isStringOrNumericLiteralLike=ot,S.isSignedNumericLiteral=st,S.hasDynamicName=ct,S.isDynamicName=ut,S.isWellKnownSymbolSyntactically=lt,S.getPropertyNameForPropertyNameNode=_t,S.isPropertyNameLiteral=dt,S.getTextOfIdentifierOrLiteral=pt,S.getEscapedTextOfIdentifierOrLiteral=function(e){return S.isIdentifierOrPrivateIdentifier(e)?e.escapedText:S.escapeLeadingUnderscores(e.text)},S.getPropertyNameForUniqueESSymbol=function(e){return"__@"+S.getSymbolId(e)+"@"+e.escapedName},S.getPropertyNameForKnownSymbolName=ft,S.getSymbolNameForPrivateIdentifier=function(e,t){return"__#"+S.getSymbolId(e)+"@"+t},S.isKnownSymbol=function(e){return S.startsWith(e.escapedName,"__@")},S.isESSymbolIdentifier=gt,S.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},S.isParameterDeclaration=function(e){return 156===mt(e).kind},S.getRootDeclaration=mt,S.nodeStartsNewLexicalEnvironment=function(e){return 162===(e=e.kind)||201===e||244===e||202===e||161===e||163===e||164===e||249===e||290===e},S.nodeIsSynthesized=yt,S.getOriginalSourceFile=function(e){return S.getParseTreeNode(e,S.isSourceFile)||e},(An=S.Associativity||(S.Associativity={}))[An.Left=0]="Left",An[An.Right=1]="Right",S.getExpressionAssociativity=function(e){var t=vt(e),r=197===e.kind&&void 0!==e.arguments;return ht(e.kind,t,r)},S.getOperatorAssociativity=ht,S.getExpressionPrecedence=function(e){var t=vt(e),r=197===e.kind&&void 0!==e.arguments;return bt(e.kind,t,r)},S.getOperator=vt,S.getOperatorPrecedence=bt,S.getBinaryOperatorPrecedence=xt,S.createDiagnosticCollection=function(){var r=[],n=[],i=S.createMap(),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,qr)},lookup:function(e){var t;t=e.file?i.get(e.file.fileName):r;if(!t)return;e=S.binarySearch(t,e,S.identity,Wr);if(0<=e)return t[e];return},getGlobalDiagnostics:function(){return a=!0,r},getDiagnostics:function(e){if(e)return i.get(e)||[];e=S.flatMapToMutable(n,function(e){return i.get(e)});return r.length&&e.unshift.apply(e,r),e},reattachFileDiagnostics:function(t){S.forEach(i.get(t.fileName),function(e){return e.file=t})}}};var Dt=/\$\{/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 St=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ct=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Tt=/[\\`]/g,kt=S.createMapFromTemplate({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","Â…":"\\u0085"});function Et(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Nt(e,t,r){if(0!==e.charCodeAt(0))return kt.get(e)||Et(e.charCodeAt(0));e=r.charCodeAt(t+e.length);return 48<=e&&e<=57?"\\x00":"\\0"}function At(e,t){t=96===t?Tt:39===t?Ct:St;return e.replace(t,Nt)}S.escapeString=At;var Ft=/[^\u0000-\u007F]/g;function Pt(e,t){return e=At(e,t),Ft.test(e)?e.replace(Ft,function(e){return Et(e.charCodeAt(0))}):e}S.escapeNonAsciiString=Pt;var wt=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,It=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Ot=S.createMapFromTemplate({'"':"&quot;","'":"&apos;"});function Mt(e){return 0===e.charCodeAt(0)?"&#0;":Ot.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Lt(e,t){t=39===t?It:wt;return e.replace(t,Mt)}S.escapeJsxAttributeString=Lt,S.stripQuotes=function(e){var t,r=e.length;return 2<=r&&e.charCodeAt(0)===e.charCodeAt(r-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,r-1):e},S.isIntrinsicJsxName=function(e){var t=e.charCodeAt(0);return 97<=t&&t<=122||S.stringContains(e,"-")};var Rt=["","    "];function Bt(e){return void 0===Rt[e]&&(Rt[e]=Bt(e-1)+Rt[1]),Rt[e]}function jt(){return Rt[1].length}function Jt(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function zt(e,t,r){return t.moduleName||Ut(e,t.fileName,r&&r.fileName)}function Ut(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=Dn(S.getRelativePathToDirectoryOrUrl(i,e,i,n,!1));return r?S.ensurePathIsNonModuleName(n):n}function Vt(e,t,r,n,i){t=t.declarationDir||t.outDir;return Dn(t?Wt(e,t,r,n,i):e)+".d.ts"}function Kt(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&_e(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&!(j(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&(r||!t.isSourceOfProjectReferenceRedirect(e.fileName))}function qt(e,t,r){return Wt(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})}function Wt(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 Ht(e,t){return S.computeLineOfPosition(e,t)}function Gt(e){if(e&&0<e.parameters.length){var t=2===e.parameters.length&&Qt(e.parameters[0]);return e.parameters[t?1:0]}}function Qt(e){return Xt(e.name)}function Xt(e){return!!e&&75===e.kind&&Yt(e)}function Yt(e){return 104===e.originalKeywordKind}function Zt(e){if(de(e)||!S.isFunctionDeclaration(e)){var t=e.type;return t||!de(e)?t:S.isJSDocPropertyLikeTag(e)?e.typeExpression&&e.typeExpression.type:S.getJSDocType(e)}}function $t(e,t,r,n){er(e,t,r.pos,n)}function er(e,t,r,n){n&&n.length&&r!==n[0].pos&&Ht(e,r)!==Ht(e,n[0].pos)&&t.writeLine()}function tr(e,t,r,n,i,a,o,s){if(n&&0<n.length){i&&r.writeSpace(" ");for(var c=!1,u=0,l=n;u<l.length;u++){var _=l[u];c&&(r.writeSpace(" "),c=!1),s(e,t,r,_.pos,_.end,o),_.hasTrailingNewLine?r.writeLine():c=!0}c&&a&&r.writeSpace(" ")}}function rr(e,t,r){for(var n=0;t<r&&S.isWhiteSpaceSingleLine(e.charCodeAt(t));t++)9===e.charCodeAt(t)?n+=jt()-n%jt():n++;return n}function nr(e,t){return!!or(e,t)}function ir(e){return nr(e,32)}function ar(e){return nr(e,64)}function or(e,t){return sr(e)&t}function sr(e){if(0<=e.kind&&e.kind<=152)return 0;if(536870912&e.modifierFlagsCache)return-536870913&e.modifierFlagsCache;var t=cr(e);return e.modifierFlagsCache=536870912|t,t}function cr(e){var t=0;if(e.modifiers)for(var r=0,n=e.modifiers;r<n.length;r++)t|=ur(n[r].kind);return de(e)&&e.parent&&(t|=(S.getJSDocPublicTag(e)?4:0)|(S.getJSDocPrivateTag(e)?8:0)|(S.getJSDocProtectedTag(e)?16:0)|(S.getJSDocReadonlyTag(e)?64:0)),(4&e.flags||75===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function ur(e){switch(e){case 120:return 32;case 119:return 4;case 118:return 16;case 117:return 8;case 122:return 128;case 89:return 1;case 130:return 2;case 81:return 2048;case 84:return 512;case 126:return 256;case 138:return 64}return 0}function lr(e){return 62<=e&&e<=74}function _r(e){e=dr(e);return e&&!e.isImplements?e.class:void 0}function dr(e){return S.isExpressionWithTypeArguments(e)&&S.isHeritageClause(e.parent)&&S.isClassLike(e.parent.parent)?{class:e.parent.parent,isImplements:113===e.parent.token}:void 0}function pr(e,t){return S.isBinaryExpression(e)&&(t?62===e.operatorToken.kind:lr(e.operatorToken.kind))&&S.isLeftHandSideExpression(e.left)}function fr(e){return void 0!==_r(e)}function gr(e){return 75===e.kind||mr(e)}function mr(e){return S.isPropertyAccessExpression(e)&&S.isIdentifier(e.name)&&gr(e.expression)}function yr(e){return Ee(e)&&"prototype"===we(e)}S.getIndentString=Bt,S.getIndentSize=jt,S.createTextWriter=function(t){var r,n,i,a,o,s=!1;function c(e){var t=S.computeLineStarts(e);i=1<t.length&&(a=a+t.length-1,(o=r.length-e.length+S.last(t))-r.length==0)}function u(e){e&&e.length&&(i&&(e=Bt(n)+e,i=!1),r+=e,c(e))}function l(e){e&&(s=!1),u(e)}function e(){o=a=n=0,s=!(i=!(r=""))}return e(),{write:l,rawWrite:function(e){void 0!==e&&(r+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(e){i&&!e||(a++,o=(r+=t).length,s=!(i=!0))},increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return r.length},getLine:function(){return a},getColumn:function(){return i?n*jt():r.length-o},getText:function(){return r},isAtStartOfLine:function(){return i},hasTrailingComment:function(){return s},hasTrailingWhitespace:function(){return!!r.length&&S.isWhiteSpaceLike(r.charCodeAt(r.length-1))},clear:e,reportInaccessibleThisError:S.noop,reportPrivateInBaseOfClassExpression:S.noop,reportInaccessibleUniqueSymbolError:S.noop,trackSymbol:S.noop,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:function(e,t){return l(e)},writeTrailingSemicolon:l,writeComment:function(e){e&&(s=!0),u(e)},getTextPosWithWriteLine:function(){return i?r.length:r.length+t.length}}},S.getTrailingSemicolonDeferringWriter=function(r){var e=!1;function n(){e&&(r.writeTrailingSemicolon(";"),e=!1)}return __assign(__assign({},r),{writeTrailingSemicolon:function(){e=!0},writeLiteral:function(e){n(),r.writeLiteral(e)},writeStringLiteral:function(e){n(),r.writeStringLiteral(e)},writeSymbol:function(e,t){n(),r.writeSymbol(e,t)},writePunctuation:function(e){n(),r.writePunctuation(e)},writeKeyword:function(e){n(),r.writeKeyword(e)},writeOperator:function(e){n(),r.writeOperator(e)},writeParameter:function(e){n(),r.writeParameter(e)},writeSpace:function(e){n(),r.writeSpace(e)},writeProperty:function(e){n(),r.writeProperty(e)},writeComment:function(e){n(),r.writeComment(e)},writeLine:function(){n(),r.writeLine()},increaseIndent:function(){n(),r.increaseIndent()},decreaseIndent:function(){n(),r.decreaseIndent()}})},S.hostUsesCaseSensitiveFileNames=Jt,S.hostGetCanonicalFileName=function(e){return S.createGetCanonicalFileName(Jt(e))},S.getResolvedExternalModuleName=zt,S.getExternalModuleNameFromDeclaration=function(e,t,r){if((r=t.getExternalModuleFileFromDeclaration(r))&&!r.isDeclarationFile)return zt(e,r)},S.getExternalModuleNameFromPath=Ut,S.getOwnEmitOutputFilePath=function(e,t,r){var n=t.getCompilerOptions();return(e=n.outDir?Dn(qt(e,t,n.outDir)):Dn(e))+r},S.getDeclarationEmitOutputFilePath=function(e,t){return Vt(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})},S.getDeclarationEmitOutputFilePathWorker=Vt,S.getSourceFilesToEmit=function(t,e,r){var n=t.getCompilerOptions();if(n.outFile||n.out){var i=Gr(n),a=n.emitDeclarationOnly||i===S.ModuleKind.AMD||i===S.ModuleKind.System;return S.filter(t.getSourceFiles(),function(e){return(a||!S.isExternalModule(e))&&Kt(e,t,r)})}return e=void 0===e?t.getSourceFiles():[e],S.filter(e,function(e){return Kt(e,t,r)})},S.sourceFileMayBeEmitted=Kt,S.getSourceFilePathInNewDir=qt,S.getSourceFilePathInNewDirWorker=Wt,S.writeFile=function(e,t,r,n,i,a){e.writeFile(r,n,i,function(e){t.add(Vr(S.Diagnostics.Could_not_write_file_0_Colon_1,r,e))},a)},S.writeFileEnsuringDirectories=function(t,r,n,i,a,o){try{i(t,r,n)}catch(e){!function e(t,r,n){t.length>S.getRootLength(t)&&!n(t)&&(e(S.getDirectoryPath(t),r,n),r(t))}(S.getDirectoryPath(S.normalizePath(t)),a,o),i(t,r,n)}},S.getLineOfLocalPosition=function(e,t){return e=S.getLineStarts(e),S.computeLineOfPosition(e,t)},S.getLineOfLocalPositionFromLineMap=Ht,S.getFirstConstructorWithBody=function(e){return S.find(e.members,function(e){return S.isConstructorDeclaration(e)&&p(e.body)})},S.getSetAccessorValueParameter=Gt,S.getSetAccessorTypeAnnotationNode=function(e){return(e=Gt(e))&&e.type},S.getThisParameter=function(e){if(e.parameters.length&&!S.isJSDocSignature(e)){e=e.parameters[0];if(Qt(e))return e}},S.parameterIsThisKeyword=Qt,S.isThisIdentifier=Xt,S.identifierIsThisKeyword=Yt,S.getAllAccessorDeclarations=function(e,t){var r,n,i,a;return ct(t)?163===(r=t).kind?i=t:164===t.kind?a=t:S.Debug.fail("Accessor has wrong kind"):S.forEach(e,function(e){S.isAccessor(e)&&nr(e,32)===nr(t,32)&&_t(e.name)===_t(t.name)&&(r?n=n||e:r=e,163!==e.kind||i||(i=e),164!==e.kind||a||(a=e))}),{firstAccessor:r,secondAccessor:n,getAccessor:i,setAccessor:a}},S.getEffectiveTypeAnnotationNode=Zt,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||(de(e)?S.getJSDocReturnType(e):void 0)},S.getJSDocTypeParameterDeclarations=function(e){return S.flatMap(S.getJSDocTags(e),function(e){return t=e,!S.isJSDocTemplateTag(t)||303===t.parent.kind&&t.parent.tags.some(Le)?void 0:e.typeParameters;var t})},S.getEffectiveSetAccessorTypeAnnotationNode=function(e){return(e=Gt(e))&&Zt(e)},S.emitNewLineBeforeLeadingComments=$t,S.emitNewLineBeforeLeadingCommentsOfPosition=er,S.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&Ht(e,r)!==Ht(e,n)&&t.writeLine()},S.emitComments=tr,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 y(t,e.pos)})):s=S.getLeadingCommentRanges(t,i.pos),s){for(var u=[],l=void 0,_=0,d=s;_<d.length;_++){var p=d[_];if(l)if(Ht(e,l.end)+2<=Ht(e,p.pos))break;u.push(p),l=p}u.length&&Ht(e,S.last(u).end)+2<=Ht(e,S.skipTrivia(t,i.pos))&&($t(e,r,i,s),tr(t,e,r,u,!1,!0,a,n),c={nodePos:i.pos,detachedCommentEndPos:S.last(u).end})}return c},S.writeCommentRange=function(e,t,r,n,i,a){if(42===e.charCodeAt(n+1))for(var o=S.computeLineAndCharacterOfPosition(t,n),s=t.length,c=void 0,u=n,l=o.line;u<i;l++){var _=l+1===s?e.length+1:t[l+1];if(u!==n){void 0===c&&(c=rr(e,t[o.line],n));var d=r.getIndent()*jt()-c+rr(e,u,_);if(0<d){var p=d%jt(),f=Bt((d-p)/jt());for(r.rawWrite(f);p;)r.rawWrite(" "),p--}else r.rawWrite("")}g=e,m=i,y=r,h=a,d=u,f=_,f=Math.min(m,f-1),!void((d=g.substring(d,f).replace(/^\s+|\s+$/g,""))?(y.writeComment(d),f!==m&&y.writeLine()):y.rawWrite(h)),u=_}else r.writeComment(e.substring(n,i));var g,m,y,h},S.hasModifiers=function(e){return 0!==sr(e)},S.hasModifier=nr,S.hasStaticModifier=ir,S.hasReadonlyModifier=ar,S.getSelectedModifierFlags=or,S.getModifierFlags=sr,S.getModifierFlagsNoCache=cr,S.modifierToFlag=ur,S.isLogicalOperator=function(e){return 56===e||55===e||53===e},S.isAssignmentOperator=lr,S.tryGetClassExtendingExpressionWithTypeArguments=_r,S.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=dr,S.isAssignmentExpression=pr,S.isDestructuringAssignment=function(e){if(pr(e,!0)){e=e.left.kind;return 193===e||192===e}return!1},S.isExpressionWithTypeArgumentsInClassExtendsClause=fr,S.isEntityNameExpression=gr,S.getFirstIdentifier=function(e){switch(e.kind){case 75:return e;case 153:for(;e=e.left,75!==e.kind;);return e;case 194:for(;e=e.expression,75!==e.kind;);return e}},S.isDottedName=function e(t){return 75===t.kind||104===t.kind||102===t.kind||194===t.kind&&e(t.expression)||200===t.kind&&e(t.expression)},S.isPropertyAccessEntityNameExpression=mr,S.tryGetPropertyAccessOrIdentifierToString=function e(t){if(S.isPropertyAccessExpression(t)){var r=e(t.expression);if(void 0!==r)return r+"."+t.name}else if(S.isIdentifier(t))return S.unescapeLeadingUnderscores(t.escapedText)},S.isPrototypeAccess=yr,S.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 153===e.parent.kind&&e.parent.right===e||194===e.parent.kind&&e.parent.name===e},S.isEmptyObjectLiteral=function(e){return 193===e.kind&&0===e.properties.length},S.isEmptyArrayLiteral=function(e){return 192===e.kind&&0===e.elements.length},S.getLocalSymbolForExportDefault=function(e){return(t=e)&&0<S.length(t.declarations)&&nr(t.declarations[0],512)?e.declarations[0].localSymbol:void 0;var t},S.tryExtractTSExtension=function(t){return S.find(S.supportedTSExtensionsForExtractExtension,function(e){return S.fileExtensionIs(t,e)})};var hr="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+=hr.charAt(t)+hr.charAt(r)+hr.charAt(n)+hr.charAt(i),s+=3;return a}function br(e,t){return void 0===t&&(t=e),S.Debug.assert(e<=t||-1===t),{pos:e,end:t}}function xr(e,t){return br(t,e.end)}function Dr(e){return e.decorators&&0<e.decorators.length?xr(e,e.decorators.end):e}function Sr(e,t,r){return Cr(Tr(e,r,!1),t.end,r)}function Cr(e,t,r){return 0===S.getLinesBetweenPositions(r,e,t)}function Tr(e,t,r){return kn(e.pos)?-1:S.skipTrivia(t.text,e.pos,!1,r)}function kr(e){return void 0!==e.initializer}function Er(e){return 33554432&e.flags?e.checkFlags:0}function Nr(e){var t=e.parent;if(!t)return 0;switch(t.kind){case 200:return Nr(t);case 208:case 207:var r=t.operator;return 45===r||46===r?i():0;case 209:var r=t.left,n=t.operatorToken;return r===e&&lr(n.kind)?62===n.kind?1:i():0;case 194:return t.name!==e?0:Nr(t);case 281:n=Nr(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 282:return e===t.objectAssignmentInitializer?0:Nr(t.parent);case 192:return Nr(t);default:return 0}function i(){return t.parent&&226===function(e){for(;200===e.kind;)e=e.parent;return e}(t.parent).kind?1:2}}function Ar(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 Fr(e){if(32&e.flags){e=Pr(e);return!!e&&nr(e,128)}return!1}function Pr(e){return S.find(e.declarations,S.isClassLike)}function wr(e){return 3899393&e.flags?e.objectFlags:0}function Ir(e){return 194===e.kind||195===e.kind}function e(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function Or(e,t){this.flags=t,S.Debug.isDebugging&&(this.checker=e)}function Mr(e,t){this.flags=t,S.Debug.isDebugging&&(this.checker=e)}function Lr(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 Rr(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 Br(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 jr(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function Jr(e,r,n){return void 0===n&&(n=0),e.replace(/{(\d+)}/g,function(e,t){return""+S.Debug.checkDefined(r[+t+n])})}function zr(e){return S.localizedDiagnosticMessages&&S.localizedDiagnosticMessages[e.key]||e.message}function Ur(e,t,r,n){S.Debug.assertGreaterThanOrEqual(t,0),S.Debug.assertGreaterThanOrEqual(r,0),e&&(S.Debug.assertLessThanOrEqual(t,e.text.length),S.Debug.assertLessThanOrEqual(t+r,e.text.length));var i=zr(n);return 4<arguments.length&&(i=Jr(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary}}function Vr(e){var t=zr(e);return 1<arguments.length&&(t=Jr(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary}}function Kr(e){return e.file?e.file.path:void 0}function qr(e,t){return Wr(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 qr(e,r.relatedInformation[t])})||0;return e.relatedInformation?-1:1}(e,t)||0}function Wr(e,t){return S.compareStringsCaseSensitive(Kr(e),Kr(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 Hr(e){return e.target||0}function Gr(e){return"number"==typeof e.module?e.module:2<=Hr(e)?S.ModuleKind.ES2015:S.ModuleKind.CommonJS}function Qr(e){return!(!e.declaration&&!e.composite)}function Xr(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function Yr(e,t){return t.strictFlag?Xr(e,t.name):e[t.name]}function Zr(e){for(var t=!1,r=0;r<e.length;r++)if(42===e.charCodeAt(r)){if(t)return!1;t=!0}return!0}function $r(e,t){return"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)!==hr.charCodeAt(64);){var a=hr.indexOf(t[i]),o=hr.indexOf(t[i+1]),s=hr.indexOf(t[i+2]),c=hr.indexOf(t[i+3]),u=(63&a)<<2|o>>4&3,a=(15&o)<<4|s>>2&15,o=(3&s)<<6|63&c;0==a&&0!==s?n.push(u):0==o&&0!==c?n.push(u,a):n.push(u,a,o),i+=4}return function(e){for(var t="",r=0,n=e.length;r<n;){var i=e[r];if(i<128)t+=String.fromCharCode(i),r++;else if(192==(192&i)){for(var a=63&i,o=e[++r];128==(192&o);)a=a<<6|63&o,o=e[++r];t+=String.fromCharCode(a)}else t+=String.fromCharCode(i),r++}return t}(n)},S.readJson=function(e,t){try{var r=t.readFile(e);if(!r)return{};r=S.parseConfigFileTextToJson(e,r);return r.error?{}:r.config}catch(e){return{}}},S.directoryProbablyExists=function(e,t){return!t.directoryExists||t.directoryExists(e)},S.getNewLineCharacter=function(e,t){switch(e.newLine){case 0:return"\r\n";case 1:return"\n"}return t?t():S.sys?S.sys.newLine:"\r\n"},S.createRange=br,S.moveRangeEnd=function(e,t){return br(e.pos,t)},S.moveRangePos=xr,S.moveRangePastDecorators=Dr,S.moveRangePastModifiers=function(e){return e.modifiers&&0<e.modifiers.length?xr(e,e.modifiers.end):Dr(e)},S.isCollapsedRange=function(e){return e.pos===e.end},S.createTokenRange=function(e,t){return br(e,e+S.tokenToString(t).length)},S.rangeIsOnSingleLine=function(e,t){return Sr(e,e,t)},S.rangeStartPositionsAreOnSameLine=function(e,t,r){return Cr(Tr(e,r,!1),Tr(t,r,!1),r)},S.rangeEndPositionsAreOnSameLine=function(e,t,r){return Cr(e.end,t.end,r)},S.rangeStartIsOnSameLineAsRangeEnd=Sr,S.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return Cr(e.end,Tr(t,r,!1),r)},S.getLinesBetweenRangeEndAndRangeStart=function(e,t,r,n){return n=Tr(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!Cr(e.pos,e.end,t)},S.positionsAreOnSameLine=Cr,S.getStartPositionOfRange=Tr,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 248:case 249:return t===t.parent.name}return!1},S.getInitializedVariables=function(e){return S.filter(e.declarations,kr)},S.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},S.closeFileWatcher=function(e){e.close()},S.getCheckFlags=Er,S.getDeclarationModifierFlagsFromSymbol=function(e){if(e.valueDeclaration){var t=S.getCombinedModifierFlags(e.valueDeclaration);return e.parent&&32&e.parent.flags?t:-29&t}if(6&Er(e)){t=e.checkFlags;return(1024&t?8:256&t?4:16)|(2048&t?32:0)}return 4194304&e.flags?36:0},S.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},S.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},S.isWriteOnlyAccess=function(e){return 1===Nr(e)},S.isWriteAccess=function(e){return 0!==Nr(e)},(An={})[An.Read=0]="Read",An[An.Write=1]="Write",An[An.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=Ar,S.mutateMap=function(r,e,t){Ar(r,e,t);var n=t.createNewValue;e.forEach(function(e,t){r.has(t)||r.set(t,n(t,e))})},S.isAbstractConstructorType=function(e){return!!(16&wr(e))&&!!e.symbol&&Fr(e.symbol)},S.isAbstractConstructorSymbol=Fr,S.getClassLikeDeclarationOfSymbol=Pr,S.getObjectFlags=wr,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:x(e)},S.getLastChild=function(e){var r;return S.forEachChild(e,function(e){p(e)&&(r=e)},function(e){for(var t=e.length-1;0<=t;t--)if(p(e[t])){r=e[t];break}}),r},S.addToSeen=function(e,t,r){return void 0===r&&(r=!0),t=String(t),!e.has(t)&&(e.set(t,r),!0)},S.isObjectTypeDeclaration=function(e){return S.isClassLike(e)||S.isInterfaceDeclaration(e)||S.isTypeLiteralNode(e)},S.isTypeNodeKind=function(e){return 168<=e&&e<=188||125===e||148===e||140===e||151===e||141===e||128===e||143===e||144===e||104===e||110===e||146===e||100===e||137===e||216===e||295===e||296===e||297===e||298===e||299===e||300===e||301===e},S.isAccessExpression=Ir,S.getNameOfAccessExpression=function(e){return 194===e.kind?e.name:(S.Debug.assert(195===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 257===e.kind||261===e.kind},S.objectAllocator={getNodeConstructor:function(){return Lr},getTokenConstructor:function(){return Rr},getIdentifierConstructor:function(){return Br},getPrivateIdentifierConstructor:function(){return Lr},getSourceFileConstructor:function(){return Lr},getSymbolConstructor:function(){return e},getTypeConstructor:function(){return Or},getSignatureConstructor:function(){return Mr},getSourceMapSourceConstructor:function(){return jr}},S.setObjectAllocator=function(e){S.objectAllocator=e},S.formatStringFromArgs=Jr,S.setLocalizedDiagnosticMessages=function(e){S.localizedDiagnosticMessages=e},S.getLocaleSpecificMessage=zr,S.createFileDiagnostic=Ur,S.formatMessage=function(e,t){return t=zr(t),2<arguments.length&&(t=Jr(t,arguments,2)),t},S.createCompilerDiagnostic=Vr,S.createCompilerDiagnosticFromMessageChain=function(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}},S.chainDiagnosticMessages=function(e,t){var r=zr(t);return 2<arguments.length&&(r=Jr(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=qr,S.compareDiagnosticsSkipRelatedInformation=Wr,S.getEmitScriptTarget=Hr,S.getEmitModuleKind=Gr,S.getEmitModuleResolutionKind=function(e){var t=e.moduleResolution;return void 0===t&&(t=Gr(e)===S.ModuleKind.CommonJS?S.ModuleResolutionKind.NodeJs:S.ModuleResolutionKind.Classic),t},S.hasJsonModuleEmitEnabled=function(e){switch(Gr(e)){case S.ModuleKind.CommonJS:case S.ModuleKind.AMD:case S.ModuleKind.ES2015:case S.ModuleKind.ES2020:case S.ModuleKind.ESNext:return!0;default:return!1}},S.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},S.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},S.getAreDeclarationMapsEnabled=function(e){return!(!Qr(e)||!e.declarationMap)},S.getAllowSyntheticDefaultImports=function(e){var t=Gr(e);return void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:e.esModuleInterop||t===S.ModuleKind.System},S.getEmitDeclarations=Qr,S.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},S.getStrictOptionValue=Xr,S.compilerOptionsAffectSemanticDiagnostics=function(t,r){return r!==t&&S.semanticDiagnosticsOptionDeclarations.some(function(e){return!wn(Yr(r,e),Yr(t,e))})},S.compilerOptionsAffectEmit=function(t,r){return r!==t&&S.affectsEmitOptionDeclarations.some(function(e){return!wn(Yr(r,e),Yr(t,e))})},S.getCompilerOptionValue=Yr,S.hasZeroOrOneAsteriskCharacter=Zr,S.discoverProbableSymlinks=function(e,t,r){for(var n=S.createMap(),i=0,a=S.flatten(S.mapDefined(e,function(e){return e.resolvedModules&&S.compact(S.arrayFrom(S.mapIterator(e.resolvedModules.values(),function(e){return e&&e.originalPath&&e.resolvedFileName!==e.originalPath?[e.resolvedFileName,e.originalPath]:void 0})))}));i<a.length;i++){var o=a[i],s=function(e,t,r,n){var i=S.getPathComponents(S.toPath(e,r,n)),a=S.getPathComponents(S.toPath(t,r,n));for(;!$r(i[i.length-2],n)&&!$r(a[a.length-2],n)&&n(i[i.length-1])===n(a[a.length-1]);)i.pop(),a.pop();return[S.getPathFromPathComponents(i),S.getPathFromPathComponents(a)]}(o[0],o[1],r,t),o=s[0],s=s[1];n.set(s,o)}return n},S.tryRemoveDirectoryPrefix=function(e,t,r){return void 0===(r=S.tryRemovePrefix(e,t,r))?void 0:(r=r,S.isAnyDirectorySeparator(r.charCodeAt(0))?r.slice(1):void 0)};var en=/[^\w\s\/]/g;function tn(e){return"\\"+e}S.regExpEscape=function(e){return e.replace(en,tn)};var rn=[42,63];S.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var nn="(?!("+S.commonPackageFolders.join("|")+")(/|$))",an={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+nn+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return dn(e,an.singleAsteriskRegexFragment)}},on={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+nn+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return dn(e,on.singleAsteriskRegexFragment)}},sn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return dn(e,sn.singleAsteriskRegexFragment)}},cn={files:an,directories:on,exclude:sn};function un(e,t,r){t=ln(e,t,r);if(t&&t.length)return"^("+t.map(function(e){return"("+e+")"}).join("|")+")"+("exclude"===r?"($|/)":"$")}function ln(e,t,r){if(void 0!==e&&0!==e.length)return S.flatMap(e,function(e){return e&&function(e,t,r,n){var i=n.singleAsteriskRegexFragment,a=n.doubleAsteriskRegexFragment,o=n.replaceWildcardCharacter,s="",c=!1,e=S.getNormalizedPathComponents(e,t),t=S.last(e);if("exclude"!==r&&"**"===t)return;e[0]=S.removeTrailingDirectorySeparator(e[0]),_n(t)&&e.push("**","*");for(var u=0,l=0,_=e;l<_.length;l++){var d,p=_[l];"**"===p?s+=a:("directories"===r&&(s+="(",u++),c&&(s+=S.directorySeparator),"exclude"!==r?(d="",42===p.charCodeAt(0)?(d+="([^./]"+i+")?",p=p.substr(1)):63===p.charCodeAt(0)&&(d+="[^./]",p=p.substr(1)),(d+=p.replace(en,o))!==p&&(s+=nn),s+=d):s+=p.replace(en,o)),c=!0}for(;0<u;)s+=")?",u--;return s}(e,t,r,cn[r])})}function _n(e){return!/[.*?]/.test(e)}function dn(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function pn(e,t,r,n,i){e=S.normalizePath(e),i=S.normalizePath(i);i=S.combinePaths(i,e);return{includeFilePatterns:S.map(ln(r,i,"files"),function(e){return"^"+e+"$"}),includeFilePattern:un(r,i,"files"),includeDirectoryPattern:un(r,i,"directories"),excludePattern:un(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,rn);if(t<0)return S.hasExtension(e)?S.removeTrailingDirectorySeparator(S.getDirectoryPath(e)):e;return e.substring(0,e.lastIndexOf(S.directorySeparator,t))}(s))}t.sort(S.getStringComparer(!n));for(var c=0,u=t;c<u.length;c++)!function(t){S.every(i,function(e){return!S.containsPath(e,t,r,!n)})&&i.push(t)}(u[c])}return i}(e,r,n)}}function fn(e,t){return new RegExp(e,t?"":"i")}function gn(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":return 1;case".jsx":return 2;case".ts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}S.getRegularExpressionForWildcard=un,S.getRegularExpressionsForWildcards=ln,S.isImplicitGlob=_n,S.getFileMatcherPatterns=pn,S.getRegexFromPattern=fn,S.matchFiles=function(e,f,t,r,n,i,a,g,m){e=S.normalizePath(e),i=S.normalizePath(i);for(var y=(r=pn(e,t,r,n,i)).includeFilePatterns&&r.includeFilePatterns.map(function(e){return fn(e,n)}),h=r.includeDirectoryPattern&&fn(r.includeDirectoryPattern,n),v=r.excludePattern&&fn(r.excludePattern,n),b=y?y.map(function(){return[]}):[[]],x=S.createMap(),D=S.createGetCanonicalFileName(n),o=0,s=r.basePaths;o<s.length;o++){var c=s[o];!function e(n,i,t){var r=D(m(i));if(x.has(r))return;x.set(r,!0);var a=g(n),r=a.files,a=a.directories;var o=function(e){var t=S.combinePaths(n,e),r=S.combinePaths(i,e);return f&&!S.fileExtensionIsOneOf(t,f)||v&&v.test(r)?"continue":void(y?-1!==(e=S.findIndex(y,function(e){return e.test(r)}))&&b[e].push(t):b[0].push(t))};for(var s=0,c=S.sort(r,S.compareStringsCaseSensitive);s<c.length;s++){var u=c[s];o(u)}if(void 0!==t&&0===--t)return;for(var l=0,_=S.sort(a,S.compareStringsCaseSensitive);l<_.length;l++){var u=_[l],d=S.combinePaths(n,u),p=S.combinePaths(i,u);h&&!h.test(p)||v&&v.test(p)||e(d,p,t)}}(c,S.combinePaths(i,c),a)}return S.flatten(b)},S.ensureScriptKind=function(e,t){return t||gn(e)||3},S.getScriptKindFromFileName=gn,S.supportedTSExtensions=[".ts",".tsx",".d.ts"],S.supportedTSExtensionsWithJson=[".ts",".tsx",".d.ts",".json"],S.supportedTSExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],S.supportedJSExtensions=[".js",".jsx"],S.supportedJSAndJsonExtensions=[".js",".jsx",".json"];var mn=__spreadArrays(S.supportedTSExtensions,S.supportedJSExtensions),yn=__spreadArrays(S.supportedTSExtensions,S.supportedJSExtensions,[".json"]);function hn(e,t){var r=e&&e.allowJs;if(!t||0===t.length)return r?mn:S.supportedTSExtensions;t=__spreadArrays(r?mn:S.supportedTSExtensions,S.mapDefined(t,function(e){return 7===e.scriptKind||r&&(1===(t=e.scriptKind)||2===t)?e.extension:void 0;var t}));return S.deduplicate(t,S.equateStringsCaseSensitive,S.compareStringsCaseSensitive)}function vn(e,t){return e&&e.resolveJsonModule?t===mn?yn:t===S.supportedTSExtensions?S.supportedTSExtensionsWithJson:__spreadArrays(t,[".json"]):t}function bn(e,t){return e<2?0:e<t.length?2:t.length}S.getSupportedExtensions=hn,S.getSuppoertedExtensionsWithJsonIfResolveJsonModule=vn,S.hasJSFileExtension=function(t){return S.some(S.supportedJSExtensions,function(e){return S.fileExtensionIs(t,e)})},S.hasTSFileExtension=function(t){return S.some(S.supportedTSExtensions,function(e){return S.fileExtensionIs(t,e)})},S.isSupportedSourceFileName=function(e,t,r){if(!e)return!1;for(var n=0,i=vn(t,hn(t,r));n<i.length;n++){var a=i[n];if(S.fileExtensionIs(e,a))return!0}return!1},(An=S.ExtensionPriority||(S.ExtensionPriority={}))[An.TypeScriptFiles=0]="TypeScriptFiles",An[An.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",An[An.Highest=0]="Highest",An[An.Lowest=2]="Lowest",S.getExtensionPriority=function(e,t){for(var r=t.length-1;0<=r;r--)if(S.fileExtensionIs(e,t[r]))return bn(r,t);return 0},S.adjustExtensionPriority=bn,S.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var xn=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function Dn(e){for(var t=0,r=xn;t<r.length;t++){var n=Sn(e,r[t]);if(void 0!==n)return n}return e}function Sn(e,t){return S.fileExtensionIs(e,t)?Cn(e,t):void 0}function Cn(e,t){return e.substring(0,e.length-t.length)}function Tn(e){S.Debug.assert(Zr(e));var t=e.indexOf("*");return-1===t?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function kn(e){return!(0<=e)}function En(e){return".ts"===e||".tsx"===e||".d.ts"===e}function Nn(t){return S.find(xn,function(e){return S.fileExtensionIs(t,e)})}S.removeFileExtension=Dn,S.tryRemoveExtension=Sn,S.removeExtension=Cn,S.changeExtension=function(e,t){return S.changeAnyExtension(e,t,xn,!1)},S.tryParsePattern=Tn,S.positionIsSynthesized=kn,S.extensionIsTS=En,S.resolutionExtensionIsTSOrJson=function(e){return En(e)||".json"===e},S.extensionFromPath=function(e){var t=Nn(e);return void 0!==t?t:S.Debug.fail("File "+e+" has unknown extension.")},S.isAnySupportedFileExtension=function(e){return void 0!==Nn(e)},S.tryGetExtensionFromPath=Nn,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(Zr(a)){var o=Tn(a);if(o)r.push(o);else if(a===t)return a}}return S.findBestPatternMatch(r,function(e){return e},t)},S.sliceAfter=function(e,t){return t=e.indexOf(t),S.Debug.assert(-1!==t),e.slice(t)},S.addRelatedInfo=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return r.length&&(e.relatedInformation||(e.relatedInformation=[]),(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}};var An=(Fn.prototype.add=function(e){this.map.set(String(S.getNodeId(e)),e)},Fn.prototype.tryAdd=function(e){return!this.has(e)&&(this.add(e),!0)},Fn.prototype.has=function(e){return this.map.has(String(S.getNodeId(e)))},Fn.prototype.forEach=function(e){this.map.forEach(e)},Fn.prototype.some=function(e){return o(this.map,e)||!1},Fn);function Fn(){this.map=S.createMap()}function Pn(){this.map=S.createMap()}function wn(e,t){return e===t||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&S.equalOwnProperties(e,t,wn)}S.NodeSet=An,Pn.prototype.get=function(e){e=this.map.get(String(S.getNodeId(e)));return e&&e.value},Pn.prototype.getOrUpdate=function(e,t){var r=this.get(e);if(r)return r;t=t();return this.set(e,t),t},Pn.prototype.set=function(e,t){this.map.set(String(S.getNodeId(e)),{node:e,value:t})},Pn.prototype.has=function(e){return this.map.has(String(S.getNodeId(e)))},Pn.prototype.forEach=function(r){this.map.forEach(function(e){var t=e.node,e=e.value;return r(e,t)})},An=Pn,S.NodeMap=An,S.rangeOfNode=function(e){return{pos:h(e),end:e.end}},S.rangeOfTypeParameters=function(e){return{pos:e.pos-1,end:e.end+1}},S.skipTypeChecking=function(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)},S.isJsonEqual=wn,S.getOrUpdate=function(e,t,r){var n=e.get(t);return void 0!==n?n:(r=r(),e.set(t,r),r)},S.parsePseudoBigInt=function(e){var t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:for(var r=e.length-1,n=0;48===e.charCodeAt(n);)n++;return e.slice(n,r)||"0"}for(var i=e.length-1,a=(i-2)*t,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;2<=s;s--,c+=t){var u=c>>>4,l=e.charCodeAt(s),l=(l<=57?l-48:10+l-(l<=70?65:97))<<(15&c);o[u]|=l;l=l>>>16;l&&(o[u+1]|=l)}for(var _="",d=o.length-1,p=!0;p;){for(var f=0,p=!1,u=d;0<=u;u--){var g=f<<16|o[u],m=g/10|0,f=g-10*(o[u]=m);m&&!p&&(d=u,p=!0)}_=f+_}return _},S.pseudoBigIntToString=function(e){var t=e.negative,e=e.base10Value;return(t&&"0"!==e?"-":"")+e},S.isValidTypeOnlyAliasUseSite=function(e){return!!(8388608&e.flags)||ue(e)||function(e){if(75!==e.kind)return!1;e=a(e.parent,function(e){switch(e.kind){case 279:return!0;case 194:case 216:return!1;default:return"quit"}});return 113===(null==e?void 0:e.token)||246===(null==e?void 0:e.parent.kind)}(e)||function(e){for(;75===e.kind||194===e.kind;)e=e.parent;if(154!==e.kind)return!1;if(nr(e.parent,128))return!0;var t=e.parent.parent.kind;return 246===t||173===t}(e)||!se(e)},S.typeOnlyDeclarationIsExport=function(e){return 263===e.kind},S.isIdentifierTypeReference=function(e){return S.isTypeReferenceNode(e)&&S.isIdentifier(e.typeName)},S.arrayIsHomogeneous=function(e,t){if(void 0===t&&(t=S.equateValues),e.length<2)return!0;for(var r=e[0],n=1,i=e.length;n<i;n++)if(!t(r,e[n]))return!1;return!0}}(ts=ts||{}),function(F){var n,i,a,o,s,y,c,u,l,_,d,p,f,g,P,w,m,h,v,I,b,r,x,e,D,O,S,C,T,t;function k(e,t){return t&&e(t)}function E(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 M(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function N(e,t,r){if(e&&!(e.kind<=152))switch(e.kind){case 153:return k(t,e.left)||k(t,e.right);case 155:return k(t,e.name)||k(t,e.constraint)||k(t,e.default)||k(t,e.expression);case 282:return E(t,r,e.decorators)||E(t,r,e.modifiers)||k(t,e.name)||k(t,e.questionToken)||k(t,e.exclamationToken)||k(t,e.equalsToken)||k(t,e.objectAssignmentInitializer);case 283:return k(t,e.expression);case 156:return E(t,r,e.decorators)||E(t,r,e.modifiers)||k(t,e.dotDotDotToken)||k(t,e.name)||k(t,e.questionToken)||k(t,e.type)||k(t,e.initializer);case 159:return E(t,r,e.decorators)||E(t,r,e.modifiers)||k(t,e.name)||k(t,e.questionToken)||k(t,e.exclamationToken)||k(t,e.type)||k(t,e.initializer);case 158:return E(t,r,e.decorators)||E(t,r,e.modifiers)||k(t,e.name)||k(t,e.questionToken)||k(t,e.type)||k(t,e.initializer);case 281:return E(t,r,e.decorators)||E(t,r,e.modifiers)||k(t,e.name)||k(t,e.questionToken)||k(t,e.initializer);case 242:return E(t,r,e.decorators)||E(t,r,e.modifiers)||k(t,e.name)||k(t,e.exclamationToken)||k(t,e.type)||k(t,e.initializer);case 191:return E(t,r,e.decorators)||E(t,r,e.modifiers)||k(t,e.dotDotDotToken)||k(t,e.propertyName)||k(t,e.name)||k(t,e.initializer);case 170:case 171:case 165:case 166:case 167:return E(t,r,e.decorators)||E(t,r,e.modifiers)||E(t,r,e.typeParameters)||E(t,r,e.parameters)||k(t,e.type);case 161:case 160:case 162:case 163:case 164:case 201:case 244:case 202:return E(t,r,e.decorators)||E(t,r,e.modifiers)||k(t,e.asteriskToken)||k(t,e.name)||k(t,e.questionToken)||k(t,e.exclamationToken)||E(t,r,e.typeParameters)||E(t,r,e.parameters)||k(t,e.type)||k(t,e.equalsGreaterThanToken)||k(t,e.body);case 169:return k(t,e.typeName)||E(t,r,e.typeArguments);case 168:return k(t,e.assertsModifier)||k(t,e.parameterName)||k(t,e.type);case 172:return k(t,e.exprName);case 173:return E(t,r,e.members);case 174:return k(t,e.elementType);case 175:return E(t,r,e.elementTypes);case 178:case 179:return E(t,r,e.types);case 180:return k(t,e.checkType)||k(t,e.extendsType)||k(t,e.trueType)||k(t,e.falseType);case 181:return k(t,e.typeParameter);case 188:return k(t,e.argument)||k(t,e.qualifier)||E(t,r,e.typeArguments);case 182:case 184:return k(t,e.type);case 185:return k(t,e.objectType)||k(t,e.indexType);case 186:return k(t,e.readonlyToken)||k(t,e.typeParameter)||k(t,e.questionToken)||k(t,e.type);case 187:return k(t,e.literal);case 189:case 190:case 192:return E(t,r,e.elements);case 193:return E(t,r,e.properties);case 194:return k(t,e.expression)||k(t,e.questionDotToken)||k(t,e.name);case 195:return k(t,e.expression)||k(t,e.questionDotToken)||k(t,e.argumentExpression);case 196:case 197:return k(t,e.expression)||k(t,e.questionDotToken)||E(t,r,e.typeArguments)||E(t,r,e.arguments);case 198:return k(t,e.tag)||k(t,e.questionDotToken)||E(t,r,e.typeArguments)||k(t,e.template);case 199:return k(t,e.type)||k(t,e.expression);case 200:case 203:case 204:case 205:return k(t,e.expression);case 207:return k(t,e.operand);case 212:return k(t,e.asteriskToken)||k(t,e.expression);case 206:return k(t,e.expression);case 208:return k(t,e.operand);case 209:return k(t,e.left)||k(t,e.operatorToken)||k(t,e.right);case 217:return k(t,e.expression)||k(t,e.type);case 218:return k(t,e.expression);case 219:return k(t,e.name);case 210:return k(t,e.condition)||k(t,e.questionToken)||k(t,e.whenTrue)||k(t,e.colonToken)||k(t,e.whenFalse);case 213:return k(t,e.expression);case 223:case 250:return E(t,r,e.statements);case 290:return E(t,r,e.statements)||k(t,e.endOfFileToken);case 225:return E(t,r,e.decorators)||E(t,r,e.modifiers)||k(t,e.declarationList);case 243:return E(t,r,e.declarations);case 226:return k(t,e.expression);case 227:return k(t,e.expression)||k(t,e.thenStatement)||k(t,e.elseStatement);case 228:return k(t,e.statement)||k(t,e.expression);case 229:return k(t,e.expression)||k(t,e.statement);case 230:return k(t,e.initializer)||k(t,e.condition)||k(t,e.incrementor)||k(t,e.statement);case 231:return k(t,e.initializer)||k(t,e.expression)||k(t,e.statement);case 232:return k(t,e.awaitModifier)||k(t,e.initializer)||k(t,e.expression)||k(t,e.statement);case 233:case 234:return k(t,e.label);case 235:return k(t,e.expression);case 236:return k(t,e.expression)||k(t,e.statement);case 237:return k(t,e.expression)||k(t,e.caseBlock);case 251:return E(t,r,e.clauses);case 277:return k(t,e.expression)||E(t,r,e.statements);case 278:return E(t,r,e.statements);case 238:return k(t,e.label)||k(t,e.statement);case 239:return k(t,e.expression);case 240:return k(t,e.tryBlock)||k(t,e.catchClause)||k(t,e.finallyBlock);case 280:return k(t,e.variableDeclaration)||k(t,e.block);case 157:return k(t,e.expression);case 245:case 214:case 246:return E(t,r,e.decorators)||E(t,r,e.modifiers)||k(t,e.name)||E(t,r,e.typeParameters)||E(t,r,e.heritageClauses)||E(t,r,e.members);case 247:return E(t,r,e.decorators)||E(t,r,e.modifiers)||k(t,e.name)||E(t,r,e.typeParameters)||k(t,e.type);case 248:return E(t,r,e.decorators)||E(t,r,e.modifiers)||k(t,e.name)||E(t,r,e.members);case 284:return k(t,e.name)||k(t,e.initializer);case 249:return E(t,r,e.decorators)||E(t,r,e.modifiers)||k(t,e.name)||k(t,e.body);case 253:return E(t,r,e.decorators)||E(t,r,e.modifiers)||k(t,e.name)||k(t,e.moduleReference);case 254:return E(t,r,e.decorators)||E(t,r,e.modifiers)||k(t,e.importClause)||k(t,e.moduleSpecifier);case 255:return k(t,e.name)||k(t,e.namedBindings);case 252:case 256:case 262:return k(t,e.name);case 257:case 261:return E(t,r,e.elements);case 260:return E(t,r,e.decorators)||E(t,r,e.modifiers)||k(t,e.exportClause)||k(t,e.moduleSpecifier);case 258:case 263:return k(t,e.propertyName)||k(t,e.name);case 259:return E(t,r,e.decorators)||E(t,r,e.modifiers)||k(t,e.expression);case 211:return k(t,e.head)||E(t,r,e.templateSpans);case 221:return k(t,e.expression)||k(t,e.literal);case 154:return k(t,e.expression);case 279:return E(t,r,e.types);case 216:return k(t,e.expression)||E(t,r,e.typeArguments);case 265:return k(t,e.expression);case 264:return E(t,r,e.decorators);case 327:return E(t,r,e.elements);case 266:return k(t,e.openingElement)||E(t,r,e.children)||k(t,e.closingElement);case 270:return k(t,e.openingFragment)||E(t,r,e.children)||k(t,e.closingFragment);case 267:case 268:return k(t,e.tagName)||E(t,r,e.typeArguments)||k(t,e.attributes);case 274:return E(t,r,e.properties);case 273:return k(t,e.name)||k(t,e.initializer);case 275:return k(t,e.expression);case 276:return k(t,e.dotDotDotToken)||k(t,e.expression);case 269:return k(t,e.tagName);case 176:case 177:case 294:case 298:case 297:case 299:case 301:return k(t,e.type);case 300:return E(t,r,e.parameters)||k(t,e.type);case 303:return E(t,r,e.tags);case 317:case 323:return k(t,e.tagName)||(e.isNameFirst?k(t,e.name)||k(t,e.typeExpression):k(t,e.typeExpression)||k(t,e.name));case 309:return k(t,e.tagName);case 308:case 307:return k(t,e.tagName)||k(t,e.class);case 321:return k(t,e.tagName)||k(t,e.constraint)||E(t,r,e.typeParameters);case 322:return k(t,e.tagName)||(e.typeExpression&&294===e.typeExpression.kind?k(t,e.typeExpression)||k(t,e.fullName):k(t,e.fullName)||k(t,e.typeExpression));case 315:return k(t,e.tagName)||k(t,e.fullName)||k(t,e.typeExpression);case 318:case 320:case 319:case 316:return k(t,e.tagName)||k(t,e.typeExpression);case 305:return F.forEach(e.typeParameters,t)||F.forEach(e.parameters,t)||k(t,e.type);case 304:return F.forEach(e.jsDocPropertyTags,t);case 306:case 310:case 311:case 312:case 313:case 314:return k(t,e.tagName);case 326:return k(t,e.expression)}}function A(e,c,u){for(var l=[e];l.length;){var t=l.pop(),t=function(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(F.isArray(i)){if(u)if(s=u(i,e)){if("skip"===s)continue;return s}for(var a=i.length-1;0<=a;a--){var o=i[a];if(s=c(o,e)){if("skip"===s)continue;return s}l.push(o)}}else{l.push(i);var s=c(i,e);if(s&&"skip"!==s)return s}}}(t,function(e){var t=[];return N(e,r,r),t;function r(e){t.unshift(e)}}(t));if(t)return t}}function L(e,t,r,n,i){void 0===r&&(r=2),B(t,r,n,6),(p=U(e,2,6,!1)).flags=x,le();e=ce();if(1===P)p.statements=Pe([],e,e),p.endOfFileToken=ke();else{var a=Ae(226);switch(P){case 22:a.expression=Kr();break;case 106:case 91:case 100:a.expression=ke();break;case 40:he(function(){return 8===le()&&58!==le()})?a.expression=Dr():a.expression=Wr();break;case 8:case 10:if(he(function(){return 58!==le()})){a.expression=mt();break}default:a.expression=Wr()}we(a),p.statements=Pe([a],e),p.endOfFileToken=Te(1,F.Diagnostics.Unexpected_token)}i&&z(p),p.nodeCount=m,p.identifierCount=I,p.identifiers=h,p.parseDiagnostics=f;i=p;return j(),i}function R(e){return 4===e||2===e||1===e||6===e?1:0}function B(e,t,r,n){switch(c=F.objectAllocator.getNodeConstructor(),u=F.objectAllocator.getTokenConstructor(),l=F.objectAllocator.getIdentifierConstructor(),_=F.objectAllocator.getPrivateIdentifierConstructor(),d=F.objectAllocator.getSourceFileConstructor(),w=e,g=r,f=[],b=0,h=F.createMap(),v=F.createMap(),m=I=0,n){case 1:case 2:x=131072;break;case 6:x=33685504;break;default:x=0}C=!1,O.setText(w),O.setOnError(se),O.setScriptTarget(t),O.setLanguageVariant(R(n))}function j(){O.clearCommentDirectives(),O.setText(""),O.setOnError(void 0),r=w=g=h=p=f=void 0}function J(t){F.Debug.assert(!t.jsDoc);var e=F.mapDefined(F.getJSDocCommentRanges(t,p.text),function(e){return D.parseJSDocComment(t,e.pos,e.end-e.pos)});return e.length&&(t.jsDoc=e),t}function z(e){A(e,function e(t,r){t.parent=r;if(F.hasJSDocNodes(t))for(var n=0,i=t.jsDoc;n<i.length;n++){var a=i[n];e(a,t),A(a,e)}})}function U(e,t,r,n){var i=new d(290,0,w.length);return m++,i.text=w,i.bindDiagnostics=[],i.bindSuggestionDiagnostics=void 0,i.languageVersion=t,i.fileName=F.normalizePath(e),i.languageVariant=R(r),i.isDeclarationFile=n,i.scriptKind=r,i}function V(e,t){e?x|=t:x&=~t}function K(e){V(e,4096)}function q(e){V(e,8192)}function W(e){V(e,16384)}function H(e){V(e,32768)}function G(e,t){var r=e&x;if(r){V(!1,r);e=t();return V(!0,r),e}return t()}function Q(e,t){var r=e&~x;if(r){V(!0,r);e=t();return V(!1,r),e}return t()}function X(e){return G(4096,e)}function Y(e){return Q(32768,e)}function Z(e){return 0!=(x&e)}function $(){return Z(8192)}function ee(){return Z(4096)}function te(){return Z(16384)}function re(){return Z(32768)}function ne(e,t){ae(O.getTokenPos(),O.getTextPos(),e,t)}function ie(e,t,r,n){var i=F.lastOrUndefined(f);i&&e===i.start||f.push(F.createFileDiagnostic(p,e,t,r,n)),C=!0}function ae(e,t,r,n){ie(e,t-e,r,n)}function oe(e,t,r){ae(e.pos,e.end,t,r)}function se(e,t){ie(O.getTextPos(),t,e)}function ce(){return O.getStartPos()}function ue(){return P=O.scan()}function le(){return F.isKeyword(P)&&(O.hasUnicodeEscape()||O.hasExtendedUnicodeEscape())&&ae(O.getTokenPos(),O.getTextPos(),F.Diagnostics.Keywords_cannot_contain_escape_characters),ue()}function _e(){return P=O.scanJsDocToken()}function de(){return P=O.reScanGreaterToken()}function pe(){return P=O.reScanTemplateHeadOrNoSubstitutionTemplate()}function fe(){return P=O.reScanLessThanToken()}function ge(){return P=O.scanJsxIdentifier()}function me(){return P=O.scanJsxToken()}function ye(e,t){var r=P,n=f.length,i=C,a=x,e=t?O.lookAhead(e):O.tryScan(e);return F.Debug.assert(a===x),e&&!t||(P=r,f.length=n,C=i),e}function he(e){return ye(e,!0)}function ve(e){return ye(e,!1)}function be(){return 75===P||(121!==P||!$())&&((127!==P||!re())&&112<P)}function xe(e,t,r){return void 0===r&&(r=!0),P===e?(r&&le(),!0):(t?ne(t):ne(F.Diagnostics._0_expected,F.tokenToString(e)),!1)}function De(e){return P===e&&(le(),!0)}function Se(e){if(P===e)return ke()}function Ce(e){if(P===e)return e=Ae(P),_e(),we(e)}function Te(e,t,r){return Se(e)||Ie(e,!1,t||F.Diagnostics._0_expected,r||F.tokenToString(e))}function ke(){var e=Ae(P);return le(),we(e)}function Ee(){return 26===P||(19===P||1===P||O.hasPrecedingLineBreak())}function Ne(){return Ee()?(26===P&&le(),1):xe(26)}function Ae(e,t){m++;t=0<=t?t:O.getStartPos();return new(F.isNodeKind(e)||0===e?c:75===e?l:76===e?_:u)(e,t,t)}function Fe(e,t){t=Ae(e,t);return 2&O.getTokenFlags()&&(226!==e||20!==P)&&J(t),t}function Pe(e,t,r){var n=e.length,e=1<=n&&n<=4?e.slice():e;return e.pos=t,e.end=void 0===r?O.getStartPos():r,e}function we(e,t){return e.end=void 0===t?O.getStartPos():t,x&&(e.flags|=x),C&&(C=!1,e.flags|=65536),e}function Ie(e,t,r,n){t?ie(O.getStartPos(),0,r,n):r&&ne(r,n);n=Ae(e);return 75===e?n.escapedText="":(F.isLiteralKind(e)||F.isTemplateLiteralKind(e))&&(n.text=""),we(n)}function Oe(e){var t=h.get(e);return void 0===t&&h.set(e,t=e),t}function Me(e,t,r){if(I++,e){var n=Ae(75);return 75!==P&&(n.originalKeywordKind=P),n.escapedText=F.escapeLeadingUnderscores(Oe(O.getTokenValue())),ue(),we(n)}if(76===P)return ne(r||F.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Me(!0);e=1===P,n=O.isReservedWord(),r=O.getTokenText(),n=n?F.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:F.Diagnostics.Identifier_expected;return Ie(75,e,t||n,r)}function Le(e,t){return Me(be(),e,t)}function Re(e){return Me(F.tokenIsIdentifierOrKeyword(P),e)}function Be(){return F.tokenIsIdentifierOrKeyword(P)||10===P||8===P}function je(e){if(10!==P&&8!==P)return e&&22===P?(t=Ae(154),xe(22),t.expression=X(ur),xe(23),we(t)):(76===P?ze:Re)();var t,t=mt();return t.text=Oe(t.text),t}function Je(){return je(!0)}function ze(){var e,t,r=Ae(76);return r.escapedText=F.escapeLeadingUnderscores((e=O.getTokenText(),void 0===(t=v.get(e))&&v.set(e,t=e),t)),le(),we(r)}function Ue(e){return P===e&&ve(Ke)}function Ve(){return le(),!O.hasPrecedingLineBreak()&&He()}function Ke(){switch(P){case 81:return 88===le();case 89:return le(),84===P?he(Ge):145===P?he(We):qe();case 84:return Ge();case 120:case 131:case 142:return le(),He();default:return Ve()}}function qe(){return 41!==P&&123!==P&&18!==P&&He()}function We(){return le(),qe()}function He(){return 22===P||18===P||41===P||25===P||Be()}function Ge(){return le(),80===P||94===P||114===P||122===P&&he(rn)||126===P&&he(nn)}function Qe(e,t){if(ot(e))return 1;switch(e){case 0:case 1:case 3:return(26!==P||!t)&&cn();case 2:return 78===P||84===P;case 4:return he(Ot);case 5:return he(Fn)||26===P&&!t;case 6:return 22===P||Be();case 12:switch(P){case 22:case 41:case 25:case 24:return 1;default:return Be()}case 18:return Be();case 9:return 22===P||25===P||Be();case 7:return 18===P?he(Xe):t?be()&&!et():sr()&&!et();case 8:return yn();case 10:return 27===P||25===P||yn();case 19:return be();case 15:switch(P){case 27:case 24:return 1}case 11:return 25===P||cr();case 16:return kt(!1);case 17:return kt(!0);case 20:case 21:return 27===P||Qt();case 22:return zn();case 23:return F.tokenIsIdentifierOrKeyword(P);case 13:return F.tokenIsIdentifierOrKeyword(P)||18===P;case 14:return 1}return F.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Xe(){if(F.Debug.assert(18===P),19!==le())return!0;var e=le();return 27===e||18===e||90===e||113===e}function Ye(){return le(),be()}function Ze(){return le(),F.tokenIsIdentifierOrKeyword(P)}function $e(){return le(),F.tokenIsIdentifierOrKeywordOrGreaterThan(P)}function et(){return(113===P||90===P)&&he(tt)}function tt(){return le(),cr()}function rt(){return le(),Qt()}function nt(e){if(1===P)return 1;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===P;case 3:return 19===P||78===P||84===P;case 7:return 18===P||90===P||113===P;case 8:return function(){if(Ee())return 1;if(vr(P))return 1;return 38===P}();case 19:return 31===P||20===P||18===P||90===P||113===P;case 11:return 21===P||26===P;case 15:case 21:case 10:return 23===P;case 17:case 16:case 18:return 21===P||23===P;case 20:return 27!==P;case 22:return 18===P||19===P;case 13:return 31===P||43===P;case 14:return 29===P&&he(Wn);default:return}}function it(e,t){var r=b;b|=1<<e;for(var n=[],i=ce();!nt(e);)if(Qe(e,!1)){var a=at(e,t);n.push(a)}else if(ct(e))break;return b=r,Pe(n,i)}function at(e,t){e=ot(e);return e?st(e):t()}function ot(e){if(g&&function(e){switch(e){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}(e)&&!C){var t=g.currentNode(O.getStartPos());if(!(F.nodeIsMissing(t)||t.intersectsChange||F.containsParseError(t))){var r=25358336&t.flags;if(r===x&&function(e,t){switch(t){case 5:return function(e){if(e)switch(e.kind){case 162:case 167:case 163:case 164:case 159:case 222:return!0;case 161:var t=e;return!(75===t.name.kind&&129===t.name.originalKeywordKind)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 277:case 278:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 244:case 225:case 223:case 227:case 226:case 239:case 235:case 237:case 234:case 233:case 231:case 232:case 230:case 229:case 236:case 224:case 240:case 238:case 228:case 241:case 254:case 253:case 260:case 259:case 249:case 245:case 246:case 248:case 247:return!0}return!1}(e);case 6:return 284===e.kind;case 4:return function(e){if(e)switch(e.kind){case 166:case 160:case 167:case 158:case 165:return!0}return!1}(e);case 8:return function(e){if(242!==e.kind)return!1;return void 0===e.initializer}(e);case 17:case 16:return function(e){if(156!==e.kind)return!1;return void 0===e.initializer}(e)}return!1}(t,e))return t.jsDocCache&&(t.jsDocCache=void 0),t}}}function st(e){return O.setTextPos(e.end),le(),e}function ct(e){if(ne(function(e){switch(e){case 0:case 1:return F.Diagnostics.Declaration_or_statement_expected;case 2:return F.Diagnostics.case_or_default_expected;case 3:return F.Diagnostics.Statement_expected;case 18:case 4:return F.Diagnostics.Property_or_signature_expected;case 5:return F.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected;case 6:return F.Diagnostics.Enum_member_expected;case 7:return F.Diagnostics.Expression_expected;case 8:return F.Diagnostics.Variable_declaration_expected;case 9:return F.Diagnostics.Property_destructuring_pattern_expected;case 10:return F.Diagnostics.Array_element_destructuring_pattern_expected;case 11:return F.Diagnostics.Argument_expression_expected;case 12:return F.Diagnostics.Property_assignment_expected;case 15:return F.Diagnostics.Expression_or_comma_expected;case 17:case 16:return F.Diagnostics.Parameter_declaration_expected;case 19:return F.Diagnostics.Type_parameter_declaration_expected;case 20:return F.Diagnostics.Type_argument_expected;case 21:return F.Diagnostics.Type_expected;case 22:return F.Diagnostics.Unexpected_token_expected;case 23:case 13:case 14:return F.Diagnostics.Identifier_expected;default:return}}(e)),function(){for(var e=0;e<24;e++)if(b&1<<e&&(Qe(e,!0)||nt(e)))return 1}())return 1;le()}function ut(e,t,r){var n=b;b|=1<<e;for(var i=[],a=ce(),o=-1;;)if(Qe(e,!1)){var s=O.getStartPos();if(i.push(at(e,t)),o=O.getTokenPos(),!De(27)){if(o=-1,nt(e))break;xe(27,6===e?F.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0),r&&26===P&&!O.hasPrecedingLineBreak()&&le(),s===O.getStartPos()&&le()}}else{if(nt(e))break;if(ct(e))break}b=n;a=Pe(i,a);return 0<=o&&(a.hasTrailingComma=!0),a}function lt(){var e=Pe([],ce());return e.isMissingList=!0,e}function _t(e,t,r,n){if(xe(r)){t=ut(e,t);return xe(n),t}return lt()}function dt(e,t){for(var r=(e?Re:Le)(t),n=O.getStartPos();De(24);){if(29===P){r.jsdocDotPos=n;break}n=O.getStartPos(),r=pt(r,ft(e,!1))}return r}function pt(e,t){var r=Ae(153,e.pos);return r.left=e,r.right=t,we(r)}function ft(e,t){if(O.hasPrecedingLineBreak()&&F.tokenIsIdentifierOrKeyword(P)&&he(tn))return Ie(75,!0,F.Diagnostics.Identifier_expected);if(76!==P)return(e?Re:Le)();e=ze();return t?e:Ie(75,!0,F.Diagnostics.Identifier_expected)}function gt(e){var t=Ae(211);t.head=function(e){e&&pe();e=yt(P);return F.Debug.assert(15===e.kind,"Template head has wrong token kind"),e}(e),F.Debug.assert(15===t.head.kind,"Template head has wrong token kind");for(var r=[],n=ce();r.push(function(e){var t=Ae(221);t.expression=X(ur),e=19===P?(P=O.reScanTemplateToken(e),function(){var e=yt(P);return F.Debug.assert(16===e.kind||17===e.kind,"Template fragment has wrong token kind"),e}()):Te(17,F.Diagnostics._0_expected,F.tokenToString(19));return t.literal=e,we(t)}(e)),16===F.last(r).literal.kind;);return t.templateSpans=Pe(r,n),we(t)}function mt(){return yt(P)}function yt(e){var t=Ae(e);switch(t.text=O.getTokenValue(),e){case 14:case 15:case 16:case 17:var r=14===e||17===e,n=O.getTokenText();t.rawText=n.substring(1,n.length-(O.isUnterminated()?0:r?1:2))}return O.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),O.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=1008&O.getTokenFlags()),F.isTemplateLiteralKind(t.kind)&&(t.templateFlags=2048&O.getTokenFlags()),le(),we(t),t}function ht(){var e=Ae(169);return e.typeName=dt(!0,F.Diagnostics.Type_expected),O.hasPrecedingLineBreak()||29!==fe()||(e.typeArguments=_t(20,ir,29,31)),we(e)}function vt(){var e=Ae(183);return le(),we(e)}function bt(e){var t=Ae(295);return e?Yt(299,t):(le(),we(t))}function xt(){var e=Ae(156);return 104!==P&&99!==P||(e.name=Re(),xe(58)),e.type=Dt(),we(e)}function Dt(){O.setInJSDocType(!0);var e=Se(135);if(e){var t=Ae(302,e.pos);e:for(;;)switch(P){case 19:case 1:case 27:case 5:break e;default:_e()}return O.setInJSDocType(!1),we(t)}e=Se(25),t=rr();return O.setInJSDocType(!1),e&&((e=Ae(301,e.pos)).type=t,t=we(e)),62===P?Yt(299,t):t}function St(){var e=Ae(155);return e.name=Le(),De(90)&&(Qt()||!cr()?e.constraint=ir():e.expression=Sr()),De(62)&&(e.default=ir()),we(e)}function Ct(){if(29===P)return _t(19,St,29,31)}function Tt(){if(De(58))return ir()}function kt(e){return 25===P||yn()||F.isModifierKind(P)||59===P||Qt(!e)}function Et(){var e=Fe(156);return 104===P?(e.name=Me(!0),e.type=Tt()):(e.decorators=Pn(),e.modifiers=wn(),e.dotDotDotToken=Se(25),e.name=hn(F.Diagnostics.Private_identifiers_cannot_be_used_as_parameters),0===F.getFullWidth(e.name)&&!e.modifiers&&F.isModifierKind(P)&&le(),e.questionToken=Se(57),e.type=Tt(),e.initializer=lr()),we(e)}function Nt(e,t,r){32&t||(r.typeParameters=Ct());var n=function(e,t){if(!xe(20))return e.parameters=lt(),!1;var r=$(),n=re();return q(!!(1&t)),H(!!(2&t)),e.parameters=32&t?ut(17,xt):ut(16,Et),q(r),H(n),xe(21)}(r,t);return(!function(e,t){{if(38===e)return xe(e),!0;if(De(58))return!0;if(t&&38===P)return ne(F.Diagnostics._0_expected,F.tokenToString(58)),le(),!0}return!1}(e,!!(4&t))||(r.type=rr(),!function e(t){switch(t.kind){case 169:return F.nodeIsMissing(t.typeName);case 170:case 171:var r=t.parameters,n=t.type;return!!r.isMissingList||e(n);case 182:return e(t.type);default:return!1}}(r.type)))&&n}function At(){De(27)||Ne()}function Ft(e){var t=Fe(e);return 166===e&&xe(99),Nt(58,4,t),At(),we(t)}function Pt(){return 22===P&&he(wt)}function wt(){if(le(),25===P||23===P)return!0;if(F.isModifierKind(P)){if(le(),be())return!0}else{if(!be())return!1;le()}return 58===P||27===P||57===P&&(le(),58===P||27===P||23===P)}function It(e){return e.kind=167,e.parameters=_t(16,Et,22,23),e.type=or(),At(),we(e)}function Ot(){if(20===P||29===P)return!0;for(var e=!1;F.isModifierKind(P);)e=!0,le();return 22===P||(Be()&&(e=!0,le()),!!e&&(20===P||29===P||57===P||58===P||27===P||Ee()))}function Mt(){if(20===P||29===P)return Ft(165);if(99===P&&he(Lt))return Ft(166);var e=Fe(0);return e.modifiers=wn(),Pt()?It(e):((e=e).name=Je(),e.questionToken=Se(57),20===P||29===P?(e.kind=160,Nt(58,4,e)):(e.kind=158,e.type=or(),62===P&&(e.initializer=lr())),At(),we(e))}function Lt(){return le(),20===P||29===P}function Rt(){return 24===le()}function Bt(){switch(le()){case 20:case 29:case 24:return!0}return!1}function jt(){var e;return xe(18)?(e=it(4,Mt),xe(19)):e=lt(),e}function Jt(){return le(),39===P||40===P?138===le():(138===P&&le(),22===P&&Ye()&&97===le())}function zt(){var e,t=Ae(186);return xe(18),138!==P&&39!==P&&40!==P||(t.readonlyToken=ke(),138!==t.readonlyToken.kind&&Te(138)),xe(22),t.typeParameter=((e=Ae(155)).name=Le(),xe(97),e.constraint=ir(),we(e)),xe(23),57!==P&&39!==P&&40!==P||(t.questionToken=ke(),57!==t.questionToken.kind&&Te(57)),t.type=or(),Ne(),xe(19),we(t)}function Ut(){var e=ce();if(De(25)){var t=Ae(177,e);return t.type=ir(),we(t)}t=ir();return 4194304&x||297!==t.kind||t.pos!==t.type.pos||(t.kind=176),t}function Vt(){var e=ke();return 24===P?void 0:e}function Kt(e){var t,r=Ae(187);e&&((t=Ae(207)).operator=40,le());var n=106===P||91===P?ke():yt(P);return e&&(t.operand=n,we(t),n=t),r.literal=n,we(r)}function qt(){return le(),96===P}function Wt(){p.flags|=1048576;var e=Ae(188);return De(108)&&(e.isTypeOf=!0),xe(96),xe(20),e.argument=ir(),xe(21),De(24)&&(e.qualifier=dt(!0,F.Diagnostics.Type_expected)),O.hasPrecedingLineBreak()||29!==fe()||(e.typeArguments=_t(20,ir,29,31)),we(e)}function Ht(){return le(),8===P||9===P}function Gt(){switch(P){case 125:case 148:case 143:case 140:case 151:case 144:case 128:case 146:case 137:case 141:return ve(Vt)||ht();case 41:return bt(!1);case 65:return bt(!0);case 60:O.reScanQuestionToken();case 57:return i=O.getStartPos(),le(),27!==P&&19!==P&&21!==P&&31!==P&&62!==P&&51!==P?((n=Ae(297,i)).type=ir(),we(n)):we(n=Ae(296,i));case 94:return function(){if(he(qn)){var e=Fe(300);return le(),Nt(58,36,e),we(e)}return(e=Ae(169)).typeName=Re(),we(e)}();case 53:return n=Ae(298),le(),n.type=Gt(),we(n);case 14:case 10:case 8:case 9:case 106:case 91:return Kt();case 40:return he(Ht)?Kt(!0):ht();case 110:case 100:return ke();case 104:var e=vt();return 133!==P||O.hasPrecedingLineBreak()?e:function(e){le();var t=Ae(168,e.pos);return t.parameterName=e,t.type=ir(),we(t)}(e);case 108:return he(qt)?Wt():(e=Ae(172),xe(108),e.exprName=dt(!0),we(e));case 18:return he(Jt)?zt():((r=Ae(173)).members=jt(),we(r));case 22:return(r=Ae(175)).elementTypes=_t(21,Ut,22,23),we(r);case 20:return t=Ae(182),xe(20),t.type=ir(),xe(21),we(t);case 96:return Wt();case 124:return he(tn)?((t=Ae(168)).assertsModifier=Te(124),t.parameterName=(104===P?vt:Le)(),t.type=De(133)?ir():void 0,we(t)):ht();default:return ht()}var t,r,n,i}function Qt(e){switch(P){case 125:case 148:case 143:case 140:case 151:case 128:case 138:case 144:case 147:case 110:case 146:case 100:case 104:case 108:case 137:case 18:case 22:case 29:case 51:case 50:case 99:case 10:case 8:case 9:case 106:case 91:case 141:case 41:case 57:case 53:case 25:case 132:case 96:case 124:return!0;case 94:return!e;case 40:return!e&&he(Ht);case 20:return!e&&he(Xt);default:return be()}}function Xt(){return le(),21===P||kt(!1)||Qt()}function Yt(e,t){le();e=Ae(e,t.pos);return e.type=t,we(e)}function Zt(){var e,t,r=P;switch(r){case 134:case 147:case 138:return e=r,t=Ae(184),xe(e),t.operator=e,t.type=Zt(),we(t);case 132:return function(){var e=Ae(181);xe(132);var t=Ae(155);return t.name=Le(),e.typeParameter=we(t),we(e)}()}return function(){for(var e,t=Gt();!O.hasPrecedingLineBreak();)switch(P){case 53:t=Yt(298,t);break;case 57:if(!(4194304&x)&&he(rt))return t;t=Yt(297,t);break;case 22:xe(22),t=(Qt()?((e=Ae(185,t.pos)).objectType=t,e.indexType=ir()):(e=Ae(174,t.pos)).elementType=t,xe(23),we(e));break;default:return t}return t}()}function $t(e,t,r){var n=O.getStartPos(),i=De(r),a=t();if(P===r||i){for(var o=[a];De(r);)o.push(t());e=Ae(e,n);e.types=Pe(o,n),a=we(e)}return a}function er(){return $t(179,Zt,50)}function tr(){if(le(),21===P||25===P)return!0;if(function(){if(F.isModifierKind(P)&&wn(),be()||104===P)return le(),1;if(22===P||18===P){var e=f.length;return hn(),e===f.length}}()){if(58===P||27===P||57===P||62===P)return!0;if(21===P&&(le(),38===P))return!0}return!1}function rr(){var e=be()&&ve(nr),t=ir();if(e){var r=Ae(168,e.pos);return r.assertsModifier=void 0,r.parameterName=e,r.type=t,we(r)}return t}function nr(){var e=Le();if(133===P&&!O.hasPrecedingLineBreak())return le(),e}function ir(){return G(40960,ar)}function ar(e){if(29===P||20===P&&he(tr)||99===P)return t=ce(),Nt(38,4,t=Fe(De(99)?171:170,t)),we(t);var t=$t(178,er,51);if(e||O.hasPrecedingLineBreak()||!De(90))return t;e=Ae(180,t.pos);return e.checkType=t,e.extendsType=ar(!0),xe(57),e.trueType=ar(),xe(58),e.falseType=ar(),we(e)}function or(){return De(58)?ir():void 0}function sr(){switch(P){case 104:case 102:case 100:case 106:case 91:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 94:case 80:case 99:case 43:case 67:case 75:return!0;case 96:return he(Bt);default:return be()}}function cr(){if(sr())return!0;switch(P){case 39:case 40:case 54:case 53:case 85:case 108:case 110:case 45:case 46:case 29:case 127:case 121:case 76:return!0;default:return function(){if(ee()&&97===P)return!1;return 0<F.getBinaryOperatorPrecedence(P)}()?!0:be()}}function ur(){var e=te();e&&W(!1);for(var t,r=_r();t=Se(27);)r=xr(r,t,_r());return e&&W(!0),r}function lr(){return De(62)?_r():void 0}function _r(){if(function(){if(121!==P)return!1;if($())return!0;return he(an)}())return e=Ae(212),le(),O.hasPrecedingLineBreak()||41!==P&&!cr()||(e.asteriskToken=Se(41),e.expression=_r()),we(e);var e=function(){var e=20!==P&&29!==P&&126!==P?38!==P?0:1:he(pr);if(0===e)return;var t=1===e?mr(!0):ve(fr);if(!t)return;var r=ei(t,126),e=P;return t.equalsGreaterThanToken=Te(38),t.body=38===e||18===e?yr(r):Le(),we(t)}()||function(){if(126===P&&1===he(gr)){var e=In();return dr(hr(0),e)}return}();if(e)return e;e=hr(0);return 75===e.kind&&38===P?dr(e):F.isLeftHandSideExpression(e)&&F.isAssignmentOperator(de())?xr(e,ke(),_r()):function(e){var t=Se(57);if(!t)return e;var r=Ae(210,e.pos);return r.condition=e,r.questionToken=t,r.whenTrue=G(S,_r),r.colonToken=Te(58),r.whenFalse=F.nodeIsPresent(r.colonToken)?_r():Ie(75,!1,F.Diagnostics._0_expected,F.tokenToString(58)),we(r)}(e)}function dr(e,t){var r;F.Debug.assert(38===P,"parseSimpleArrowFunctionExpression should only have been called if we had a =>"),t?(r=Ae(202,t.pos)).modifiers=t:r=Ae(202,e.pos);var n=Ae(156,e.pos);return n.name=e,we(n),r.parameters=Pe([n],n.pos,n.end),r.equalsGreaterThanToken=Te(38),r.body=yr(!!t),J(we(r))}function pr(){if(126===P){if(le(),O.hasPrecedingLineBreak())return 0;if(20!==P&&29!==P)return 0}var e=P,t=le();if(20!==e)return F.Debug.assert(29===e),be()?1!==p.languageVariant?2:he(function(){var e=le();if(90===e)switch(le()){case 62:case 31:return!1;default:return!0}else if(27===e)return!0;return!1})?1:0:0;if(21===t)switch(le()){case 38:case 58:case 18:return 1;default:return 0}if(22===t||18===t)return 2;if(25===t)return 1;if(F.isModifierKind(t)&&126!==t&&he(Ye))return 1;if(!be()&&104!==t)return 0;switch(le()){case 58:return 1;case 57:return le(),58===P||27===P||62===P||21===P?1:0;case 27:case 62:case 21:return 2}return 0}function fr(){var e=O.getTokenPos();if(!r||!r.has(e.toString())){var t=mr(!1);return t||(r=r||F.createMap()).set(e.toString(),!0),t}}function gr(){if(126===P){if(le(),O.hasPrecedingLineBreak()||38===P)return 0;var e=hr(0);if(!O.hasPrecedingLineBreak()&&75===e.kind&&38===P)return 1}return 0}function mr(e){var t=Fe(202);if(t.modifiers=In(),Nt(58,ei(t,126)?2:0,t)||e){var r=t.type&&F.isJSDocFunctionType(t.type);if(e||38===P||!r&&18===P)return t}}function yr(e){return 18===P?Xr(e?2:0):26===P||94===P||80===P||!cn()||18!==P&&94!==P&&80!==P&&59!==P&&cr()?e?Y(_r):G(32768,_r):Xr(16|(e?2:0))}function hr(e){return br(e,Sr())}function vr(e){return 97===e||152===e}function br(e,t){for(;;){de();var r=F.getBinaryOperatorPrecedence(P);if(!(42===P?e<=r:e<r))break;if(97===P&&ee())break;if(123===P){if(O.hasPrecedingLineBreak())break;le(),n=t,i=ir(),a=void 0,(a=Ae(217,n.pos)).expression=n,a.type=i,t=we(a)}else t=xr(t,ke(),hr(r))}var n,i,a;return t}function xr(e,t,r){var n=Ae(209,e.pos);return n.left=e,n.operatorToken=t,n.right=r,we(n)}function Dr(){var e=Ae(207);return e.operator=P,le(),e.operand=Cr(),we(e)}function Sr(){if(function(){switch(P){case 39:case 40:case 54:case 53:case 85:case 108:case 110:case 127:return!1;case 29:if(1!==p.languageVariant)return!1;default:return!0}}()){var e=Tr();return 42===P?br(F.getBinaryOperatorPrecedence(P),e):e}var t,r=P,n=Cr();return 42===P&&(t=F.skipTrivia(w,n.pos),e=n.end,199===n.kind?ae(t,e,F.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):ae(t,e,F.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,F.tokenToString(r))),n}function Cr(){switch(P){case 39:case 40:case 54:case 53:return Dr();case 85:return r=Ae(203),le(),r.expression=Cr(),we(r);case 108:return t=Ae(204),le(),t.expression=Cr(),we(t);case 110:return t=Ae(205),le(),t.expression=Cr(),we(t);case 29:return e=Ae(199),xe(29),e.type=ir(),xe(31),e.expression=Cr(),we(e);case 127:if(127===P&&(re()||he(an)))return e=Ae(206),le(),e.expression=Cr(),we(e);default:return Tr()}var e,t,r}function Tr(){if(45===P||46===P)return(e=Ae(207)).operator=P,le(),e.operand=kr(),we(e);if(1===p.languageVariant&&29===P&&he($e))return Nr(!0);var e,t=kr();return F.Debug.assert(F.isLeftHandSideExpression(t)),45!==P&&46!==P||O.hasPrecedingLineBreak()?t:((e=Ae(208,t.pos)).operand=t,e.operator=P,le(),we(e))}function kr(){var e,t;return 96===P?he(Lt)?(p.flags|=1048576,e=ke()):he(Rt)?(t=O.getStartPos(),le(),le(),(t=Ae(219,t)).keywordToken=96,t.name=Re(),e=we(t),p.flags|=2097152):e=Er():e=(102===P?function(){var e=ke();29===P&&(t=ce(),void 0!==ve(Jr)&&ae(t,ce(),F.Diagnostics.super_may_not_use_type_arguments));if(20===P||24===P||22===P)return e;var t=Ae(194,e.pos);return t.expression=e,Te(24,F.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),t.name=ft(!0,!0),we(t)}:Er)(),function(e){for(;;){e=Lr(e,!0);var t=Se(28);if(29===P||47===P){var r,n=ve(Jr);if(n){if(Rr()){e=Br(e,t,n);continue}(r=Ae(196,e.pos)).expression=e,r.questionDotToken=t,r.typeArguments=n,r.arguments=jr(),(t||Mr(e))&&(r.flags|=32),e=we(r);continue}}else if(20===P){(r=Ae(196,e.pos)).expression=e,r.questionDotToken=t,r.arguments=jr(),(t||Mr(e))&&(r.flags|=32),e=we(r);continue}t&&((n=Ae(194,e.pos)).expression=e,n.questionDotToken=t,n.name=Ie(75,!1,F.Diagnostics.Identifier_expected),n.flags|=32,e=we(n));break}return e}(e)}function Er(){return Lr(zr(),!0)}function Nr(e){var t=function(e){var t=O.getStartPos();if(xe(29),31===P){var r=Ae(271,t);return me(),we(r)}var n,i=Pr(),a=Jn(),r=function(){var e=Ae(274);return e.properties=it(13,Ir),we(e)}();31===P?(n=Ae(268,t),me()):(xe(43),e?xe(31):(xe(31,void 0,!1),me()),n=Ae(267,t));return n.tagName=i,n.typeArguments=a,n.attributes=r,we(n)}(e),r=268===t.kind?((r=Ae(266,t.pos)).openingElement=t,r.children=Fr(r.openingElement),r.closingElement=function(e){var t=Ae(269);xe(30),t.tagName=Pr(),e?xe(31):(xe(31,void 0,!1),me());return we(t)}(e),gi(r.openingElement.tagName,r.closingElement.tagName)||oe(r.closingElement,F.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,F.getTextOfNodeFromSourceText(w,r.openingElement.tagName)),we(r)):271===t.kind?((r=Ae(270,t.pos)).openingFragment=t,r.children=Fr(r.openingFragment),r.closingFragment=function(e){var t=Ae(272);xe(30),F.tokenIsIdentifierOrKeyword(P)&&oe(Pr(),F.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);e?xe(31):(xe(31,void 0,!1),me());return we(t)}(e),we(r)):(F.Debug.assert(267===t.kind),t);if(e&&29===P){t=ve(function(){return Nr(!0)});if(t){ne(F.Diagnostics.JSX_expressions_must_have_one_parent_element);e=Ae(209,r.pos);return e.end=t.end,e.left=r,e.right=t,e.operatorToken=Ie(27,!1),e.operatorToken.pos=e.operatorToken.end=e.right.pos,e}}return r}function Ar(e,t){switch(t){case 1:return void(F.isJsxOpeningFragment(e)?oe(e,F.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag):(r=e.tagName,ae(F.skipTrivia(w,r.pos),r.end,F.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,F.getTextOfNodeFromSourceText(w,e.tagName))));case 30:case 7:return;case 11:case 12:return(r=Ae(11)).text=O.getTokenValue(),r.containsOnlyTriviaWhiteSpaces=12===P,P=O.scanJsxToken(),we(r);case 18:return wr(!1);case 29:return Nr(!1);default:return F.Debug.assertNever(t)}var r}function Fr(e){var t=[],r=ce(),n=b;for(b|=16384;;){var i=Ar(e,P=O.reScanJsxToken());if(!i)break;t.push(i)}return b=n,Pe(t,r)}function Pr(){ge();for(var e=(104===P?ke:Re)();De(24);){var t=Ae(194,e.pos);t.expression=e,t.name=ft(!0,!1),e=we(t)}return e}function wr(e){var t=Ae(276);if(xe(18))return 19!==P&&(t.dotDotDotToken=Se(25),t.expression=ur()),e?xe(19):xe(19,void 0,!1)&&me(),we(t)}function Ir(){if(18===P)return e=Ae(275),xe(18),xe(25),e.expression=ur(),xe(19),we(e);ge();var e=Ae(273);return e.name=Re(),62===P&&(10===(P=O.scanJsxAttributeValue())?e.initializer=mt():e.initializer=wr(!0)),we(e)}function Or(){return le(),F.tokenIsIdentifierOrKeyword(P)||22===P||Rr()}function Mr(e){if(32&e.flags)return 1;if(F.isNonNullExpression(e)){for(var t=e.expression;F.isNonNullExpression(t)&&!(32&t.flags);)t=t.expression;if(32&t.flags){for(;F.isNonNullExpression(e);)e.flags|=32,e=e.expression;return 1}}}function Lr(e,t){for(;;){var r=void 0;if(t&&28===P&&he(Or)?(r=Te(28),F.tokenIsIdentifierOrKeyword(P)):De(24))a=r,o=void 0,(o=Ae(194,(i=e).pos)).expression=i,o.questionDotToken=a,o.name=ft(!0,!0),(a||Mr(i))&&(o.flags|=32,F.isPrivateIdentifier(o.name)&&oe(o.name,F.Diagnostics.An_optional_chain_cannot_contain_private_identifiers)),e=we(o);else if(r||53!==P||O.hasPrecedingLineBreak())if(!r&&te()||!De(22)){if(!Rr())return e;e=Br(e,r,void 0)}else i=r,n=o=void 0,(n=Ae(195,(r=e).pos)).expression=r,n.questionDotToken=i,23===P?n.argumentExpression=Ie(75,!0,F.Diagnostics.An_element_access_expression_should_take_an_argument):(o=X(ur),F.isStringOrNumericLiteralLike(o)&&(o.text=Oe(o.text)),n.argumentExpression=o),xe(23),(i||Mr(r))&&(n.flags|=32),e=we(n);else{le();n=Ae(218,e.pos);n.expression=e,e=we(n)}}var n,i,a,o}function Rr(){return 14===P||15===P}function Br(e,t,r){var n=Ae(198,e.pos);return n.tag=e,n.questionDotToken=t,n.typeArguments=r,n.template=14===P?(pe(),mt()):gt(!0),(t||32&e.flags)&&(n.flags|=32),we(n)}function jr(){xe(20);var e=ut(11,Vr);return xe(21),e}function Jr(){if(29===fe()){le();var e=ut(20,ir);if(xe(31))return e&&function(){switch(P){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return!0;case 27:case 18:default:return!1}}()?e:void 0}}function zr(){switch(P){case 8:case 9:case 10:case 14:return mt();case 104:case 102:case 100:case 106:case 91:return ke();case 20:return e=Fe(200),xe(20),e.expression=X(ur),xe(21),we(e);case 22:return Kr();case 18:return Wr();case 126:if(!he(nn))break;return Hr();case 80:return Ln(Fe(0),214);case 94:return Hr();case 99:return function(){var e=O.getStartPos();if(xe(99),De(24)){var t=Ae(219,e);return t.keywordToken=99,t.name=Re(),we(t)}var r,n=zr();for(;;){n=Lr(n,!1),r=ve(Jr),Rr()&&(F.Debug.assert(!!r,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),n=Br(n,void 0,r),r=void 0);break}t=Ae(197,e);t.expression=n,t.typeArguments=r,20===P?t.arguments=jr():t.typeArguments&&ae(e,O.getStartPos(),F.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list);return we(t)}();case 43:case 67:if(13===(P=O.reScanSlashToken()))return mt();break;case 15:return gt(!1)}var e;return Le(F.Diagnostics.Expression_expected)}function Ur(){return 25===P?(e=Ae(213),xe(25),e.expression=_r(),we(e)):27===P?Ae(215):_r();var e}function Vr(){return G(S,Ur)}function Kr(){var e=Ae(192);return xe(22),O.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=ut(15,Ur),xe(23),we(e)}function qr(){var e=Fe(0);if(Se(25))return e.kind=283,e.expression=_r(),we(e);if(e.decorators=Pn(),e.modifiers=wn(),Ue(131))return An(e,163);if(Ue(142))return An(e,164);var t=Se(41),r=be();return e.name=Je(),e.questionToken=Se(57),e.exclamationToken=Se(53),t||20===P||29===P?kn(e,t):(r&&58!==P?(e.kind=282,(r=Se(62))&&(e.equalsToken=r,e.objectAssignmentInitializer=X(_r))):(e.kind=281,xe(58),e.initializer=X(_r)),we(e))}function Wr(){var e,t=Ae(193),r=O.getTokenPos();return xe(18),O.hasPrecedingLineBreak()&&(t.multiLine=!0),t.properties=ut(12,qr,!0),xe(19)||(e=F.lastOrUndefined(f))&&e.code===F.Diagnostics._0_expected.code&&F.addRelatedInfo(e,F.createFileDiagnostic(p,r,1,F.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here)),we(t)}function Hr(){var e=te();e&&W(!1);var t=Fe(201);t.modifiers=wn(),xe(94),t.asteriskToken=Se(41);var r=t.asteriskToken?1:0,n=ei(t,126)?2:0;return t.name=r&&n?Q(40960,Gr):r?Q(8192,Gr):n?Y(Gr):Gr(),Nt(58,r|n,t),t.body=Xr(r|n),e&&W(!0),we(t)}function Gr(){return be()?Le():void 0}function Qr(e,t){var r=Ae(223),n=O.getTokenPos();return xe(18,t)||e?(O.hasPrecedingLineBreak()&&(r.multiLine=!0),r.statements=it(1,ln),xe(19)||(e=F.lastOrUndefined(f))&&e.code===F.Diagnostics._0_expected.code&&F.addRelatedInfo(e,F.createFileDiagnostic(p,n,1,F.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))):r.statements=lt(),we(r)}function Xr(e,t){var r=$();q(!!(1&e));var n=re();H(!!(2&e));var i=te();i&&W(!1);t=Qr(!!(16&e),t);return i&&W(!0),q(r),H(n),t}function Yr(){var e=ce();xe(93);var t,r,n,i=Se(127);return xe(20),26!==P&&(t=109===P||115===P||81===P?xn(!0):Q(4096,ur)),(n=(i?xe:De)(152)?((r=Ae(232,e)).awaitModifier=i,r.initializer=t,r.expression=X(_r),xe(21),r):De(97)?((r=Ae(231,e)).initializer=t,r.expression=X(ur),xe(21),r):((n=Ae(230,e)).initializer=t,xe(26),26!==P&&21!==P&&(n.condition=X(ur)),xe(26),21!==P&&(n.incrementor=X(ur)),xe(21),n)).statement=ln(),we(n)}function Zr(e){var t=Ae(e);return xe(234===e?77:82),Ee()||(t.label=Le()),Ne(),we(t)}function $r(){return 78===P?(e=Ae(277),xe(78),e.expression=X(ur),xe(58),e.statements=it(3,ln),we(e)):(e=Ae(278),xe(84),xe(58),e.statements=it(3,ln),we(e));var e}function en(){var e=Ae(240);return xe(107),e.tryBlock=Qr(!1),e.catchClause=79===P?function(){var e=Ae(280);xe(79),De(20)?(e.variableDeclaration=bn(),xe(21)):e.variableDeclaration=void 0;return e.block=Qr(!1),we(e)}():void 0,e.catchClause&&92!==P||(xe(92),e.finallyBlock=Qr(!1)),we(e)}function tn(){return le(),F.tokenIsIdentifierOrKeyword(P)&&!O.hasPrecedingLineBreak()}function rn(){return le(),80===P&&!O.hasPrecedingLineBreak()}function nn(){return le(),94===P&&!O.hasPrecedingLineBreak()}function an(){return le(),(F.tokenIsIdentifierOrKeyword(P)||8===P||9===P||10===P)&&!O.hasPrecedingLineBreak()}function on(){for(;;)switch(P){case 109:case 115:case 81:case 94:case 80:case 88:return!0;case 114:case 145:return le(),!O.hasPrecedingLineBreak()&&be();case 135:case 136:return le(),!O.hasPrecedingLineBreak()&&(be()||10===P);case 122:case 126:case 130:case 117:case 118:case 119:case 138:if(le(),O.hasPrecedingLineBreak())return!1;continue;case 150:return le(),18===P||75===P||89===P;case 96:return le(),10===P||41===P||18===P||F.tokenIsIdentifierOrKeyword(P);case 89:var e=le();if(145===e&&(e=he(le)),62===e||41===e||18===e||84===e||123===e)return!0;continue;case 120:le();continue;default:return!1}}function sn(){return he(on)}function cn(){switch(P){case 59:case 26:case 18:case 109:case 115:case 94:case 80:case 88:case 95:case 86:case 111:case 93:case 82:case 77:case 101:case 112:case 103:case 105:case 107:case 83:case 79:case 92:return!0;case 96:return sn()||he(Bt);case 81:case 89:return sn();case 126:case 130:case 114:case 135:case 136:case 145:case 150:return!0;case 119:case 117:case 118:case 120:case 138:return sn()||!he(tn);default:return cr()}}function un(){return le(),be()||18===P||22===P}function ln(){switch(P){case 26:return n=Ae(224),xe(26),we(n);case 18:return Qr(!1);case 109:return Sn(Fe(242));case 115:if(he(un))return Sn(Fe(242));break;case 94:return Cn(Fe(244));case 80:return Mn(Fe(245));case 95:return n=Ae(227),xe(95),xe(20),n.expression=X(ur),xe(21),n.thenStatement=ln(),n.elseStatement=De(87)?ln():void 0,we(n);case 86:return r=Ae(228),xe(86),r.statement=ln(),xe(111),xe(20),r.expression=X(ur),xe(21),De(26),we(r);case 111:return r=Ae(229),xe(111),xe(20),r.expression=X(ur),xe(21),r.statement=ln(),we(r);case 93:return Yr();case 82:return Zr(233);case 77:return Zr(234);case 101:return t=Ae(235),xe(101),Ee()||(t.expression=X(ur)),Ne(),we(t);case 112:return t=Ae(236),xe(112),xe(20),t.expression=X(ur),xe(21),t.statement=Q(16777216,ln),we(t);case 103:return function(){var e=Ae(237);xe(103),xe(20),e.expression=X(ur),xe(21);var t=Ae(251);return xe(18),t.clauses=it(2,$r),xe(19),e.caseBlock=we(t),we(e)}();case 105:return e=Ae(239),xe(105),e.expression=O.hasPrecedingLineBreak()?void 0:X(ur),Ne(),we(e);case 107:case 79:case 92:return en();case 83:return e=Ae(241),xe(83),Ne(),we(e);case 59:return dn();case 126:case 114:case 145:case 135:case 136:case 130:case 81:case 88:case 89:case 96:case 117:case 118:case 119:case 122:case 120:case 138:case 150:if(sn())return dn()}var e,t,r,n,i,a;return i=Fe(75===P?0:226),75===(a=X(ur)).kind&&De(58)?(i.kind=238,i.label=a,i.statement=ln()):(i.kind=226,i.expression=a,Ne()),we(i)}function _n(e){return 130===e.kind}function dn(){var e=he(function(){return Pn(),wn()}),t=F.some(e,_n);if(t){e=Q(8388608,function(){var e=ot(b);if(e)return st(e)});if(e)return e}var r=Fe(0);if(r.decorators=Pn(),r.modifiers=wn(),t){for(var n=0,i=r.modifiers;n<i.length;n++)i[n].flags|=8388608;return Q(8388608,function(){return pn(r)})}return pn(r)}function pn(e){switch(P){case 109:case 115:case 81:return Sn(e);case 94:return Cn(e);case 80:return Mn(e);case 114:return(n=e).kind=246,xe(114),n.name=Le(),n.typeParameters=Ct(),n.heritageClauses=Rn(),n.members=jt(),we(n);case 145:return(r=e).kind=247,xe(145),r.name=Le(),r.typeParameters=Ct(),xe(62),r.type=ir(),Ne(),we(r);case 88:return function(e){e.kind=248,xe(88),e.name=Le(),xe(18)?(e.members=G(40960,function(){return ut(6,Un)}),xe(19)):e.members=lt();return we(e)}(e);case 150:case 135:case 136:return function(e){var t=0;{if(150===P)return Kn(e);if(De(136))t|=16;else if(xe(135),10===P)return Kn(e)}return function e(t,r){t.kind=249;var n=16&r;t.flags|=r;t.name=Le();t.body=De(24)?e(Ae(0),4|n):Vn();return we(t)}(e,t)}(e);case 96:return function(e){xe(96);var t,r=O.getStartPos();be()&&(t=Le());var n=!1;149===P||"type"!==(null==t?void 0:t.escapedText)||!be()&&41!==P&&18!==P||(n=!0,t=be()?Le():void 0);if(t&&27!==P&&149!==P)return function(e,t,r){e.kind=253,e.name=t,xe(62),e.moduleReference=139===P&&he(qn)?function(){var e=Ae(265);return xe(139),xe(20),e.expression=Hn(),xe(21),we(e)}():dt(!1),Ne();e=we(e);r&&oe(e,F.Diagnostics.Only_ECMAScript_imports_may_use_import_type);return e}(e,t,n);e.kind=254,!t&&41!==P&&18!==P||(e.importClause=function(e,t,r){t=Ae(255,t);t.isTypeOnly=r,e&&(t.name=e);t.name&&!De(27)||(t.namedBindings=41===P?function(){var e=Ae(256);return xe(41),xe(123),e.name=Le(),we(e)}():Gn(257));return we(t)}(t,r,n),xe(149));return e.moduleSpecifier=Hn(),Ne(),we(e)}(e);case 89:switch(le(),P){case 84:case 62:return function(e){e.kind=259,De(62)?e.isExportEquals=!0:xe(84);return e.expression=_r(),Ne(),we(e)}(e);case 123:return(t=e).kind=252,xe(123),xe(136),t.name=Le(),Ne(),we(t);default:return function(e){e.kind=260,e.isTypeOnly=De(145);var t=O.getStartPos();De(41)?(De(123)&&(e.exportClause=function(e){e=Ae(262,e);return e.name=Le(),we(e)}(t)),xe(149),e.moduleSpecifier=Hn()):(e.exportClause=Gn(261),149!==P&&(10!==P||O.hasPrecedingLineBreak())||(xe(149),e.moduleSpecifier=Hn()));return Ne(),we(e)}(e)}default:if(e.decorators||e.modifiers){r=Ie(264,!0,F.Diagnostics.Declaration_expected);return r.pos=e.pos,r.decorators=e.decorators,r.modifiers=e.modifiers,we(r)}return}var t,r,n}function fn(e,t){if(18===P||!Ee())return Xr(e,t);Ne()}function gn(){if(27===P)return Ae(215);var e=Ae(191);return e.dotDotDotToken=Se(25),e.name=hn(),e.initializer=lr(),we(e)}function mn(){var e=Ae(191);e.dotDotDotToken=Se(25);var t=be(),r=Je();return t&&58!==P?e.name=r:(xe(58),e.propertyName=r,e.name=hn()),e.initializer=lr(),we(e)}function yn(){return 18===P||22===P||76===P||be()}function hn(e){return 22===P?(t=Ae(190),xe(22),t.elements=ut(10,gn),xe(23),we(t)):18===P?(t=Ae(189),xe(18),t.elements=ut(9,mn),xe(19),we(t)):Le(void 0,e);var t}function vn(){return bn(!0)}function bn(e){var t=Ae(242);return t.name=hn(F.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations),e&&75===t.name.kind&&53===P&&!O.hasPrecedingLineBreak()&&(t.exclamationToken=ke()),t.type=or(),vr(P)||(t.initializer=lr()),we(t)}function xn(e){var t,r=Ae(243);switch(P){case 109:break;case 115:r.flags|=1;break;case 81:r.flags|=2;break;default:F.Debug.fail()}return le(),152===P&&he(Dn)?r.declarations=lt():(t=ee(),K(e),r.declarations=ut(8,e?bn:vn),K(t)),we(r)}function Dn(){return Ye()&&21===le()}function Sn(e){return e.kind=225,e.declarationList=xn(!1),Ne(),we(e)}function Cn(e){e.kind=244,xe(94),e.asteriskToken=Se(41),e.name=(ei(e,84)?Gr:Le)();var t=e.asteriskToken?1:0,r=ei(e,126)?2:0;return Nt(58,t|r,e),e.body=fn(t|r,F.Diagnostics.or_expected),we(e)}function Tn(e){return ve(function(){if(129===P?xe(129):10===P&&20===he(le)&&ve(function(){var e=mt();return"constructor"===e.text?e:void 0}))return e.kind=162,Nt(58,0,e),e.body=fn(0,F.Diagnostics.or_expected),we(e)})}function kn(e,t,r){e.kind=161;var n=(e.asteriskToken=t)?1:0,t=ei(e,126)?2:0;return Nt(58,n|t,e),e.body=fn(n|t,r),we(e)}function En(e){return e.kind=159,e.questionToken||53!==P||O.hasPrecedingLineBreak()||(e.exclamationToken=ke()),e.type=or(),e.initializer=G(45056,lr),Ne(),we(e)}function Nn(e){var t=Se(41);return e.name=Je(),e.questionToken=Se(57),t||20===P||29===P?kn(e,t,F.Diagnostics.or_expected):En(e)}function An(e,t){return e.kind=t,e.name=Je(),Nt(58,0,e),e.body=fn(0),we(e)}function Fn(){var e;if(59===P)return!0;for(;F.isModifierKind(P);){if(e=P,F.isClassMemberModifier(e))return!0;le()}if(41===P)return!0;if(Be()&&(e=P,le()),22===P)return!0;if(void 0!==e){if(!F.isKeyword(e)||142===e||131===e)return!0;switch(P){case 20:case 29:case 53:case 58:case 62:case 57:return!0;default:return Ee()}}return!1}function Pn(){for(var e,t=ce();;){var r=ce();if(!De(59))break;r=Ae(157,r);r.expression=Q(16384,kr),we(r),(e=e||[]).push(r)}return e&&Pe(e,t)}function wn(e){for(var t,r=ce();;){var n=O.getStartPos(),i=P;if(81===P&&e){if(!ve(Ve))break}else if(!F.isModifierKind(P)||!ve(Ke))break;n=we(Ae(i,n));(t=t||[]).push(n)}return t&&Pe(t,r)}function In(){var e,t;return 126===P&&(t=O.getStartPos(),e=P,le(),t=Pe([we(Ae(e,t))],t)),t}function On(){if(26===P){var e=Ae(222);return le(),we(e)}var t=Fe(0);if(t.decorators=Pn(),t.modifiers=wn(!0),Ue(131))return An(t,163);if(Ue(142))return An(t,164);if(129===P||10===P){e=Tn(t);if(e)return e}if(Pt())return It(t);if(F.tokenIsIdentifierOrKeyword(P)||10===P||8===P||41===P||22===P){if(t.modifiers&&F.some(t.modifiers,_n)){for(var r=0,n=t.modifiers;r<n.length;r++)n[r].flags|=8388608;return Q(8388608,function(){return Nn(t)})}return Nn(t)}return t.decorators||t.modifiers?(t.name=Ie(75,!0,F.Diagnostics.Declaration_expected),En(t)):F.Debug.fail("Should not have attempted to parse class member declaration.")}function Mn(e){return Ln(e,245)}function Ln(e,t){return e.kind=t,xe(80),e.name=!be()||113===P&&he(Ze)?void 0:Le(),e.typeParameters=Ct(),e.heritageClauses=Rn(),xe(18)?(e.members=it(5,On),xe(19)):e.members=lt(),we(e)}function Rn(){if(zn())return it(22,Bn)}function Bn(){var e=P;F.Debug.assert(90===e||113===e);var t=Ae(279);return t.token=e,le(),t.types=ut(7,jn),we(t)}function jn(){var e=Ae(216);return e.expression=kr(),e.typeArguments=Jn(),we(e)}function Jn(){return 29===P?_t(20,ir,29,31):void 0}function zn(){return 90===P||113===P}function Un(){var e=Fe(284);return e.name=Je(),e.initializer=X(lr),we(e)}function Vn(){var e=Ae(250);return xe(18)?(e.statements=it(1,ln),xe(19)):e.statements=lt(),we(e)}function Kn(e){return e.kind=249,150===P?(e.name=Le(),e.flags|=1024):(e.name=mt(),e.name.text=Oe(e.name.text)),18===P?e.body=Vn():Ne(),we(e)}function qn(){return 20===le()}function Wn(){return 43===le()}function Hn(){if(10!==P)return ur();var e=mt();return e.text=Oe(e.text),e}function Gn(e){var t=Ae(e);return t.elements=_t(23,257===e?Xn:Qn,18,19),we(t)}function Qn(){return Yn(263)}function Xn(){return Yn(258)}function Yn(e){var t=Ae(e),r=F.isKeyword(P)&&!be(),n=O.getTokenPos(),i=O.getTextPos(),a=Re();return 123===P?(t.propertyName=a,xe(123),r=F.isKeyword(P)&&!be(),n=O.getTokenPos(),i=O.getTextPos(),t.name=Re()):t.name=a,258===e&&r&&ae(n,i,F.Diagnostics.Identifier_expected),we(t)}function Zn(e){return ei(e,89)||253===e.kind&&265===e.moduleReference.kind||254===e.kind||259===e.kind||260===e.kind?e:void 0}function $n(e){return t=e,F.isMetaProperty(t)&&96===t.keywordToken&&"meta"===t.name.escapedText?e:N(e,$n);var t}function ei(e,t){return F.some(e.modifiers,function(e){return e.kind===t})}function ti(e){var t=Ae(294),r=(e?De:xe)(18);return t.type=Q(4194304,Dt),e&&!r||(P===(r=19)?_e():ne(F.Diagnostics._0_expected,F.tokenToString(r))),z(t),we(t)}function ri(s,e){void 0===s&&(s=0);var c=w,u=void 0===e?c.length:s+e;if(e=u-s,F.Debug.assert(0<=s),F.Debug.assert(s<=u),F.Debug.assert(u<=c.length),M(c,s)){var l,_,d,p=[];return O.scanRange(s+3,e-5,function(){var t,e,r,n=1,i=s-Math.max(c.lastIndexOf("\n",s),0)+4;function a(e){t=t||i,p.push(e),i+=e.length}for(_e();N(5););N(4)&&(i=n=0);e:for(;;){switch(P){case 59:0===n||1===n?(g(p),(e=h(i))&&(l?l.push(e):(l=[e],_=e.pos),d=e.end),t=void(n=0)):a(O.getTokenText());break;case 4:p.push(O.getTokenText()),i=n=0;break;case 41:var o=O.getTokenText();1===n||2===n?(n=2,a(o)):(n=1,i+=o.length);break;case 5:o=O.getTokenText();2===n?p.push(o):void 0!==t&&i+o.length>t&&p.push(o.slice(t-i-1)),i+=o.length;break;case 1:break e;default:n=2,a(O.getTokenText())}_e()}return f(p),g(p),(r=Ae(303,s)).tags=l&&Pe(l,_,d),r.comment=p.length?p.join(""):void 0,we(r,u)})}function f(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function g(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function n(){for(;;){if(_e(),1===P)return!0;if(5!==P&&4!==P)return!1}}function m(){if(5!==P&&4!==P||!he(n))for(;5===P||4===P;)_e()}function y(){if((5===P||4===P)&&he(n))return"";for(var e=O.hasPrecedingLineBreak(),t=!1,r="";e&&41===P||5===P||4===P;)r+=O.getTokenText(),4===P?(t=e=!0,r=""):41===P&&(e=!1),_e();return t?r:""}function h(e){F.Debug.assert(59===P);var t=O.getTokenPos();_e();var r,n=A(void 0),i=y();switch(n.escapedText){case"author":r=function(e,t,r){e=Ae(309,e);e.tagName=t;t=ve(function(){var e=[],t=!1,r=!1,n=O.getToken();e:for(;;){switch(n){case 75:case 5:case 24:case 59:e.push(O.getTokenText());break;case 29:if(t||r)return;t=!0,e.push(O.getTokenText());break;case 31:if(!t||r)return;r=!0,e.push(O.getTokenText()),O.setTextPos(O.getTokenPos()+1);break e;case 4:case 1:break e}n=_e()}if(t&&r)return 0===e.length?void 0:e.join("")});if(!t)return we(e);{var n;e.comment=t,he(function(){return 4!==le()})&&(n=v(r))&&(e.comment+=n)}return we(e)}(t,n,e);break;case"implements":r=function(e,t){e=Ae(308,e);return e.tagName=t,e.class=a(),we(e)}(t,n);break;case"augments":case"extends":r=function(e,t){e=Ae(307,e);return e.tagName=t,e.class=a(),we(e)}(t,n);break;case"class":case"constructor":r=C(t,310,n);break;case"public":r=C(t,311,n);break;case"private":r=C(t,312,n);break;case"protected":r=C(t,313,n);break;case"readonly":r=C(t,314,n);break;case"this":r=function(e,t){e=Ae(319,e);return e.tagName=t,e.typeExpression=ti(!0),m(),we(e)}(t,n);break;case"enum":r=function(e,t){e=Ae(316,e);return e.tagName=t,e.typeExpression=ti(!0),m(),we(e)}(t,n);break;case"arg":case"argument":case"param":return o(t,n,2,e);case"return":case"returns":r=function(e,t){F.some(l,F.isJSDocReturnTag)&&ae(t.pos,O.getTokenPos(),F.Diagnostics._0_tag_already_specified,t.escapedText);e=Ae(318,e);return e.tagName=t,e.typeExpression=b(),we(e)}(t,n);break;case"template":r=function(e,t){var r;18===P&&(r=ti());var n=[],i=ce();do{m();var a=Ae(155)}while(a.name=A(F.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),we(a),y(),n.push(a),N(27));e=Ae(321,e);return e.tagName=t,e.constraint=r,e.typeParameters=Pe(n,i),we(e),e}(t,n);break;case"type":r=S(t,n);break;case"typedef":r=function(e,t,r){var n=b();y();var i,a=Ae(322,e);if(a.tagName=t,a.fullName=T(),a.name=k(a.fullName),m(),a.comment=v(r),!(a.typeExpression=n)||D(n.type)){for(var o=void 0,s=void 0,c=void 0;o=ve(function(){return E(1,r)});)if(s=s||Ae(304,e),320===o.kind){if(c)break;c=o}else s.jsDocPropertyTags=F.append(s.jsDocPropertyTags,o);s&&(n&&174===n.type.kind&&(s.isArrayType=!0),a.typeExpression=c&&c.typeExpression&&!D(c.typeExpression.type)?c.typeExpression:we(s),i=a.typeExpression.end)}return we(a,i||void 0!==a.comment?O.getStartPos():(a.fullName||a.typeExpression||a.tagName).end)}(t,n,e);break;case"callback":r=function(e,t,r){var n,i=Ae(315,e);i.tagName=t,i.fullName=T(),i.name=k(i.fullName),m(),i.comment=v(r);var a=Ae(305,e);a.parameters=[];for(;n=ve(function(){return E(4,r)});)a.parameters=F.append(a.parameters,n);e=ve(function(){if(N(59)){var e=h(r);if(e&&318===e.kind)return e}});e&&(a.type=e);return i.typeExpression=we(a),we(i)}(t,n,e);break;default:r=function(e,t){e=Ae(306,e);return e.tagName=t,we(e)}(t,n)}return r.comment||(i||(e+=r.end-r.pos),r.comment=v(e,i.slice(e))),r}function v(t,e){var r,n=[],i=0;function a(e){r=r||t,n.push(e),t+=e.length}void 0!==e&&(""!==e&&a(e),i=1);var o,s=P;e:for(;;){switch(s){case 4:1<=i&&(i=0,n.push(O.getTokenText())),t=0;break;case 59:if(3===i){n.push(O.getTokenText());break}O.setTextPos(O.getTextPos()-1);case 1:break e;case 5:2===i||3===i?a(O.getTokenText()):(o=O.getTokenText(),void 0!==r&&t+o.length>r&&n.push(o.slice(r-t)),t+=o.length);break;case 18:i=2,he(function(){return 59===_e()&&F.tokenIsIdentifierOrKeyword(_e())&&"link"===O.getTokenText()})&&(a(O.getTokenText()),_e(),a(O.getTokenText()),_e()),a(O.getTokenText());break;case 61:i=3===i?2:3,a(O.getTokenText());break;case 41:if(0===i){t+=i=1;break}default:3!==i&&(i=2),a(O.getTokenText())}s=_e()}return f(n),g(n),0===n.length?void 0:n.join("")}function b(){return y(),18===P?ti():void 0}function x(){var e=N(22);e&&m();var t=N(61),r=function(){var e=A();De(22)&&xe(23);for(;De(24);){var t=A();De(22)&&xe(23),e=pt(e,t)}return e}();return t&&(Ce(t=61)||Ie(t,!1,F.Diagnostics._0_expected,F.tokenToString(t))),e&&(m(),Se(62)&&ur(),xe(23)),{name:r,isBracketed:e}}function D(e){switch(e.kind){case 141:return!0;case 174:return D(e.elementType);default:return F.isTypeReferenceNode(e)&&F.isIdentifier(e.typeName)&&"Object"===e.typeName.escapedText&&!e.typeArguments}}function o(e,t,r,n){var i=b(),a=!i;y();var o=x(),s=o.name,c=o.isBracketed;m(),a&&(i=b());o=Ae(1===r?323:317,e),e=v(n+O.getStartPos()-e),n=4!==r&&function(e,t,r,n){if(e&&D(e.type)){for(var i=Ae(294,O.getTokenPos()),a=void 0,o=void 0,s=O.getStartPos(),c=void 0;a=ve(function(){return E(r,n,t)});)317!==a.kind&&323!==a.kind||(c=F.append(c,a));if(c)return(o=Ae(304,s)).jsDocPropertyTags=c,174===e.type.kind&&(o.isArrayType=!0),i.type=we(o),we(i)}}(i,s,r,n);return n&&(i=n,a=!0),o.tagName=t,o.typeExpression=i,o.name=s,o.isNameFirst=a,o.isBracketed=c,o.comment=e,we(o)}function S(e,t){F.some(l,F.isJSDocTypeTag)&&ae(t.pos,O.getTokenPos(),F.Diagnostics._0_tag_already_specified,t.escapedText);e=Ae(320,e);return e.tagName=t,e.typeExpression=ti(!0),we(e)}function a(){var e=De(18),t=Ae(216);t.expression=function(){var e=A();for(;De(24);){var t=Ae(194,e.pos);t.expression=e,t.name=A(),e=we(t)}return e}(),t.typeArguments=Jn();t=we(t);return e&&xe(19),t}function C(e,t,r){e=Ae(t,e);return e.tagName=r,we(e)}function T(e){var t=O.getTokenPos();if(F.tokenIsIdentifierOrKeyword(P)){var r=A();if(De(24)){t=Ae(249,t);return e&&(t.flags|=4),t.name=r,t.body=T(!0),we(t)}return e&&(r.isInJSDocNamespace=!0),r}}function k(e){if(e)for(var t=e;;){if(F.isIdentifier(t)||!t.body)return F.isIdentifier(t)?t:t.name;t=t.body}}function E(e,t,r){for(var n=!0,i=!1;;)switch(_e()){case 59:if(n){var a=function(e,t){F.Debug.assert(59===P);var r=O.getStartPos();_e();var n,i=A();switch(m(),i.escapedText){case"type":return 1===e&&S(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||317!==a.kind&&323!==a.kind||4===e||!r||!F.isIdentifier(a.name)&&function(e,t){for(;!F.isIdentifier(e)||!F.isIdentifier(t);){if(F.isIdentifier(e)||F.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 75:n=!1;break;case 1:return!1}}function N(e){return P===e&&(_e(),!0)}function A(e){if(!F.tokenIsIdentifierOrKeyword(P))return Ie(75,!e,e||F.Diagnostics.Identifier_expected);I++;var t=O.getTokenPos(),e=O.getTextPos(),t=Ae(75,t);return 75!==P&&(t.originalKeywordKind=P),t.escapedText=F.escapeLeadingUnderscores(Oe(O.getTokenValue())),we(t,e),_e(),t}}function ni(e,t,i,a,o,s){function c(e){var t="";if(s&&ii(e)&&(t=a.substring(e.pos,e.end)),e._children&&(e._children=void 0),e.pos+=i,e.end+=i,s&&ii(e)&&F.Debug.assert(t===o.substring(e.pos,e.end)),N(e,c,u),F.hasJSDocNodes(e))for(var r=0,n=e.jsDoc;r<n.length;r++)c(n[r]);oi(e,s)}function u(e){e._children=void 0,e.pos+=i,e.end+=i;for(var t=0,r=e;t<r.length;t++)c(r[t])}(t?u:c)(e)}function ii(e){switch(e.kind){case 10:case 8:case 75:return 1}}function ai(e,t,r,n,i){F.Debug.assert(e.end>=t,"Adjusting an element that was entirely before the change range"),F.Debug.assert(e.pos<=r,"Adjusting an element that was entirely after the change range"),F.Debug.assert(e.pos<=e.end),e.pos=Math.min(e.pos,n),e.end>=r?e.end+=i:e.end=Math.min(e.end,n),F.Debug.assert(e.pos<=e.end),e.parent&&(F.Debug.assert(e.pos>=e.parent.pos),F.Debug.assert(e.end<=e.parent.end))}function oi(e,t){if(t){var r=e.pos,n=function(e){F.Debug.assert(e.pos>=r),r=e.end};if(F.hasJSDocNodes(e))for(var i=0,a=e.jsDoc;i<a.length;i++)n(a[i]);N(e,n),F.Debug.assert(r<=e.end)}}function si(e,t,r,n){var i=e.text;r&&(F.Debug.assert(i.length-r.span.length+r.newLength===t.length),(n||F.Debug.shouldAssert(3))&&(e=i.substr(0,r.span.start),n=t.substr(0,r.span.start),F.Debug.assert(e===n),i=i.substring(F.textSpanEnd(r.span),i.length),t=t.substring(F.textSpanEnd(F.textChangeRangeNewSpan(r)),t.length),F.Debug.assert(i===t)))}function ci(e){return F.fileExtensionIs(e,".d.ts")}function ui(e,t){for(var r=[],n=0,i=F.getLeadingCommentRanges(t,0)||F.emptyArray;n<i.length;n++){var a=i[n];!function(e,t,r){if(n=2===t.kind&&di.exec(r)){var n,i=n[1].toLowerCase();if((n=F.commentPragmas[i])&&1&n.kind)if(n.args){for(var a={},o=0,s=n.args;o<s.length;o++){var c,u=s[o],l=function(e){if(_i.has(e))return _i.get(e);var t=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return _i.set(e,t),t}(u.name).exec(r);if(!l&&!u.optional)return;l&&(u.captureSpan?(c=t.pos+l.index+l[1].length+l[2].length,a[u.name]={value:l[3],pos:c,end:c+l[3].length}):a[u.name]=l[3])}e.push({name:i,args:{arguments:a,range:t}})}else e.push({name:i,args:{arguments:{},range:t}})}else{if(i=2===t.kind&&pi.exec(r))return fi(e,t,2,i),0;if(3===t.kind)for(var _=/\s*@(\S+)\s*(.*)\s*$/gim,d=void 0;d=_.exec(r);)fi(e,t,4,d)}}(r,a,t.substring(a.pos,a.end))}e.pragmas=F.createMap();for(var o=0,s=r;o<s.length;o++){var c,u=s[o];e.pragmas.has(u.name)?(c=e.pragmas.get(u.name))instanceof Array?c.push(u.args):e.pragmas.set(u.name,[c,u.args]):e.pragmas.set(u.name,u.args)}}function li(c,u){c.checkJsDirective=void 0,c.referencedFiles=[],c.typeReferenceDirectives=[],c.libReferenceDirectives=[],c.amdDependencies=[],c.hasNoDefaultLib=!1,c.pragmas.forEach(function(e,t){switch(t){case"reference":var i=c.referencedFiles,a=c.typeReferenceDirectives,o=c.libReferenceDirectives;F.forEach(F.toArray(e),function(e){var t=e.arguments,r=t.types,n=t.lib,t=t.path;e.arguments["no-default-lib"]?c.hasNoDefaultLib=!0:r?a.push({pos:r.pos,end:r.end,fileName:r.value}):n?o.push({pos:n.pos,end:n.end,fileName:n.value}):t?i.push({pos:t.pos,end:t.end,fileName:t.value}):u(e.range.pos,e.range.end-e.range.pos,F.Diagnostics.Invalid_reference_directive_syntax)});break;case"amd-dependency":c.amdDependencies=F.map(F.toArray(e),function(e){return{name:e.arguments.name,path:e.arguments.path}});break;case"amd-module":if(e instanceof Array)for(var r=0,n=e;r<n.length;r++){var s=n[r];c.moduleName&&u(s.range.pos,s.range.end-s.range.pos,F.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),c.moduleName=s.arguments.name}else c.moduleName=e.arguments.name;break;case"ts-nocheck":case"ts-check":F.forEach(F.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":return;default:F.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",F.createNode=function(e,t,r){return new(290===e?s=s||F.objectAllocator.getSourceFileConstructor():75===e?a=a||F.objectAllocator.getIdentifierConstructor():76===e?o=o||F.objectAllocator.getPrivateIdentifierConstructor():F.isNodeKind(e)?n=n||F.objectAllocator.getNodeConstructor():i=i||F.objectAllocator.getTokenConstructor())(e,t,r)},F.isJSDocLikeText=M,F.forEachChild=N,F.forEachChildRecursively=A,F.createSourceFile=function(e,t,r,n,i){return void 0===n&&(n=!1),F.performance.mark("beforeParse"),F.perfLogger.logStartParseSourceFile(e),i=100===r?y.parseSourceFile(e,t,r,void 0,n,6):y.parseSourceFile(e,t,r,void 0,n,i),F.perfLogger.logStopParseSourceFile(),F.performance.mark("afterParse"),F.performance.measure("Parse","beforeParse","afterParse"),i},F.parseIsolatedEntityName=function(e,t){return y.parseIsolatedEntityName(e,t)},F.parseJsonText=function(e,t){return y.parseJsonText(e,t)},F.isExternalModule=function(e){return void 0!==e.externalModuleIndicator},F.updateSourceFile=function(e,t,r,n){return void 0===n&&(n=!1),(n=T.updateSourceFile(e,t,r,n)).flags|=3145728&e.flags,n},F.parseIsolatedJSDocComment=function(e,t,r){return(r=y.JSDocParser.parseIsolatedJSDocComment(e,t,r))&&r.jsDoc&&y.fixupParentReferences(r.jsDoc),r},F.parseJSDocTypeExpressionForTests=function(e,t,r){return y.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)},t=y=y||{},O=F.createScanner(99,!0),C=!(S=20480),t.parseSourceFile=function(e,t,r,n,i,a){if(void 0===i&&(i=!1),6!==(a=F.ensureScriptKind(e,a)))return B(t,r,n,a),a=function(e,t,r,n){var i=ci(e);i&&(x|=8388608);(p=U(e,t,n,i)).flags=x,le(),ui(p,w),li(p,function(e,t,r){f.push(F.createFileDiagnostic(p,e,t,r))}),p.statements=it(0,ln),F.Debug.assert(1===P),p.endOfFileToken=J(ke()),function(e){e.externalModuleIndicator=F.forEach(e.statements,Zn)||function(e){return 2097152&e.flags?$n(e):void 0}(e)}(p),p.commentDirectives=O.getCommentDirectives(),p.nodeCount=m,p.identifierCount=I,p.identifiers=h,p.parseDiagnostics=f,r&&z(p);return p}(e,r,i,a),j(),a;i=L(e,t,r,n,i);return F.convertToObjectWorker(i,i.parseDiagnostics,!1,void 0,void 0),i.referencedFiles=F.emptyArray,i.typeReferenceDirectives=F.emptyArray,i.libReferenceDirectives=F.emptyArray,i.amdDependencies=F.emptyArray,i.hasNoDefaultLib=!1,i.pragmas=F.emptyMap,i},t.parseIsolatedEntityName=function(e,t){return B(e,t,void 0,1),le(),e=dt(!0),t=1===P&&!f.length,j(),t?e:void 0},t.parseJsonText=L,t.fixupParentReferences=z,(e={})[e.SourceElements=0]="SourceElements",e[e.BlockStatements=1]="BlockStatements",e[e.SwitchClauses=2]="SwitchClauses",e[e.SwitchClauseStatements=3]="SwitchClauseStatements",e[e.TypeMembers=4]="TypeMembers",e[e.ClassMembers=5]="ClassMembers",e[e.EnumMembers=6]="EnumMembers",e[e.HeritageClauseElement=7]="HeritageClauseElement",e[e.VariableDeclarations=8]="VariableDeclarations",e[e.ObjectBindingElements=9]="ObjectBindingElements",e[e.ArrayBindingElements=10]="ArrayBindingElements",e[e.ArgumentExpressions=11]="ArgumentExpressions",e[e.ObjectLiteralMembers=12]="ObjectLiteralMembers",e[e.JsxAttributes=13]="JsxAttributes",e[e.JsxChildren=14]="JsxChildren",e[e.ArrayLiteralMembers=15]="ArrayLiteralMembers",e[e.Parameters=16]="Parameters",e[e.JSDocParameters=17]="JSDocParameters",e[e.RestProperties=18]="RestProperties",e[e.TypeParameters=19]="TypeParameters",e[e.TypeArguments=20]="TypeArguments",e[e.TupleElementTypes=21]="TupleElementTypes",e[e.HeritageClauses=22]="HeritageClauses",e[e.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",e[e.Count=24]="Count",(e={})[e.False=0]="False",e[e.True=1]="True",e[e.Unknown=2]="Unknown",(t=D=t.JSDocParser||(t.JSDocParser={})).parseJSDocTypeExpressionForTests=function(e,t,r){return B(e,99,void 0,1),p=U("file.js",99,1,!1),O.setText(e,t,r),P=O.scan(),t=ti(),r=f,j(),t?{jsDocTypeExpression:t,diagnostics:r}:void 0},t.parseJSDocTypeExpression=ti,t.parseIsolatedJSDocComment=function(e,t,r){B(e,99,void 0,1),p={languageVariant:0,text:e};var n=Q(4194304,function(){return ri(t,r)}),e=f;return j(),n?{jsDoc:n,diagnostics:e}:void 0},t.parseJSDocComment=function(e,t,r){var n=P,i=f.length,a=C,o=Q(4194304,function(){return ri(t,r)});return o&&(o.parent=e),131072&x&&(p.jsDocDiagnostics||(p.jsDocDiagnostics=[]),(e=p.jsDocDiagnostics).push.apply(e,f)),P=n,f.length=i,C=a,o},(t={})[t.BeginningOfLine=0]="BeginningOfLine",t[t.SawAsterisk=1]="SawAsterisk",t[t.SavingComments=2]="SavingComments",t[t.SavingBackticks=3]="SavingBackticks",(t={})[t.Property=1]="Property",t[t.Parameter=2]="Parameter",t[t.CallbackParameter=4]="CallbackParameter",(T||(T={})).updateSourceFile=function(e,t,r,n){if(si(e,t,r,n=n||F.Debug.shouldAssert(2)),F.textChangeRangeIsUnchanged(r))return e;if(0===e.statements.length)return y.parseSourceFile(e.fileName,t,e.languageVersion,void 0,!0,e.scriptKind);var i=e;F.Debug.assert(!i.hasBeenIncrementallyParsed),i.hasBeenIncrementallyParsed=!0;var a=e.text,o=function(t){var o=t.statements,s=0;F.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&&(N(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 N(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,N(t,n,i))),r=e,F.Debug.assert(!c||c.pos===e),c}}}(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;N(e,function e(t){if(F.nodeIsMissing(t))return;{if(!(t.pos<=r))return F.Debug.assert(t.pos>r),!0;if(t.pos>=i.pos&&(i=t),r<t.end)return N(t,e),!0;F.Debug.assert(t.end<=r),n=t}}),n&&(t=function(e){for(;;){var t=F.getLastChild(e);if(!t)return e;e=t}}(n)).pos>i.pos&&(i=t)}return i}(e,r);F.Debug.assert(i.pos<=r);i=i.pos;r=Math.max(0,i-1)}var a=F.createTextSpanFromBounds(r,F.textSpanEnd(t.span)),t=t.newLength+(t.span.start-r);return F.createTextChangeRange(a,t)}(e,r);si(e,t,s,n),F.Debug.assert(s.span.start<=r.span.start),F.Debug.assert(F.textSpanEnd(s.span)===F.textSpanEnd(r.span)),F.Debug.assert(F.textSpanEnd(F.textChangeRangeNewSpan(s))===F.textSpanEnd(F.textChangeRangeNewSpan(r)));var c,u,l,_,d,p,f,r=F.textChangeRangeNewSpan(s).length-s.span.length;function g(e){if(F.Debug.assert(e.pos<=e.end),e.pos>u)ni(e,!1,_,d,p,f);else{var t=e.end;if(c<=t){if(e.intersectsChange=!0,e._children=void 0,ai(e,c,u,l,_),N(e,g,m),F.hasJSDocNodes(e))for(var r=0,n=e.jsDoc;r<n.length;r++)g(n[r]);oi(e,f)}else F.Debug.assert(t<c)}}function m(e){if(F.Debug.assert(e.pos<=e.end),e.pos>u)ni(e,!0,_,d,p,f);else{var t=e.end;if(c<=t){e.intersectsChange=!0,e._children=void 0,ai(e,c,u,l,_);for(var r=0,n=e;r<n.length;r++)g(n[r])}else F.Debug.assert(t<c)}}return i=i,c=s.span.start,u=F.textSpanEnd(s.span),l=F.textSpanEnd(F.textChangeRangeNewSpan(s)),_=r,d=a,p=t,f=n,g(i),(o=y.parseSourceFile(e.fileName,t,e.languageVersion,o,!0,e.scriptKind)).commentDirectives=function(e,t,r,n,i,a,o,s){if(!e)return t;for(var c,u=!1,l=0,_=e;l<_.length;l++){var d=_[l],p=d.range,f=d.type;p.end<r?c=F.append(c,d):p.pos>n&&(g(),f={range:{pos:p.pos+i,end:p.end+i},type:f},c=F.append(c,f),s&&F.Debug.assert(a.substring(p.pos,p.end)===o.substring(f.range.pos,f.range.end)))}return g(),c;function g(){u||(u=!0,c?t&&c.push.apply(c,t):c=t)}}(e.commentDirectives,o.commentDirectives,s.span.start,F.textSpanEnd(s.span),r,a,t,n),o},(t={})[t.Value=-1]="Value",F.isDeclarationFileName=ci,F.processCommentPragmas=ui,F.processPragmasIntoFields=li;var _i=F.createMap(),di=/^\/\/\/\s*<(\S+)\s.*?\/>/im,pi=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function fi(e,t,r,n){var i,a;n&&(i=n[1].toLowerCase(),(a=F.commentPragmas[i])&&a.kind&r&&("fail"!==(n=function(e,t){if(!t)return{};if(!e.args)return{};for(var r=t.split(/\s+/),n={},i=0;i<e.args.length;i++){var a=e.args[i];if(!r[i]&&!a.optional)return"fail";if(a.captureSpan)return F.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 gi(e,t){return e.kind===t.kind&&(75===e.kind?e.escapedText===t.escapedText:104===e.kind||e.name.escapedText===t.name.escapedText&&gi(e.expression,t.expression))}F.tagNamesAreEquivalent=gi}(ts=ts||{}),function(D){D.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"};var e,t,r=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["esnext.array","lib.es2019.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.esnext.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"]];function n(e){var t=D.createMap(),r=D.createMap();return D.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 e=e||n(D.optionDeclarations)}function i(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function o(e){return c(e,D.createCompilerDiagnostic)}function c(e,t){var r=D.arrayFrom(e.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return t(D.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+e.name,r)}function u(e,t,r){return ae(e,oe(t||""),r)}function l(t,e,r){if(void 0===e&&(e=""),e=oe(e),!D.startsWith(e,"-")){if(""===e)return[];var n=e.split(",");switch(t.element.type){case"number":return D.map(n,parseInt);case"string":return D.map(n,function(e){return e||""});default:return D.mapDefined(n,function(e){return u(t.element,e,r)})}}}function s(e){return e.name}function m(e,t,r,n){var i=D.getSpellingSuggestion(e,t.optionDeclarations,s);return i?r(t.unknownDidYouMeanDiagnostic,n||e,i.name):r(t.unknownOptionDiagnostic,n||e)}function _(a,e,o){var s,c={},u=[],l=[];return _(e),{options:c,watchOptions:s,fileNames:u,errors:l};function _(e){for(var t=0;t<e.length;){var r,n,i=e[t];t++,64===i.charCodeAt(0)?function(e){var t=v(e,o||function(e){return D.sys.readFile(e)});if(!D.isString(t))return l.push(t);for(var r=[],n=0;;){for(;n<t.length&&t.charCodeAt(n)<=32;)n++;if(n>=t.length)break;var i=n;if(34===t.charCodeAt(i)){for(n++;n<t.length&&34!==t.charCodeAt(n);)n++;n<t.length?(r.push(t.substring(i+1,n)),n++):l.push(D.createCompilerDiagnostic(D.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=f(a.getOptionsNameMap,r,!0))?t=d(e,t,a,n,c,l):(n=f(A.getOptionsNameMap,r,!0))?t=d(e,t,A,n,s=s||{},l):l.push(m(r,a,D.createCompilerDiagnostic,i))):u.push(i)}}}function d(e,t,r,n,i,a){if(n.isTSConfigOnly)"null"===(o=e[t])?(i[n.name]=void 0,t++):"boolean"===n.type?"false"===o?(i[n.name]=!1,t++):("true"===o&&t++,a.push(D.createCompilerDiagnostic(D.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,n.name))):(a.push(D.createCompilerDiagnostic(D.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,n.name)),o&&!D.startsWith(o,"-")&&t++);else if(e[t]||"boolean"===n.type||a.push(D.createCompilerDiagnostic(r.optionTypeMismatchDiagnostic,n.name,M(n))),"null"!==e[t])switch(n.type){case"number":i[n.name]=parseInt(e[t]),t++;break;case"boolean":var o=e[t];i[n.name]="false"!==o,"false"!==o&&"true"!==o||t++;break;case"string":i[n.name]=e[t]||"",t++;break;case"list":var s=l(n,e[t],a);i[n.name]=s||[],s&&t++;break;default:i[n.name]=u(n,e[t],a),t++}else i[n.name]=void 0,t++;return t}function p(e,t){return f(a,e,t)}function f(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)}D.libs=r.map(function(e){return e[0]}),D.libMap=D.createMapFromEntries(r),D.optionsForWatch=[{name:"watchFile",type:D.createMapFromTemplate({fixedpollinginterval:D.WatchFileKind.FixedPollingInterval,prioritypollinginterval:D.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:D.WatchFileKind.DynamicPriorityPolling,usefsevents:D.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:D.WatchFileKind.UseFsEventsOnParentDirectory}),category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_UseFsEvents_UseFsEventsOnParentDirectory},{name:"watchDirectory",type:D.createMapFromTemplate({usefsevents:D.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:D.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:D.WatchDirectoryKind.DynamicPriorityPolling}),category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling},{name:"fallbackPolling",type:D.createMapFromTemplate({fixedinterval:D.PollingWatchKind.FixedInterval,priorityinterval:D.PollingWatchKind.PriorityInterval,dynamicpriority:D.PollingWatchKind.DynamicPriority}),category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority},{name:"synchronousWatchDirectory",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively}],D.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"listFiles",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"traceResolution",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"diagnostics",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Show_verbose_diagnostic_information},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:D.Diagnostics.FILE_OR_DIRECTORY,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Generates_a_CPU_profile},{name:"incremental",shortName:"i",type:"boolean",category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it},{name:"locale",type:"string",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us}],D.optionDeclarations=__spreadArrays(D.commonOptionsWithBuild,[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Command_line_Options,paramType:D.Diagnostics.FILE_OR_DIRECTORY,description:D.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:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"showConfig",type:"boolean",category:D.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:D.Diagnostics.Print_the_final_configuration_instead_of_building},{name:"listFilesOnly",type:"boolean",category:D.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:D.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing},{name:"target",shortName:"t",type:D.createMapFromTemplate({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,esnext:99}),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:D.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_ESNEXT},{name:"module",shortName:"m",type:D.createMapFromTemplate({none:D.ModuleKind.None,commonjs:D.ModuleKind.CommonJS,amd:D.ModuleKind.AMD,system:D.ModuleKind.System,umd:D.ModuleKind.UMD,es6:D.ModuleKind.ES2015,es2015:D.ModuleKind.ES2015,es2020:D.ModuleKind.ES2020,esnext:D.ModuleKind.ESNext}),affectsModuleResolution:!0,affectsEmit:!0,paramType:D.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:D.libMap},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Specify_library_files_to_be_included_in_the_compilation,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:D.createMapFromTemplate({preserve:1,"react-native":3,react:2}),affectsSourceFile:!0,paramType:D.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Generates_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Only_emit_d_ts_declaration_files,transpileOptionValue:void 0},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:D.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:D.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:D.Diagnostics.LOCATION,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Enable_project_compilation,transpileOptionValue:void 0},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:D.Diagnostics.FILE,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Specify_file_to_store_incremental_compilation_information,transpileOptionValue:void 0},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Do_not_emit_outputs,transpileOptionValue:void 0},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Import_emit_helpers_from_tslib},{name:"importsNotUsedAsValues",type:D.createMapFromTemplate({remove:0,preserve:1,error:2}),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule,transpileOptionValue:!0},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:D.Diagnostics.Strict_Type_Checking_Options,description:D.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Strict_Type_Checking_Options,description:D.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Strict_Type_Checking_Options,description:D.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Strict_Type_Checking_Options,description:D.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Strict_Type_Checking_Options,description:D.Diagnostics.Enable_strict_bind_call_and_apply_methods_on_functions},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Strict_Type_Checking_Options,description:D.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Strict_Type_Checking_Options,description:D.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Strict_Type_Checking_Options,description:D.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Additional_Checks,description:D.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Additional_Checks,description:D.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Additional_Checks,description:D.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Additional_Checks,description:D.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:D.createMapFromTemplate({node:D.ModuleResolutionKind.NodeJs,classic:D.ModuleResolutionKind.Classic}),affectsModuleResolution:!0,paramType:D.Diagnostics.STRATEGY,category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime,transpileOptionValue:void 0},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.Type_declaration_files_to_be_included_in_compilation,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.Allow_accessing_UMD_globals_from_modules},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:D.Diagnostics.LOCATION,category:D.Diagnostics.Source_Map_Options,description:D.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:D.Diagnostics.LOCATION,category:D.Diagnostics.Source_Map_Options,description:D.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Source_Map_Options,description:D.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Source_Map_Options,description:D.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:D.Diagnostics.Experimental_Options,description:D.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:D.Diagnostics.Experimental_Options,description:D.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Include_modules_imported_with_json_extension},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:D.Diagnostics.Advanced_Options,paramType:D.Diagnostics.FILE,description:D.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"reactNamespace",type:"string",affectsEmit:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"newLine",type:D.createMapFromTemplate({crlf:0,lf:1}),affectsEmit:!0,paramType:D.Diagnostics.NEWLINE,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",affectsModuleResolution:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts,transpileOptionValue:!0},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files,transpileOptionValue:!0},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",affectsSourceFile:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Disable_solution_searching_for_this_project},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported,transpileOptionValue:void 0},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:D.Diagnostics.DIRECTORY,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Output_directory_for_generated_declaration_files,transpileOptionValue:void 0},{name:"skipLibCheck",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Emit_class_fields_with_Define_instead_of_Set},{name:"keyofStringsOnly",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:D.Diagnostics.List_of_language_service_plugins}]),D.semanticDiagnosticsOptionDeclarations=D.optionDeclarations.filter(function(e){return!!e.affectsSemanticDiagnostics}),D.affectsEmitOptionDeclarations=D.optionDeclarations.filter(function(e){return!!e.affectsEmit}),D.moduleResolutionOptionDeclarations=D.optionDeclarations.filter(function(e){return!!e.affectsModuleResolution}),D.sourceFileAffectingCompilerOptions=D.optionDeclarations.filter(function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics}),D.transpileOptionValueCompilerOptions=D.optionDeclarations.filter(function(e){return D.hasProperty(e,"transpileOptionValue")}),D.buildOpts=__spreadArrays(D.commonOptionsWithBuild,[{name:"verbose",shortName:"v",category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}]),D.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}}],D.createOptionNameMap=n,D.getOptionsNameMap=a,D.defaultInitCompilerOptions={module:D.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},D.convertEnableAutoDiscoveryToEnable=i,D.createCompilerDiagnosticForInvalidCustomType=o,D.parseCustomTypeOption=u,D.parseListTypeOption=l,D.parseCommandLineWorker=_,D.compilerOptionsDidYouMeanDiagnostics={getOptionsNameMap:a,optionDeclarations:D.optionDeclarations,unknownOptionDiagnostic:D.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:D.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:D.Diagnostics.Compiler_option_0_expects_an_argument},D.parseCommandLine=function(e,t){return _(D.compilerOptionsDidYouMeanDiagnostics,e,t)},D.getOptionFromName=p;var g={getOptionsNameMap:function(){return t=t||n(D.buildOpts)},optionDeclarations:D.buildOpts,unknownOptionDiagnostic:D.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:D.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:D.Diagnostics.Build_option_0_requires_a_value_of_type_1};function y(e,t){t=D.parseJsonText(e,t);return{config:I(t,t.parseDiagnostics),error:t.parseDiagnostics.length?t.parseDiagnostics[0]:void 0}}function h(e,t){t=v(e,t);return D.isString(t)?D.parseJsonText(e,t):{parseDiagnostics:[t]}}function v(t,e){var r;try{r=e(t)}catch(e){return D.createCompilerDiagnostic(D.Diagnostics.Cannot_read_file_0_Colon_1,t,e.message)}return void 0===r?D.createCompilerDiagnostic(D.Diagnostics.Cannot_read_file_0,t):r}function b(e){return D.arrayToMap(e,s)}D.parseBuildCommand=function(e){var t=(n=_(g,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(D.createCompilerDiagnostic(D.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),t.clean&&t.verbose&&n.push(D.createCompilerDiagnostic(D.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),t.clean&&t.watch&&n.push(D.createCompilerDiagnostic(D.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),t.watch&&t.dry&&n.push(D.createCompilerDiagnostic(D.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:t,watchOptions:r,projects:e,errors:n}},D.getDiagnosticText=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return D.createCompilerDiagnostic.apply(void 0,arguments).messageText},D.getParsedCommandLineOfConfigFile=function(e,t,r,n,i,a){var o=v(e,function(e){return r.readFile(e)});if(D.isString(o)){var s=D.parseJsonText(e,o),c=r.getCurrentDirectory();return s.path=D.toPath(e,c,D.createGetCanonicalFileName(r.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,z(s,r,D.getNormalizedAbsolutePath(D.getDirectoryPath(e),c),t,D.getNormalizedAbsolutePath(e,c),void 0,a,n,i)}r.onUnRecoverableConfigFileDiagnostic(o)},D.readConfigFile=function(e,t){return t=v(e,t),D.isString(t)?y(e,t):{config:{},error:t}},D.parseConfigFileTextToJson=y,D.readJsonConfigFile=h,D.tryReadFile=v;var x,S={optionDeclarations:D.typeAcquisitionDeclarations,unknownOptionDiagnostic:D.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:D.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1};function C(){return x=x||n(D.optionsForWatch)}var T,k,E,N,A={getOptionsNameMap:C,optionDeclarations:D.optionsForWatch,unknownOptionDiagnostic:D.Diagnostics.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:D.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:D.Diagnostics.Watch_option_0_requires_a_value_of_type_1};function F(){return T=T||b(D.optionDeclarations)}function P(){return k=k||b(D.optionsForWatch)}function w(){return E=E||b(D.typeAcquisitionDeclarations)}function I(e,t){return O(e,t,!0,void 0,void 0)}function O(u,l,_,t,d){return u.statements.length?f(u.statements[0].expression,t):_?{}:void 0;function p(e){return t&&t.elementOptions===e}function s(e,a,o,s){for(var c=_?{}:void 0,t=0,r=e.properties;t<r.length;t++)!function(n){if(281!==n.kind)return l.push(D.createDiagnosticForNodeInSourceFile(u,n,D.Diagnostics.Property_assignment_expected));n.questionToken&&l.push(D.createDiagnosticForNodeInSourceFile(u,n.questionToken,D.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),g(n.name)||l.push(D.createDiagnosticForNodeInSourceFile(u,n.name,D.Diagnostics.String_literal_with_double_quotes_expected));var e=D.isComputedNonLiteralName(n.name)?void 0:D.getTextOfPropertyName(n.name),t=e&&D.unescapeLeadingUnderscores(e),r=t&&a?a.get(t):void 0;t&&o&&!r&&(a?l.push(m(t,o,function(e,t,r){return D.createDiagnosticForNodeInSourceFile(u,n.name,e,t,r)})):l.push(D.createDiagnosticForNodeInSourceFile(u,n.name,o.unknownOptionDiagnostic,t)));var i=f(n.initializer,r);void 0!==t&&(_&&(c[t]=i),d&&(s||p(a))&&(e=L(r,i),s?e&&d.onSetValidOptionKeyValueInParent(s,r,i):p(a)&&(e?d.onSetValidOptionKeyValueInRoot(t,n.name,i,n.initializer):r||d.onSetUnknownOptionKeyValueInRoot(t,n.name,i,n.initializer))))}(r[t]);return c}function f(n,t){switch(n.kind){case 106:return o(t&&"boolean"!==t.type),!0;case 91:return o(t&&"boolean"!==t.type),!1;case 100:return o(t&&"extends"===t.name),null;case 10:g(n)||l.push(D.createDiagnosticForNodeInSourceFile(u,n,D.Diagnostics.String_literal_with_double_quotes_expected)),o(t&&D.isString(t.type)&&"string"!==t.type);var e,r=n.text;return t&&!D.isString(t.type)&&((e=t).type.has(r.toLowerCase())||l.push(c(e,function(e,t,r){return D.createDiagnosticForNodeInSourceFile(u,n,e,t,r)}))),r;case 8:return o(t&&"number"!==t.type),Number(n.text);case 207:if(40!==n.operator||8!==n.operand.kind)break;return o(t&&"number"!==t.type),-Number(n.operand.text);case 193:o(t&&"object"!==t.type);var i=n;return t?s(i,t.elementOptions,t.extraKeyDiagnostics,t.name):s(i,void 0,void 0,void 0);case 192:return o(t&&"list"!==t.type),i=n.elements,a=t&&t.element,_?D.filter(i.map(function(e){return f(e,a)}),function(e){return void 0!==e}):i.forEach(function(e){return f(e,a)})}var a;function o(e){e&&l.push(D.createDiagnosticForNodeInSourceFile(u,n,D.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,M(t)))}t?o(!0):l.push(D.createDiagnosticForNodeInSourceFile(u,n,D.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function g(e){return D.isStringLiteral(e)&&D.isStringDoubleQuoted(e,u)}}function M(e){return"list"===e.type?"Array":D.isString(e.type)?e.type:"string"}function L(e,t){return!!e&&(!!V(t)||("list"===e.type?D.isArray(t):typeof t===(D.isString(e.type)?e.type:"string")))}function R(e){return __assign({},D.arrayFrom(e.entries()).reduce(function(e,t){return __assign(__assign({},e),((e={})[t[0]]=t[1],e))},{}))}function B(r,e){return D.forEachEntry(e,function(e,t){if(e===r)return t})}function j(e,t){return J(e,a(),t)}function J(i,e,a){function t(e){if(D.hasProperty(i,e)){if(o.has(e)&&o.get(e).category===D.Diagnostics.Command_line_Options)return 1;var t,r=i[e],n=o.get(e.toLowerCase());n&&((t=function e(t){if("string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"object"!==t.type)return"list"===t.type?e(t.element):t.type}(n))?"list"===n.type?s.set(e,r.map(function(e){return B(e,t)})):s.set(e,B(r,t)):a&&n.isFilePath?s.set(e,D.getRelativePathFromFile(a.configFilePath,D.getNormalizedAbsolutePath(r,D.getDirectoryPath(a.configFilePath)),c)):s.set(e,r))}}var r,o=e.optionsNameMap,s=D.createMap(),c=a&&D.createGetCanonicalFileName(a.useCaseSensitiveFileNames);for(r in i)t(r);return s}function z(e,t,r,n,i,a,o,s,c){return q(void 0,e,t,r,n,c,i,a,o,s)}function U(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function V(e){return null==e}function K(e,t){return D.getDirectoryPath(D.getNormalizedAbsolutePath(e,t))}function q(e,l,_,d,t,r,p,f,g,n){void 0===t&&(t={}),void 0===f&&(f=[]),void 0===g&&(g=[]),D.Debug.assert(void 0===e&&void 0!==l||void 0!==e&&void 0===l);var m,y=[],i=X(e,l,_,d,p,f,y,n),h=i.raw,v=D.extend(t,i.options||{}),e=r&&i.watchOptions?D.extend(r,i.watchOptions):i.watchOptions||r;v.configFilePath=p&&D.normalizeSlashes(p),U(v,l);n=function(){var e,t;{var r,n;D.hasProperty(h,"files")&&!V(h.files)&&(D.isArray(h.files)?(e=h.files,r=!(D.hasProperty(h,"references")&&!V(h.references))||0===h.references.length,n=D.hasProperty(h,"extends"),0===e.length&&r&&!n&&(l?(i=p||"tsconfig.json",a=D.Diagnostics.The_files_list_in_config_file_0_is_empty,n=D.firstDefined(D.getTsConfigPropArray(l,"files"),function(e){return e.initializer}),a=n?D.createDiagnosticForNodeInSourceFile(l,n,a,i):D.createCompilerDiagnostic(a,i),y.push(a)):b(D.Diagnostics.The_files_list_in_config_file_0_is_empty,p||"tsconfig.json"))):b(D.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array"))}D.hasProperty(h,"include")&&!V(h.include)&&(D.isArray(h.include)?t=h.include:b(D.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array"));{var i,a;D.hasProperty(h,"exclude")&&!V(h.exclude)?D.isArray(h.exclude)?o=h.exclude:b(D.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array"):h.compilerOptions&&(i=h.compilerOptions.outDir,a=h.compilerOptions.declarationDir,(i||a)&&(o=[i,a].filter(function(e){return!!e})))}void 0===e&&void 0===t&&(t=["**/*"]);var o=function(e,t,r,n,i,a,o,s,c){var u,l;n=D.normalizePath(n),t&&(u=de(t,o,!1,c,"include"));r&&(l=de(r,o,!0,c,"exclude"));c=function(e,t,r,n){var t=D.getRegularExpressionForWildcard(t,r,"exclude"),i=t&&new RegExp(t,n?"":"i"),a={};if(void 0!==e){for(var o=[],s=0,c=e;s<c.length;s++){var u,l=c[s],_=D.normalizePath(D.combinePaths(r,l));i&&i.test(_)||(l=function(e,t){var r=le.exec(e);if(r)return{key:t?r[0]:D.toFileNameLowerCase(r[0]),flags:ue.test(e)?1:0};if(D.isImplicitGlob(e))return{key:e,flags:1};return}(_,n))&&(u=l.key,_=l.flags,(void 0===(l=a[u])||l<_)&&1===(a[u]=_)&&o.push(u))}for(u in a)if(D.hasProperty(a,u))for(var d=0,p=o;d<p.length;d++){var f=p[d];u!==f&&D.containsPath(f,u,r,!n)&&delete a[u]}}return a}(u,l,n,a.useCaseSensitiveFileNames);return _e({filesSpecs:e,includeSpecs:t,excludeSpecs:r,validatedIncludeSpecs:u,validatedExcludeSpecs:l,wildcardDirectories:c},n,i,a,s)}(e,t,o,p?K(p,d):d,v,_,y,g,l);H(o,G(h),f)&&y.push(W(o.spec,p));if(D.hasProperty(h,"references")&&!V(h.references))if(D.isArray(h.references))for(var s=0,c=h.references;s<c.length;s++){var u=c[s];"string"!=typeof u.path?b(D.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(m=m||[]).push({path:D.getNormalizedAbsolutePath(u.path,d),originalPath:u.path,prepend:u.prepend,circular:u.circular})}else b(D.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"references","Array");return o}(),t=n.fileNames,r=n.wildcardDirectories,n=n.spec;return{options:v,watchOptions:e,fileNames:t,projectReferences:m,typeAcquisition:i.typeAcquisition||ee(),raw:h,errors:y,wildcardDirectories:r,compileOnSave:!!h.compileOnSave,configFileSpecs:n};function b(e,t,r){l||y.push(D.createCompilerDiagnostic(e,t,r))}}function W(e,t){var r=e.includeSpecs,e=e.excludeSpecs;return D.createCompilerDiagnostic(D.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 H(e,t,r){return 0===e.fileNames.length&&t&&(!r||0===r.length)}function G(e){return!D.hasProperty(e,"files")&&!D.hasProperty(e,"references")}function Q(e){return e.options}function X(e,t,r,n,i,a,o,s){n=D.normalizeSlashes(n);var c=D.getNormalizedAbsolutePath(i||"",n);if(0<=a.indexOf(c))return o.push(D.createCompilerDiagnostic(D.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,__spreadArrays(a,[c]).join(" -> "))),{raw:e||I(t,o)};var u,l,i=e?function(e,t,r,n,i){D.hasProperty(e,"excludes")&&i.push(D.createCompilerDiagnostic(D.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var a=$(e.compilerOptions,r,i,n),o=te(e.typeAcquisition||e.typingOptions,r,i,n),s=function(e,t,r){return re(P(),e,t,void 0,A,r)}(e.watchOptions,r,i);{var c;e.compileOnSave=function(e,t,r){if(!D.hasProperty(e,D.compileOnSaveCommandLineOption.name))return!1;r=ne(D.compileOnSaveCommandLineOption,e.compileOnSave,t,r);return"boolean"==typeof r&&r}(e,r,i),e.extends&&(D.isString(e.extends)?(c=n?K(n,r):r,c=Y(e.extends,t,c,i,D.createCompilerDiagnostic)):i.push(D.createCompilerDiagnostic(D.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string")))}return{raw:e,options:a,watchOptions:s,typeAcquisition:o,extendedConfigPath:c}}(e,r,n,i,o):function(i,a,o,s,c){var u,l,_,d,p=Z(s),e={onSetValidOptionKeyValueInParent:function(e,t,r){var n;switch(e){case"compilerOptions":n=p;break;case"watchOptions":n=_=_||{};break;case"typeAcquisition":n=u=u||ee(s);break;case"typingOptions":n=l=l||ee(s);break;default:D.Debug.fail("Unknown option")}n[t.name]=function t(e,r,n){if(V(n))return;{if("list"===e.type){var i=e;return i.element.isFilePath||!D.isString(i.element.type)?D.filter(D.map(n,function(e){return t(i.element,r,e)}),function(e){return!!e}):n}if(!D.isString(e.type))return e.type.get(D.isString(n)?n.toLowerCase():n)}return ie(e,r,n)}(t,o,r)},onSetValidOptionKeyValueInRoot:function(e,t,r,n){if("extends"===e){e=s?K(s,o):o;d=Y(r,a,e,c,function(e,t){return D.createDiagnosticForNodeInSourceFile(i,n,e,t)})}},onSetUnknownOptionKeyValueInRoot:function(e,t,r,n){"excludes"===e&&c.push(D.createDiagnosticForNodeInSourceFile(i,t,D.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},e=O(i,c,!0,(void 0===N&&(N={name:void 0,type:"object",elementOptions:b([{name:"compilerOptions",type:"object",elementOptions:F(),extraKeyDiagnostics:D.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:P(),extraKeyDiagnostics:A},{name:"typingOptions",type:"object",elementOptions:w(),extraKeyDiagnostics:S},{name:"typeAcquisition",type:"object",elementOptions:w(),extraKeyDiagnostics:S},{name:"extends",type:"string"},{name:"references",type:"list",element:{name:"references",type:"object"}},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},D.compileOnSaveCommandLineOption])}),N),e);u=u||(l?void 0!==l.enableAutoDiscovery?{enable:l.enableAutoDiscovery,include:l.include,exclude:l.exclude}:l:ee(s));return{raw:e,options:p,watchOptions:_,typeAcquisition:u,extendedConfigPath:d}}(t,r,n,i,o);return i.extendedConfigPath&&(a=a.concat([c]),(o=function(e,t,r,n,i,a,o){var s,c,u=r.useCaseSensitiveFileNames?t:D.toFileNameLowerCase(t);{var l,_,d,p;o&&(l=o.get(u))?(s=l.extendedResult,c=l.extendedConfig):((s=h(t,function(e){return r.readFile(e)})).parseDiagnostics.length||(l=D.getDirectoryPath(t),Q(c=X(void 0,s,r,l,D.getBaseFileName(t),i,a,o))&&(_=D.convertToRelativePath(l,n,D.identity),d=function(e){return D.isRootedDiskPath(e)?e:D.combinePaths(_,e)},n=function(e){p[e]&&(p[e]=D.map(p[e],d))},p=c.raw,n("include"),n("exclude"),n("files"))),o&&o.set(u,{extendedResult:s,extendedConfig:c}))}e&&(e.extendedSourceFiles=[s.fileName],s.extendedSourceFiles&&(e=e.extendedSourceFiles).push.apply(e,s.extendedSourceFiles));if(s.parseDiagnostics.length)return void a.push.apply(a,s.parseDiagnostics);return c}(t,i.extendedConfigPath,r,n,a,o,s))&&Q(o)&&(u=o.raw,l=i.raw,(s=function(e){var t=l[e]||u[e];t&&(l[e]=t)})("include"),s("exclude"),s("files"),void 0===l.compileOnSave&&(l.compileOnSave=u.compileOnSave),i.options=D.assign({},o.options,i.options),i.watchOptions=i.watchOptions&&o.watchOptions?D.assign({},o.watchOptions,i.watchOptions):i.watchOptions||o.watchOptions)),i}function Y(e,t,r,n,i){if(e=D.normalizeSlashes(e),D.isRootedDiskPath(e)||D.startsWith(e,"./")||D.startsWith(e,"../")){var a=D.getNormalizedAbsolutePath(e,r);return t.fileExists(a)||D.endsWith(a,".json")||(a+=".json",t.fileExists(a))?a:void n.push(i(D.Diagnostics.File_0_not_found,e))}t=D.nodeModuleNameResolver(e,D.combinePaths(r,"tsconfig.json"),{moduleResolution:D.ModuleResolutionKind.NodeJs},t,void 0,void 0,!0);if(t.resolvedModule)return t.resolvedModule.resolvedFileName;n.push(i(D.Diagnostics.File_0_not_found,e))}function Z(e){return e&&"jsconfig.json"===D.getBaseFileName(e)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function $(e,t,r,n){var i=Z(n);return re(F(),e,t,i,D.compilerOptionsDidYouMeanDiagnostics,r),n&&(i.configFilePath=D.normalizeSlashes(n)),i}function ee(e){return{enable:!!e&&"jsconfig.json"===D.getBaseFileName(e),include:[],exclude:[]}}function te(e,t,r,n){n=ee(n),e=i(e);return re(w(),e,t,n,S,r),n}function re(e,t,r,n,i,a){if(t){for(var o in t){var s=e.get(o);s?(n=n||{})[s.name]=ne(s,t[o],r,a):a.push(m(o,i,D.createCompilerDiagnostic))}return n}}function ne(e,t,r,n){if(L(e,t)){var i=e.type;return"list"===i&&D.isArray(t)?(a=e,o=t,s=r,c=n,D.filter(D.map(o,function(e){return ne(a.element,e,s,c)}),function(e){return!!e})):D.isString(i)?ie(e,r,t):ae(e,t,n)}var a,o,s,c;n.push(D.createCompilerDiagnostic(D.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,e.name,M(e)))}function ie(e,t,r){return e.isFilePath&&""===(r=D.getNormalizedAbsolutePath(r,t))&&(r="."),r}function ae(e,t,r){if(!V(t)){t=t.toLowerCase(),t=e.type.get(t);if(void 0!==t)return t;r.push(o(e))}}function oe(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}D.convertToObject=I,D.convertToObjectWorker=O,D.convertToTSConfig=function(e,t,r){var n=D.createGetCanonicalFileName(r.useCaseSensitiveFileNames),i=D.map(D.filter(e.fileNames,e.configFileSpecs&&e.configFileSpecs.validatedIncludeSpecs?function(e,t,r,n){if(!t)return function(e){return!0};var t=D.getFileMatcherPatterns(e,r,t,n.useCaseSensitiveFileNames,n.getCurrentDirectory()),i=t.excludePattern&&D.getRegexFromPattern(t.excludePattern,n.useCaseSensitiveFileNames),a=t.includeFilePattern&&D.getRegexFromPattern(t.includeFilePattern,n.useCaseSensitiveFileNames);if(a)return i?function(e){return!(a.test(e)&&!i.test(e))}:function(e){return!a.test(e)};if(i)return function(e){return i.test(e)};return function(e){return!0}}(t,e.configFileSpecs.validatedIncludeSpecs,e.configFileSpecs.validatedExcludeSpecs,r):function(e){return!0}),function(e){return D.getRelativePathFromFile(D.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),D.getNormalizedAbsolutePath(e,r.getCurrentDirectory()),n)}),a=j(e.options,{configFilePath:D.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames}),o=e.watchOptions&&J(e.watchOptions,C());return __assign(__assign({compilerOptions:__assign(__assign({},R(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&&R(o),references:D.map(e.projectReferences,function(e){return __assign(__assign({},e),{path:e.originalPath||"",originalPath:void 0})}),files:D.length(i)?i:void 0},e.configFileSpecs?{include:(i=e.configFileSpecs.validatedIncludeSpecs,!D.length(i)||1===D.length(i)&&"**/*"===i[0]?void 0:i),exclude:e.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!e.compileOnSave||void 0})},D.generateTSConfig=function(e,g,m){var y=j(D.extend(e,D.defaultInitCompilerOptions));return function(){for(var e=D.createMultiMap(),t=0,r=D.optionDeclarations;t<r.length;t++){var n=r[t],i=n.category;!function(e){var t=e.category,e=e.name;return void 0!==t&&t!==D.Diagnostics.Command_line_Options&&(t!==D.Diagnostics.Advanced_Options||y.has(e))}(n)||e.add(D.getLocaleSpecificMessage(i),n)}var o=0,s=0,c=[];e.forEach(function(e,t){0!==c.length&&c.push({value:""}),c.push({value:"/* "+t+" */"});for(var r=0,n=e;r<n.length;r++){var i=n[r],a=void 0,a=y.has(i.name)?'"'+i.name+'": '+JSON.stringify(y.get(i.name))+((s+=1)===y.size?"":","):'// "'+i.name+'": '+JSON.stringify(function(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":return e.isFilePath?"./":"";case"list":return[];case"object":return{};default:var t=e.type.keys().next();return t.done?D.Debug.fail("Expected 'option.type' to have entries."):t.value}}(i))+",";c.push({value:a,description:"/* "+(i.description&&D.getLocaleSpecificMessage(i.description)||i.name)+" */"}),o=Math.max(a.length,o)}});var a=h(2),u=[];u.push("{"),u.push(a+'"compilerOptions": {'),u.push(""+a+a+"/* "+D.getLocaleSpecificMessage(D.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file)+" */"),u.push("");for(var l=0,_=c;l<_.length;l++){var d=_[l],p=d.value,d=d.description,d=void 0===d?"":d;u.push(p&&""+a+a+p+(d&&h(o-p.length+2)+d))}if(g.length){u.push(a+"},"),u.push(a+'"files": [');for(var f=0;f<g.length;f++)u.push(""+a+a+JSON.stringify(g[f])+(f===g.length-1?"":","));u.push(a+"]")}else u.push(a+"}");return u.push("}"),u.join(m)+m}();function h(e){return Array(e+1).join(" ")}},D.convertToOptionsWithAbsolutePaths=function(e,t){var r,n={},i=a().optionsNameMap;for(r in e)D.hasProperty(e,r)&&(n[r]=function(e,t,r){if(e&&!V(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},D.parseJsonConfigFileContent=function(e,t,r,n,i,a,o,s,c){return q(e,void 0,t,r,n,c,i,a,o,s)},D.parseJsonSourceFileConfigFileContent=z,D.setConfigFileInOptions=U,D.canJsonReportNoInutFiles=G,D.updateErrorForNoInputFiles=function(e,t,r,n,i){var a=n.length;return H(e,i)?n.push(W(r,t)):D.filterMutate(n,function(e){return!(e.code===D.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code)}),a!==n.length},D.convertCompilerOptionsFromJson=function(e,t,r){var n=[];return{options:$(e,t,n,r),errors:n}},D.convertTypeAcquisitionFromJson=function(e,t,r){var n=[];return{options:te(e,t,n,r),errors:n}};var se=/(^|\/)\*\*\/?$/,ce=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,ue=/\/[^/]*?[*?][^/]*\//,le=/^[^*?]*(?=\/[^/]*[*?])/;function _e(e,n,t,i,r){void 0===r&&(r=[]),n=D.normalizePath(n);var a,o=D.createGetCanonicalFileName(i.useCaseSensitiveFileNames),s=D.createMap(),c=D.createMap(),u=D.createMap(),l=e.filesSpecs,_=e.validatedIncludeSpecs,d=e.validatedExcludeSpecs,p=e.wildcardDirectories,f=D.getSupportedExtensions(t,r),t=D.getSuppoertedExtensionsWithJsonIfResolveJsonModule(t,f);if(l)for(var g=0,m=l;g<m.length;g++){var y=m[g],h=D.getNormalizedAbsolutePath(y,n);s.set(o(h),h)}if(_&&0<_.length)for(var v=function(t){var e;if(D.fileExtensionIs(t,".json"))return a||(e=_.filter(function(e){return D.endsWith(e,".json")}),e=D.map(D.getRegularExpressionsForWildcards(e,n,"files"),function(e){return"^"+e+"$"}),a=e?e.map(function(e){return D.getRegexFromPattern(e,i.useCaseSensitiveFileNames)}):D.emptyArray),-1!==D.findIndex(a,function(e){return e.test(t)})&&(r=o(t),s.has(r)||u.has(r)||u.set(r,t)),"continue";if(function(e,t,r,n,i){for(var a=D.getExtensionPriority(e,n),o=D.adjustExtensionPriority(a,n),s=0;s<o;s++){var c=n[s],c=i(D.changeExtension(e,c));if(t.has(c)||r.has(c))return!0}return!1}(t,s,c,f,o))return"continue";!function(e,t,r,n){for(var i=D.getExtensionPriority(e,r),a=D.getNextLowestExtensionPriority(i,r);a<r.length;a++){var o=r[a],o=n(D.changeExtension(e,o));t.delete(o)}}(t,c,f,o);var r=o(t);s.has(r)||c.has(r)||c.set(r,t)},b=0,x=i.readDirectory(n,t,d,_,void 0);b<x.length;b++)v(h=x[b]);t=D.arrayFrom(s.values()),d=D.arrayFrom(c.values());return{fileNames:t.concat(d,D.arrayFrom(u.values())),wildcardDirectories:p,spec:e}}function de(e,i,a,o,s){return e.filter(function(e){var t,r,n=function(e,t){{if(!t&&se.test(e))return D.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0;if(ce.test(e))return D.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0}}(e,a);return void 0!==n&&i.push((t=n,r=e,(e=D.getTsConfigPropArrayElementValue(o,s,r))?D.createDiagnosticForNodeInSourceFile(o,e,t,r):D.createCompilerDiagnostic(t,r))),void 0===n})}D.getFileNamesFromConfigSpecs=_e,D.convertCompilerOptionsForTelemetry=function(e){var t,r,n={};for(t in e)!e.hasOwnProperty(t)||void 0!==(r=p(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 D.isArray(r)?r.map(function(e){return t(e,n)}):"";default:return D.forEachEntry(e.type,function(e,t){if(e===r)return t})}}(e[t],r));return n}}(ts=ts||{}),function(h){function v(e){e.trace(h.formatMessage.apply(void 0,arguments))}function d(e,t){return!!e.traceResolution&&void 0!==t.trace}function u(e,t){var r,n;return t&&e&&("string"==typeof(n=e.packageJsonContent).name&&"string"==typeof n.version&&(r={name:n.name,subModuleName:t.path.slice(e.packageDirectory.length+h.directorySeparator.length),version:n.version})),t&&{path:t.path,extension:t.ext,packageId:r}}function _(e){return u(void 0,e)}function p(e){if(e)return h.Debug.assert(void 0===e.packageId),{path:e.path,ext:e.extension}}var f,e,n;function g(e){if(e)return h.Debug.assert(h.extensionIsTS(e.extension)),{fileName:e.path,packageId:e.packageId}}function m(e,t,r,n){var i;return n?((i=n.failedLookupLocations).push.apply(i,r),n):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId},failedLookupLocations:r}}function o(e,t,r,n){if(h.hasProperty(e,t)){e=e[t];if(typeof e===r&&null!==e)return e;n.traceEnabled&&v(n.host,h.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,null===e?"null":typeof e)}else n.traceEnabled&&v(n.host,h.Diagnostics.package_json_does_not_have_a_0_field,t)}function y(e,t,r,n){e=o(e,t,"string",n);if(void 0!==e){if(e){r=h.normalizePath(h.combinePaths(r,e));return n.traceEnabled&&v(n.host,h.Diagnostics.package_json_has_0_field_1_that_references_2,t,e,r),r}n.traceEnabled&&v(n.host,h.Diagnostics.package_json_had_a_falsy_0_field,t)}}function b(e,t,r){return y(e,"typings",t,r)||y(e,"types",t,r)}function x(e,t,r){return y(e,"main",t,r)}function s(e,t){var r=function(e,t){if(void 0!==(e=o(e,"typesVersions","object",t)))return t.traceEnabled&&v(t.host,h.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),e}(e,t);if(void 0!==r){if(t.traceEnabled)for(var n in r)h.hasProperty(r,n)&&!h.VersionRange.tryParse(n)&&v(t.host,h.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,n);var i=c(r);if(i){var a=i.version,e=i.paths;if("object"==typeof e)return i;t.traceEnabled&&v(t.host,h.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['"+a+"']","object",typeof e)}else t.traceEnabled&&v(t.host,h.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,h.versionMajorMinor)}}function c(e){for(var t in n=n||new h.Version(h.version),e)if(h.hasProperty(e,t)){var r=h.VersionRange.tryParse(t);if(void 0!==r&&r.test(n))return{version:t,paths:e[t]}}}function D(e,t){return e.typeRoots||(e.configFilePath?r=h.getDirectoryPath(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),void 0!==r?(r=r,(n=t).directoryExists?(h.forEachAncestorDirectory(h.normalizePath(r),function(e){e=h.combinePaths(e,a);n.directoryExists(e)&&(i=i||[]).push(e)}),i):[h.combinePaths(r,a)]):void 0);var r,n,i}h.trace=v,h.isTraceEnabled=d,(e=f=f||{})[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.Json=2]="Json",e[e.TSConfig=3]="TSConfig",e[e.DtsOnly=4]="DtsOnly",h.getPackageJsonTypesVersionsPaths=c,h.getEffectiveTypeRoots=D;var a=h.combinePaths("node_modules","@types");function i(n){var i=h.createMap(),a=h.createMap();return{ownMap:i,redirectsMap:a,getOrCreateMapOfCacheRedirects:function(e){if(!e)return i;var t=e.sourceFile.path,r=a.get(t);r||(r=!n||h.optionsHaveModuleResolutionChanges(n,e.commandLine.options)?h.createMap():i,a.set(t,r));return r},clear:function(){i.clear(),a.clear()},setOwnOptions:function(e){n=e},setOwnMap:function(e){i=e}}}function l(r,n,s,c){return{getOrCreateCacheForDirectory:function(e,t){e=h.toPath(e,s,c);return i(r,t,e,h.createMap)},getOrCreateCacheForModuleName:function(e,t){return h.Debug.assert(!h.isExternalModuleNameRelative(e)),i(n,t,e,a)},directoryToModuleNameMap:r,moduleNameToDirectoryMap:n};function i(e,t,r,n){e=e.getOrCreateMapOfCacheRedirects(t),t=e.get(r);return t||(t=n(),e.set(r,t)),t}function a(){var o=h.createMap();return{get:function(e){return o.get(h.toPath(e,s,c))},set:function(e,t){var r=h.toPath(e,s,c);if(o.has(r))return;o.set(r,t);var e=t.resolvedModule&&(t.resolvedModule.originalPath||t.resolvedModule.resolvedFileName),n=e&&function(e,t){var r=h.toPath(h.getDirectoryPath(t),s,c),n=0,i=Math.min(e.length,r.length);for(;n<i&&e.charCodeAt(n)===r.charCodeAt(n);)n++;if(n===e.length&&(r.length===n||r[n]===h.directorySeparator))return e;var a=h.getRootLength(e);if(n<a)return;t=e.lastIndexOf(h.directorySeparator,n-1);return-1!==t?e.substr(0,Math.max(t,a)):void 0}(r,e),i=r;for(;i!==n;){var a=h.getDirectoryPath(i);if(a===i||o.has(a))break;o.set(a,t),i=a}}}}}function S(e,t,r,n,i){var a=function(e,t,r,n){var i=n.compilerOptions,a=i.baseUrl,i=i.paths;if(a&&i&&!h.pathIsRelative(t))return n.traceEnabled&&(v(n.host,h.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,a,t),v(n.host,h.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t)),H(e,t,a,i,r,!1,n)}(e,t,n,i);return a?a.value:h.isExternalModuleNameRelative(t)?function(e,t,r,n,i){if(!i.compilerOptions.rootDirs)return;i.traceEnabled&&v(i.host,h.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);for(var a,o,s=h.normalizePath(h.combinePaths(r,t)),c=0,u=i.compilerOptions.rootDirs;c<u.length;c++){var l=u[c],_=h.normalizePath(l);h.endsWith(_,h.directorySeparator)||(_+=h.directorySeparator);var d=h.startsWith(s,_)&&(void 0===o||o.length<_.length);i.traceEnabled&&v(i.host,h.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,_,s,d),d&&(o=_,a=l)}if(o){i.traceEnabled&&v(i.host,h.Diagnostics.Longest_matching_prefix_for_0_is_1,s,o);var p=s.substr(o.length);i.traceEnabled&&v(i.host,h.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,p,o,s);r=n(e,s,!h.directoryProbablyExists(r,i.host),i);if(r)return r;i.traceEnabled&&v(i.host,h.Diagnostics.Trying_other_entries_in_rootDirs);for(var f=0,g=i.compilerOptions.rootDirs;f<g.length;f++)if((l=g[f])!==a){var m=h.combinePaths(h.normalizePath(l),p);i.traceEnabled&&v(i.host,h.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,p,l,m);var y=h.getDirectoryPath(m),y=n(e,m,!h.directoryProbablyExists(y,i.host),i);if(y)return y}i.traceEnabled&&v(i.host,h.Diagnostics.Module_resolution_using_rootDirs_has_failed)}return}(e,t,r,n,i):function(e,t,r,n){var i=n.compilerOptions.baseUrl;if(!i)return;n.traceEnabled&&v(n.host,h.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,t);var a=h.normalizePath(h.combinePaths(i,t));n.traceEnabled&&v(n.host,h.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,t,i,a);return r(e,a,!h.directoryProbablyExists(h.getDirectoryPath(a),n.host),n)}(e,t,n,i)}h.resolveTypeReferenceDirective=function(n,i,e,a,t){var o=d(e,a);t&&(e=t.commandLine.options);var r=[],s={compilerOptions:e,host:a,traceEnabled:o,failedLookupLocations:r},c=D(e,a);o&&(void 0===i?void 0===c?v(a,h.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,n):v(a,h.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,n,c):void 0===c?v(a,h.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,n,i):v(a,h.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,n,i,c),t&&v(a,h.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,t.sourceFile.fileName));var u,l=function(){{if(c&&c.length)return o&&v(a,h.Diagnostics.Resolving_with_primary_search_path_0,c.join(", ")),h.firstDefined(c,function(e){var t=h.combinePaths(e,n),r=h.getDirectoryPath(t),e=h.directoryProbablyExists(r,a);return!e&&o&&v(a,h.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,r),g(j(f.DtsOnly,t,!e,s))});o&&v(a,h.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}}(),t=!0;return l||(l=function(){var e=i&&h.getDirectoryPath(i);{if(void 0!==e){o&&v(a,h.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,e);var t,r=g(h.isExternalModuleNameRelative(n)?(t=h.normalizePathAndParts(h.combinePaths(e,n)).path,w(f.DtsOnly,t,!1,s,!0)):(r=V(f.DtsOnly,n,e,s,void 0,void 0))&&r.value);return!r&&o&&v(a,h.Diagnostics.Type_reference_directive_0_was_not_resolved,n),r}o&&v(a,h.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}(),t=!1),l&&(u=l.fileName,l=l.packageId,e=e.preserveSymlinks?u:P(u,a,o),o&&(l?v(a,h.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,n,e,h.packageIdToString(l),t):v(a,h.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,n,e,t)),u={primary:t,resolvedFileName:e,packageId:l,isExternalLibraryImport:I(u)}),{resolvedTypeReferenceDirective:u,failedLookupLocations:r}},h.getAutomaticTypeDirectiveNames=function(e,t){if(e.types)return e.types;var r=[];if(t.directoryExists&&t.getDirectories){e=D(e,t);if(e)for(var n=0,i=e;n<i.length;n++){var a=i[n];if(t.directoryExists(a))for(var o=0,s=t.getDirectories(a);o<s.length;o++){var c=s[o],u=h.normalizePath(c),c=h.combinePaths(a,u,"package.json");t.fileExists(c)&&null===h.readJson(c,t).typings||46!==(u=h.getBaseFileName(u)).charCodeAt(0)&&r.push(u)}}}return r},h.createModuleResolutionCache=function(e,t,r){return l(i(r),i(r),e,t)},h.createCacheWithRedirects=i,h.createModuleResolutionCacheWithMaps=l,h.resolveModuleNameFromCache=function(e,t,r){return t=h.getDirectoryPath(t),(t=r&&r.getOrCreateCacheForDirectory(t))&&t.get(e)},h.resolveModuleName=function(e,t,r,n,i,a){var o=d(r,n);a&&(r=a.commandLine.options),o&&(v(n,h.Diagnostics.Resolving_module_0_from_1,e,t),a&&v(n,h.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,a.sourceFile.fileName));var s=h.getDirectoryPath(t),c=i&&i.getOrCreateCacheForDirectory(s,a),u=c&&c.get(e);if(u)o&&v(n,h.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,e,s);else{var l=r.moduleResolution;switch(void 0===l?(l=h.getEmitModuleKind(r)===h.ModuleKind.CommonJS?h.ModuleResolutionKind.NodeJs:h.ModuleResolutionKind.Classic,o&&v(n,h.Diagnostics.Module_resolution_kind_is_not_specified_using_0,h.ModuleResolutionKind[l])):o&&v(n,h.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,h.ModuleResolutionKind[l]),h.perfLogger.logStartResolveModule(e),l){case h.ModuleResolutionKind.NodeJs:u=A(e,t,r,n,i,a);break;case h.ModuleResolutionKind.Classic:u=Y(e,t,r,n,i,a);break;default:return h.Debug.fail("Unexpected moduleResolution: "+l)}u&&u.resolvedModule&&h.perfLogger.logInfoEvent('Module "'+e+'" resolved to "'+u.resolvedModule.resolvedFileName+'"'),h.perfLogger.logStopResolveModule(u&&u.resolvedModule?""+u.resolvedModule.resolvedFileName:"null"),c&&(c.set(e,u),h.isExternalModuleNameRelative(e)||i.getOrCreateCacheForModuleName(e,a).set(s,u))}return o&&(u.resolvedModule?u.resolvedModule.packageId?v(n,h.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,u.resolvedModule.resolvedFileName,h.packageIdToString(u.resolvedModule.packageId)):v(n,h.Diagnostics.Module_name_0_was_successfully_resolved_to_1,e,u.resolvedModule.resolvedFileName):v(n,h.Diagnostics.Module_name_0_was_not_resolved,e)),u},h.resolveJSModule=function(e,t,r){var r=(n=N(e,t,r)).resolvedModule,n=n.failedLookupLocations;if(!r)throw new Error("Could not resolve JS module '"+e+"' starting at '"+t+"'. Looked in: "+n.join(", "));return r.resolvedFileName},h.tryResolveJSModule=function(e,t,r){return(r=N(e,t,r).resolvedModule)&&r.resolvedFileName};var C=[f.JavaScript],T=[f.TypeScript,f.JavaScript],k=__spreadArrays(T,[f.Json]),E=[f.TSConfig];function N(e,t,r){return F(e,t,{moduleResolution:h.ModuleResolutionKind.NodeJs,allowJs:!0},r,void 0,C,void 0)}function A(e,t,r,n,i,a,o){return F(e,h.getDirectoryPath(t),r,n,i,o?E:r.resolveJsonModule?k:T,a)}function F(i,a,o,s,c,e,u){var l=d(o,s),t=[],_={compilerOptions:o,host:s,traceEnabled:l,failedLookupLocations:t},r=h.forEach(e,function(e){var t=S(e,i,a,function(e,t,r,n){return w(e,t,r,n,!0)},_);if(t)return Z({resolved:t,isExternalLibraryImport:I(t.path)});{if(h.isExternalModuleNameRelative(i)){var r=h.normalizePathAndParts(h.combinePaths(a,i)),n=r.path,r=r.parts,n=w(e,n,!1,_,!0);return n&&Z({resolved:n,isExternalLibraryImport:h.contains(r,"node_modules")})}l&&v(s,h.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,i,f[e]);n=V(e,i,a,_,c,u);if(n){r=n.value;return o.preserveSymlinks||!r||r.originalPath||(e=P(r.path,s,l),n=e===r.path?void 0:r.path,r=__assign(__assign({},r),{path:e,originalPath:n})),{value:r&&{resolved:r,isExternalLibraryImport:!0}}}}});return m(null===(e=null==r?void 0:r.value)||void 0===e?void 0:e.resolved,null===(r=null==r?void 0:r.value)||void 0===r?void 0:r.isExternalLibraryImport,t,_.resultFromCache)}function P(e,t,r){if(!t.realpath)return e;var n=h.normalizePath(t.realpath(e));return r&&v(t,h.Diagnostics.Resolving_real_path_for_0_result_1,e,n),h.Debug.assert(t.fileExists(n),e+" linked to nonexistent file "+n),n}function w(e,t,r,n,i){if(n.traceEnabled&&v(n.host,h.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,t,f[e]),!h.hasTrailingDirectorySeparator(t)){r||(o=h.getDirectoryPath(t),h.directoryProbablyExists(o,n.host)||(n.traceEnabled&&v(n.host,h.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,o),r=!0));var a=L(e,t,r,n);if(a){var o=i?function(e){var t=h.normalizePath(e.path),r=t.lastIndexOf(h.nodeModulesPathPart);if(-1===r)return;e=r+h.nodeModulesPathPart.length,r=O(t,e);64===t.charCodeAt(e)&&(r=O(t,r));return t.slice(0,r)}(a):void 0;return u(o?J(o,!1,n):void 0,a)}}return r||h.directoryProbablyExists(t,n.host)||(n.traceEnabled&&v(n.host,h.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),j(e,t,r,n,i)}function I(e){return h.stringContains(e,h.nodeModulesPathPart)}function O(e,t){e=e.indexOf(h.directorySeparator,t+1);return-1===e?t:e}function M(e,t,r,n){return _(L(e,t,r,n))}function L(e,t,r,n){if(e===f.Json||e===f.TSConfig){var i=h.tryRemoveExtension(t,".json");return void 0===i&&e===f.Json?void 0:R(i||t,e,r,n)}var a=R(t,e,r,n);if(a)return a;if(h.hasJSFileExtension(t)){i=h.removeFileExtension(t);return n.traceEnabled&&(a=t.substring(i.length),v(n.host,h.Diagnostics.File_name_0_has_a_1_extension_stripping_it,t,a)),R(i,e,r,n)}}function R(r,e,n,i){var t;switch(n||(t=h.getDirectoryPath(r))&&(n=!h.directoryProbablyExists(t,i.host)),e){case f.DtsOnly:return a(".d.ts");case f.TypeScript:return a(".ts")||a(".tsx")||a(".d.ts");case f.JavaScript:return a(".js")||a(".jsx");case f.TSConfig:case f.Json:return a(".json")}function a(e){var t=B(r+e,n,i);return void 0===t?void 0:{path:t,ext:e}}}function B(e,t,r){if(!t){if(r.host.fileExists(e))return r.traceEnabled&&v(r.host,h.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&v(r.host,h.Diagnostics.File_0_does_not_exist,e)}r.failedLookupLocations.push(e)}function j(e,t,r,n,i){void 0===i&&(i=!0);i=i?J(t,r,n):void 0;return u(i,z(e,t,r,n,i&&i.packageJsonContent,i&&i.versionPaths))}function J(e,t,r){var n=r.host,i=r.traceEnabled,a=!t&&h.directoryProbablyExists(e,n),o=h.combinePaths(e,"package.json");if(a&&n.fileExists(o)){t=h.readJson(o,n);return i&&v(n,h.Diagnostics.Found_package_json_at_0,o),{packageDirectory:e,packageJsonContent:t,versionPaths:s(t,r)}}a&&i&&v(n,h.Diagnostics.File_0_does_not_exist,o),r.failedLookupLocations.push(o)}function z(e,t,r,n,i,a){var o;if(i)switch(e){case f.JavaScript:case f.Json:o=x(i,t,n);break;case f.TypeScript:o=b(i,t,n)||x(i,t,n);break;case f.DtsOnly:o=b(i,t,n);break;case f.TSConfig:o=y(i,"tsconfig",t,n);break;default:return h.Debug.assertNever(e)}function s(e,t,r,n){var i,a,o=B(t,r,n);if(o){var s=(i=e,a=o,void 0!==(s=h.tryGetExtensionFromPath(a))&&function(e,t){switch(e){case f.JavaScript:return".js"===t||".jsx"===t;case f.TSConfig:case f.Json:return".json"===t;case f.TypeScript:return".ts"===t||".tsx"===t||".d.ts"===t;case f.DtsOnly:return".d.ts"===t}}(i,s)?{path:a,ext:s}:void 0);if(s)return _(s);n.traceEnabled&&v(n.host,h.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,o)}return w(e===f.DtsOnly?f.TypeScript:e,t,r,n,!1)}var c=o?!h.directoryProbablyExists(h.getDirectoryPath(o),n.host):void 0,u=r||!h.directoryProbablyExists(t,n.host),l=h.combinePaths(t,e===f.TSConfig?"tsconfig":"index");if(a&&(!o||h.containsPath(t,o))){r=h.getRelativePathFromDirectory(t,o||l,!1);n.traceEnabled&&v(n.host,h.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,a.version,h.version,r);a=H(e,r,t,a.paths,s,c||u,n);if(a)return p(a.value)}c=o&&p(s(e,o,c,n));return c||L(e,l,u,n)}function U(e){var t=e.indexOf(h.directorySeparator);return"@"===e[0]&&(t=e.indexOf(h.directorySeparator,t+1)),-1===t?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function V(e,t,r,n,i,a){return K(e,t,r,n,!1,i,a)}function K(r,n,e,i,a,t,o){var s=t&&t.getOrCreateCacheForModuleName(n,o);return h.forEachAncestorDirectory(h.normalizeSlashes(e),function(e){if("node_modules"!==h.getBaseFileName(e)){var t=X(s,n,e,i);return t?t:Z(q(r,n,e,i,a))}})}function q(e,t,r,n,i){var a=h.combinePaths(r,"node_modules"),r=h.directoryProbablyExists(a,n.host);!r&&n.traceEnabled&&v(n.host,h.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a);i=i?void 0:W(e,t,a,r,n);if(i)return i;if(e===f.TypeScript||e===f.DtsOnly){e=h.combinePaths(a,"@types"),a=r;return r&&!h.directoryProbablyExists(e,n.host)&&(n.traceEnabled&&v(n.host,h.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),a=!1),W(f.DtsOnly,function(e,t){var r=G(e);t.traceEnabled&&r!==e&&v(t.host,h.Diagnostics.Scoped_package_detected_looking_in_0,r);return r}(t,n),e,a,n)}}function W(e,t,r,n,i){var a=h.normalizePath(h.combinePaths(r,t));if(c=J(a,!n,i)){var o=L(e,a,!n,i);if(o)return _(o);var s=z(e,a,!n,i,c.packageJsonContent,c.versionPaths);return u(c,s)}o=function(e,t,r,n){n=L(e,t,r,n)||z(e,t,r,n,c&&c.packageJsonContent,c&&c.versionPaths);return u(c,n)},s=U(t),t=s.packageName,s=s.rest;if(""!==s){var c,r=h.combinePaths(r,t);if((c=J(r,!n,i))&&c.versionPaths){i.traceEnabled&&v(i.host,h.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,c.versionPaths.version,h.version,s);t=n&&h.directoryProbablyExists(r,i.host),t=H(e,s,r,c.versionPaths.paths,o,!t,i);if(t)return t.value}}return o(e,a,!n,i)}function H(n,e,i,t,a,o,s){var r=h.matchPatternOrExact(h.getOwnKeys(t),e);if(r){var c=h.isString(r)?void 0:h.matchedText(r,e),r=h.isString(r)?r:h.patternText(r);return s.traceEnabled&&v(s.host,h.Diagnostics.Module_name_0_matched_pattern_1,e,r),{value:h.forEach(t[r],function(e){var t=c?e.replace("*",c):e,r=h.normalizePath(h.combinePaths(i,t));s.traceEnabled&&v(s.host,h.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,e,t);e=h.tryGetExtensionFromPath(r);if(void 0!==e){t=B(r,o,s);if(void 0!==t)return _({path:t,ext:e})}return a(n,r,o||!h.directoryProbablyExists(h.getDirectoryPath(r),s.host),s)})}}}h.nodeModuleNameResolver=A,h.nodeModulesPathPart="/node_modules/",h.pathContainsNodeModules=I,h.parsePackageName=U;var r="__";function G(e){if(h.startsWith(e,"@")){var t=e.replace(h.directorySeparator,r);if(t!==e)return t.slice(1)}return e}function Q(e){return h.stringContains(e,r)?"@"+e.replace(r,h.directorySeparator):e}function X(e,t,r,n){e=e&&e.get(r);if(e)return n.traceEnabled&&v(n.host,h.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,t,r),{value:(n.resultFromCache=e).resolvedModule&&{path:e.resolvedModule.resolvedFileName,originalPath:e.resolvedModule.originalPath||!0,extension:e.resolvedModule.extension,packageId:e.resolvedModule.packageId}}}function Y(a,e,t,r,o,s){var n=[],c={compilerOptions:t,host:r,traceEnabled:d(t,r),failedLookupLocations:n},u=h.getDirectoryPath(e),e=i(f.TypeScript)||i(f.JavaScript);return m(e&&e.value,!1,n,c.resultFromCache);function i(r){var e=S(r,a,u,M,c);if(e)return{value:e};if(h.isExternalModuleNameRelative(a)){var t=h.normalizePath(h.combinePaths(u,a));return Z(M(r,t,!1,c))}var n=o&&o.getOrCreateCacheForModuleName(a,s),i=h.forEachAncestorDirectory(u,function(e){var t=X(n,a,e,c);if(t)return t;e=h.normalizePath(h.combinePaths(e,a));return Z(M(r,e,!1,c))});return i||(r===f.TypeScript?(e=a,t=u,i=c,K(f.DtsOnly,e,t,i,!0,void 0,void 0)):void 0)}}function Z(e){return void 0!==e?{value:e}:void 0}h.getTypesPackageName=function(e){return"@types/"+G(e)},h.mangleScopedPackageName=G,h.getPackageNameFromTypesPackageName=function(e){var t=h.removePrefix(e,"@types/");return t!==e?Q(t):e},h.unmangleScopedPackageName=Q,h.classicNameResolver=Y,h.loadModuleFromGlobalCache=function(e,t,r,n,i){var a=d(r,n);return a&&v(n,h.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,i),a={compilerOptions:r,host:n,traceEnabled:a,failedLookupLocations:t=[]},m(q(f.DtsOnly,e,i,a,!1),!0,t,a.resultFromCache)}}(ts=ts||{}),function(E){var e;function N(e,t){return e.body&&!e.body.parent&&ot(e,e.body),e.body?u(e.body,t):1}function u(e,t){void 0===t&&(t=E.createMap());var r=""+E.getNodeId(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);e=function(e,r){switch(e.kind){case 246:case 247:return 0;case 248:if(E.isEnumConst(e))return 2;break;case 254:case 253:if(!E.hasModifier(e,1))return 0;break;case 260:var t=e;if(t.moduleSpecifier||!t.exportClause||261!==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(E.isBlock(n)||E.isModuleBlock(n)||E.isSourceFile(n)){for(var i=n.statements,a=void 0,o=0,s=i;o<s.length;o++){var c=s[o];if(E.nodeHasName(c,r)){c.parent||ot(n,c);c=u(c,t);if((void 0===a||a<c)&&(a=c),1===a)return a}}if(void 0!==a)return a}n=n.parent}return 1}(a[i],r);if(n<o&&(n=o),1===n)return n}return n;case 250:var s=0;return E.forEachChild(e,function(e){var t=u(e,r);switch(t){case 0:return;case 2:return void(s=2);case 1:return s=1,!0;default:E.Debug.assertNever(t)}}),s;case 249:return N(e,r);case 75:if(e.isInJSDocNamespace)return 0}return 1}(e,t);return t.set(r,e),e}function A(e){return E.Debug.attachFlowNodeDebugInfo(e),e}(e=E.ModuleInstanceState||(E.ModuleInstanceState={}))[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",E.getModuleInstanceState=N,(e={})[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod";var v,F,r,P,b,m,x,l,D,S,w,I,O,M,L,R,B,j,J,z,C,U,n,T,V,i,K,q,W,a=(K={flags:1},q={flags:1},W=i=0,function(e,t){v=e,F=t,r=E.getEmitScriptTarget(F),e=v,t=t,U=!(!E.getStrictOptionValue(t,"alwaysStrict")||e.isDeclarationFile)||!!e.externalModuleIndicator,T=E.createUnderscoreEscapedMap(),i=0,V=v.isDeclarationFile,n=E.objectAllocator.getSymbolConstructor(),E.Debug.attachFlowNodeDebugInfo(K),E.Debug.attachFlowNodeDebugInfo(q),v.locals||(Ie(v),v.symbolCount=i,v.classifiableNames=T,function(){if(D){for(var e=b,t=l,r=x,n=P,i=w,a=0,o=D;a<o.length;a++){var s=o[a],c=E.getJSDocHost(s);b=E.findAncestor(c.parent,function(e){return!!(1&be(e))})||v,x=E.getEnclosingBlockScopeContainer(c)||v,w=A({flags:2}),Ie((P=s).typeExpression);var u=E.getNameOfDeclaration(s);if((E.isJSDocEnumTag(s)||!s.fullName)&&u&&E.isPropertyAccessEntityNameExpression(u.parent)){c=He(u.parent);if(c){qe(v.symbol,u.parent,c,!!E.findAncestor(u,function(e){return E.isPropertyAccessExpression(e)&&"prototype"===e.name.escapedText}),!1);c=b;switch(E.getAssignmentDeclarationPropertyAccessKind(u.parent)){case 1:case 2:b=E.isExternalOrCommonJsModule(v)?v:void 0;break;case 4:b=u.parent.expression;break;case 3:b=u.parent.expression.name;break;case 5:b=tt(v,u.parent.expression)?v:E.isPropertyAccessExpression(u.parent.expression)?u.parent.expression.name:u.parent.expression;break;case 0:return E.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}b&&_(s,524288,788968),b=c}}else E.isJSDocEnumTag(s)||!s.fullName||75===s.fullName.kind?(P=s.parent,ke(s,524288,788968)):Ie(s.fullName)}b=e,l=t,x=r,P=n,w=i}}()),J=B=R=L=M=O=I=w=D=l=x=m=b=P=r=F=v=void 0,z=S=!1,W=C=0});function k(e,t,r,n,i){return E.createDiagnosticForNodeInSourceFile(E.getSourceFileOfNode(e)||v,e,t,r,n,i)}function H(e,t){return i++,new n(e,t)}function G(e,t,r){e.flags|=r,(t.symbol=e).declarations=E.appendIfUnique(e.declarations,t),1955&r&&!e.exports&&(e.exports=E.createSymbolTable()),6240&r&&!e.members&&(e.members=E.createSymbolTable()),e.constEnumOnlyModule&&304&e.flags&&(e.constEnumOnlyModule=!1),111551&r&&E.setValueDeclaration(e,t)}function Q(e){if(259===e.kind)return e.isExportEquals?"export=":"default";var t=E.getNameOfDeclaration(e);if(t){if(E.isAmbientModule(e)){var r=E.getTextOfIdentifierOrLiteral(t);return E.isGlobalScopeAugmentation(e)?"__global":'"'+r+'"'}if(154===t.kind){var n=t.expression;return E.isStringOrNumericLiteralLike(n)?E.escapeLeadingUnderscores(n.text):E.isSignedNumericLiteral(n)?E.tokenToString(n.operator)+n.operand.text:(E.Debug.assert(E.isWellKnownSymbolSyntactically(n)),E.getPropertyNameForKnownSymbolName(E.idText(n.name)))}if(E.isWellKnownSymbolSyntactically(t))return E.getPropertyNameForKnownSymbolName(E.idText(t.name));if(E.isPrivateIdentifier(t)){n=E.getContainingClass(e);if(!n)return;n=n.symbol;return E.getSymbolNameForPrivateIdentifier(n,t.escapedText)}return E.isPropertyNameLiteral(t)?E.getEscapedTextOfIdentifierOrLiteral(t):void 0}switch(e.kind){case 162:return"__constructor";case 170:case 165:case 305:return"__call";case 171:case 166:return"__new";case 167:return"__index";case 260:return"__export";case 290:return"export=";case 209:if(2===E.getAssignmentDeclarationKind(e))return"export=";E.Debug.fail("Unknown binary declaration kind");break;case 300:return E.isJSDocConstructSignature(e)?"__new":"__call";case 156:return E.Debug.assert(300===e.parent.kind,"Impossible parameter parent kind",function(){return"parent is: "+(E.SyntaxKind?E.SyntaxKind[e.parent.kind]:e.parent.kind)+", expected JSDocFunctionType"}),"arg"+e.parent.parameters.indexOf(e)}}function f(e){return E.isNamedDeclaration(e)?E.declarationNameToString(e.name):E.unescapeLeadingUnderscores(E.Debug.checkDefined(Q(e)))}function X(e,t,r,n,i,a){E.Debug.assert(!E.hasDynamicName(r));var o,s,c,u,l,_,d=E.hasModifier(r,512)||E.isExportSpecifier(r)&&"default"===r.name.escapedText,p=d&&t?"default":Q(r);if(void 0===p)o=H(0,"__missing");else if(o=e.get(p),2885600&n&&T.set(p,!0),o){if(a&&!o.isReplaceableByMethod)return o;o.flags&i&&(o.isReplaceableByMethod?e.set(p,o=H(0,p)):3&n&&67108864&o.flags||(E.isNamedDeclaration(r)&&(r.name.parent=r),s=2&o.flags?E.Diagnostics.Cannot_redeclare_block_scoped_variable_0:E.Diagnostics.Duplicate_identifier_0,c=!0,(384&o.flags||384&n)&&(s=E.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,c=!1),u=!1,E.length(o.declarations)&&(d||o.declarations&&o.declarations.length&&259===r.kind&&!r.isExportEquals)&&(s=E.Diagnostics.A_module_cannot_have_multiple_default_exports,u=!(c=!1)),l=[],E.isTypeAliasDeclaration(r)&&E.nodeIsMissing(r.type)&&E.hasModifier(r,1)&&2887656&o.flags&&l.push(k(r,E.Diagnostics.Did_you_mean_0,"export type { "+E.unescapeLeadingUnderscores(r.name.escapedText)+" }")),_=E.getNameOfDeclaration(r)||r,E.forEach(o.declarations,function(e,t){var r=E.getNameOfDeclaration(e)||e,e=k(r,s,c?f(e):void 0);v.bindDiagnostics.push(u?E.addRelatedInfo(e,k(_,0===t?E.Diagnostics.Another_export_default_is_here:E.Diagnostics.and_here)):e),u&&l.push(k(r,E.Diagnostics.The_first_export_default_is_here))}),d=k(_,s,c?f(r):void 0),v.bindDiagnostics.push(E.addRelatedInfo.apply(void 0,__spreadArrays([d],l))),o=H(0,p)))}else e.set(p,o=H(0,p)),a&&(o.isReplaceableByMethod=!0);return G(o,r,n),o.parent?E.Debug.assert(o.parent===t,"Existing symbol parent should match new one"):o.parent=t,o}function _(e,t,r){var n=1&E.getCombinedModifierFlags(e);if(2097152&t)return 263===e.kind||253===e.kind&&n?X(b.symbol.exports,b.symbol,e,t,r):X(b.locals,void 0,e,t,r);if(E.isJSDocTypeAlias(e)&&E.Debug.assert(E.isInJSFile(e)),!E.isAmbientModule(e)&&(n||64&b.flags)||E.isJSDocTypeAlias(e)){if(!b.locals||E.hasModifier(e,512)&&!Q(e))return X(b.symbol.exports,b.symbol,e,t,r);n=111551&t?1048576:0,n=X(b.locals,void 0,e,n,r);return n.exportSymbol=X(b.symbol.exports,b.symbol,e,t,r),e.localSymbol=n}return X(b.locals,void 0,e,t,r)}function y(e){var t;V?o(e):536870912&e.transformFlags?(V=!0,o(e),V=!1,W|=e.transformFlags&~at(e.kind)):(t=W,W=0,o(e),W=t|nt(e,W))}function Y(e){Z(e,function(e){return 244===e.kind?Ie(e):void 0}),Z(e,function(e){return 244!==e.kind?Ie(e):void 0})}function Z(e,t){if(void 0===t&&(t=Ie),void 0!==e)if(V)E.forEach(e,t);else{for(var r=W,n=W=0,i=0,a=e;i<a.length;i++){var o=a[i];t(o),n|=-536870913&o.transformFlags}e.transformFlags=536870912|n,W|=r}}function $(e){E.forEachChild(e,Ie,Z)}function o(e){if(function(e){if(!(1&w.flags))return!1;{var r;w===K&&(E.isStatementButNotDeclaration(e)&&224!==e.kind||245===e.kind||249===e.kind&&function(e){e=N(e);return 1===e||2===e&&!!F.preserveConstEnums}(e))&&(w=q,F.allowUnreachableCode||(r=E.unreachableCodeIsError(F)&&!(8388608&e.flags)&&(!E.isVariableStatement(e)||!!(3&E.getCombinedNodeFlags(e.declarationList))||e.declarationList.declarations.some(function(e){return!!e.initializer})),function(e,r){var t,n;E.isStatement(e)&&et(e)&&E.isBlock(e.parent)?(t=e.parent.statements,n=E.sliceAfter(t,e),E.getRangesWhere(n,et,function(e,t){return r(n[e],n[t-1])})):r(e,e)}(e,function(e,t){return we(r,e,t,E.Diagnostics.Unreachable_code_detected)})))}return!0}(e))return $(e),void Oe(e);switch(225<=e.kind&&e.kind<=241&&!F.allowUnreachableCode&&(e.flowNode=w),e.kind){case 229:C=fe(S=e,ie()),T=ne(),k=ne(),se(C,w),w=C,de(S.expression,T,k),w=le(T),pe(S.statement,k,C),se(C,w),w=le(k);break;case 228:v=e,b=ie(),x=fe(v,ne()),D=ne(),se(b,w),w=b,pe(v.statement,D,x),se(x,w),w=le(x),de(v.expression,b,D),w=le(D);break;case 230:v=fe(x=e,ie()),b=ne(),D=ne(),Ie(x.initializer),se(v,w),w=v,de(x.condition,b,D),w=le(b),pe(x.statement,D,v),Ie(x.incrementor),se(v,w),w=le(D);break;case 231:case 232:y=fe(m=e,ie()),h=ne(),Ie(m.expression),se(y,w),w=y,232===m.kind&&Ie(m.awaitModifier),se(h,w),Ie(m.initializer),243!==m.initializer.kind&&me(m.initializer),pe(m.statement,h,y),se(y,w),!void(w=le(h));break;case 227:m=e,y=ne(),h=ne(),g=ne(),de(m.expression,y,h),w=le(y),Ie(m.thenStatement),se(g,w),w=le(h),Ie(m.elseStatement),se(g,w),w=le(g);break;case 235:case 239:Ie((f=e).expression),235===f.kind&&(z=!0,M&&se(M,w)),!void(w=K);break;case 234:case 233:Ie((d=e).label),!void(d.label?(p=function(e){for(var t=J;t;t=t.next)if(t.name===e)return t;return}(d.label.escapedText))&&(p.referenced=!0,ge(d,p.breakTarget,p.continueTarget)):ge(d,I,O));break;case 240:g=e,f=M,l=B,_=ne(),p=ne(),d=ne(),g.finallyBlock&&(M=p),se(d,w),B=d,Ie(g.tryBlock),se(_,w),g.catchClause&&(w=le(d),se(d=ne(),w),B=d,Ie(g.catchClause),se(_,w)),M=f,B=l,!void(w=g.finallyBlock?((l=ne()).antecedents=E.concatenate(E.concatenate(_.antecedents,d.antecedents),p.antecedents),w=l,Ie(g.finallyBlock),1&w.flags?K:(M&&p.antecedents&&se(M,ae(l,p.antecedents,w)),_.antecedents?ae(l,_.antecedents,w):K)):le(_));break;case 237:!function(e){var t=ne();Ie(e.expression);var r=I,n=j;I=t,j=w,Ie(e.caseBlock),se(t,w);var i=E.forEach(e.caseBlock.clauses,function(e){return 278===e.kind});e.possiblyExhaustive=!i&&!t.antecedents,i||se(t,ce(j,e,0,0)),I=r,j=n,w=le(t)}(e);break;case 251:!function(e){var t=W;W=0;for(var r=e.clauses,n=ee(e.parent.expression),i=K,a=0;a<r.length;a++){for(var o=a;!r[a].statements.length&&a+1<r.length;)Ie(r[a]),a++;var s=ne();se(s,n?ce(j,e.parent,o,a+1):j),se(s,i),w=le(s);s=r[a];Ie(s),1&(i=w).flags||a===r.length-1||!F.noFallthroughCasesInSwitch||(s.fallthroughFlowNode=w)}r.transformFlags=536870912|W,W|=t}(e);break;case 277:l=w,w=j,Ie((_=e).expression),w=l,Z(_.statements);break;case 226:Ie((u=e).expression),196===u.expression.kind&&(u=u.expression,E.isDottedName(u.expression)&&(w=function(e,t){return oe(e),A({flags:512,antecedent:e,node:t})}(w,u)));break;case 238:u=e,c=ne(),J={next:J,name:u.label.escapedText,breakTarget:c,continueTarget:void 0,referenced:!1},Ie(u.label),Ie(u.statement),J.referenced||F.allowUnusedLabels||function(e,t,r){we(e,t,t,r)}(E.unusedLabelIsError(F),u.label,E.Diagnostics.Unused_label),J=J.next,se(c,w),!void(w=le(c));break;case 207:!void(53===(s=e).operator?(c=L,L=R,R=c,$(s),R=L,L=c):($(s),45!==s.operator&&46!==s.operator||me(s.operand)));break;case 208:$(o=e),45!==o.operator&&46!==o.operator||me(o.operand);break;case 209:!function(e){for(var i={expr:[e],state:[1],inStrictMode:[void 0],parent:[void 0],subtreeFlags:[void 0]},a=0;0<=a;)switch(e=i.expr[a],i.state[a]){case 0:e.parent=P;var t=U;Le(e);var r=P;P=e;var n,o=void 0;V||(o=536870912&e.transformFlags?(V=!0,-1):(n=W,W=0,n)),c(1,t,r,o);break;case 1:55===(s=e.operatorToken.kind)||56===s||60===s?(_e(e)?(o=ne(),ye(e,o,o),w=le(o)):ye(e,L,R),u()):(c(2),l(e.left));break;case 2:c(3),l(e.operatorToken);break;case 3:c(4),l(e.right);break;case 4:var s=e.operatorToken.kind;E.isAssignmentOperator(s)&&!E.isAssignmentTarget(e)&&(me(e.left),62===s&&195===e.left.kind&&re(e.left.expression)&&(w=ue(256,w,e))),u();break;default:return E.Debug.fail("Invalid state "+i.state[a]+" for bindBinaryExpressionFlow")}function c(e,t,r,n){i.state[a]=e,void 0!==t&&(i.inStrictMode[a]=t),void 0!==r&&(i.parent[a]=r),void 0!==n&&(i.subtreeFlags[a]=n)}function u(){void 0!==i.inStrictMode[a]&&(-1===i.subtreeFlags[a]?(V=!1,W|=e.transformFlags&~at(e.kind)):void 0!==i.subtreeFlags[a]&&(W=i.subtreeFlags[a]|nt(e,W)),U=i.inStrictMode[a],P=i.parent[a]),a--}function l(e){e&&E.isBinaryExpression(e)?(a++,i.expr[a]=e,i.state[a]=0,i.inStrictMode[a]=void 0,i.parent[a]=void 0,i.subtreeFlags[a]=void 0):Ie(e)}}(e);break;case 203:$(a=e),194===a.expression.kind&&me(a.expression);break;case 210:s=e,o=ne(),a=ne(),i=ne(),de(s.condition,o,a),w=le(o),Ie(s.questionToken),Ie(s.whenTrue),se(i,w),w=le(a),Ie(s.colonToken),Ie(s.whenFalse),se(i,w),w=le(i);break;case 242:$(i=e),(i.initializer||E.isForInOrOfStatement(i.parent.parent))&&function e(t){var r=E.isOmittedExpression(t)?void 0:t.name;if(E.isBindingPattern(r))for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];e(a)}else w=ue(16,w,t)}(i);break;case 194:case 195:n=e,(E.isOptionalChain(n)?ve:$)(n);break;case 196:n=e,E.isOptionalChain(n)?ve(n):201===(r=E.skipParentheses(n.expression)).kind||202===r.kind?(Z(n.typeArguments),Z(n.arguments),Ie(n.expression)):$(n),!void(194===n.expression.kind&&(r=n.expression,E.isIdentifier(r.name)&&re(r.expression)&&E.isPushOrUnshiftIdentifier(r.name)&&(w=ue(256,w,n))));break;case 218:t=e,(E.isOptionalChain(t)?ve:$)(t);break;case 322:case 315:case 316:316!==((t=e).tagName.parent=t).kind&&t.fullName&&ot(t,t.fullName);break;case 290:Y(e.statements),Ie(e.endOfFileToken);break;case 223:case 250:Y(e.statements);break;default:$(e)}var t,r,n,i,a,o,s,c,u,l,_,d,p,f,g,m,y,h,v,b,x,D,S,C,T,k;Oe(e)}function ee(e){switch(e.kind){case 75:case 104:case 194:case 195:return s(e);case 196:return function(e){if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++)if(s(r[t]))return!0;if(194===e.expression.kind&&s(e.expression.expression))return!0;return!1}(e);case 200:return ee(e.expression);case 209:return function(e){switch(e.operatorToken.kind){case 62:return s(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 98:return re(e.left);case 97:return function(e,t){return E.isStringLiteralLike(e)&&ee(t)}(e.left,e.right);case 27:return ee(e.right)}return!1}(e);case 207:return 53===e.operator&&ee(e.operand);case 204:return ee(e.expression)}return!1}function te(e){return 75===e.kind||104===e.kind||102===e.kind||(E.isPropertyAccessExpression(e)||E.isNonNullExpression(e)||E.isParenthesizedExpression(e))&&te(e.expression)||E.isElementAccessExpression(e)&&E.isStringOrNumericLiteralLike(e.argumentExpression)&&te(e.expression)}function s(e){return te(e)||E.isOptionalChain(e)&&s(e.expression)}function t(e,t){return E.isTypeOfExpression(e)&&re(e.expression)&&E.isStringLiteralLike(t)}function re(e){switch(e.kind){case 200:return re(e.expression);case 209:switch(e.operatorToken.kind){case 62:return re(e.left);case 27:return re(e.right)}}return s(e)}function ne(){return A({flags:4,antecedents:void 0})}function ie(){return A({flags:8,antecedents:void 0})}function ae(e,t,r){return A({flags:1024,target:e,antecedents:t,antecedent:r})}function oe(e){e.flags|=2048&e.flags?4096:2048}function se(e,t){1&t.flags||E.contains(e.antecedents,t)||((e.antecedents||(e.antecedents=[])).push(t),oe(t))}function c(e,t,r){return 1&t.flags?t:r?!(106===r.kind&&64&e||91===r.kind&&32&e)||E.isExpressionOfOptionalChainRoot(r)||E.isNullishCoalesce(r.parent)?ee(r)?(oe(t),A({flags:e,antecedent:t,node:r})):t:K:32&e?t:K}function ce(e,t,r,n){return oe(e),A({flags:128,antecedent:e,switchStatement:t,clauseStart:r,clauseEnd:n})}function ue(e,t,r){oe(t);r=A({flags:e,antecedent:t,node:r});return B&&se(B,r),r}function le(e){var t=e.antecedents;return t?1===t.length?t[0]:e:K}function d(e){for(;;)if(200===e.kind)e=e.expression;else{if(207!==e.kind||53!==e.operator)return 209===e.kind&&(55===e.operatorToken.kind||56===e.operatorToken.kind||60===e.operatorToken.kind);e=e.operand}}function _e(e){for(;E.isParenthesizedExpression(e.parent)||E.isPrefixUnaryExpression(e.parent)&&53===e.parent.operator;)e=e.parent;return!(function(e){var t=e.parent;switch(t.kind){case 227:case 229:case 228:return t.expression===e;case 230:case 210:return t.condition===e}}(e)||d(e.parent)||E.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 de(e,t,r){p(Ie,e,t,r),e&&(d(e)||E.isOptionalChain(e)&&E.isOutermostOptionalChain(e))||(se(t,c(32,w,e)),se(r,c(64,w,e)))}function pe(e,t,r){var n=I,i=O;I=t,O=r,Ie(e),I=n,O=i}function fe(e,t){for(var r=J;r&&238===e.parent.kind;)r.continueTarget=t,r=r.next,e=e.parent;return t}function ge(e,t,r){r=234===e.kind?t:r;r&&(se(r,w),w=K)}function g(e){209===e.kind&&62===e.operatorToken.kind?me(e.left):me(e)}function me(e){if(te(e))w=ue(16,w,e);else if(192===e.kind)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];213===n.kind?me(n.expression):g(n)}else if(193===e.kind)for(var i=0,a=e.properties;i<a.length;i++){var o=a[i];281===o.kind?g(o.initializer):282===o.kind?me(o.name):283===o.kind&&me(o.expression)}}function ye(e,t,r){var n=ne();55===e.operatorToken.kind?de(e.left,n,r):de(e.left,t,n),w=le(n),Ie(e.operatorToken),de(e.right,t,r)}function h(e){switch(e.kind){case 194:Ie(e.questionDotToken),Ie(e.name);break;case 195:Ie(e.questionDotToken),Ie(e.argumentExpression);break;case 196:Ie(e.questionDotToken),Z(e.typeArguments),Z(e.arguments)}}function he(e,t,r){var n,i,a,o=E.isOptionalChainRoot(e)?ne():void 0;p(Ie,n=e.expression,i=o||t,a=r),E.isOptionalChain(n)&&!E.isOutermostOptionalChain(n)||(se(i,c(32,w,n)),se(a,c(64,w,n))),o&&(w=le(o)),p(h,e,t,r),E.isOutermostOptionalChain(e)&&(se(t,c(32,w,e)),se(r,c(64,w,e)))}function ve(e){var t;_e(e)?(he(e,t=ne(),t),w=le(t)):he(e,L,R)}function be(e){switch(e.kind){case 214:case 245:case 248:case 193:case 173:case 304:case 274:return 1;case 246:return 65;case 249:case 247:case 186:return 33;case 290:return 37;case 161:if(E.isObjectLiteralOrClassExpressionMethod(e))return 173;case 162:case 244:case 160:case 163:case 164:case 165:case 305:case 300:case 170:case 166:case 167:case 171:return 45;case 201:case 202:return 61;case 250:return 4;case 159:return e.initializer?4:0;case 280:case 230:case 231:case 232:case 251:return 2;case 223:return E.isFunctionLike(e.parent)?0:2}return 0}function xe(e){l&&(l.nextContainer=e),l=e}function De(e,t,r){switch(b.kind){case 249:return _(e,t,r);case 290:return n=e,i=t,a=r,E.isExternalModule(v)?_(n,i,a):X(v.locals,void 0,n,i,a);case 214:case 245:return n=e,i=t,a=r,E.hasModifier(n,32)?X(b.symbol.exports,b.symbol,n,i,a):X(b.symbol.members,b.symbol,n,i,a);case 248:return X(b.symbol.exports,b.symbol,e,t,r);case 173:case 304:case 193:case 246:case 274:return X(b.symbol.members,b.symbol,e,t,r);case 170:case 171:case 165:case 166:case 305:case 167:case 161:case 160:case 162:case 163:case 164:case 244:case 201:case 202:case 300:case 322:case 315:case 247:case 186:return X(b.locals,void 0,e,t,r)}var n,i,a}function Se(e){var t;8388608&e.flags&&(t=e,!(t=E.isSourceFile(t)?t:E.tryCast(t.body,E.isModuleBlock))||!t.statements.some(function(e){return E.isExportDeclaration(e)||E.isExportAssignment(e)}))?e.flags|=64:e.flags&=-65}function Ce(e){var t=N(e),r=0!==t;return De(e,r?512:1024,r?110735:0),t}function Te(e,t,r){r=H(t,r);return 106508&t&&(r.parent=b.symbol),G(r,e,t),r}function ke(e,t,r){switch(x.kind){case 249:_(e,t,r);break;case 290:if(E.isExternalOrCommonJsModule(b)){_(e,t,r);break}default:x.locals||(x.locals=E.createSymbolTable(),xe(x)),X(x.locals,void 0,e,t,r)}}function Ee(e){!(U&&113<=e.originalKeywordKind&&e.originalKeywordKind<=121)||E.isIdentifierName(e)||8388608&e.flags||4194304&e.flags||v.parseDiagnostics.length||v.bindDiagnostics.push(k(e,function(e){if(E.getContainingClass(e))return E.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(v.externalModuleIndicator)return E.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return E.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(e),E.declarationNameToString(e)))}function Ne(e,t){var r,n;t&&75===t.kind&&(n=r=t,!E.isIdentifier(n)||"eval"!==n.escapedText&&"arguments"!==n.escapedText||(t=E.getErrorSpanForNode(v,t),v.bindDiagnostics.push(E.createFileDiagnostic(v,t.start,t.length,function(e){if(E.getContainingClass(e))return E.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode;if(v.externalModuleIndicator)return E.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return E.Diagnostics.Invalid_use_of_0_in_strict_mode}(e),E.idText(r)))))}function Ae(e){U&&Ne(e,e.name)}function Fe(e){var t;r<2&&(290===x.kind||249===x.kind||E.isFunctionLike(x)||(t=E.getErrorSpanForNode(v,e),v.bindDiagnostics.push(E.createFileDiagnostic(v,t.start,t.length,(e=e,E.getContainingClass(e)?E.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?E.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:E.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5)))))}function Pe(e,t,r,n,i){e=E.getSpanOfTokenAtPosition(v,e.pos);v.bindDiagnostics.push(E.createFileDiagnostic(v,e.start,e.length,t,r,n,i))}function we(e,t,r,n){e=e,r={pos:E.getTokenPosOfNode(t,v),end:r.end},n=n,n=E.createFileDiagnostic(v,r.pos,r.end-r.pos,n),e?v.bindDiagnostics.push(n):v.bindSuggestionDiagnostics=E.append(v.bindSuggestionDiagnostics,__assign(__assign({},n),{category:E.DiagnosticCategory.Suggestion}))}function Ie(e){var t,r,n,i,a,o,s,c,u,l,_,d,p,f,g;e&&(e.parent=P,t=U,Le(e),152<e.kind?(r=P,0===(d=be(P=e))?y(e):(n=e,p=b,f=m,g=x,1&(i=d)?(202!==n.kind&&(m=b),b=x=n,32&i&&(b.locals=E.createSymbolTable()),xe(b)):2&i&&((x=n).locals=void 0),4&i?(a=w,o=I,s=O,c=M,u=B,l=J,_=z,(d=16&i&&!E.hasModifier(n,256)&&!n.asteriskToken&&!!E.getImmediatelyInvokedFunctionExpression(n))||(w=A({flags:2}),144&i&&(w.node=n)),M=d||162===n.kind?ne():void 0,J=O=I=B=void 0,z=!1,y(n),n.flags&=-2817,!(1&w.flags)&&8&i&&E.nodeIsPresent(n.body)&&(n.flags|=256,z&&(n.flags|=512),n.endFlowNode=w),290===n.kind&&(n.flags|=C),M&&(se(M,w),w=le(M),162===n.kind&&(n.returnFlowNode=w)),d||(w=a),I=o,O=s,M=c,B=u,J=l,z=_):64&i?(S=!1,y(n),n.flags=S?128|n.flags:-129&n.flags):y(n),b=p,m=f,x=g),P=r):V||0!=(536870912&e.transformFlags)||(W|=nt(e,0),r=P,1===e.kind&&(P=e),Oe(e),P=r),U=t)}function Oe(e){if(E.hasJSDocNodes(e))if(E.isInJSFile(e))for(var t=0,r=e.jsDoc;t<r.length;t++)Ie(r[t]);else for(var n=0,i=e.jsDoc;n<i.length;n++)ot(e,i[n])}function Me(e){if(!U)for(var t=0,r=e;t<r.length;t++){var n=r[t];if(!E.isPrologueDirective(n))return;if(function(e){e=E.getSourceTextOfNodeFromSourceFile(v,e.expression);return'"use strict"'===e||"'use strict'"===e}(n))return void(U=!0)}}function Le(e){switch(e.kind){case 75:if(e.isInJSDocNamespace){for(var t=e.parent;t&&!E.isJSDocTypeAlias(t);)t=t.parent;ke(t,524288,788968);break}case 104:return w&&(E.isExpression(e)||282===P.kind)&&(e.flowNode=w),Ee(e),0;case 76:return"#constructor"===(h=e).escapedText&&(v.parseDiagnostics.length||v.bindDiagnostics.push(k(h,E.Diagnostics.constructor_is_a_reserved_word,E.declarationNameToString(h)))),0;case 194:case 195:var r=e;w&&te(r)&&(r.flowNode=w),E.isSpecialPropertyDeclaration(r)&&(104===(h=r).expression.kind?Je(h):E.isBindableStaticAccessExpression(h)&&290===h.parent.parent.kind&&(E.isPrototypeAccess(h.expression)?Ve(h,h.parent):Ke(h))),E.isInJSFile(r)&&v.commonJsModuleIndicator&&E.isModuleExportsAccessExpression(r)&&!rt(x,"module")&&X(v.locals,void 0,r.expression,134217729,111550);break;case 209:switch(E.getAssignmentDeclarationKind(e)){case 1:je(e);break;case 2:!void(Be(m=e)&&(y=E.getRightMostAssignedExpression(m.right),E.isEmptyObjectLiteral(y)||b===v&&tt(v,y)||(y=E.exportAssignmentIsAlias(m)?2097152:1049092,y=X(v.symbol.exports,v.symbol,m,67108864|y,0),E.setValueDeclaration(y,m))));break;case 3:Ve(e.left,e);break;case 6:Ge((((g=e).left.parent=g).right.parent=g).left.expression,g.left,!1,!0);break;case 4:Je(e);break;case 5:g=Qe((m=e).left.expression),!void((E.isInJSFile(m)||E.isFunctionSymbol(g))&&((m.left.parent=m).right.parent=m,E.isIdentifier(m.left.expression)&&b===v&&tt(v,m.left.expression)?je(m):E.hasDynamicName(m)?(Te(m,67108868,"__computed"),g=qe(g,m.left.expression,He(m.left),!1,!1),Ue(m,g)):Ke(E.cast(m.left,E.isBindableStaticNameExpression))));break;case 0:break;default:E.Debug.fail("Unknown binary expression special property assignment kind")}return r=e,U&&E.isLeftHandSideExpression(r.left)&&E.isAssignmentOperator(r.operatorToken.kind)&&Ne(r,r.left),0;case 280:return f=e,U&&f.variableDeclaration&&Ne(f,f.variableDeclaration.name),0;case 203:return f=e,U&&75===f.expression.kind&&(f=E.getErrorSpanForNode(v,f.expression),v.bindDiagnostics.push(E.createFileDiagnostic(v,f.start,f.length,E.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))),0;case 8:return p=e,U&&32&p.numericLiteralFlags&&v.bindDiagnostics.push(k(p,E.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode)),0;case 208:return p=e,U&&Ne(p,p.operand),0;case 207:return d=e,U&&(45!==d.operator&&46!==d.operator||Ne(d,d.operand)),0;case 236:return d=e,U&&Pe(d,E.Diagnostics.with_statements_are_not_allowed_in_strict_mode),0;case 238:return _=e,U&&2<=F.target&&(E.isDeclarationStatement(_.statement)||E.isVariableStatement(_.statement))&&Pe(_.label,E.Diagnostics.A_label_is_not_allowed_here),0;case 183:return void(S=!0);case 168:break;case 155:return function(e){{var t;E.isJSDocTemplateTag(e.parent)?(t=E.find(e.parent.parent.tags,E.isJSDocTypeAlias)||E.getHostSignatureFromJSDoc(e.parent))?(t.locals||(t.locals=E.createSymbolTable()),X(t.locals,void 0,e,262144,526824)):De(e,262144,526824):181===e.parent.kind?(t=function(e){e=E.findAncestor(e,function(e){return e.parent&&E.isConditionalTypeNode(e.parent)&&e.parent.extendsType===e});return e&&e.parent}(e.parent))?(t.locals||(t.locals=E.createSymbolTable()),X(t.locals,void 0,e,262144,526824)):Te(e,262144,Q(e)):De(e,262144,526824)}}(e),0;case 156:return Ze(e),0;case 242:return Ye(e),0;case 191:return e.flowNode=w,Ye(e),0;case 159:case 158:return $e(_=e,4|(_.questionToken?16777216:0),0);case 281:case 282:return $e(e,4,0);case 284:return $e(e,8,900095);case 165:case 166:case 167:return De(e,131072,0);case 161:case 160:return $e(e,8192|(e.questionToken?16777216:0),E.isObjectLiteralMethod(e)?0:103359);case 244:return function(e){v.isDeclarationFile||8388608&e.flags||E.isAsyncFunction(e)&&(C|=2048);Ae(e),U?(Fe(e),ke(e,16,110991)):De(e,16,110991)}(e),0;case 162:return De(e,16384,0);case 163:return $e(e,32768,46015);case 164:return $e(e,65536,78783);case 170:case 300:case 305:case 171:return function(e){var t=H(131072,Q(e));G(t,e,131072);var r=H(2048,"__type");G(r,e,2048),r.members=E.createSymbolTable(),r.members.set(t.escapedName,t)}(e),0;case 173:case 304:case 186:return Te(e,2048,"__type");case 310:return $(l=e),(l=E.getHostSignatureFromJSDoc(l))&&161!==l.kind&&G(l.symbol,l,32),0;case 193:return function(e){var t;if((t={})[t.Property=1]="Property",t[t.Accessor=2]="Accessor",U&&!E.isAssignmentTarget(e))for(var r=E.createUnderscoreEscapedMap(),n=0,i=e.properties;n<i.length;n++){var a,o,s=i[n];283!==s.kind&&75===s.name.kind&&(a=s.name,o=281===s.kind||282===s.kind||161===s.kind?1:2,(s=r.get(a.escapedText))?1==o&&1===s&&(s=E.getErrorSpanForNode(v,a),v.bindDiagnostics.push(E.createFileDiagnostic(v,s.start,s.length,E.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))):r.set(a.escapedText,o))}return Te(e,4096,"__object")}(e);case 201:case 202:return function(e){v.isDeclarationFile||8388608&e.flags||E.isAsyncFunction(e)&&(C|=2048);w&&(e.flowNode=w);Ae(e);var t=e.name?e.name.escapedText:"__function";return Te(e,16,t)}(e);case 196:switch(E.getAssignmentDeclarationKind(e)){case 7:return c=Qe((s=e).arguments[0]),u=290===s.parent.parent.kind,c=qe(c,s.arguments[0],u,!1,!1),We(s,c,!1),0;case 8:return function(e){if(!Be(e))return;var t=Xe(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=Qe(e.arguments[0].expression);t&&t.valueDeclaration&&G(t,t.valueDeclaration,32);We(e,t,!0)}(e),0;case 0:break;default:return E.Debug.fail("Unknown call expression assignment declaration kind")}E.isInJSFile(e)&&(l=e,!v.commonJsModuleIndicator&&E.isRequireCall(l,!1)&&Be(l));break;case 214:case 245:return U=!0,function(e){245===e.kind?ke(e,32,899503):(n=e.name?e.name.escapedText:"__class",Te(e,32,n),e.name&&T.set(e.name.escapedText,!0));var t=e.symbol,r=H(4194308,"prototype"),n=t.exports.get(r.escapedName);n&&(e.name&&(e.name.parent=e),v.bindDiagnostics.push(k(n.declarations[0],E.Diagnostics.Duplicate_identifier_0,E.symbolName(r)))),t.exports.set(r.escapedName,r),r.parent=t}(e),0;case 246:return ke(e,64,788872),0;case 247:return ke(e,524288,788968),0;case 248:return o=e,E.isEnumConst(o)?ke(o,128,899967):ke(o,256,899327);case 249:return Se(o=e),E.isAmbientModule(o)?(E.hasModifier(o,1)&&Pe(o,E.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),E.isModuleAugmentationExternal(o)?Ce(o):(i=void 0,10===o.name.kind&&(a=o.name.text,E.hasZeroOrOneAsteriskCharacter(a)?i=E.tryParsePattern(a):Pe(o.name,E.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,a)),a=De(o,512,110735),v.patternAmbientModules=E.append(v.patternAmbientModules,i&&{pattern:i,symbol:a}))):0!==(i=Ce(o))&&((a=o.symbol).constEnumOnlyModule=!(304&a.flags)&&2===i&&!1!==a.constEnumOnlyModule),0;case 274:return Te(e,4096,"__jsxAttributes");case 273:return De(e,4,0);case 253:case 256:case 258:case 263:return De(e,2097152,2097152);case 252:return function(e){e.modifiers&&e.modifiers.length&&v.bindDiagnostics.push(k(e,E.Diagnostics.Modifiers_cannot_appear_here));var t=E.isSourceFile(e.parent)?E.isExternalModule(e.parent)?e.parent.isDeclarationFile?void 0:E.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:E.Diagnostics.Global_module_exports_may_only_appear_in_module_files:E.Diagnostics.Global_module_exports_may_only_appear_at_top_level;t?v.bindDiagnostics.push(k(e,t)):(v.symbol.globalExports=v.symbol.globalExports||E.createSymbolTable(),X(v.symbol.globalExports,v.symbol,e,2097152,2097152))}(e),0;case 255:return(a=e).name&&De(a,2097152,2097152),0;case 260:return n=e,b.symbol&&b.symbol.exports?n.exportClause?E.isNamespaceExport(n.exportClause)&&(n.exportClause.parent=n,X(b.symbol.exports,b.symbol,n.exportClause,2097152,2097152)):X(b.symbol.exports,b.symbol,n,8388608,0):Te(n,8388608,Q(n)),0;case 259:return function(e){{var t;b.symbol&&b.symbol.exports?(t=E.exportAssignmentIsAlias(e)?2097152:4,t=X(b.symbol.exports,b.symbol,e,t,67108863),e.isExportEquals&&E.setValueDeclaration(t,e)):Te(e,2097152,Q(e))}}(e),0;case 290:return Me(e.statements),Se(v),E.isExternalModule(v)?Re():E.isJsonSourceFile(v)&&(Re(),n=v.symbol,X(v.symbol.exports,v.symbol,v,4,67108863),v.symbol=n),0;case 223:if(!E.isFunctionLike(e.parent))return;case 250:return Me(e.statements),0;case 317:if(305===e.parent.kind)return Ze(e),0;if(304!==e.parent.kind)break;case 323:return De(e,e.isBracketed||e.typeExpression&&299===e.typeExpression.type.kind?16777220:4,0);case 322:case 315:case 316:return(D=D||[]).push(e)}var n,i,a,o,s,c,u,l,_,d,p,f,g,m,y,h}function Re(){Te(v,512,'"'+E.removeFileExtension(v.fileName)+'"')}function Be(e){return!v.externalModuleIndicator&&(v.commonJsModuleIndicator||(v.commonJsModuleIndicator=e,Re()),1)}function je(e){var t,r;!Be(e)||(t=Xe(e.left.expression,void 0,function(e,t){return t&&G(t,e,67110400),t}))&&(r=E.isClassExpression(e.right)?1048612:1048580,X(t.exports,t,e.left,r,0))}function Je(e){if(E.Debug.assert(E.isInJSFile(e)),!(E.isBinaryExpression(e)&&E.isPropertyAccessExpression(e.left)&&E.isPrivateIdentifier(e.left.name)||E.isPropertyAccessExpression(e)&&E.isPrivateIdentifier(e.name))){var t=E.getThisContainer(e,!1);switch(t.kind){case 244:case 201:var r=t.symbol;E.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind&&(n=t.parent.left,E.isBindableStaticAccessExpression(n)&&E.isPrototypeAccess(n.expression)&&(r=Qe(n.expression.expression,m))),r&&r.valueDeclaration&&(r.members=r.members||E.createSymbolTable(),E.hasDynamicName(e)?ze(e,r):X(r.members,r,e,67108868,0),G(r,r.valueDeclaration,32));break;case 162:case 159:case 161:case 163:case 164:var n=t.parent,r=E.hasModifier(t,32)?n.symbol.exports:n.symbol.members;E.hasDynamicName(e)?ze(e,n.symbol):X(r,n.symbol,e,67108868,0,!0);break;case 290:if(E.hasDynamicName(e))break;t.commonJsModuleIndicator?X(t.symbol.exports,t.symbol,e,1048580,0):De(e,1,111550);break;default:E.Debug.failBadSyntaxKind(t)}}}function ze(e,t){Te(e,4,"__computed"),Ue(e,t)}function Ue(e,t){t&&(t.assignmentDeclarationMembers||(t.assignmentDeclarationMembers=E.createMap())).set(""+E.getNodeId(e),e)}function Ve(e,t){var r=e.expression,n=r.expression;e.parent=t,n.parent=r,Ge(n,r.parent=e,!0,!0)}function Ke(e){E.Debug.assert(!E.isIdentifier(e)),Ge((e.expression.parent=e).expression,e,!1,!1)}function qe(e,t,r,n,i){return r&&!n&&(e=Xe(t,e,function(e,t,r){return t?(G(t,e,67110400),t):X(r?r.exports:v.jsGlobalAugmentations||(v.jsGlobalAugmentations=E.createSymbolTable()),r,e,67110400,110735)})),i&&e&&e.valueDeclaration&&G(e,e.valueDeclaration,32),e}function We(e,t,r){var n,i;t&&function(e){if(1072&e.flags)return!0;var t=e.valueDeclaration;if(t&&E.isCallExpression(t))return!!E.getAssignedExpandoInitializer(t);e=t?E.isVariableDeclaration(t)?t.initializer:E.isBinaryExpression(t)?t.right:E.isPropertyAccessExpression(t)&&E.isBinaryExpression(t.parent)?t.parent.right:void 0:void 0;if(e=e&&E.getRightMostAssignedExpression(e)){t=E.isPrototypeAccess(E.isVariableDeclaration(t)?t.name:E.isBinaryExpression(t)?t.left:t);return!!E.getExpandoInitializer(!E.isBinaryExpression(e)||56!==e.operatorToken.kind&&60!==e.operatorToken.kind?e:e.right,t)}return!1}(t)&&(n=r?t.members||(t.members=E.createSymbolTable()):t.exports||(t.exports=E.createSymbolTable()),r=i=0,E.isFunctionLikeDeclaration(E.getAssignedExpandoInitializer(e))?(i=8192,r=103359):E.isCallExpression(e)&&E.isBindableObjectDefinePropertyCall(e)&&(E.some(e.arguments[2].properties,function(e){e=E.getNameOfDeclaration(e);return!!e&&E.isIdentifier(e)&&"set"===E.idText(e)})&&(i|=65540,r|=78783),E.some(e.arguments[2].properties,function(e){e=E.getNameOfDeclaration(e);return!!e&&E.isIdentifier(e)&&"get"===E.idText(e)})&&(i|=32772,r|=46015)),0===i&&(i=4,r=0),X(n,t,e,67108864|i,-67108865&r))}function He(e){return E.isBinaryExpression(e.parent)?290===function(e){for(;E.isBinaryExpression(e.parent);)e=e.parent;return e.parent}(e.parent).parent.kind:290===e.parent.parent.kind}function Ge(e,t,r,n){var i=Qe(e),e=He(t);We(t,i=qe(i,t.expression,e,r,n),r)}function Qe(e,t){if(void 0===t&&(t=b),E.isIdentifier(e))return rt(t,e.escapedText);t=Qe(e.expression);return t&&t.exports&&t.exports.get(E.getElementOrPropertyAccessName(e))}function Xe(e,t,r){if(tt(v,e))return v.symbol;if(E.isIdentifier(e))return r(e,Qe(e),t);var n=Xe(e.expression,t,r),t=E.getNameOrArgument(e);return E.isPrivateIdentifier(t)&&E.Debug.fail("unexpected PrivateIdentifier"),r(t,n&&n.exports&&n.exports.get(E.getElementOrPropertyAccessName(e)),n)}function Ye(e){U&&Ne(e,e.name),E.isBindingPattern(e.name)||(E.isBlockOrCatchScoped(e)?ke(e,2,111551):E.isParameterDeclaration(e)?De(e,1,111551):De(e,1,111550))}function Ze(e){var t;317===e.kind&&305!==b.kind||(!U||8388608&e.flags||Ne(e,e.name),E.isBindingPattern(e.name)?Te(e,1,"__"+e.parent.parameters.indexOf(e)):De(e,1,111551),E.isParameterPropertyDeclaration(e,e.parent)&&X((t=e.parent.parent).symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0))}function $e(e,t,r){return v.isDeclarationFile||8388608&e.flags||!E.isAsyncFunction(e)||(C|=2048),w&&E.isObjectLiteralOrClassExpressionMethod(e)&&(e.flowNode=w),E.hasDynamicName(e)?Te(e,t,"__computed"):De(e,t,r)}function et(e){return!(E.isFunctionDeclaration(e)||function(e){switch(e.kind){case 246:case 247:return!0;case 249:return 1!==N(e);case 248:return E.hasModifier(e,2048);default:return!1}}(e)||E.isEnumDeclaration(e)||E.isVariableStatement(e)&&!(3&E.getCombinedNodeFlags(e))&&e.declarationList.declarations.some(function(e){return!e.initializer}))}function tt(e,t){for(var r,n=0,i=[t];i.length&&n<100;){if(n++,t=i.shift(),E.isExportsIdentifier(t)||E.isModuleExportsAccessExpression(t))return!0;!E.isIdentifier(t)||(r=rt(e,t.escapedText))&&r.valueDeclaration&&E.isVariableDeclaration(r.valueDeclaration)&&r.valueDeclaration.initializer&&(r=r.valueDeclaration.initializer,i.push(r),E.isAssignmentExpression(r,!0)&&(i.push(r.left),i.push(r.right)))}return!1}function rt(e,t){var r=e.locals&&e.locals.get(t);return r?r.exportSymbol||r:E.isSourceFile(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t)?e.jsGlobalAugmentations.get(t):e.symbol&&e.symbol.exports&&e.symbol.exports.get(t)}function nt(e,t){var r,n=e.kind;switch(n){case 196:return function(e,t){var r=t,n=E.skipOuterExpressions(e.expression),i=e.expression;32&e.flags&&(r|=8);e.typeArguments&&(r|=1);(8192&t||E.isSuperOrSuperProperty(n))&&(r|=256,E.isSuperProperty(n)&&(r|=4096));96===i.kind&&(r|=2097152);return e.transformFlags=536870912|r,-536879105&r}(e,t);case 197:return function(e,t){var r=t;e.typeArguments&&(r|=1);8192&t&&(r|=256);return e.transformFlags=536870912|r,-536879105&r}(e,t);case 249:return function(e,t){var r=1;0==(2&E.getModifierFlags(e))&&(r|=t);return e.transformFlags=536870912|r,-537991169&r}(e,t);case 200:return function(e,t){var r=t,t=e.expression.kind;217!==t&&199!==t||(r|=1);return e.transformFlags=536870912|r,-536870913&r}(e,t);case 209:return function(e,t){var r=t,n=e.operatorToken.kind,t=e.left.kind;60===n?r|=8:62===n&&193===t?r|=1312:62===n&&192===t?r|=1280:42!==n&&66!==n||(r|=128);return e.transformFlags=536870912|r,-536870913&r}(e,t);case 226:return r=t,e.transformFlags=536870912|r,-536870913&r;case 156:return function(e,t){var r=t,n=e.name,i=e.initializer,a=e.dotDotDotToken;(e.questionToken||e.type||2048&t&&E.some(e.decorators)||E.isThisIdentifier(n))&&(r|=1);E.hasModifier(e,92)&&(r|=2049);16384&t&&(r|=32);(131072&t||i||a)&&(r|=256);return e.transformFlags=536870912|r,-536870913&r}(e,t);case 202:return function(e,t){var r=256|t;(E.hasModifier(e,2270)||e.typeParameters||e.type)&&(r|=1);E.hasModifier(e,256)&&(r|=64);16384&t&&(r|=32);return e.transformFlags=536870912|r,-538920961&r}(e,t);case 201:return function(e,t){var r=t;(E.hasModifier(e,2270)||e.typeParameters||e.type)&&(r|=1);E.hasModifier(e,256)&&(r|=e.asteriskToken?32:64);16384&t&&(r|=32);e.asteriskToken&&(r|=512);return e.transformFlags=536870912|r,-538925057&r}(e,t);case 244:return function(e,t){var r,n=E.getModifierFlags(e);!e.body||2&n?r=1:(r=1048576|t,(2270&n||e.typeParameters||e.type)&&(r|=1),256&n&&(r|=e.asteriskToken?32:64),16384&t&&(r|=32),e.asteriskToken&&(r|=512));return e.transformFlags=536870912|r,-538925057&r}(e,t);case 242:return function(e,t){var r=t;r|=131328,16384&t&&(r|=32);(e.type||e.exclamationToken)&&(r|=1);return e.transformFlags=536870912|r,-536870913&r}(e,t);case 243:return function(e,t){var r=1048576|t;131072&t&&(r|=256);3&e.flags&&(r|=65792);return e.transformFlags=536870912|r,-537018369&r}(e,t);case 225:return function(e,t){var r,n=e.declarationList.transformFlags;E.hasModifier(e,2)?r=1:(r=t,131072&n&&(r|=256));return e.transformFlags=536870912|r,-536870913&r}(e,t);case 238:return function(e,t){var r=t;65536&t&&E.isIterationStatement(e,!0)&&(r|=256);return e.transformFlags=536870912|r,-536870913&r}(e,t);case 245:return function(e,t){var r;E.hasModifier(e,2)?r=1:(r=256|t,(2048&t||e.typeParameters)&&(r|=1));return e.transformFlags=536870912|r,-536905729&r}(e,t);case 214:return function(e,t){var r=256|t;(2048&t||e.typeParameters)&&(r|=1);return e.transformFlags=536870912|r,-536905729&r}(e,t);case 279:return function(e,t){var r=t;switch(e.token){case 90:r|=256;break;case 113:r|=1;break;default:E.Debug.fail("Unexpected token for heritage clause")}return e.transformFlags=536870912|r,-536870913&r}(e,t);case 280:return function(e,t){e.variableDeclaration?E.isBindingPattern(e.variableDeclaration.name)&&(t|=256):t|=16;return e.transformFlags=536870912|t,-536887297&t}(e,t);case 216:return function(e,t){t|=256;e.typeArguments&&(t|=1);return e.transformFlags=536870912|t,-536870913&t}(e,t);case 162:return function(e,t){var r=t;!E.hasModifier(e,2270)&&e.body||(r|=1);16384&t&&(r|=32);return e.transformFlags=536870912|r,-538923009&r}(e,t);case 159:return function(e,t){t|=4194304;(E.some(e.decorators)||E.hasModifier(e,2270)||e.type||e.questionToken||e.exclamationToken)&&(t|=1);(E.isComputedPropertyName(e.name)||E.hasStaticModifier(e)&&e.initializer)&&(t|=2048);return e.transformFlags=536870912|t,it(e.name,-536875009&t)}(e,t);case 161:return function(e,t){var r=256|t;(e.decorators||E.hasModifier(e,2270)||e.typeParameters||e.type||!e.body||e.questionToken)&&(r|=1);16384&t&&(r|=32);E.hasModifier(e,256)&&(r|=e.asteriskToken?32:64);e.asteriskToken&&(r|=512);return e.transformFlags=536870912|r,it(e.name,-538923009&r)}(e,t);case 163:case 164:return function(e,t){var r=t;(e.decorators||E.hasModifier(e,2270)||e.type||!e.body)&&(r|=1);16384&t&&(r|=32);return e.transformFlags=536870912|r,it(e.name,-538923009&r)}(e,t);case 253:return function(e,t){E.isExternalModuleImportEqualsDeclaration(e)||(t|=1);return e.transformFlags=536870912|t,-536870913&t}(e,t);case 194:return function(e,t){32&e.flags&&(t|=8);102===e.expression.kind&&(t|=96);return e.transformFlags=536870912|t,-536870913&t}(e,t);case 195:return function(e,t){32&e.flags&&(t|=8);102===e.expression.kind&&(t|=96);return e.transformFlags=536870912|t,-536870913&t}(e,t);case 267:case 268:return function(e,t){t|=2;e.typeArguments&&(t|=1);return e.transformFlags=536870912|t,-536870913&t}(e,t);default:return function(e,t,r){var n=r,i=536870912;switch(t){case 126:n|=96;break;case 206:n|=524384;break;case 199:case 217:case 326:n|=1,i=536870912;break;case 119:case 117:case 118:case 122:case 130:case 81:case 248:case 284:case 218:case 138:n|=1;break;case 266:case 11:case 269:case 270:case 271:case 272:case 273:case 274:case 275:case 276:n|=2;break;case 14:case 15:case 16:case 17:if(e.templateFlags){n|=32;break}case 198:if(E.hasInvalidEscape(e.template)){n|=32;break}case 211:case 282:case 120:case 219:n|=256;break;case 10:e.hasExtendedUnicodeEscape&&(n|=256);break;case 8:384&e.numericLiteralFlags&&(n|=256);break;case 9:n|=4;break;case 232:e.awaitModifier&&(n|=32),n|=256;break;case 212:n|=262432;break;case 125:case 140:case 151:case 137:case 141:case 143:case 128:case 144:case 110:case 155:case 158:case 160:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 173:case 174:case 175:case 176:case 177:case 178:case 179:case 180:case 181:case 182:case 246:case 247:case 183:case 184:case 185:case 186:case 187:case 252:n=1,i=-2;break;case 154:n|=32768;break;case 213:n|=8448;break;case 283:n|=16416;break;case 102:n|=256,i=536870912;break;case 104:n|=4096;break;case 189:n|=131328,8192&r&&(n|=16416),i=536879104;break;case 190:n|=131328,i=536879104;break;case 191:n|=256,e.dotDotDotToken&&(n|=8192);break;case 157:n|=2049;break;case 193:i=536922112,32768&r&&(n|=256),16384&r&&(n|=32);break;case 192:i=536879104;break;case 228:case 229:case 230:case 231:65536&r&&(n|=256);break;case 290:break;case 262:n|=4;break;case 235:n|=1048608;break;case 233:case 234:n|=1048576;break;case 76:n|=4194304}return e.transformFlags=536870912|n,n&~i}(e,n,t)}}function it(e,t){return t|4096&e.transformFlags}function at(e){if(168<=e&&e<=188)return-2;switch(e){case 196:case 197:case 192:return 536879104;case 249:return 537991168;case 156:return 536870912;case 202:return 538920960;case 201:case 244:return 538925056;case 243:return 537018368;case 245:case 214:return 536905728;case 162:return 538923008;case 161:case 163:case 164:return 538923008;case 125:case 140:case 151:case 137:case 143:case 141:case 128:case 144:case 110:case 155:case 158:case 160:case 165:case 166:case 167:case 246:case 247:return-2;case 193:return 536922112;case 280:return 536887296;case 189:case 190:return 536879104;case 199:case 217:case 326:case 200:case 102:return 536870912;case 194:case 195:default:return 536870912}}function ot(e,t){t.parent=e,E.forEachChild(t,function(e){return ot(t,e)})}E.bindSourceFile=function(e,t){E.performance.mark("beforeBind"),E.perfLogger.logStartBindFile(""+e.fileName),a(e,t),E.perfLogger.logStopBindFile(),E.performance.mark("afterBind"),E.performance.measure("Bind","beforeBind","afterBind")},E.isExportsOrModuleExportsOrAlias=tt,E.computeTransformFlagsForNode=nt,E.getTransformFlagsSubtreeExclusions=at}(ts=ts||{}),function(b){b.createGetSymbolWalker=function(i,l,_,d,p,f,g,m,y,h,v){return function(r){void 0===r&&(r=function(){return!0});var a=[],n=[];return{walkType:function(e){try{return s(e),{visitedTypes:b.getOwnValues(a),visitedSymbols:b.getOwnValues(n)}}finally{b.clear(a),b.clear(n)}},walkSymbol:function(e){try{return u(e),{visitedTypes:b.getOwnValues(a),visitedSymbols:b.getOwnValues(n)}}finally{b.clear(a),b.clear(n)}}};function s(e){var t,r,n,i;e&&(a[e.id]||u((a[e.id]=e).symbol)||(524288&e.flags&&(4&(t=(i=e).objectFlags)&&(s((n=e).target),b.forEach(v(n),s)),32&t&&(s((r=e).typeParameter),s(r.constraintType),s(r.templateType),s(r.modifiersType)),3&t&&(o(r=e),b.forEach(r.typeParameters,s),b.forEach(d(r),s),s(r.thisType)),24&t&&o(i)),262144&e.flags&&s(y(e)),3145728&e.flags&&(i=e,b.forEach(i.types,s)),4194304&e.flags&&s(e.type),8388608&e.flags&&(s((e=e).objectType),s(e.indexType),s(e.constraint))))}function c(e){var t=l(e);t&&s(t.type),b.forEach(e.typeParameters,s);for(var r=0,n=e.parameters;r<n.length;r++)u(n[r]);s(i(e)),s(_(e))}function o(e){s(m(e,0)),s(m(e,1));for(var e=p(e),t=0,r=e.callSignatures;t<r.length;t++)c(r[t]);for(var n=0,i=e.constructSignatures;n<i.length;n++)c(i[n]);for(var a=0,o=e.properties;a<o.length;a++)u(o[a])}function u(e){if(!e)return!1;var t=b.getSymbolId(e);return!n[t]&&(n[t]=e,!r(e)||(s(f(e)),e.exports&&e.exports.forEach(u),b.forEach(e.declarations,function(e){e.type&&172===e.type.kind&&(e=e.type,u(g(h(e.exprName))))}),!1))}}}}(ts=ts||{}),function(Zx){var $x=/^".+"$/,eD="(anonymous)",t=1,r=1,tD=1,rD=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.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.EmptyObjectFacts=16777215]="EmptyObjectFacts";var nD=Zx.createMapFromTemplate({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64}),iD=Zx.createMapFromTemplate({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.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",(e={})[e.None=0]="None",e[e.NoIndexSignatures=1]="NoIndexSignatures",e[e.Writing=2]="Writing",e[e.CacheSymbol=4]="CacheSymbol",e[e.NoTupleBoundsCheck=8]="NoTupleBoundsCheck",(e={})[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.Callback=3]="Callback",(e={})[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.PropertyCheck=4]="PropertyCheck",e[e.InPropertyCheck=8]="InPropertyCheck",(e={})[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional",(e={})[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both",(e={}).resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers",(e={})[e.Local=0]="Local",e[e.Parameter=1]="Parameter";var aD,e,oD=Zx.and(dD,function(e){return!Zx.isAccessor(e)});function sD(){}function cD(){this.flags=0}function uD(e){return e.id||(e.id=r,r++),e.id}function lD(e){return e.id||(e.id=t,t++),e.id}function _D(e,t){e=Zx.getModuleInstanceState(e);return 1===e||t&&2===e}function dD(e){return 244!==e.kind&&161!==e.kind||!!e.body}function pD(e){switch(e.parent.kind){case 258:case 263:return Zx.isIdentifier(e);default:return Zx.isDeclarationName(e)}}function fD(e){switch(e.kind){case 255:case 253:case 256:case 258:return!0;case 75:return 258===e.parent.kind;default:return!1}}function gD(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function mD(e){return!!(1&e.flags)}function yD(e){return!!(2&e.flags)}(e={})[e.GetAccessor=1]="GetAccessor",e[e.SetAccessor=2]="SetAccessor",e[e.PropertyAssignment=4]="PropertyAssignment",e[e.Method=8]="Method",e[e.GetOrSetAccessor=3]="GetOrSetAccessor",e[e.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod",(e={})[e.None=0]="None",e[e.ExportValue=1]="ExportValue",e[e.ExportType=2]="ExportType",e[e.ExportNamespace=4]="ExportNamespace",Zx.getNodeId=uD,Zx.getSymbolId=lD,Zx.isInstantiatedModule=_D,Zx.createTypeChecker=function(b,I){var f,s,c,H,o=Zx.memoize(function(){var t=Zx.createMap();return b.getSourceFiles().forEach(function(e){e.resolvedModules&&Zx.forEachEntry(e.resolvedModules,function(e){e&&e.packageId&&t.set(e.packageId.name,!0)})}),t}),n=Zx.objectAllocator.getSymbolConstructor(),t=Zx.objectAllocator.getTypeConstructor(),u=Zx.objectAllocator.getSignatureConstructor(),r=0,i=0,_=0,a=0,l=0,d=0,p=0,A=Zx.createSymbolTable(),g=[1],G=b.getCompilerOptions(),M=Zx.getEmitScriptTarget(G),x=Zx.getEmitModuleKind(G),m=Zx.getAllowSyntheticDefaultImports(G),Q=Zx.getStrictOptionValue(G,"strictNullChecks"),P=Zx.getStrictOptionValue(G,"strictFunctionTypes"),D=Zx.getStrictOptionValue(G,"strictBindCallApply"),S=Zx.getStrictOptionValue(G,"strictPropertyInitialization"),X=Zx.getStrictOptionValue(G,"noImplicitAny"),y=Zx.getStrictOptionValue(G,"noImplicitThis"),h=!!G.keyofStringsOnly,w=G.suppressExcessPropertyErrors?0:32768,v=function(){var o,e=b.getResolvedTypeReferenceDirectives();e&&(o=Zx.createMap(),e.forEach(function(e,t){e&&e.resolvedFileName&&(e=b.getSourceFile(e.resolvedFileName))&&function e(t,r){if(o.has(t.path))return;o.set(t.path,r);for(var n=0,i=t.referencedFiles;n<i.length;n++){var a=i[n].fileName,a=Zx.resolveTripleslashReference(a,t.originalFileName),a=b.getSourceFile(a);a&&e(a,r)}}(e,t)}));return{getReferencedExportContainer:Wb,getReferencedImportDeclaration:Hb,getReferencedDeclarationWithCollidingName:Qb,isDeclarationWithCollidingName:Xb,isValueAliasDeclaration:function(e){return!(e=Zx.getParseTreeNode(e))||Yb(e)},hasGlobalName:mx,isReferencedAliasDeclaration:function(e,t){return!(e=Zx.getParseTreeNode(e))||tx(e,t)},getNodeCheckFlags:function(e){return(e=Zx.getParseTreeNode(e))?sx(e):0},isTopLevelValueImportEqualsWithEntityName:Zb,isDeclarationVisible:sa,isImplementationOfOverload:rx,isRequiredInitializedParameter:nx,isOptionalUninitializedParameterProperty:ix,isExpandoFunctionDeclaration:ax,getPropertiesOfContainerFunction:ox,createTypeOfDeclaration:px,createReturnTypeOfSignatureDeclaration:fx,createTypeOfExpression:gx,createLiteralConstValue:bx,isSymbolAccessible:Vi,isEntityNameVisible:Gi,getConstantValue:function(e){e=Zx.getParseTreeNode(e,ux);return e?lx(e):void 0},collectLinkedAliases:ca,getReferencedValueDeclaration:hx,getTypeReferenceSerializationKind:dx,isOptionalParameter:Xs,moduleExportsSomeValue:qb,isArgumentsLocalBinding:Kb,getExternalModuleFileFromDeclaration:Dx,getTypeReferenceDirectivesForEntityName:function(e){if(!o)return;var t=790504;(75===e.kind&&lp(e)||194===e.kind&&!function(e){return e.parent&&216===e.parent.kind&&e.parent.parent&&279===e.parent.parent.kind}(e))&&(t=1160127);e=ni(e,t,!0);return e&&e!==Ce?r(e,t):void 0},getTypeReferenceDirectivesForSymbol:r,isLiteralConstDeclaration:vx,isLateBound:function(e){e=Zx.getParseTreeNode(e,Zx.isDeclaration),e=e&&vi(e);return!!(e&&4096&Zx.getCheckFlags(e))},getJsxFactoryEntity:xx,getAllAccessorDeclarations:function(e){var t=164===(e=Zx.getParseTreeNode(e,Zx.isGetOrSetAccessorDeclaration)).kind?163:164,t=Zx.getDeclarationOfKind(vi(e),t);return{firstAccessor:t&&t.pos<e.pos?t:e,secondAccessor:t&&t.pos<e.pos?e:t,setAccessor:164===e.kind?e:t,getAccessor:163===e.kind?e:t}},getSymbolOfExternalModuleSpecifier:function(e){return oi(e,e,void 0)},isBindingCapturedByNode:function(e,t){e=Zx.getParseTreeNode(e),t=Zx.getParseTreeNode(t);return!!e&&!!t&&(Zx.isVariableDeclaration(t)||Zx.isBindingElement(t))&&function(e,t){e=Sn(e);return!!e&&Zx.contains(e.capturedBlockScopeBindings,vi(t))}(e,t)},getDeclarationStatementsForSourceFile:function(e,t,r,n){var i=Zx.getParseTreeNode(e);Zx.Debug.assert(i&&290===i.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");i=vi(e);return i?i.exports?C.symbolTableToDeclarationStatements(i.exports,e,t,r,n):[]:e.locals?C.symbolTableToDeclarationStatements(e.locals,e,t,r,n):[]},isImportRequiredByAugmentation:function(e){var t=Zx.getSourceFileOfNode(e);if(!t.symbol)return!1;var r=Dx(e);if(!r)return!1;if(r===t)return!1;for(var t=gi(t.symbol),n=0,i=Zx.arrayFrom(t.values());n<i.length;n++){var a=i[n];if(a.mergeId)for(var a=hi(a),o=0,s=a.declarations;o<s.length;o++){var c=s[o];if(Zx.getSourceFileOfNode(c)===r)return!0}}return!1}};function r(e,t){if(o&&function(e){if(!e.declarations)return!1;var t=e;for(;;){var r=bi(t);if(!r)break;t=r}if(t.valueDeclaration&&290===t.valueDeclaration.kind&&512&t.flags)return!1;for(var n=0,i=e.declarations;n<i.length;n++){var a=i[n],a=Zx.getSourceFileOfNode(a);if(o.has(a.path))return!0}return!1}(e)){for(var r,n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(a.symbol&&a.symbol.flags&t){a=Zx.getSourceFileOfNode(a),a=o.get(a.path);if(!a)return;(r=r||[]).push(a)}}return r}}}(),C={typeToTypeNode:function(t,e,r,n){return T(e,r,n,function(e){return L(t,e)})},indexInfoToIndexSignatureDeclaration:function(t,r,e,n,i){return T(e,n,i,function(e){return R(t,r,e)})},signatureToSignatureDeclaration:function(t,r,e,n,i){return T(e,n,i,function(e){return B(t,r,e)})},symbolToEntityName:function(t,r,e,n,i){return T(e,n,i,function(e){return $(t,e,r,!1)})},symbolToExpression:function(t,r,e,n,i){return T(e,n,i,function(e){return ee(t,e,r)})},symbolToTypeParameterDeclarations:function(t,e,r,n){return T(e,r,n,function(e){return K(t,e)})},symbolToParameterDeclaration:function(t,e,r,n){return T(e,r,n,function(e){return J(t,e)})},typeParameterToDeclaration:function(t,e,r,n){return T(e,r,n,function(e){return j(t,e)})},symbolTableToDeclarationStatements:function(t,e,r,n,i){return T(e,r,n,function(e){return function(e,y,g){var i,m=r(Zx.createProperty,161,!0),_=r(function(e,t,r,n,i,a){return Zx.createPropertySignature(t,r,n,i,a)},160,!1),h=y.enclosingDeclaration,u=[],a=Zx.createMap(),o=y;y=__assign(__assign({},o),{usedSymbolNames:Zx.createMap(),remappedSymbolNames:Zx.createMap(),tracker:__assign(__assign({},o.tracker),{trackSymbol:function(e,t,r){var n;0===Vi(e,t,r,!1).accessibility?(n=V(e,y,r),4&e.flags||v(n[0])):o.tracker&&o.tracker.trackSymbol&&o.tracker.trackSymbol(e,t,r)}})}),o.usedSymbolNames&&o.usedSymbolNames.forEach(function(e,t){y.usedSymbolNames.set(t,!0)});Zx.forEachEntry(e,function(e,t){O(e,Zx.unescapeLeadingUnderscores(t))});var c=!g,t=e.get("export=");t&&1<e.size&&2097152&t.flags&&(e=Zx.createSymbolTable()).set("export=",t);return d(e),function(e){e=function(r){var t=Zx.find(r,function(e){return Zx.isExportDeclaration(e)&&!e.moduleSpecifier&&!!e.exportClause});{var e;t&&t.exportClause&&Zx.isNamedExports(t.exportClause)&&(e=Zx.mapDefined(t.exportClause.elements,function(t){if(!t.propertyName){var e=Zx.filter(r,function(e){return Zx.nodeHasName(e,t.name)});if(Zx.length(e)&&Zx.every(e,l))return void Zx.forEach(e,n)}return t}),Zx.length(e)?t.exportClause.elements=Zx.createNodeArray(e):r=Zx.filter(r,function(e){return e!==t}))}return r}(e=function(e){var t=Zx.filter(e,function(e){return Zx.isExportDeclaration(e)&&!e.moduleSpecifier&&!!e.exportClause&&Zx.isNamedExports(e.exportClause)});1<Zx.length(t)&&(r=Zx.filter(e,function(e){return!Zx.isExportDeclaration(e)||!!e.moduleSpecifier||!e.exportClause}),e=__spreadArrays(r,[Zx.createExportDeclaration(void 0,void 0,Zx.createNamedExports(Zx.flatMap(t,function(e){return Zx.cast(e.exportClause,Zx.isNamedExports).elements})),void 0)]));var r=Zx.filter(e,function(e){return Zx.isExportDeclaration(e)&&!!e.moduleSpecifier&&!!e.exportClause&&Zx.isNamedExports(e.exportClause)});if(1<Zx.length(r)){t=Zx.group(r,function(e){return Zx.isStringLiteral(e.moduleSpecifier)?">"+e.moduleSpecifier.text:">"});if(t.length!==r.length)for(var n=0,i=t;n<i.length;n++)!function(t){1<t.length&&(e=__spreadArrays(Zx.filter(e,function(e){return-1===t.indexOf(e)}),[Zx.createExportDeclaration(void 0,void 0,Zx.createNamedExports(Zx.flatMap(t,function(e){return Zx.cast(e.exportClause,Zx.isNamedExports).elements})),t[0].moduleSpecifier)]))}(i[n])}return e}(e=function(e){var t=Zx.find(e,Zx.isExportAssignment),r=Zx.find(e,Zx.isModuleDeclaration);{var n;r&&t&&t.isExportEquals&&Zx.isIdentifier(t.expression)&&Zx.isIdentifier(r.name)&&Zx.idText(r.name)===Zx.idText(t.expression)&&r.body&&Zx.isModuleBlock(r.body)&&(n=Zx.filter(e,function(e){return!!(1&Zx.getModifierFlags(e))}),Zx.length(n)&&(r.body.statements=Zx.createNodeArray(__spreadArrays(r.body.statements,[Zx.createExportDeclaration(void 0,void 0,Zx.createNamedExports(Zx.map(Zx.flatMap(n,function(e){if(Zx.isVariableStatement(e))return Zx.filter(Zx.map(e.declarationList.declarations,Zx.getNameOfDeclaration),s);return Zx.filter([Zx.getNameOfDeclaration(e)],s)}),function(e){return Zx.createExportSpecifier(void 0,e)})),void 0)]))),Zx.find(e,function(e){return e!==r&&Zx.nodeHasName(e,r.name)})||(u=[],Zx.forEach(r.body.statements,function(e){b(e,0)}),e=__spreadArrays(Zx.filter(e,function(e){return e!==r&&e!==t}),u)))}return e}(e))),h&&(Zx.isSourceFile(h)&&Zx.isExternalOrCommonJsModule(h)||Zx.isModuleDeclaration(h))&&(!Zx.some(e,Zx.isExternalModuleIndicator)||!Zx.hasScopeMarker(e)&&Zx.some(e,Zx.needsScopeMarker))&&e.push(Zx.createEmptyExports());return e}(u);function s(e){return!!e&&75===e.kind}function l(e){return Zx.isEnumDeclaration(e)||Zx.isVariableStatement(e)||Zx.isFunctionDeclaration(e)||Zx.isClassDeclaration(e)||Zx.isModuleDeclaration(e)&&!Zx.isExternalModuleAugmentation(e)&&!Zx.isGlobalScopeAugmentation(e)||Zx.isInterfaceDeclaration(e)||Pb(e)}function n(e){var t=-3&(1|Zx.getModifierFlags(e));e.modifiers=Zx.createNodeArray(Zx.createModifiersFromModifierFlags(t)),e.modifierFlagsCache=0}function d(e,t,r){var n=i;t||(i=Zx.createMap()),e.forEach(function(e){p(e,!1,!!r)}),t||i.forEach(function(e){p(e,!0,!!r)}),i=n}function p(e,t,r){var n=hi(e);a.has(""+lD(n))||(a.set(""+lD(n),!0),(!t||Zx.length(e.declarations)&&Zx.some(e.declarations,function(e){return!!Zx.findAncestor(e,function(e){return e===h})}))&&(y=function(e){e=__assign({},e);e.typeParameterNames&&(e.typeParameterNames=Zx.cloneMap(e.typeParameterNames));e.typeParameterNamesByText&&(e.typeParameterNamesByText=Zx.cloneMap(e.typeParameterNamesByText));e.typeParameterSymbolList&&(e.typeParameterSymbolList=Zx.cloneMap(e.typeParameterSymbolList));return e}(n=y),function(e,t,r){var n=Zx.unescapeLeadingUnderscores(e.escapedName),i="default"===e.escapedName;if(!(131072&y.flags)&&Zx.isStringANonContextualKeyword(n)&&!i)return y.encounteredError=!0;var a=i&&!!(-113&e.flags||16&e.flags&&Zx.length(fs(qa(e))))&&!(2097152&e.flags);a&&(t=!0);var o=(t?0:1)|(i&&!a?512:0),s=1536&e.flags&&7&e.flags&&"export="!==e.escapedName,i=s&&E(qa(e),e);(8208&e.flags||i)&&x(qa(e),e,O(e,n),o);524288&e.flags&&function(e,t,r){var n=co(e),i=Dn(e).typeParameters,a=Zx.map(i,function(e){return j(e,y)}),i=(o=Zx.find(e.declarations,Zx.isJSDocTypeAlias))?o.comment||o.parent.comment:void 0,o=y.flags;y.flags|=8388608,b(Zx.setSyntheticLeadingComments(Zx.createTypeAliasDeclaration(void 0,void 0,O(e,t),a,L(n,y)),i?[{kind:3,text:"*\n * "+i.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),r),y.flags=o}(e,n,o);!(7&e.flags&&"export="!==e.escapedName)||4194304&e.flags||32&e.flags||i||function(e,t,r,n,i,a){var o,s;i?k(e):(o=qa(e),s=O(e,t),16&e.flags||!E(o,e)?(i=2&e.flags?uf(e)?2:1:void 0,t=!n&&4&e.flags?w(s,e):s,(n=e.declarations&&Zx.find(e.declarations,function(e){return Zx.isVariableDeclaration(e)}))&&Zx.isVariableDeclarationList(n.parent)&&1===n.parent.declarations.length&&(n=n.parent.parent),b(Zx.setTextRange(Zx.createVariableStatement(void 0,Zx.createVariableDeclarationList([Zx.createVariableDeclaration(t,oe(y,o,e,h,v,g))],i)),n),t!==s?-2&a:a),t===s||r||b(Zx.createExportDeclaration(void 0,void 0,Zx.createNamedExports([Zx.createExportSpecifier(t,s)])),0)):x(o,e,s,a))}(e,n,t,a,r,o);384&e.flags&&function(e,t,r){b(Zx.createEnumDeclaration(void 0,Zx.createModifiersFromModifierFlags(Vy(e)?2048:0),O(e,t),Zx.map(Zx.filter(fs(qa(e)),function(e){return!!(8&e.flags)}),function(e){var t=e.declarations&&e.declarations[0]&&Zx.isEnumMember(e.declarations[0])&&lx(e.declarations[0]);return Zx.createEnumMember(Zx.unescapeLeadingUnderscores(e.escapedName),void 0===t?void 0:Zx.createLiteral(t))})),r)}(e,n,o);32&e.flags&&(4&e.flags&&Zx.isBinaryExpression(e.valueDeclaration.parent)&&Zx.isClassExpression(e.valueDeclaration.parent.right)?C:function(e,t,r){for(var n=Za(e),i=Zx.map(n,function(e){return j(e,y)}),a=so(e),o=ao(a),s=function(e){for(var t=Zx.emptyArray,r=0,n=e.symbol.declarations;r<n.length;r++){var i=n[r],i=Zx.getEffectiveImplementsTypeNodes(i);if(i)for(var a=0,o=i;a<o.length;a++){var s=gl(o[a]);s!==Ae&&(t===Zx.emptyArray?t=[s]:t.push(s))}}return t}(a),c=io(_=qa(e)),u=__spreadArrays(Zx.length(o)?[Zx.createHeritageClause(90,Zx.map(o,function(e){return F(e,c,t)}))]:[],Zx.length(s)?[Zx.createHeritageClause(113,Zx.map(s,function(e){return F(e,c,t)}))]:[]),l=function(e,t,r){if(!Zx.length(t))return r;var n=Zx.createUnderscoreEscapedMap();Zx.forEach(r,function(e){n.set(e.escapedName,e)});for(var i=0,a=t;i<a.length;i++)for(var o=fs(Lo(a[i],e.thisType)),s=0,c=o;s<c.length;s++){var u=c[s],l=n.get(u.escapedName);l&&!z_(l,u)&&n.delete(u.escapedName)}return Zx.arrayFrom(n.values())}(a,o,fs(a)),n=Zx.filter(l,function(e){e=e.valueDeclaration;return e&&!(Zx.isNamedDeclaration(e)&&Zx.isPrivateIdentifier(e.name))}),s=Zx.some(l,function(e){e=e.valueDeclaration;return e&&Zx.isNamedDeclaration(e)&&Zx.isPrivateIdentifier(e.name)})?[Zx.createProperty(void 0,void 0,Zx.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Zx.emptyArray,l=Zx.flatMap(n,function(e){return m(e,!1,o[0])}),n=Zx.flatMap(Zx.filter(fs(_),function(e){return!(4194304&e.flags||"prototype"===e.escapedName||S(e))}),function(e){return m(e,!0,c)}),_=N(1,_,o[0],162),d=0,p=_;d<p.length;d++){var f=p[d];f.type=void 0,f.typeParameters=void 0}a=A(a,o[0]),b(Zx.setTextRange(Zx.createClassDeclaration(void 0,void 0,t,i,u,__spreadArrays(a,n,_,l,s)),e.declarations&&Zx.filter(e.declarations,function(e){return Zx.isClassDeclaration(e)||Zx.isClassExpression(e)})[0]),r)})(e,O(e,n),o);(1536&e.flags&&(!s||function(e){return Zx.every(f(e),function(e){return!(111551&Gn(e).flags)})}(e))||i)&&function(a,e,t){var o,r,n=f(a),n=(i=Zx.arrayToMultiMap(n,function(e){return e.parent&&e.parent===a?"real":"merged"})).get("real")||Zx.emptyArray,i=i.get("merged")||Zx.emptyArray;Zx.length(n)&&(r=O(a,e),D(n,r,t,!!(67108880&a.flags))),Zx.length(i)&&(o=Zx.getSourceFileOfNode(y.enclosingDeclaration),r=O(a,e),i=Zx.createModuleBlock([Zx.createExportDeclaration(void 0,void 0,Zx.createNamedExports(Zx.mapDefined(Zx.filter(i,function(e){return"export="!==e.escapedName}),function(e){var t=Zx.unescapeLeadingUnderscores(e.escapedName),r=O(e,t),n=e.declarations&&Mn(e);if(!o||(n?o===Zx.getSourceFileOfNode(n):Zx.some(e.declarations,function(e){return Zx.getSourceFileOfNode(e)===o}))){var i=n&&Wn(n,!0);v(i||e);var i=i?O(i,Zx.unescapeLeadingUnderscores(i.escapedName)):r;return Zx.createExportSpecifier(t===i?void 0:i,t)}null!==(t=null===(i=y.tracker)||void 0===i?void 0:i.reportNonlocalAugmentation)&&void 0!==t&&t.call(i,o,a,e)})))]),b(Zx.createModuleDeclaration(void 0,void 0,Zx.createIdentifier(r),i,16),0))}(e,n,o);64&e.flags&&function(e,t,r){var n=so(e),i=Za(e),a=Zx.map(i,function(e){return j(e,y)}),o=ao(n),s=Zx.length(o)?xu(o):void 0,c=Zx.flatMap(fs(n),function(e){return _(e,!1,s)}),u=N(0,n,s,165),i=N(1,n,s,166),n=A(n,s),o=Zx.length(o)?[Zx.createHeritageClause(90,Zx.mapDefined(o,P))]:void 0;b(Zx.createInterfaceDeclaration(void 0,void 0,O(e,t),a,o,__spreadArrays(n,i,u,c)),r)}(e,n,o);2097152&e.flags&&C(e,O(e,n),o);4&e.flags&&"export="===e.escapedName&&k(e);if(8388608&e.flags)for(var c=0,u=e.declarations;c<u.length;c++){var l=u[c],l=ai(l,l.moduleSpecifier);l&&b(Zx.createExportDeclaration(void 0,void 0,void 0,Zx.createLiteral(W(l,y))),0)}a&&b(Zx.createExportAssignment(void 0,void 0,!1,Zx.createIdentifier(O(e,n))),0)}(e,t,r),y=n))}function v(e){Zx.some(e.declarations,Zx.isParameterDeclaration)||(Zx.Debug.assertIsDefined(i),w(Zx.unescapeLeadingUnderscores(e.escapedName),e),i.set(""+lD(e),e))}function b(e,t){var r,n=0;1&t&&h&&(r=h,Zx.isSourceFile(r)&&(Zx.isExternalOrCommonJsModule(r)||Zx.isJsonSourceFile(r))||Zx.isAmbientModule(r)&&!Zx.isGlobalScopeAugmentation(r))&&l(e)&&(n|=1),!c||1&n||h&&8388608&h.flags||!(Zx.isEnumDeclaration(e)||Zx.isVariableStatement(e)||Zx.isFunctionDeclaration(e)||Zx.isClassDeclaration(e)||Zx.isModuleDeclaration(e))||(n|=2),512&t&&(Zx.isClassDeclaration(e)||Zx.isInterfaceDeclaration(e)||Zx.isFunctionDeclaration(e))&&(n|=512),n&&(e.modifiers=Zx.createNodeArray(Zx.createModifiersFromModifierFlags(n|Zx.getModifierFlags(e))),e.modifierFlagsCache=0),u.push(e)}function f(e){return e.exports?Zx.filter(Zx.arrayFrom(e.exports.values()),S):[]}function x(e,t,r,n){for(var i=0,a=Js(e,0);i<a.length;i++){var o=a[i],s=B(o,244,y,v,g);s.name=Zx.createIdentifier(r),b(Zx.setTextRange(s,o.declaration&&Zx.isVariableDeclaration(o.declaration.parent)&&o.declaration.parent.parent||o.declaration),n)}1536&t.flags&&t.exports&&t.exports.size||D(Zx.filter(fs(e),S),r,n,!0)}function D(e,t,r,n){var i,a,o,s;Zx.length(e)&&(i=Zx.arrayToMultiMap(e,function(e){return!Zx.length(e.declarations)||Zx.some(e.declarations,function(e){return Zx.getSourceFileOfNode(e)===Zx.getSourceFileOfNode(y.enclosingDeclaration)})?"local":"remote"}).get("local")||Zx.emptyArray,(a=Zx.createModuleDeclaration(void 0,void 0,Zx.createIdentifier(t),Zx.createModuleBlock([]),16)).flags^=8,a.parent=h,a.locals=Zx.createSymbolTable(e),a.symbol=e[0].parent,o=u,s=c,c=!(u=[]),t=__assign(__assign({},y),{enclosingDeclaration:a}),e=y,y=t,d(Zx.createSymbolTable(i),n,!0),y=e,c=s,s=u,u=o,a.flags^=8,a.parent=void 0,a.locals=void 0,a.symbol=void 0,a.body=Zx.createModuleBlock(s),b(a,r))}function S(e){return!(4194304&e.flags||"prototype"===e.escapedName||e.valueDeclaration&&Zx.isClassLike(e.valueDeclaration.parent))}function C(e,t,r){var n=Mn(e);if(!n)return Zx.Debug.fail();var i=hi(Wn(n,!0));if(i){var a=Zx.unescapeLeadingUnderscores(i.escapedName);"export="===a&&(G.esModuleInterop||G.allowSyntheticDefaultImports)&&(a="default");var o=O(i,a);switch(v(i),n.kind){case 253:var s=!(512&i.flags);b(Zx.createImportEqualsDeclaration(void 0,void 0,Zx.createIdentifier(t),s?$(i,y,67108863,!1):Zx.createExternalModuleReference(Zx.createLiteral(W(e,y)))),s?r:0);break;case 252:b(Zx.createNamespaceExportDeclaration(Zx.idText(n.name)),0);break;case 255:b(Zx.createImportDeclaration(void 0,void 0,Zx.createImportClause(Zx.createIdentifier(t),void 0),Zx.createLiteral(W(i.parent||i,y))),0);break;case 256:b(Zx.createImportDeclaration(void 0,void 0,Zx.createImportClause(void 0,Zx.createNamespaceImport(Zx.createIdentifier(t))),Zx.createLiteral(W(i,y))),0);break;case 262:b(Zx.createExportDeclaration(void 0,void 0,Zx.createNamespaceExport(Zx.createIdentifier(t)),Zx.createLiteral(W(i,y))),0);break;case 258:b(Zx.createImportDeclaration(void 0,void 0,Zx.createImportClause(void 0,Zx.createNamedImports([Zx.createImportSpecifier(t!==a?Zx.createIdentifier(a):void 0,Zx.createIdentifier(t))])),Zx.createLiteral(W(i.parent||i,y))),0);break;case 263:s=n.parent.parent.moduleSpecifier;T(Zx.unescapeLeadingUnderscores(e.escapedName),s?a:o,s&&Zx.isStringLiteralLike(s)?Zx.createLiteral(s.text):void 0);break;case 259:k(e);break;case 209:case 194:"default"===e.escapedName||"export="===e.escapedName?k(e):T(t,o);break;default:return Zx.Debug.failBadSyntaxKind(n,"Unhandled alias declaration kind in symbol serializer!")}}}function T(e,t,r){b(Zx.createExportDeclaration(void 0,void 0,Zx.createNamedExports([Zx.createExportSpecifier(e!==t?t:void 0,e)]),r),0)}function k(e){var t,r,n,i,a,o,s,c;4194304&e.flags||(n=(r="export="===(t=Zx.unescapeLeadingUnderscores(e.escapedName)))||"default"===t,(i=(o=e.declarations&&Mn(e))&&Wn(o,!0))&&Zx.length(i.declarations)&&Zx.some(i.declarations,function(e){return Zx.getSourceFileOfNode(e)===Zx.getSourceFileOfNode(h)})?(a=n?Zx.getExportAssignmentExpression(o):Zx.getPropertyAssignmentAliasLikeExpression(o),((c=(o=Zx.isEntityNameExpression(a)?function(e){switch(e.kind){case 75:return e;case 153:for(;e=e.left,75!==e.kind;);return e;case 194:do{if(Zx.isModuleExportsAccessExpression(e.expression)&&!Zx.isPrivateIdentifier(e.name))return e.name}while(75!==(e=e.expression).kind);return e}}(a):void 0)&&ni(o,67108863,!0,!0,h))||i)&&v(c||i),c=y.tracker.trackSymbol,y.tracker.trackSymbol=Zx.noop,n?u.push(Zx.createExportAssignment(void 0,void 0,r,ee(i,y,67108863))):o===a?T(t,Zx.idText(o)):Zx.isClassExpression(a)?T(t,O(i,Zx.symbolName(i))):(s=w(t,e),b(Zx.createImportEqualsDeclaration(void 0,void 0,Zx.createIdentifier(s),$(i,y,67108863,!1)),0),T(t,s)),y.tracker.trackSymbol=c):(s=w(t,e),E(c=Ad(qa(hi(e))),e)?x(c,e,s,n?0:1):b(Zx.createVariableStatement(void 0,Zx.createVariableDeclarationList([Zx.createVariableDeclaration(s,oe(y,c,e,h,v,g))],2)),t===s?1:0),n?u.push(Zx.createExportAssignment(void 0,void 0,r,Zx.createIdentifier(s))):t!==s&&T(t,s)))}function E(e,t){var r=Zx.getSourceFileOfNode(y.enclosingDeclaration);return 48&Zx.getObjectFlags(e)&&!Vs(e,0)&&!Vs(e,1)&&!(!Zx.length(fs(e))&&!Zx.length(Js(e,0)))&&!Zx.length(Js(e,1))&&!ie(t,h)&&!(e.symbol&&Zx.some(e.symbol.declarations,function(e){return Zx.getSourceFileOfNode(e)!==r}))&&!Zx.some(fs(e),function(e){return No(e.escapedName)})&&!Zx.some(fs(e),function(e){return Zx.some(e.declarations,function(e){return Zx.getSourceFileOfNode(e)!==r})})&&Zx.every(fs(e),function(e){return Zx.isIdentifierText(Zx.symbolName(e),M)&&!Zx.isStringAKeyword(Zx.symbolName(e))})}function r(d,p,f){return function(e,t,r){var n=Zx.getDeclarationModifierFlagsFromSymbol(e),i=!!(8&n);if(t&&2887656&e.flags)return[];if(4194304&e.flags||r&&Bs(r,e.escapedName)&&Oy(Bs(r,e.escapedName))===Oy(e)&&(16777216&e.flags)==(16777216&Bs(r,e.escapedName).flags)&&Xl(qa(e),pa(r,e.escapedName)))return[];var a=-257&n|(t?32:0),o=re(e,y),r=Zx.find(e.declarations,Zx.or(Zx.isPropertyDeclaration,Zx.isAccessor,Zx.isVariableDeclaration,Zx.isPropertySignature,Zx.isBinaryExpression,Zx.isPropertyAccessExpression));if(98304&e.flags&&f){t=[];return 65536&e.flags&&t.push(Zx.setTextRange(Zx.createSetAccessor(void 0,Zx.createModifiersFromModifierFlags(a),o,[Zx.createParameter(void 0,void 0,void 0,"arg",void 0,i?void 0:oe(y,qa(e),e,h,v,g))],void 0),Zx.find(e.declarations,Zx.isSetAccessor)||r)),32768&e.flags&&(n=8&n,t.push(Zx.setTextRange(Zx.createGetAccessor(void 0,Zx.createModifiersFromModifierFlags(a),o,[],n?void 0:oe(y,qa(e),e,h,v,g),void 0),Zx.find(e.declarations,Zx.isGetAccessor)||r))),t}if(7&e.flags)return Zx.setTextRange(d(void 0,Zx.createModifiersFromModifierFlags((Oy(e)?64:0)|a),o,16777216&e.flags?Zx.createToken(57):void 0,i?void 0:oe(y,qa(e),e,h,v,g),void 0),Zx.find(e.declarations,Zx.or(Zx.isPropertyDeclaration,Zx.isVariableDeclaration))||r);if(8208&e.flags){r=Js(qa(e),0);if(8&a)return Zx.setTextRange(d(void 0,Zx.createModifiersFromModifierFlags((Oy(e)?64:0)|a),o,16777216&e.flags?Zx.createToken(57):void 0,void 0,void 0),Zx.find(e.declarations,Zx.isFunctionLikeDeclaration)||r[0]&&r[0].declaration||e.declarations[0]);for(var s=[],c=0,u=r;c<u.length;c++){var l=u[c],_=B(l,p,y);_.name=o,a&&(_.modifiers=Zx.createNodeArray(Zx.createModifiersFromModifierFlags(a))),16777216&e.flags&&(_.questionToken=Zx.createToken(57)),s.push(Zx.setTextRange(_,l.declaration))}return s}return Zx.Debug.fail("Unhandled class member kind! "+(e.__debugFlags||e.flags))}}function N(e,t,r,n){var i=Js(t,e);if(1===e){if(!r&&Zx.every(i,function(e){return 0===Zx.length(e.parameters)}))return[];if(r){var a=Js(r,1);if(!Zx.length(a)&&Zx.every(i,function(e){return 0===Zx.length(e.parameters)}))return[];if(a.length===i.length){for(var o=!1,s=0;s<a.length;s++)if(!V_(i[s],a[s],!1,!1,!0,Yl)){o=!0;break}if(!o)return[]}}for(var c=0,u=0,l=i;u<l.length;u++){var _=l[u];_.declaration&&(c|=Zx.getSelectedModifierFlags(_.declaration,24))}if(c)return[Zx.setTextRange(Zx.createConstructor(void 0,Zx.createModifiersFromModifierFlags(c),[],void 0),i[0].declaration)]}for(var d=[],p=0,f=i;p<f.length;p++){var g=f[p],m=B(g,n,y);d.push(Zx.setTextRange(m,g.declaration))}return d}function A(e,t){for(var r=[],n=0,i=[0,1];n<i.length;n++){var a=i[n],o=Vs(e,a);if(o){if(t){var s=Vs(t,a);if(s&&Xl(o.type,s.type))continue}r.push(R(o,a,y))}}return r}function F(e,t,r){e=P(e);if(e)return e;r=w(r+"_base");return b(Zx.createVariableStatement(void 0,Zx.createVariableDeclarationList([Zx.createVariableDeclaration(r,L(t,y))],2)),0),Zx.createExpressionWithTypeArguments(void 0,Zx.createIdentifier(r))}function P(e){var t,r;if(e.target&&ji(e.target.symbol,h,111551,!1)?(t=Zx.map(Ac(e),function(e){return L(e,y)}),r=ee(e.target.symbol,y,788968)):e.symbol&&ji(e.symbol,h,111551,!1)&&(r=ee(e.symbol,y,788968)),r)return Zx.createExpressionWithTypeArguments(t,r)}function w(e,t){if(t&&y.remappedSymbolNames.has(""+lD(t)))return y.remappedSymbolNames.get(""+lD(t));t&&(e=I(t,e));for(var r=0,n=e;y.usedSymbolNames.has(e);)e=n+"_"+ ++r;return y.usedSymbolNames.set(e,!0),t&&y.remappedSymbolNames.set(""+lD(t),e),e}function I(e,t){var r;return"default"!==t&&"__class"!==t&&"__function"!==t||(r=y.flags,y.flags|=16777216,e=oa(e,y),y.flags=r,t=0<e.length&&Zx.isSingleOrDoubleQuote(e.charCodeAt(0))?Zx.stripQuotes(e):e),"default"===t?t="_default":"export="===t&&(t="_exports"),t=Zx.isIdentifierText(t,M)&&!Zx.isStringANonContextualKeyword(t)?t:"_"+t.replace(/[^a-zA-Z0-9]/g,"_")}function O(e,t){return y.remappedSymbolNames.has(""+lD(e))?y.remappedSymbolNames.get(""+lD(e)):(t=I(e,t),y.remappedSymbolNames.set(""+lD(e),t),t)}}(t,e,i)})}};function T(e,t,r,n){Zx.Debug.assert(void 0===e||0==(8&e.flags));t={enclosingDeclaration:e,flags:t||0,tracker:r&&r.trackSymbol?r:{trackSymbol:Zx.noop,moduleResolverHost:134217728&t?{getCommonSourceDirectory:b.getCommonSourceDirectory?function(){return b.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return b.getSourceFiles()},getCurrentDirectory:function(){return b.getCurrentDirectory()},getProbableSymlinks:Zx.maybeBind(b,b.getProbableSymlinks),useCaseSensitiveFileNames:Zx.maybeBind(b,b.useCaseSensitiveFileNames),redirectTargetsMap:b.redirectTargetsMap,getProjectReferenceRedirect:function(e){return b.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return b.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return b.fileExists(e)}}:void 0},encounteredError:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0},n=n(t);return t.encounteredError?void 0:n}function k(e){return e.truncating||(e.truncating=e.approximateLength>(1&e.flags?Zx.noTruncationMaximumTruncationLength:Zx.defaultMaximumTruncationLength))}function L(e,g){f&&f.throwIfCancellationRequested&&f.throwIfCancellationRequested();var t=8388608&g.flags;if(g.flags&=-8388609,!e)return 262144&g.flags?(g.approximateLength+=3,Zx.createKeywordTypeNode(125)):void(g.encounteredError=!0);if(536870912&g.flags||(e=Is(e)),1&e.flags)return g.approximateLength+=3,Zx.createKeywordTypeNode(125);if(2&e.flags)return Zx.createKeywordTypeNode(148);if(4&e.flags)return g.approximateLength+=6,Zx.createKeywordTypeNode(143);if(8&e.flags)return g.approximateLength+=6,Zx.createKeywordTypeNode(140);if(64&e.flags)return g.approximateLength+=6,Zx.createKeywordTypeNode(151);if(16&e.flags)return g.approximateLength+=7,Zx.createKeywordTypeNode(128);if(1024&e.flags&&!(1048576&e.flags)){var r=bi(e.symbol),n=Y(r,g,788968);return mo(r)===e?n:y(n,Zx.createTypeReferenceNode(Zx.symbolName(e.symbol),void 0))}if(1056&e.flags)return Y(e.symbol,g,788968);if(128&e.flags)return g.approximateLength+=e.value.length+2,Zx.createLiteralTypeNode(Zx.setEmitFlags(Zx.createLiteral(e.value,!!(268435456&g.flags)),16777216));if(256&e.flags){n=e.value;return g.approximateLength+=(""+n).length,Zx.createLiteralTypeNode(n<0?Zx.createPrefix(40,Zx.createLiteral(-n)):Zx.createLiteral(n))}if(2048&e.flags)return g.approximateLength+=Zx.pseudoBigIntToString(e.value).length+1,Zx.createLiteralTypeNode(Zx.createLiteral(e.value));if(512&e.flags)return g.approximateLength+=e.intrinsicName.length,"true"===e.intrinsicName?Zx.createTrue():Zx.createFalse();if(8192&e.flags){if(!(1048576&g.flags)){if(Ui(e.symbol,g.enclosingDeclaration))return g.approximateLength+=6,Y(e.symbol,g,111551);g.tracker.reportInaccessibleUniqueSymbolError&&g.tracker.reportInaccessibleUniqueSymbolError()}return g.approximateLength+=13,Zx.createTypeOperatorNode(147,Zx.createKeywordTypeNode(144))}if(16384&e.flags)return g.approximateLength+=4,Zx.createKeywordTypeNode(110);if(32768&e.flags)return g.approximateLength+=9,Zx.createKeywordTypeNode(146);if(65536&e.flags)return g.approximateLength+=4,Zx.createKeywordTypeNode(100);if(131072&e.flags)return g.approximateLength+=5,Zx.createKeywordTypeNode(137);if(4096&e.flags)return g.approximateLength+=6,Zx.createKeywordTypeNode(144);if(67108864&e.flags)return g.approximateLength+=6,Zx.createKeywordTypeNode(141);if(Mu(e))return 4194304&g.flags&&(g.encounteredError||32768&g.flags||(g.encounteredError=!0),g.tracker.reportInaccessibleThisError&&g.tracker.reportInaccessibleThisError()),g.approximateLength+=4,Zx.createThis();if(!t&&e.aliasSymbol&&(16384&g.flags||zi(e.aliasSymbol,g.enclosingDeclaration))){var i=F(e.aliasTypeArguments,g);return!Ii(e.aliasSymbol.escapedName)||32&e.aliasSymbol.flags?Y(e.aliasSymbol,g,788968,i):Zx.createTypeReferenceNode(Zx.createIdentifier(""),i)}i=Zx.getObjectFlags(e);if(4&i)return Zx.Debug.assert(!!(524288&e.flags)),e.node?l(e,d):d(e);if(262144&e.flags||3&i){if(262144&e.flags&&Zx.contains(g.inferTypeParameters,e))return g.approximateLength+=Zx.symbolName(e.symbol).length+6,Zx.createInferTypeNode(O(e,g,void 0));if(4&g.flags&&262144&e.flags&&!zi(e.symbol,g.enclosingDeclaration)){var a=Z(e,g);return g.approximateLength+=Zx.idText(a).length,Zx.createTypeReferenceNode(Zx.createIdentifier(Zx.idText(a)),void 0)}return e.symbol?Y(e.symbol,g,788968):Zx.createTypeReferenceNode(Zx.createIdentifier("?"),void 0)}if(3145728&e.flags){a=1048576&e.flags?function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e[n];if(r|=i.flags,!(98304&i.flags)){if(1536&i.flags){var a=512&i.flags?Ke:_o(i);if(1048576&a.flags){var o=a.types.length;if(n+o<=e.length&&ll(e[n+o-1])===ll(a.types[o-1])){t.push(a),n+=o-1;continue}}}t.push(i)}}65536&r&&t.push(Me);32768&r&&t.push(we);return t||e}(e.types):e.types;if(1===Zx.length(a))return L(a[0],g);a=F(a,g,!0);return a&&0<a.length?Zx.createUnionOrIntersectionTypeNode(1048576&e.flags?178:179,a):void(g.encounteredError||262144&g.flags||(g.encounteredError=!0))}if(48&i)return Zx.Debug.assert(!!(524288&e.flags)),m(e);if(4194304&e.flags){var o=e.type;g.approximateLength+=6;var s=L(o,g);return Zx.createTypeOperatorNode(s)}if(8388608&e.flags){var c=L(e.objectType,g),s=L(e.indexType,g);return g.approximateLength+=2,Zx.createIndexedAccessTypeNode(c,s)}if(16777216&e.flags){i=L(e.checkType,g),o=g.inferTypeParameters;g.inferTypeParameters=e.root.inferTypeParameters;c=L(e.extendsType,g);g.inferTypeParameters=o;s=u(Wu(e)),o=u(Hu(e));return g.approximateLength+=15,Zx.createConditionalTypeNode(i,c,s,o)}return 33554432&e.flags?L(e.baseType,g):Zx.Debug.fail("Should be unreachable.");function u(e){var t,r;return 1048576&e.flags?g.visitedTypes&&g.visitedTypes.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)),E(g)):l(e,function(e){return L(e,g)}):L(e,g)}function m(e){var r=""+e.id,n=e.symbol;if(n){if(Qm(n.valueDeclaration)){var t=e===so(n)?788968:111551;return Y(n,g,t)}if(32&n.flags&&!za(n)&&!(214===n.valueDeclaration.kind&&2048&g.flags)||896&n.flags||function(){var e=!!(8192&n.flags)&&Zx.some(n.declarations,function(e){return Zx.hasModifier(e,32)}),t=!!(16&n.flags)&&(n.parent||Zx.forEach(n.declarations,function(e){return 290===e.parent.kind||250===e.parent.kind}));if(e||t)return(!!(4096&g.flags)||g.visitedTypes&&g.visitedTypes.has(r))&&(!(8&g.flags)||Ui(n,g.enclosingDeclaration))}())return Y(n,g,111551);if(g.visitedTypes&&g.visitedTypes.has(r)){t=function(e){if(e.symbol&&2048&e.symbol.flags){e=Zx.findAncestor(e.symbol.declarations[0].parent,function(e){return 182!==e.kind});if(247===e.kind)return vi(e)}return}(e);return t?Y(t,g,788968):E(g)}return l(e,_)}return _(e)}function l(e,t){var r,n=""+e.id,i=16&Zx.getObjectFlags(e)&&e.symbol&&32&e.symbol.flags,i=4&Zx.getObjectFlags(e)&&e.node?"N"+uD(e.node):e.symbol?(i?"+":"")+lD(e.symbol):void 0;if(g.visitedTypes||(g.visitedTypes=Zx.createMap()),i&&!g.symbolDepth&&(g.symbolDepth=Zx.createMap()),i){if(10<(r=g.symbolDepth.get(i)||0))return E(g);g.symbolDepth.set(i,r+1)}g.visitedTypes.set(n,!0);e=t(e);return g.visitedTypes.delete(n),i&&g.symbolDepth.set(i,r),e}function _(e){if(us(e))return function(e){Zx.Debug.assert(!!(524288&e.flags));var t=e.declaration.readonlyToken?Zx.createToken(e.declaration.readonlyToken.kind):void 0,r=e.declaration.questionToken?Zx.createToken(e.declaration.questionToken.kind):void 0,n=is(e)?Zx.createTypeOperatorNode(L(as(e),g)):L(ts(e),g),n=O(es(e),g,n),e=L(rs(e),g),e=Zx.createMappedTypeNode(t,n,r,e);return g.approximateLength+=10,Zx.setEmitFlags(e,1)}(e);var t=ls(e);if(!t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo){if(!t.callSignatures.length&&!t.constructSignatures.length)return g.approximateLength+=2,Zx.setEmitFlags(Zx.createTypeLiteralNode(void 0),1);if(1===t.callSignatures.length&&!t.constructSignatures.length)return B(t.callSignatures[0],170,g);if(1===t.constructSignatures.length&&!t.callSignatures.length)return B(t.constructSignatures[0],171,g)}e=g.flags;g.flags|=4194304;t=function(e){if(k(g))return[Zx.createPropertySignature(void 0,"...",void 0,void 0,void 0)];for(var t=[],r=0,n=e.callSignatures;r<n.length;r++){var i=n[r];t.push(B(i,165,g))}for(var a=0,o=e.constructSignatures;a<o.length;a++){i=o[a];t.push(B(i,166,g))}{var s;e.stringIndexInfo&&(s=void 0,2048&e.objectFlags?(s=R(vc(ke,e.stringIndexInfo.isReadonly,e.stringIndexInfo.declaration),0,g)).type=E(g):s=R(e.stringIndexInfo,0,g),t.push(s))}e.numberIndexInfo&&t.push(R(e.numberIndexInfo,1,g));var c=e.properties;if(!c)return t;for(var u=0,l=0,_=c;l<_.length;l++){var d=_[l];if(u++,2048&g.flags){if(4194304&d.flags)continue;24&Zx.getDeclarationModifierFlagsFromSymbol(d)&&g.tracker.reportPrivateInBaseOfClassExpression&&g.tracker.reportPrivateInBaseOfClassExpression(Zx.unescapeLeadingUnderscores(d.escapedName))}if(k(g)&&u+2<c.length-1){t.push(Zx.createPropertySignature(void 0,"... "+(c.length-u)+" more ...",void 0,void 0,void 0)),N(c[c.length-1],g,t);break}N(d,g,t)}return t.length?t:void 0}(t);g.flags=e;t=Zx.createTypeLiteralNode(t);return g.approximateLength+=2,Zx.setEmitFlags(t,1024&g.flags?0:1)}function d(e){var t=Ac(e);if(e.target===Dt||e.target===St){if(2&g.flags){var r=L(t[0],g);return Zx.createTypeReferenceNode(e.target===Dt?"Array":"ReadonlyArray",[r])}r=L(t[0],g),r=Zx.createArrayTypeNode(r);return e.target===Dt?r:Zx.createTypeOperatorNode(138,r)}if(!(8&e.target.objectFlags)){if(2048&g.flags&&e.symbol.valueDeclaration&&Zx.isClassLike(e.symbol.valueDeclaration)&&!Ui(e.symbol,g.enclosingDeclaration))return m(e);var n=e.target.outerTypeParameters,i=0,a=void 0;if(n)for(var o=n.length;i<o;){for(var s,c=i,u=Sc(n[i]);i++,i<o&&Sc(n[i])===u;);Zx.rangeEquals(n,t,c,i)||(s=F(t.slice(c,i),g),c=g.flags,g.flags|=16,s=Y(u,g,788968,s),g.flags=c,a=a?y(a,s):s)}r=void 0;0<t.length&&(l=(e.target.typeParameters||Zx.emptyArray).length,r=F(t.slice(i,l),g));var l=g.flags;g.flags|=16;r=Y(e.symbol,g,788968,r);return g.flags=l,a?y(a,r):r}if(0<t.length){var _=Fc(e),d=F(t.slice(0,_),g),p=e.target.hasRestElement;if(d){for(var i=e.target.minLength;i<Math.min(_,d.length);i++)d[i]=p&&i===_-1?Zx.createRestTypeNode(Zx.createArrayTypeNode(d[i])):Zx.createOptionalTypeNode(d[i]);var f=Zx.createTupleTypeNode(d);return e.target.readonly?Zx.createTypeOperatorNode(138,f):f}}if(g.encounteredError||524288&g.flags){f=Zx.createTupleTypeNode([]);return e.target.readonly?Zx.createTypeOperatorNode(138,f):f}g.encounteredError=!0}function y(e,t){if(Zx.isImportTypeNode(e)){var r=e.typeArguments;e.qualifier&&((Zx.isIdentifier(e.qualifier)?e.qualifier:e.qualifier.right).typeArguments=r),e.typeArguments=t.typeArguments;for(var n=0,i=p(t);n<i.length;n++){var a=i[n];e.qualifier=e.qualifier?Zx.createQualifiedName(e.qualifier,a):a}return e}r=e.typeArguments;(Zx.isIdentifier(e.typeName)?e.typeName:e.typeName.right).typeArguments=r,e.typeArguments=t.typeArguments;for(var o=0,s=p(t);o<s.length;o++){a=s[o];e.typeName=Zx.createQualifiedName(e.typeName,a)}return e}function p(e){for(var t=e.typeName,r=[];!Zx.isIdentifier(t);)r.unshift(t.right),t=t.left;return r.unshift(t),r}}function E(e){return e.approximateLength+=3,1&e.flags?Zx.createKeywordTypeNode(125):Zx.createTypeReferenceNode(Zx.createIdentifier("..."),void 0)}function N(r,e,t){var n=!!(8192&Zx.getCheckFlags(r)),i=n&&33554432&e.flags?ke:qa(r),a=e.enclosingDeclaration;e.enclosingDeclaration=void 0,e.tracker.trackSymbol&&4096&Zx.getCheckFlags(r)&&(Ao(d=Zx.first(r.declarations))&&(Zx.isBinaryExpression(d)?(_=Zx.getNameOfDeclaration(d))&&Zx.isElementAccessExpression(_)&&Zx.isPropertyAccessEntityNameExpression(_.argumentExpression)&&z(_.argumentExpression,a,e):z(d.name.expression,a,e))),e.enclosingDeclaration=a;var o=re(r,e);e.approximateLength+=Zx.symbolName(r).length+1;var s=16777216&r.flags?Zx.createToken(57):void 0;if(8208&r.flags&&!_s(i).length&&!Oy(r))for(var c=0,u=Js(Bp(i,function(e){return!(32768&e.flags)}),0);c<u.length;c++){var l=B(u[c],160,e);l.name=o,l.questionToken=s,t.push(p(l))}else{var _=e.flags;e.flags|=n?33554432:0;var d=void 0,d=n&&33554432&_?E(e):i?oe(e,i,r,a):Zx.createKeywordTypeNode(125);e.flags=_;_=Oy(r)?[Zx.createToken(138)]:void 0;_&&(e.approximateLength+=9);d=Zx.createPropertySignature(_,o,s,d,void 0);t.push(p(d))}function p(e){var t;return Zx.some(r.declarations,function(e){return 323===e.kind})?(t=Zx.find(r.declarations,function(e){return 323===e.kind}).comment)&&Zx.setSyntheticLeadingComments(e,[{kind:3,text:"*\n * "+t.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]):r.valueDeclaration&&Zx.setCommentRange(e,r.valueDeclaration),e}}function F(e,a,t){if(Zx.some(e)){if(k(a)){if(!t)return[Zx.createTypeReferenceNode("...",void 0)];if(2<e.length)return[L(e[0],a),Zx.createTypeReferenceNode("... "+(e.length-2)+" more ...",void 0),L(e[e.length-1],a)]}for(var r=!(64&a.flags)?Zx.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(Zx.createTypeReferenceNode("... "+(e.length-n)+" more ...",void 0));var u=L(e[e.length-1],a);u&&o.push(u);break}a.approximateLength+=2;u=L(c,a);u&&(o.push(u),r&&Zx.isIdentifierTypeReference(u)&&r.add(u.typeName.escapedText,[c,o.length-1]))}return r&&(t=a.flags,a.flags|=64,r.forEach(function(e){if(!Zx.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]=L(i,a)}}),a.flags=t),o}}function R(e,t,r){var n=Zx.getNameFromIndexInfo(e)||"x",i=Zx.createKeywordTypeNode(0===t?143:140),t=Zx.createParameter(void 0,void 0,void 0,n,void 0,i,void 0),i=L(e.type||ke,r);return e.type||2097152&r.flags||(r.encounteredError=!0),r.approximateLength+=n.length+4,Zx.createIndexSignature(void 0,e.isReadonly?[Zx.createToken(138)]:void 0,[t],i)}function B(t,r,n,i,a){var e,o,s=256&n.flags;s&&(n.flags&=-257),32&n.flags&&t.target&&t.mapper&&t.target.typeParameters?o=t.target.typeParameters.map(function(e){return L(Jl(e,t.mapper),n)}):e=t.typeParameters&&t.typeParameters.map(function(e){return j(e,n)});var c=Uo(t).map(function(e){return J(e,n,162===r,i,a)});t.thisParameter&&(u=J(t.thisParameter,n),c.unshift(u));var u,l,_,d=oc(t);return d?(u=2===d.kind||3===d.kind?Zx.createToken(124):void 0,l=1===d.kind||3===d.kind?Zx.setEmitFlags(Zx.createIdentifier(d.parameterName),16777216):Zx.createThisTypeNode(),_=d.type&&L(d.type,n),l=Zx.createTypePredicateNodeWithModifier(u,l,_)):!(_=sc(t))||s&&fa(_)?s||(l=Zx.createKeywordTypeNode(125)):l=function(t,e,r,n,i){if(e!==Ae&&t.enclosingDeclaration){var a=r.declaration&&Zx.getEffectiveReturnTypeNode(r.declaration);if(Zx.findAncestor(a,function(e){return e===t.enclosingDeclaration})&&a&&Jl(gl(a),r.mapper)===e&&ae(a,e)){i=se(t,a,n,i);if(i)return i}}return L(e,t)}(n,_,t,i,a),n.approximateLength+=3,Zx.createSignatureDeclaration(r,e,c,l,o)}function O(e,t,r){var n=t.flags;t.flags&=-513;var i=Z(e,t),e=ks(e),e=e&&L(e,t);return t.flags=n,Zx.createTypeParameterDeclaration(i,r,e)}function j(e,t,r){return void 0===r&&(r=ms(e)),O(e,t,r&&L(r,t))}function J(e,t,r,n,i){var a=Zx.getDeclarationOfKind(e,156);a||Zx.isTransientSymbol(e)||(a=Zx.getDeclarationOfKind(e,317));var o=qa(e);a&&nx(a)&&(o=md(o));o=oe(t,o,e,t.enclosingDeclaration,n,i),n=!(8192&t.flags)&&r&&a&&a.modifiers?a.modifiers.map(Zx.getSynthesizedClone):void 0,i=a&&Zx.isRestParameter(a)||32768&Zx.getCheckFlags(e)?Zx.createToken(25):void 0,r=a&&a.name?75===a.name.kind?Zx.setEmitFlags(Zx.getSynthesizedClone(a.name),16777216):153===a.name.kind?Zx.setEmitFlags(Zx.getSynthesizedClone(a.name.right),16777216):iEc(a.name):Zx.symbolName(e),a=a&&Xs(a)||16384&Zx.getCheckFlags(e)?Zx.createToken(57):void 0,o=Zx.createParameter(void 0,n,i,r,a,o,void 0);return t.approximateLength+=Zx.symbolName(e).length+3,o}function z(e,t,r){!r.tracker.trackSymbol||(e=Nn(e=Zx.getFirstIdentifier(e),e.escapedText,1160127,void 0,void 0,!0))&&r.tracker.trackSymbol(e,t,111551)}function U(e,t,r,n){return t.tracker.trackSymbol(e,t.enclosingDeclaration,r),V(e,t,r,n)}function V(e,p,t,f){var r;return 262144&e.flags||!(p.enclosingDeclaration||64&p.flags)||134217728&p.flags?r=[e]:(r=Zx.Debug.checkDefined(function e(t,r,n){var i=ji(t,p.enclosingDeclaration,r,!!(128&p.flags));var a;if(!i||Ji(i[0],p.enclosingDeclaration,1===i.length?r:Bi(r))){var o=xi(i?i[0]:t,p.enclosingDeclaration);if(Zx.length(o)){a=o.map(function(e){return Zx.some(e.declarations,Wi)?W(e,p):void 0});var s=o.map(function(e,t){return t});s.sort(d);for(var s=s.map(function(e){return o[e]}),c=0,u=s;c<u.length;c++){var l=u[c],_=e(l,Bi(r),!1);if(_){if(l.exports&&l.exports.get("export=")&&Ci(l.exports.get("export="),t)){i=_;break}i=_.concat(i||[Si(l,t)||t]);break}}}}if(i)return i;if((n||!(6144&t.flags))&&(n||f||!Zx.forEach(t.declarations,Wi)))return[t];function d(e,t){var r=a[e],e=a[t];if(r&&e){var t=Zx.pathIsRelative(e);return Zx.pathIsRelative(r)===t?Zx.moduleSpecifiers.countPathComponents(r)-Zx.moduleSpecifiers.countPathComponents(e):t?-1:1}return 0}}(e,t,!0)),Zx.Debug.assert(r&&0<r.length)),r}function K(e,t){var r;return 524384&ab(e).flags&&(r=Zx.createNodeArray(Zx.map(Za(e),function(e){return j(e,t)}))),r}function q(e,t,r){Zx.Debug.assert(e&&0<=t&&t<e.length);var n,i,a=e[t],o=""+lD(a);if(!r.typeParameterSymbolList||!r.typeParameterSymbolList.get(o))return(r.typeParameterSymbolList||(r.typeParameterSymbolList=Zx.createMap())).set(o,!0),512&r.flags&&t<e.length-1&&(o=a,n=e[t+1],i=1&Zx.getCheckFlags(n)?(i=2097152&o.flags?Qn(o):o,i=Zx.concatenate(Ya(i),Za(i)),F(Zx.map(i,function(e){return xl(e,n.mapper)}),r)):K(a,r)),i}function W(t,e){var r=Zx.getDeclarationOfKind(t,290);if(r||(s=Zx.firstDefined(t.declarations,function(e){return Di(e,t)}))&&(r=Zx.getDeclarationOfKind(s,290)),r&&void 0!==r.moduleName)return r.moduleName;if(!r){if(e.tracker.trackReferencedAmbientModule){var n=Zx.filter(t.declarations,Zx.isAmbientModule);if(Zx.length(n))for(var i=0,a=n;i<a.length;i++){var o=a[i];e.tracker.trackReferencedAmbientModule(o,t)}}if($x.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1)}if(!e.enclosingDeclaration||!e.tracker.moduleResolverHost)return $x.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):Zx.getSourceFileOfNode(Zx.getNonAugmentationDeclaration(t)).fileName;var s,c=Zx.getSourceFileOfNode(Zx.getOriginalNode(e.enclosingDeclaration)),u=Dn(t),l=u.specifierCache&&u.specifierCache.get(c.path);return l||(s=G.out||G.outFile,r=e.tracker.moduleResolverHost,n=s?__assign(__assign({},G),{baseUrl:r.getCommonSourceDirectory()}):G,l=Zx.first(Zx.moduleSpecifiers.getModuleSpecifiers(t,n,c,r,{importModuleSpecifierPreference:s?"non-relative":"relative"})),u.specifierCache=u.specifierCache||Zx.createMap(),u.specifierCache.set(c.path,l)),l}function Y(e,u,t,l){var r=U(e,u,t,!(16384&u.flags)),n=111551===t;if(Zx.some(r[0].declarations,Wi)){var i=1<r.length?_(r,r.length-1,1):void 0,a=l||q(r,0,u),e=W(r[0],u);!(67108864&u.flags)&&Zx.getEmitModuleResolutionKind(G)===Zx.ModuleResolutionKind.NodeJs&&0<=e.indexOf("/node_modules/")&&(u.encounteredError=!0,u.tracker.reportLikelyUnsafeImportRequiredError&&u.tracker.reportLikelyUnsafeImportRequiredError(e));t=Zx.createLiteralTypeNode(Zx.createLiteral(e));if(u.tracker.trackExternalModuleSymbolOfImportTypeNode&&u.tracker.trackExternalModuleSymbolOfImportTypeNode(r[0]),u.approximateLength+=e.length+10,!i||Zx.isEntityName(i))return i&&((o=Zx.isIdentifier(i)?i:i.right).typeArguments=void 0),Zx.createImportTypeNode(t,i,a,n);e=function e(t){return Zx.isIndexedAccessTypeNode(t.objectType)?e(t.objectType):t}(i),i=e.objectType.typeName;return Zx.createIndexedAccessTypeNode(Zx.createImportTypeNode(t,i,a,n),e.indexType)}r=_(r,r.length-1,0);if(Zx.isIndexedAccessTypeNode(r))return r;if(n)return Zx.createTypeQueryNode(r);var o,n=(o=Zx.isIdentifier(r)?r:r.right).typeArguments;return o.typeArguments=void 0,Zx.createTypeReferenceNode(r,n);function _(e,t,r){var n,i,a=t===e.length-1?l:q(e,t,u),o=e[t],s=e[t-1];if(0===t?(u.flags|=16777216,n=oa(o,u),u.approximateLength+=(n?n.length:0)+1,u.flags^=16777216):s&&fi(s)&&(i=fi(s),Zx.forEachEntry(i,function(e,t){if(Ci(e,o)&&!No(t)&&"export="!==t)return n=Zx.unescapeLeadingUnderscores(t),!0})),n=n||oa(o,u),u.approximateLength+=n.length+1,!(16&u.flags)&&s&&Oo(s)&&Oo(s).get(o.escapedName)&&Ci(Oo(s).get(o.escapedName),o)){var c=_(e,t-1,r);return Zx.isIndexedAccessTypeNode(c)?Zx.createIndexedAccessTypeNode(c,Zx.createLiteralTypeNode(Zx.createLiteral(n))):Zx.createIndexedAccessTypeNode(Zx.createTypeReferenceNode(c,a),Zx.createLiteralTypeNode(Zx.createLiteral(n)))}a=Zx.setEmitFlags(Zx.createIdentifier(n,a),16777216);if(a.symbol=o,r<t){c=_(e,t-1,r);return Zx.isEntityName(c)?Zx.createQualifiedName(c,a):Zx.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return a}}function Z(e,t){if(4&t.flags&&t.typeParameterNames){var r=t.typeParameterNames.get(""+e.id);if(r)return r}var n,i,r=$(e.symbol,t,788968,!0);if(!(75&r.kind))return Zx.createIdentifier("(Missing type parameter)");if(4&t.flags){for(var a=r.escapedText,o=0,s=a;t.typeParameterNamesByText&&t.typeParameterNamesByText.get(s)||(n=s,i=e,(n=Nn(t.enclosingDeclaration,n,788968,void 0,n,!1))&&!(262144&n.flags&&n===i.symbol));)s=a+"_"+ ++o;s!==a&&(r=Zx.createIdentifier(s,r.typeArguments)),(t.typeParameterNames||(t.typeParameterNames=Zx.createMap())).set(""+e.id,r),(t.typeParameterNamesByText||(t.typeParameterNamesByText=Zx.createMap())).set(r.escapedText,!0)}return r}function $(e,o,t,r){t=U(e,o,t);return!r||1===t.length||o.encounteredError||65536&o.flags||(o.encounteredError=!0),function e(t,r){var n=q(t,r,o);var i=t[r];0===r&&(o.flags|=16777216);var a=oa(i,o);0===r&&(o.flags^=16777216);var n=Zx.setEmitFlags(Zx.createIdentifier(a,n),16777216);n.symbol=i;return 0<r?Zx.createQualifiedName(e(t,r-1),n):n}(t,t.length-1)}function ee(e,u,t){t=U(e,u,t);return function e(t,r){var n=q(t,r,u);var i=t[r];0===r&&(u.flags|=16777216);var a=oa(i,u);0===r&&(u.flags^=16777216);var o=a.charCodeAt(0);if(Zx.isSingleOrDoubleQuote(o)&&Zx.some(i.declarations,Wi))return Zx.createLiteral(W(i,u));var s=35===o?1<a.length&&Zx.isIdentifierStart(a.charCodeAt(1),M):Zx.isIdentifierStart(o,M);{if(0===r||s){var c=Zx.setEmitFlags(Zx.createIdentifier(a,n),16777216);return c.symbol=i,0<r?Zx.createPropertyAccess(e(t,r-1),c):c}91===o&&(a=a.substring(1,a.length-1),o=a.charCodeAt(0));var c=void 0;return Zx.isSingleOrDoubleQuote(o)?(c=Zx.createLiteral(a.substring(1,a.length-1).replace(/\\./g,function(e){return e.substring(1)}))).singleQuote=39===o:""+ +a===a&&(c=Zx.createLiteral(+a)),c||((c=Zx.setEmitFlags(Zx.createIdentifier(a,n),16777216)).symbol=i),Zx.createElementAccess(e(t,r-1),c)}}(t,t.length-1)}function te(e){e=Zx.getNameOfDeclaration(e);return!!(e&&Zx.isStringLiteral(e)&&(e.singleQuote||!Zx.nodeIsSynthesized(e)&&Zx.startsWith(Zx.getTextOfNode(e,!1),"'")))}function re(e,t){var r=!!Zx.length(e.declarations)&&Zx.every(e.declarations,te),t=function(e,t,r){var n=Dn(e).nameType;if(n){if(384&n.flags){e=""+n.value;return Zx.isIdentifierText(e,G.target)||ig(e)?ig(e)&&Zx.startsWith(e,"-")?Zx.createComputedPropertyName(Zx.createLiteral(+e)):ne(e):Zx.createLiteral(e,!!r)}if(8192&n.flags)return Zx.createComputedPropertyName(ee(n.symbol,t,111551))}}(e,t,r);return t||(Zx.isKnownSymbol(e)?Zx.createComputedPropertyName(Zx.createPropertyAccess(Zx.createIdentifier("Symbol"),e.escapedName.substr(3))):ne(Zx.unescapeLeadingUnderscores(e.escapedName),r))}function ne(e,t){return Zx.isIdentifierText(e,G.target)?Zx.createIdentifier(e):Zx.createLiteral(ig(e)&&0<=+e?+e:e,!!t)}function ie(e,t){return e.declarations&&Zx.find(e.declarations,function(e){return!(!Zx.getEffectiveTypeAnnotationNode(e)||t&&!Zx.findAncestor(e,function(e){return e===t}))})}function ae(e,t){return!(4&Zx.getObjectFlags(t))||!Zx.isTypeReferenceNode(e)||Zx.length(e.typeArguments)>=$s(t.target.typeParameters)}function oe(e,t,r,n,i,a){if(t!==Ae&&n){n=ie(r,n);if(n&&!Zx.isFunctionLikeDeclaration(n)){n=Zx.getEffectiveTypeAnnotationNode(n);if(gl(n)===t&&ae(n,t)){var o=se(e,n,i,a);if(o)return o}}}o=e.flags;8192&t.flags&&t.symbol===r&&(e.flags|=1048576);t=L(t,e);return e.flags=o,t}function se(c,e,u,l){f&&f.throwIfCancellationRequested&&f.throwIfCancellationRequested();var _=!1,t=Zx.visitNode(e,function n(i){if(Zx.isJSDocAllType(i)||302===i.kind)return Zx.createKeywordTypeNode(125);if(Zx.isJSDocUnknownType(i))return Zx.createKeywordTypeNode(148);if(Zx.isJSDocNullableType(i))return Zx.createUnionTypeNode([Zx.visitNode(i.type,n),Zx.createKeywordTypeNode(100)]);if(Zx.isJSDocOptionalType(i))return Zx.createUnionTypeNode([Zx.visitNode(i.type,n),Zx.createKeywordTypeNode(146)]);if(Zx.isJSDocNonNullableType(i))return Zx.visitNode(i.type,n);if(Zx.isJSDocVariadicType(i))return Zx.createArrayTypeNode(Zx.visitNode(i.type,n));if(Zx.isJSDocTypeLiteral(i))return Zx.createTypeLiteralNode(Zx.map(i.jsDocPropertyTags,function(e){var t=Zx.isIdentifier(e.name)?e.name:e.name.right,r=pa(gl(i),t.escapedText),r=r&&e.typeExpression&&gl(e.typeExpression.type)!==r?L(r,c):void 0;return Zx.createPropertySignature(void 0,t,e.typeExpression&&Zx.isJSDocOptionalType(e.typeExpression.type)?Zx.createToken(57):void 0,r||e.typeExpression&&Zx.visitNode(e.typeExpression.type,n)||Zx.createKeywordTypeNode(125),void 0)}));if(Zx.isTypeReferenceNode(i)&&Zx.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return Zx.setOriginalNode(Zx.createKeywordTypeNode(125),i);if((Zx.isExpressionWithTypeArguments(i)||Zx.isTypeReferenceNode(i))&&Zx.isJSDocIndexSignature(i))return Zx.createTypeLiteralNode([Zx.createIndexSignature(void 0,void 0,[Zx.createParameter(void 0,void 0,void 0,"x",void 0,Zx.visitNode(i.typeArguments[0],n))],Zx.visitNode(i.typeArguments[1],n))]);if(Zx.isJSDocFunctionType(i)){var r;return Zx.isJSDocConstructSignature(i)?Zx.createConstructorTypeNode(Zx.visitNodes(i.typeParameters,n),Zx.mapDefined(i.parameters,function(e,t){return e.name&&Zx.isIdentifier(e.name)&&"new"===e.name.escapedText?void(r=e.type):Zx.createParameter(void 0,void 0,o(e),e.name||o(e)?"args":"arg"+t,e.questionToken,Zx.visitNode(e.type,n),void 0)}),Zx.visitNode(r||i.type,n)):Zx.createFunctionTypeNode(Zx.visitNodes(i.typeParameters,n),Zx.map(i.parameters,function(e,t){return Zx.createParameter(void 0,void 0,o(e),e.name||o(e)?"args":"arg"+t,e.questionToken,Zx.visitNode(e.type,n),void 0)}),Zx.visitNode(i.type,n))}if(Zx.isTypeReferenceNode(i)&&Zx.isInJSDoc(i)&&(zc(i)||Ce===Oc(Ic(i),788968,!0)))return Zx.setOriginalNode(L(gl(i),c),i);if(Zx.isLiteralImportTypeNode(i))return Zx.updateImportTypeNode(i,Zx.updateLiteralTypeNode(i.argument,s(i,i.argument.literal)),i.qualifier,Zx.visitNodes(i.typeArguments,n,Zx.isTypeNode),i.isTypeOf);if(Zx.isEntityName(i)||Zx.isEntityNameExpression(i)){var e=Zx.getFirstIdentifier(i);if(Zx.isInJSFile(i)&&(Zx.isExportsIdentifier(e)||Zx.isModuleExportsAccessExpression(e.parent)||Zx.isQualifiedName(e.parent)&&Zx.isModuleIdentifier(e.parent.left)&&Zx.isExportsIdentifier(e.parent.right)))return _=!0,i;var t=ni(e,67108863,!0,!0);if(t&&(0!==Vi(t,c.enclosingDeclaration,67108863,!1).accessibility?_=!0:(null!==(e=null===(a=c.tracker)||void 0===a?void 0:a.trackSymbol)&&void 0!==e&&e.call(a,t,c.enclosingDeclaration,67108863),null!=u&&u(t)),Zx.isIdentifier(i))){var a=262144&t.flags?Z(mo(t),c):Zx.getMutableClone(i);return a.symbol=t,Zx.setEmitFlags(Zx.setOriginalNode(a,i),16777216)}}return Zx.visitEachChild(i,n,Zx.nullTransformationContext);function o(e){return e.dotDotDotToken||(e.type&&Zx.isJSDocVariadicType(e.type)?Zx.createToken(25):void 0)}function s(e,t){if(l){if(c.tracker&&c.tracker.moduleResolverHost){var e=Dx(e);if(e){var r=Zx.createGetCanonicalFileName(!!b.useCaseSensitiveFileNames),r={getCanonicalFileName:r,getCurrentDirectory:function(){return c.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return c.tracker.moduleResolverHost.getCommonSourceDirectory()}},r=Zx.getResolvedExternalModuleName(r,e);return Zx.createLiteral(r)}}}else c.tracker&&c.tracker.trackExternalModuleSymbolOfImportTypeNode&&((r=oi(t,t,void 0))&&c.tracker.trackExternalModuleSymbolOfImportTypeNode(r));return t}});if(!_)return t===e?Zx.getMutableClone(e):t}var ce=Zx.createSymbolTable(),ue=pn(4,"undefined");ue.declarations=[];var le=pn(1536,"globalThis",8);le.exports=ce,le.declarations=[],ce.set(le.escapedName,le);var _e,de=pn(4,"arguments"),pe=pn(4,"require"),fe={getNodeCount:function(){return Zx.sum(b.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return Zx.sum(b.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return Zx.sum(b.getSourceFiles(),"symbolCount")+i},getTypeCount:function(){return r},getInstantiationCount:function(){return a},getRelationCacheSizes:function(){return{assignable:rn.size,identity:an.size,subtype:en.size,strictSubtype:tn.size}},isUndefinedSymbol:function(e){return e===ue},isArgumentsSymbol:function(e){return e===de},isUnknownSymbol:function(e){return e===Ce},getMergedSymbol:hi,getDiagnostics:Ab,getGlobalDiagnostics:function(){return Fb(),Xr.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(e,t){return(t=Zx.getParseTreeNode(t))?function(e,t){if(e=e.exportSymbol||e,75===t.kind&&(Zx.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Zx.isExpressionNode(t)&&!Zx.isAssignmentTarget(t))){var r=lh(t);if(Ti(Sn(t).resolvedSymbol)===e)return r}return qa(e)}(e,t):Ae},getSymbolsOfParameterPropertyDeclaration:function(e,t){e=Zx.getParseTreeNode(e,Zx.isParameter);return void 0===e?Zx.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=Tn(r.locals,t,111551),t=Tn(Oo(e.symbol),t,111551);if(r&&t)return[r,t];return Zx.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(e,Zx.escapeLeadingUnderscores(t))},getDeclaredTypeOfSymbol:mo,getPropertiesOfType:fs,getPropertyOfType:function(e,t){return Bs(e,Zx.escapeLeadingUnderscores(t))},getPrivateIdentifierPropertyOfType:function(e,t,r){r=Zx.getParseTreeNode(r);if(r){r=qg(Zx.escapeLeadingUnderscores(t),r);return r?Wg(e,r):void 0}},getTypeOfPropertyOfType:function(e,t){return pa(e,Zx.escapeLeadingUnderscores(t))},getIndexInfoOfType:Vs,getSignaturesOfType:Js,getIndexTypeOfType:Ks,getBaseTypes:ao,getBaseTypeOfLiteralType:rd,getWidenedType:Ad,getTypeFromTypeNode:function(e){e=Zx.getParseTreeNode(e,Zx.isTypeNode);return e?gl(e):Ae},getParameterType:cy,getPromisedTypeOfPromise:Mh,getReturnTypeOfSignature:sc,isNullableType:Mg,getNullableType:gd,getNonNullableType:yd,getNonOptionalType:bd,getTypeArguments:Ac,typeToTypeNode:C.typeToTypeNode,indexInfoToIndexSignatureDeclaration:C.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:C.signatureToSignatureDeclaration,symbolToEntityName:C.symbolToEntityName,symbolToExpression:C.symbolToExpression,symbolToTypeParameterDeclarations:C.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:C.symbolToParameterDeclaration,typeParameterToDeclaration:C.typeParameterToDeclaration,getSymbolsInScope:function(e,t){return(e=Zx.getParseTreeNode(e))?function(e,t){if(16777216&e.flags)return[];var r=Zx.createSymbolTable(),n=!1;return function(){for(;e;){switch(e.locals&&!Cn(e)&&a(e.locals,t),e.kind){case 290:if(!Zx.isExternalOrCommonJsModule(e))break;case 249:a(vi(e).exports,2623475&t);break;case 248:a(vi(e).exports,8&t);break;case 214:e.name&&i(e.symbol,t);case 245:case 246:n||a(Oo(vi(e)),788968&t);break;case 201:e.name&&i(e.symbol,t)}Zx.introducesArgumentsExoticObject(e)&&i(de,t),n=Zx.hasModifier(e,32),e=e.parent}a(ce,t)}(),r.delete("this"),Hs(r);function i(e,t){Zx.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){return(e=Zx.getParseTreeNode(e))?Rb(e,!0):void 0},getShorthandAssignmentValueSymbol:function(e){return(e=Zx.getParseTreeNode(e))?function(e){if(e&&282===e.kind)return ni(e.name,2208703);return}(e):void 0},getExportSpecifierLocalTargetSymbol:function(e){e=Zx.getParseTreeNode(e,Zx.isExportSpecifier);return e?(e=e).parent.parent.moduleSpecifier?Vn(e.parent.parent,e):ni(e.propertyName||e.name,2998271):void 0},getExportSymbolOfSymbol:function(e){return hi(e.exportSymbol||e)},getTypeAtLocation:function(e){return(e=Zx.getParseTreeNode(e))?Bb(e):Ae},getTypeOfAssignmentPattern:function(e){e=Zx.getParseTreeNode(e,Zx.isAssignmentPattern);return e&&jb(e)||Ae},getPropertySymbolOfDestructuringAssignment:function(e){var t=Zx.getParseTreeNode(e,Zx.isIdentifier);return t?(e=t,(t=jb(Zx.cast(e.parent.parent,Zx.isAssignmentPattern)))&&Bs(t,e.escapedText)):void 0},signatureToString:function(e,t,r,n){return Xi(e,Zx.getParseTreeNode(t),r,n)},typeToString:function(e,t,r){return Yi(e,Zx.getParseTreeNode(t),r)},symbolToString:function(e,t,r,n){return Qi(e,Zx.getParseTreeNode(t),r,n)},typePredicateToString:function(e,t,r){return ta(e,Zx.getParseTreeNode(t),r)},writeSignature:function(e,t,r,n,i){return Xi(e,Zx.getParseTreeNode(t),r,n,i)},writeType:function(e,t,r,n){return Yi(e,Zx.getParseTreeNode(t),r,n)},writeSymbol:function(e,t,r,n,i){return Qi(e,Zx.getParseTreeNode(t),r,n,i)},writeTypePredicate:function(e,t,r,n){return ta(e,Zx.getParseTreeNode(t),r,n)},getAugmentedPropertiesOfType:zb,getRootSymbols:function e(t){var r=Vb(t);return r?Zx.flatMap(r,e):[t]},getContextualType:function(e,t){var r=Zx.getParseTreeNode(e,Zx.isExpression);if(r){var n=Zx.findAncestor(r,Zx.isCallLikeExpression),i=n&&Sn(n).resolvedSignature;if(4&t&&n){for(var a=r;Sn(a).skipDirectInference=!0,a=a.parent,a&&a!==n;);Sn(n).resolvedSignature=void 0}e=Kf(r,t);if(4&t&&n){for(a=r;Sn(a).skipDirectInference=void 0,a=a.parent,a&&a!==n;);Sn(n).resolvedSignature=i}return e}},getContextualTypeForObjectLiteralElement:function(e){e=Zx.getParseTreeNode(e,Zx.isObjectLiteralElementLike);return e?Lf(e):void 0},getContextualTypeForArgumentAtIndex:function(e,t){e=Zx.getParseTreeNode(e,Zx.isCallLikeExpression);return e&&wf(e,t)},getContextualTypeForJsxAttribute:function(e){e=Zx.getParseTreeNode(e,Zx.isJsxAttributeLike);return e&&jf(e)},isContextSensitive:ql,getFullyQualifiedName:ri,getResolvedSignature:function(e,t,r){return ge(e,t,r,0)},getResolvedSignatureForSignatureHelp:function(e,t,r){return ge(e,t,r,16)},getExpandedParameters:Uo,hasEffectiveRestParameter:py,getConstantValue:function(e){e=Zx.getParseTreeNode(e,ux);return e?lx(e):void 0},isValidPropertyAccess:function(e,t){e=Zx.getParseTreeNode(e,Zx.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!e&&function(e,t){switch(e.kind){case 194:return rm(e,102===e.expression.kind,t,Ad(ph(e.expression)));case 153:return rm(e,!1,t,Ad(ph(e.left)));case 188:return rm(e,!1,t,gl(e))}}(e,Zx.escapeLeadingUnderscores(t))},isValidPropertyAccessForCompletions:function(e,t,r){e=Zx.getParseTreeNode(e,Zx.isPropertyAccessExpression);return!!e&&(t=t,r=r,rm(e=e,194===e.kind&&102===e.expression.kind,r.escapedName,t))},getSignatureFromDeclaration:function(e){e=Zx.getParseTreeNode(e,Zx.isFunctionLike);return e?tc(e):void 0},isImplementationOfOverload:function(e){e=Zx.getParseTreeNode(e,Zx.isFunctionLike);return e?rx(e):void 0},getImmediateAliasedSymbol:sg,getAliasedSymbol:Qn,getEmitResolver:function(e,t){return Ab(e,t),v},getExportsOfModule:di,getExportsAndPropertiesOfModule:function(e){var t=di(e),r=ui(e);r!==e&&Zx.addRange(t,fs(qa(r)));return t},getSymbolWalker:Zx.createGetSymbolWalker(function(e){return lc(e)||ke},oc,sc,ao,ls,qa,up,Us,ms,Zx.getFirstIdentifier,Ac),getAmbientModules:function(){gt||(gt=[],ce.forEach(function(e,t){$x.test(t)&&gt.push(e)}));return gt},getJsxIntrinsicTagNamesAt:function(e){e=mg(aD.IntrinsicElements,e);return e?fs(e):Zx.emptyArray},isOptionalParameter:function(e){e=Zx.getParseTreeNode(e,Zx.isParameter);return!!e&&Xs(e)},tryGetMemberInModuleExports:function(e,t){return pi(Zx.escapeLeadingUnderscores(e),t)},tryGetMemberInModuleExportsAndProperties:function(e,t){return function(e,t){var r=pi(e,t);if(r)return r;r=ui(t);if(r===t)return;r=qa(r);return 131068&r.flags||1&Zx.getObjectFlags(r)||Z_(r)?void 0:Bs(r,e)}(Zx.escapeLeadingUnderscores(e),t)},tryFindAmbientModuleWithoutAugmentations:function(e){return Qs(e,!1)},getApparentType:Ns,getUnionType:gu,isTypeAssignableTo:t_,createAnonymousType:Li,createSignature:Bo,createSymbol:pn,createIndexInfo:vc,getAnyType:function(){return ke},getStringType:function(){return Re},getNumberType:function(){return Be},createPromiseType:by,createArrayType:nu,getElementTypeOfArrayType:G_,getBooleanType:function(){return Ke},getFalseType:function(e){return e?Je:ze},getTrueType:function(e){return e?Ue:Ve},getVoidType:function(){return We},getUndefinedType:function(){return we},getNullType:function(){return Me},getESSymbolType:function(){return qe},getNeverType:function(){return He},getOptionalType:function(){return Oe},isSymbolAccessible:Vi,isArrayType:q_,isTupleType:sd,isArrayLikeType:Q_,isTypeInvalidDueToUnionDiscriminant:function(r,e){return e.properties.some(function(e){var t=e.name&&Su(e.name),t=t&&ko(t)?Po(t):void 0,t=void 0===t?void 0:pa(r,t);return!!t&&td(t)&&!t_(Bb(e),t)})},getAllPossiblePropertiesOfTypes:function(e){var t=gu(e);if(!(1048576&t.flags))return zb(t);for(var r=Zx.createSymbolTable(),n=0,i=e;n<i.length;n++)for(var a=i[n],o=0,s=zb(a);o<s.length;o++){var c,u=s[o].escapedName;r.has(u)||(c=Fs(t,u))&&r.set(u,c)}return Zx.arrayFrom(r.values())},getSuggestedSymbolForNonexistentProperty:Xg,getSuggestionForNonexistentProperty:Yg,getSuggestedSymbolForNonexistentSymbol:function(e,t,r){return Zg(e,Zx.escapeLeadingUnderscores(t),r)},getSuggestionForNonexistentSymbol:function(e,t,r){return function(e,t,r){r=Zg(e,t,r);return r&&Zx.symbolName(r)}(e,Zx.escapeLeadingUnderscores(t),r)},getSuggestedSymbolForNonexistentModule:$g,getSuggestionForNonexistentExport:function(e,t){t=$g(e,t);return t&&Zx.symbolName(t)},getBaseConstraintOfType:xs,getDefaultFromTypeParameter:function(e){return e&&262144&e.flags?ks(e):void 0},resolveName:function(e,t,r,n){return Nn(t,Zx.escapeLeadingUnderscores(e),r,void 0,void 0,!1,n)},getJsxNamespace:function(e){return Zx.unescapeLeadingUnderscores(cn(e))},getAccessibleSymbolChain:ji,getTypePredicateOfSignature:oc,resolveExternalModuleName:function(e){return ai(e,e,!0)},resolveExternalModuleSymbol:ui,tryGetThisTypeAt:function(e,t){return(e=Zx.getParseTreeNode(e))&&xf(e,t)},getTypeArgumentConstraint:function(e){e=Zx.getParseTreeNode(e,Zx.isTypeNode);return e&&function(e){var t=Zx.tryCast(e.parent,Zx.isTypeReferenceType);if(!t)return;var r=kh(t),e=ms(r[t.typeArguments.indexOf(e)]);return e&&Jl(e,bl(r,Ch(t,r)))}(e)},getSuggestionDiagnostics:function(e,t){if(Zx.skipTypeChecking(e,G,b))return Zx.emptyArray;var n;try{return f=t,kb(e),Zx.Debug.assert(!!(1&Sn(e).flags)),n=Zx.addRange(n,Yr.getDiagnostics(e.fileName)),Qh(Nb(e),function(e,t,r){Zx.containsParseError(e)||Eb(t,!!(8388608&e.flags))||(n=n||[]).push(__assign(__assign({},r),{category:Zx.DiagnosticCategory.Suggestion}))}),n||Zx.emptyArray}finally{f=void 0}},runWithCancellationToken:function(e,t){try{return f=e,t(fe)}finally{f=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Za,isDeclarationVisible:sa};function ge(e,t,r,n){e=Zx.getParseTreeNode(e,Zx.isCallLikeExpression);_e=r;n=e?Gm(e,t,n):void 0;return _e=void 0,n}var me=Zx.createMap(),ye=Zx.createMap(),he=Zx.createMap(),ve=Zx.createMap(),be=Zx.createMap(),xe=Zx.createMap(),De=[],Se=Zx.createMap(),Ce=pn(4,"unknown"),Te=pn(0,"__resolving__"),ke=Ai(1,"any"),Ee=Ai(1,"any"),Ne=Ai(1,"any"),Ae=Ai(1,"error"),Fe=Ai(1,"any",524288),Pe=Ai(2,"unknown"),we=Ai(32768,"undefined"),Ie=Q?we:Ai(32768,"undefined",524288),Oe=Ai(32768,"undefined"),Me=Ai(65536,"null"),Le=Q?Me:Ai(65536,"null",524288),Re=Ai(4,"string"),Be=Ai(8,"number"),je=Ai(64,"bigint"),Je=Ai(512,"false"),ze=Ai(512,"false"),Ue=Ai(512,"true"),Ve=Ai(512,"true");Ue.regularType=Ve,Ue.freshType=Ue,(Ve.regularType=Ve).freshType=Ue,Je.regularType=ze,Je.freshType=Je,(ze.regularType=ze).freshType=Je;var Ke=Fi([ze,Ve]);Fi([ze,Ue]),Fi([Je,Ve]),Fi([Je,Ue]);var qe=Ai(4096,"symbol"),We=Ai(16384,"void"),He=Ai(131072,"never"),Ge=Ai(131072,"never"),Qe=Ai(131072,"never",2097152),Xe=Ai(131072,"never"),Ye=Ai(131072,"never"),Ze=Ai(67108864,"object"),$e=gu([Re,Be,qe]),et=h?Re:$e,tt=gu([Be,je]),rt=Sl(function(e){return 262144&e.flags?(t=e).constraint===Pe?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=wi(t.symbol),t.restrictiveInstantiation.constraint=Pe,t.restrictiveInstantiation):e;var t}),nt=Sl(function(e){return 262144&e.flags?Ne:e}),it=Li(void 0,A,Zx.emptyArray,Zx.emptyArray,void 0,void 0),at=Li(void 0,A,Zx.emptyArray,Zx.emptyArray,void 0,void 0);at.objectFlags|=4096;var e=pn(2048,"__type");e.members=Zx.createSymbolTable();var ot=Li(e,A,Zx.emptyArray,Zx.emptyArray,void 0,void 0),st=Li(void 0,A,Zx.emptyArray,Zx.emptyArray,void 0,void 0);st.instantiations=Zx.createMap();var ct=Li(void 0,A,Zx.emptyArray,Zx.emptyArray,void 0,void 0);ct.objectFlags|=2097152;var ut=Li(void 0,A,Zx.emptyArray,Zx.emptyArray,void 0,void 0),lt=Li(void 0,A,Zx.emptyArray,Zx.emptyArray,void 0,void 0),_t=Li(void 0,A,Zx.emptyArray,Zx.emptyArray,void 0,void 0),dt=wi(),pt=wi();pt.constraint=dt;var ft,gt,mt,yt,ht,vt,bt,xt,Dt,St,Ct,Tt,kt,Et,Nt,At,Ft,Pt,wt,It,Ot,Mt,Lt,Rt,Bt,jt,Jt,zt,Ut,Vt,Kt,qt,Wt,Ht,Gt,Qt,Xt,Yt,Zt,$t,er,tr,rr,nr,ir,ar,or,sr=wi(),cr=Zs(1,"<<unresolved>>",0,ke),ur=Bo(void 0,void 0,void 0,Zx.emptyArray,ke,void 0,0,0),lr=Bo(void 0,void 0,void 0,Zx.emptyArray,Ae,void 0,0,0),_r=Bo(void 0,void 0,void 0,Zx.emptyArray,ke,void 0,0,0),dr=Bo(void 0,void 0,void 0,Zx.emptyArray,Ge,void 0,0,0),pr=vc(Re,!0),fr=Zx.createMap(),gr={get yieldType(){return Zx.Debug.fail("Not supported")},get returnType(){return Zx.Debug.fail("Not supported")},get nextType(){return Zx.Debug.fail("Not supported")}},mr=Nv(ke,ke,ke),yr=Nv(ke,ke,Pe),hr=Nv(He,ke,we),vr={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return(Ht=Ht||Gc("AsyncIterator",3,e))||st},getGlobalIterableType:function(e){return(Wt=Wt||Gc("AsyncIterable",1,e))||st},getGlobalIterableIteratorType:function(e){return(Gt=Gt||Gc("AsyncIterableIterator",1,e))||st},getGlobalGeneratorType:function(e){return(Qt=Qt||Gc("AsyncGenerator",3,e))||st},resolveIterationType:Rh,mustHaveANextMethodDiagnostic:Zx.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:Zx.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:Zx.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},br={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return(zt=zt||Gc("Iterator",3,e))||st},getGlobalIterableType:$c,getGlobalIterableIteratorType:function(e){return(Ut=Ut||Gc("IterableIterator",1,e))||st},getGlobalGeneratorType:function(e){return(Vt=Vt||Gc("Generator",3,e))||st},resolveIterationType:function(e,t){return e},mustHaveANextMethodDiagnostic:Zx.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:Zx.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:Zx.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},xr=Zx.createMap(),Dr=Zx.createMap(),Sr=0,Cr=0,Tr=0,kr=!1,Er=0,Nr=dl(""),Ar=dl(0),Fr=dl({negative:!1,base10Value:"0"}),Pr=[],wr=[],Ir=[],Or=0,Mr=10,Lr=[],Rr=[],Br=[],jr=[],Jr=[],zr=[],Ur=[],Vr=[],Kr=[],qr=[],Wr=[],Hr=[],Gr=[],Qr=[],Xr=Zx.createDiagnosticCollection(),Yr=Zx.createDiagnosticCollection(),Zr=Zx.createMapFromTemplate({string:Re,number:Be,bigint:je,boolean:Ke,symbol:qe,undefined:we}),$r=gu(Zx.arrayFrom(nD.keys(),dl)),en=Zx.createMap(),tn=Zx.createMap(),rn=Zx.createMap(),nn=Zx.createMap(),an=Zx.createMap(),on=Zx.createMap(),sn=Zx.createSymbolTable();return sn.set(ue.escapedName,ue),function(){for(var e,t=0,r=b.getSourceFiles();t<r.length;t++){var n=r[t];Zx.bindSourceFile(n,G)}ft=Zx.createMap();for(var i=0,a=b.getSourceFiles();i<a.length;i++)if(!(n=a[i]).redirectInfo){if(!Zx.isExternalOrCommonJsModule(n)){var o=n.locals.get("globalThis");if(o)for(var s=0,c=o.declarations;s<c.length;s++){var u=c[s];Xr.add(Zx.createDiagnosticForNode(u,Zx.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}bn(ce,n.locals)}n.jsGlobalAugmentations&&bn(ce,n.jsGlobalAugmentations),n.patternAmbientModules&&n.patternAmbientModules.length&&(mt=Zx.concatenate(mt,n.patternAmbientModules)),n.moduleAugmentations.length&&(e=e||[]).push(n.moduleAugmentations),n.symbol&&n.symbol.globalExports&&n.symbol.globalExports.forEach(function(e,t){ce.has(t)||ce.set(t,e)})}if(e)for(var l=0,_=e;l<_.length;l++)for(var d=_[l],p=0,f=d;p<f.length;p++){var g=f[p];Zx.isGlobalScopeAugmentation(g.parent)&&xn(g)}if(function(a,o){sn.forEach(function(e,t){var r,n,i=a.get(t);i?Zx.forEach(i.declarations,(r=Zx.unescapeLeadingUnderscores(t),n=o,function(e){return Xr.add(Zx.createDiagnosticForNode(e,n,r))})):a.set(t,e)})}(ce,Zx.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),Dn(ue).type=Ie,Dn(de).type=Gc("IArguments",0,!0),Dn(Ce).type=Ae,Dn(le).type=Pi(16,le),Dt=Gc("Array",1,!0),ht=Gc("Object",0,!0),vt=Gc("Function",0,!0),bt=D&&Gc("CallableFunction",0,!0)||vt,xt=D&&Gc("NewableFunction",0,!0)||vt,Ct=Gc("String",0,!0),Tt=Gc("Number",0,!0),kt=Gc("Boolean",0,!0),Et=Gc("RegExp",0,!0),At=nu(ke),(Ft=nu(Ee))===it&&(Ft=Li(void 0,A,Zx.emptyArray,Zx.emptyArray,void 0,void 0)),St=eu("ReadonlyArray",1)||Dt,Pt=St?tu(St,[ke]):At,Nt=eu("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];Zx.isGlobalScopeAugmentation(g.parent)||xn(g)}ft.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?Zx.Diagnostics.Cannot_redeclare_block_scoped_variable_0:Zx.Diagnostics.Duplicate_identifier_0,o=0,s=n;o<s.length;o++)vn(s[o],a,t,i);for(var c=0,u=i;c<u.length;c++)vn(u[c],a,t,n)}):(e=Zx.arrayFrom(e.keys()).join(", "),Xr.add(Zx.addRelatedInfo(Zx.createDiagnosticForNode(t,Zx.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,e),Zx.createDiagnosticForNode(r,Zx.Diagnostics.Conflicts_are_in_this_file))),Xr.add(Zx.addRelatedInfo(Zx.createDiagnosticForNode(r,Zx.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,e),Zx.createDiagnosticForNode(t,Zx.Diagnostics.Conflicts_are_in_this_file))))}),ft=void 0}(),fe;function cn(e){if(e){var t=Zx.getSourceFileOfNode(e);if(t){if(t.localJsxNamespace)return t.localJsxNamespace;e=t.pragmas.get("jsx");if(e){e=Zx.isArray(e)?e[0]:e;if(t.localJsxFactory=Zx.parseIsolatedEntityName(e.arguments.factory,M),Zx.visitNode(t.localJsxFactory,r),t.localJsxFactory)return t.localJsxNamespace=Zx.getFirstIdentifier(t.localJsxFactory).escapedText}}}return ir||(ir="React",G.jsxFactory?(ar=Zx.parseIsolatedEntityName(G.jsxFactory,M),Zx.visitNode(ar,r),ar&&(ir=Zx.getFirstIdentifier(ar).escapedText)):G.reactNamespace&&(ir=Zx.escapeLeadingUnderscores(G.reactNamespace))),ar=ar||Zx.createQualifiedName(Zx.createIdentifier(Zx.unescapeLeadingUnderscores(ir)),"createElement"),ir;function r(e){return e.pos=-1,e.end=-1,Zx.visitEachChild(e,r,Zx.nullTransformationContext)}}function un(e,t,r,n,i,a){a=e?Zx.createDiagnosticForNode(e,t,r,n,i,a):Zx.createCompilerDiagnostic(t,r,n,i,a);return Xr.add(a),a}function ln(e,t){e?Xr.add(t):Yr.add(__assign(__assign({},t),{category:Zx.DiagnosticCategory.Suggestion}))}function _n(e,t,r,n,i,a,o){ln(e,"message"in r?Zx.createDiagnosticForNode(t,r,n,i,a,o):Zx.createDiagnosticForNodeFromMessageChain(t,r))}function dn(e,t,r,n,i,a,o){o=un(e,r,n,i,a,o);return t&&(e=Zx.createDiagnosticForNode(e,Zx.Diagnostics.Did_you_forget_to_use_await),Zx.addRelatedInfo(o,e)),o}function pn(e,t,r){i++;t=new n(33554432|e,t);return t.checkFlags=r||0,t}function fn(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 gn(e,t){t.mergeId||(t.mergeId=tD,tD++),Lr[t.mergeId]=e}function mn(e){var t=pn(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=Zx.cloneMap(e.members)),e.exports&&(t.exports=Zx.cloneMap(e.exports)),gn(t,e),t}function yn(e,t,r){if(void 0===r&&(r=!1),!(e.flags&fn(t.flags))||67108864&(t.flags|e.flags)){if(t===e)return e;if(!(33554432&e.flags)){var n=Gn(e);if(n===Ce)return t;e=mn(n)}512&t.flags&&512&e.flags&&e.constEnumOnlyModule&&!t.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=t.flags,t.valueDeclaration&&Zx.setValueDeclaration(e,t.valueDeclaration),Zx.addRange(e.declarations,t.declarations),t.members&&(e.members||(e.members=Zx.createSymbolTable()),bn(e.members,t.members,r)),t.exports&&(e.exports||(e.exports=Zx.createSymbolTable()),bn(e.exports,t.exports,r)),r||gn(e,t)}else{var i,a,o,s,c,u;1024&e.flags?e!==le&&un(Zx.getNameOfDeclaration(t.declarations[0]),Zx.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Qi(e)):(i=!!(384&e.flags||384&t.flags),a=!!(2&e.flags||2&t.flags),o=i?Zx.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:a?Zx.Diagnostics.Cannot_redeclare_block_scoped_variable_0:Zx.Diagnostics.Duplicate_identifier_0,u=t.declarations&&Zx.getSourceFileOfNode(t.declarations[0]),n=e.declarations&&Zx.getSourceFileOfNode(e.declarations[0]),r=Qi(t),u&&n&&ft&&!i&&u!==n?(s=-1===Zx.comparePaths(u.path,n.path)?u:n,c=s===u?n:u,u=Zx.getOrUpdate(ft,s.path+"|"+c.path,function(){return{firstFile:s,secondFile:c,conflictingSymbols:Zx.createMap()}}),l((u=Zx.getOrUpdate(u.conflictingSymbols,r,function(){return{isBlockScoped:a,firstFileLocations:[],secondFileLocations:[]}})).firstFileLocations,t),l(u.secondFileLocations,e)):(hn(t,o,r,e),hn(e,o,r,t)))}return e;function l(e,t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];Zx.pushIfUnique(e,i)}}}function hn(e,t,r,n){Zx.forEach(e.declarations,function(e){vn(e,t,r,n.declarations)})}function vn(e,t,n,r){for(var i,a,o,s,c=(Zx.getExpandoInitializer(e,!1)?Zx.getNameOfExpando(e):Zx.getNameOfDeclaration(e))||e,u=(i=t,e=n,o=(t=c)?Zx.createDiagnosticForNode(t,i,e,a,o,s):Zx.createCompilerDiagnostic(i,e,a,o,s),(s=Xr.lookup(o))||(Xr.add(o),o)),l=0,_=r||Zx.emptyArray;l<_.length;l++)!function(e){var t,r;(e=(Zx.getExpandoInitializer(e,!1)?Zx.getNameOfExpando(e):Zx.getNameOfDeclaration(e))||e)!==c&&(u.relatedInformation=u.relatedInformation||[],t=Zx.createDiagnosticForNode(e,Zx.Diagnostics._0_was_also_declared_here,n),r=Zx.createDiagnosticForNode(e,Zx.Diagnostics.and_here),5<=Zx.length(u.relatedInformation)||Zx.some(u.relatedInformation,function(e){return 0===Zx.compareDiagnostics(e,r)||0===Zx.compareDiagnostics(e,t)})||Zx.addRelatedInfo(u,Zx.length(u.relatedInformation)?r:t))}(_[l])}function bn(n,e,i){void 0===i&&(i=!1),e.forEach(function(e,t){var r=n.get(t);n.set(t,r?yn(r,e,i):e)})}function xn(e){var t,r=e.parent;if(r.symbol.declarations[0]===r)if(Zx.isGlobalScopeAugmentation(r))bn(ce,r.symbol.exports);else{var n=oi(e,e,8388608&e.parent.parent.flags?void 0:Zx.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(n)if(1920&(n=ui(n)).flags)if(Zx.some(mt,function(e){return n===e.symbol})){var i=yn(r.symbol,n,!0);(yt=yt||Zx.createMap()).set(e.text,i)}else{if(null!==(i=n.exports)&&void 0!==i&&i.get("__export")&&null!==(t=r.symbol.exports)&&void 0!==t&&t.size)for(var a=Io(n,"resolvedExports"),o=0,s=Zx.arrayFrom(r.symbol.exports.entries());o<s.length;o++){var c=s[o],u=c[0],c=c[1];a.has(u)&&!n.exports.has(u)&&yn(a.get(u),c)}yn(n,r.symbol)}else un(e,Zx.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else Zx.Debug.assert(1<r.symbol.declarations.length)}function Dn(e){if(33554432&e.flags)return e;e=lD(e);return Rr[e]||(Rr[e]=new sD)}function Sn(e){e=uD(e);return Br[e]||(Br[e]=new cD)}function Cn(e){return 290===e.kind&&!Zx.isExternalOrCommonJsModule(e)}function Tn(e,t,r){if(r){e=hi(e.get(t));if(e){if(Zx.Debug.assert(0==(1&Zx.getCheckFlags(e)),"Should never get an instantiated symbol here."),e.flags&r)return e;if(2097152&e.flags){t=Qn(e);if(t===Ce||t.flags&r)return e}}}}function kn(t,e){var r=Zx.getSourceFileOfNode(t),n=Zx.getSourceFileOfNode(e),i=Zx.getEnclosingBlockScopeContainer(t);if(r!==n){if(x&&(r.externalModuleIndicator||n.externalModuleIndicator)||!G.outFile&&!G.out||lp(e)||8388608&t.flags)return!0;if(o(e,t))return!0;var a=b.getSourceFiles();return a.indexOf(r)<=a.indexOf(n)}if(t.pos<=e.pos){if(191!==t.kind)return 242===t.kind?!function(e,t){switch(e.parent.parent.kind){case 225:case 230:case 232:if(In(t,e,i))return!0}var r=e.parent.parent;return Zx.isForInOrOfStatement(r)&&In(t,r.expression,i)}(t,e):Zx.isClassDeclaration(t)?!Zx.findAncestor(e,function(e){return Zx.isComputedPropertyName(e)&&e.parent.parent===t}):Zx.isPropertyDeclaration(t)?!s(t,e,!1):!Zx.isParameterPropertyDeclaration(t,t.parent)||!(99===G.target&&G.useDefineForClassFields&&Zx.getContainingClass(t)===Zx.getContainingClass(e)&&o(e,t));n=Zx.getAncestor(e,191);return n?Zx.findAncestor(n,Zx.isBindingElement)!==Zx.findAncestor(t,Zx.isBindingElement)||t.pos<n.pos:kn(Zx.getAncestor(t,242),e)}return!!(263===e.parent.kind||259===e.parent.kind&&e.parent.isExportEquals)||(!(259!==e.kind||!e.isExportEquals)||(!!(4194304&e.flags||lp(e)||Zx.findAncestor(e,function(e){return Zx.isInterfaceDeclaration(e)||Zx.isTypeAliasDeclaration(e)}))||!!o(e,t)&&(99!==G.target||!G.useDefineForClassFields||!Zx.getContainingClass(t)||!Zx.isPropertyDeclaration(t)&&!Zx.isParameterPropertyDeclaration(t,t.parent)||!s(t,e,!0))));function o(r,n){return Zx.findAncestor(r,function(e){if(e===i)return"quit";if(Zx.isFunctionLike(e))return!0;var t=e.parent&&159===e.parent.kind&&e.parent.initializer===e;if(t)if(Zx.hasModifier(e.parent,32)){if(161===n.kind)return!0}else if(!(159===n.kind&&!Zx.hasModifier(n,32))||Zx.getContainingClass(r)!==Zx.getContainingClass(n))return!0;return!1})}function s(t,e,r){return!(e.end>t.end)&&void 0===Zx.findAncestor(e,function(e){if(e===t)return"quit";switch(e.kind){case 202:return!0;case 159:return!r||!(Zx.isPropertyDeclaration(t)&&e.parent===t.parent||Zx.isParameterPropertyDeclaration(t,t.parent)&&e.parent===t.parent.parent)||"quit";case 223:switch(e.parent.kind){case 163:case 161:case 164:return!0;default:return!1}default:return!1}})}}function En(e,t,r){var n=Zx.getEmitScriptTarget(G),t=t;if(Zx.isParameter(r)&&t.body&&e.valueDeclaration.pos>=t.body.pos&&e.valueDeclaration.end<=t.body.end&&2<=n){e=Sn(t);return void 0===e.declarationRequiresScopeChange&&(e.declarationRequiresScopeChange=Zx.forEach(t.parameters,function(e){return i(e.name)||!!e.initializer&&i(e.initializer)})||!1),!e.declarationRequiresScopeChange}function i(e){switch(e.kind){case 202:case 201:case 244:case 162:return!1;case 161:case 163:case 164:case 281:return i(e.name);case 159:return Zx.hasStaticModifier(e)?n<99||!G.useDefineForClassFields:i(e.name);default:return Zx.isNullishCoalesce(e)||Zx.isOptionalChain(e)?n<7:Zx.isBindingElement(e)&&e.dotDotDotToken&&Zx.isObjectBindingPattern(e.parent)?n<4:!Zx.isTypeNode(e)&&Zx.forEachChild(e,i)||!1}}}function Nn(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),An(e,t,r,n,i,a,o,Tn,s)}function An(e,t,r,n,i,a,o,s,c){var u,l,_,d,p,f,g,m,y,h,v=e,b=!1,x=e,D=!1;e:for(;e;){if(e.locals&&!Cn(e)&&(u=s(e.locals,t,r))){var S=!0;if(Zx.isFunctionLike(e)&&l&&l!==e.body?(r&u.flags&788968&&303!==l.kind&&(S=!!(262144&u.flags)&&(l===e.type||156===l.kind||155===l.kind)),r&u.flags&3&&(En(u,e,l)?S=!1:1&u.flags&&(S=156===l.kind||l===e.type&&!!Zx.findAncestor(u.valueDeclaration,Zx.isParameter)))):180===e.kind&&(S=l===e.trueType),S)break e;u=void 0}switch(b=b||function(e,t){if(202!==e.kind&&201!==e.kind)return Zx.isTypeQueryNode(e)||(Zx.isFunctionLikeDeclaration(e)||159===e.kind&&!Zx.hasModifier(e,32))&&(!t||t!==e.name);if(t&&t===e.name)return!1;if(e.asteriskToken||Zx.hasModifier(e,256))return!0;return!Zx.getImmediatelyInvokedFunctionExpression(e)}(e,l),e.kind){case 290:if(!Zx.isExternalOrCommonJsModule(e))break;D=!0;case 249:var C=vi(e).exports||A;if(290===e.kind||Zx.isModuleDeclaration(e)&&8388608&e.flags&&!Zx.isGlobalScopeAugmentation(e)){if(u=C.get("default")){var T=Zx.getLocalSymbolForExportDefault(u);if(T&&u.flags&r&&T.escapedName===t)break e;u=void 0}T=C.get(t);if(T&&2097152===T.flags&&(Zx.getDeclarationOfKind(T,263)||Zx.getDeclarationOfKind(T,262)))break}if("default"!==t&&(u=s(C,t,2623475&r))){if(!Zx.isSourceFile(e)||!e.commonJsModuleIndicator||u.declarations.some(Zx.isJSDocTypeAlias))break e;u=void 0}break;case 248:if(u=s(vi(e).exports,t,8&r))break e;break;case 159:Zx.hasModifier(e,32)||(C=Ei(e.parent))&&C.locals&&s(C.locals,t,111551&r)&&(d=e);break;case 245:case 214:case 246:if(u=s(vi(e).members||A,t,788968&r)){if(!function(e,t){for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r];if(155===i.kind)if((Zx.isJSDocTemplateTag(i.parent)?Zx.getJSDocHost(i.parent):i.parent)===t)return!(Zx.isJSDocTemplateTag(i.parent)&&Zx.find(i.parent.parent.tags,Zx.isJSDocTypeAlias))}return!1}(u,e)){u=void 0;break}if(l&&Zx.hasModifier(l,32))return void un(x,Zx.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(214===e.kind&&32&r){var k=e.name;if(k&&t===k.escapedText){u=e.symbol;break e}}break;case 216:if(l===e.expression&&90===e.parent.token){k=e.parent.parent;if(Zx.isClassLike(k)&&(u=s(vi(k).members,t,788968&r)))return void(n&&un(x,Zx.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 154:if(E=e.parent.parent,(Zx.isClassLike(E)||246===E.kind)&&(u=s(vi(E).members,t,788968&r)))return void un(x,Zx.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 202:if(2<=G.target)break;case 161:case 162:case 163:case 164:case 244:if(3&r&&"arguments"===t){u=de;break e}break;case 201:if(3&r&&"arguments"===t){u=de;break e}if(16&r){var E=e.name;if(E&&t===E.escapedText){u=e.symbol;break e}}break;case 157:e.parent&&156===e.parent.kind&&(e=e.parent),e.parent&&(Zx.isClassElement(e.parent)||245===e.parent.kind)&&(e=e.parent);break;case 322:case 315:case 316:e=Zx.getJSDocHost(e);break;case 156:l&&(l===e.initializer||l===e.name&&Zx.isBindingPattern(l))&&(p=p||e);break;case 191:l&&(l===e.initializer||l===e.name&&Zx.isBindingPattern(l))&&156===(f=Zx.getRootDeclaration(e)).kind&&(p=p||e)}!function(e){switch(e.kind){case 244:case 245:case 246:case 248:case 247:case 249:return!0;default:return!1}}(e)||(_=e),e=(l=e).parent}if(!a||!u||_&&u===_.symbol||(u.isReferenced|=r),!u){if(l&&(Zx.Debug.assert(290===l.kind),l.commonJsModuleIndicator&&"exports"===t&&r&l.symbol.flags))return l.symbol;o||(u=s(ce,t,r))}if(!u&&v&&Zx.isInJSFile(v)&&v.parent&&Zx.isRequireCall(v.parent,!1))return pe;if(u){if(n){if(d&&(99!==G.target||!G.useDefineForClassFields)){var N=d.name;return void un(x,Zx.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Zx.declarationNameToString(N),Fn(i))}x&&(2&r||(32&r||384&r)&&111551==(111551&r))&&(2&(g=Ti(u)).flags||32&g.flags||384&g.flags)&&function(e,t){if(Zx.Debug.assert(!!(2&e.flags||32&e.flags||384&e.flags)),!(67108881&e.flags&&32&e.flags)){var r,n,i=Zx.find(e.declarations,function(e){return Zx.isBlockOrCatchScoped(e)||Zx.isClassLike(e)||248===e.kind});if(void 0===i)return Zx.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");8388608&i.flags||kn(i,t)||(r=void 0,n=Zx.declarationNameToString(Zx.getNameOfDeclaration(i)),2&e.flags?r=un(t,Zx.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,n):32&e.flags?r=un(t,Zx.Diagnostics.Class_0_used_before_its_declaration,n):256&e.flags?r=un(t,Zx.Diagnostics.Enum_0_used_before_its_declaration,n):(Zx.Debug.assert(!!(128&e.flags)),G.preserveConstEnums&&(r=un(t,Zx.Diagnostics.Class_0_used_before_its_declaration,n))),r&&Zx.addRelatedInfo(r,Zx.createDiagnosticForNode(i,Zx.Diagnostics._0_is_declared_here,n)))}}(g,x),!u||!D||111551!=(111551&r)||4194304&v.flags||(m=hi(u),Zx.length(m.declarations)&&Zx.every(m.declarations,function(e){return Zx.isNamespaceExportDeclaration(e)||Zx.isSourceFile(e)&&!!e.symbol.globalExports})&&_n(!G.allowUmdGlobalAccess,x,Zx.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Zx.unescapeLeadingUnderscores(t))),u&&p&&!b&&111551==(111551&r)&&(y=hi(Mo(u)),f=Zx.getRootDeclaration(p),y===vi(p)?un(x,Zx.Diagnostics.Parameter_0_cannot_reference_itself,Zx.declarationNameToString(p.name)):y.valueDeclaration&&y.valueDeclaration.pos>p.pos&&f.parent.locals&&s(f.parent.locals,y.escapedName,r)===y&&un(x,Zx.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,Zx.declarationNameToString(p.name),Zx.declarationNameToString(x))),u&&x&&111551&r&&2097152&u.flags&&(N=u,h=t,g=x,Zx.isValidTypeOnlyAliasUseSite(g)||(m=Zn(N))&&(y=Zx.typeOnlyDeclarationIsExport(m),N=y?Zx.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:Zx.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,y=y?Zx.Diagnostics._0_was_exported_here:Zx.Diagnostics._0_was_imported_here,h=Zx.unescapeLeadingUnderscores(h),Zx.addRelatedInfo(un(g,N,h),Zx.createDiagnosticForNode(m,y,h))))}return u}n&&(x&&(function(e,t,r){if(!Zx.isIdentifier(e)||e.escapedText!==t||wb(e)||lp(e))return!1;var n=Zx.getThisContainer(e,!1),i=n;for(;i;){if(Zx.isClassLike(i.parent)){var a=vi(i.parent);if(!a)break;if(Bs(qa(a),t))return un(e,Zx.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Fn(r),Qi(a)),!0;if(i===n&&!Zx.hasModifier(i,32))if(Bs(mo(a).thisType,t))return un(e,Zx.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Fn(r)),!0}i=i.parent}return!1}(x,t,i)||Pn(x)||function(e,t,r){var n=1920|(Zx.isInJSFile(e)?111551:0);if(r===n){var i=Gn(Nn(e,t,788968&~n,void 0,void 0,!1)),r=e.parent;if(i){if(Zx.isQualifiedName(r)){Zx.Debug.assert(r.left===e,"Should only be resolving left side of qualified name as a namespace");n=r.right.escapedText;if(Bs(mo(i),n))return un(r,Zx.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,Zx.unescapeLeadingUnderscores(t),Zx.unescapeLeadingUnderscores(n)),!0}return un(e,Zx.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Zx.unescapeLeadingUnderscores(t)),!0}}return!1}(x,t,r)||function(e,t){if(wn(t)&&263===e.parent.kind)return un(e,Zx.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0;return!1}(x,t)||function(e,t,r){if(111551&r){if(wn(t))return un(e,Zx.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Zx.unescapeLeadingUnderscores(t)),!0;r=Gn(Nn(e,t,788544,void 0,void 0,!1));if(r&&!(1024&r.flags)){r=function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?Zx.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:Zx.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here;return un(e,r,Zx.unescapeLeadingUnderscores(t)),!0}}return!1}(x,t,r)||function(e,t,r){if(111127&r){if(Gn(Nn(e,t,1024,void 0,void 0,!1)))return un(e,Zx.Diagnostics.Cannot_use_namespace_0_as_a_value,Zx.unescapeLeadingUnderscores(t)),!0}else if(788544&r)if(Gn(Nn(e,t,1536,void 0,void 0,!1)))return un(e,Zx.Diagnostics.Cannot_use_namespace_0_as_a_type,Zx.unescapeLeadingUnderscores(t)),!0;return!1}(x,t,r)||function(e,t,r){if(788584&r){r=Gn(Nn(e,t,111127,void 0,void 0,!1));if(r&&!(1920&r.flags))return un(e,Zx.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Zx.unescapeLeadingUnderscores(t)),!0}return!1}(x,t,r))||(h=void 0,c&&Or<Mr&&(h=Zg(v,t,r))&&(v=Qi(h),c=un(x,c,Fn(i),v),h.valueDeclaration&&Zx.addRelatedInfo(c,Zx.createDiagnosticForNode(h.valueDeclaration,Zx.Diagnostics._0_is_declared_here,v))),h||un(x,n,Fn(i)),Or++))}function Fn(e){return Zx.isString(e)?Zx.unescapeLeadingUnderscores(e):Zx.declarationNameToString(e)}function Pn(e){var t=function e(t){switch(t.kind){case 75:case 194:return t.parent?e(t.parent):void 0;case 216:if(Zx.isEntityNameExpression(t.expression))return t.expression;default:return}}(e);return t&&ni(t,64,!0)&&(un(e,Zx.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,Zx.getTextOfNode(t)),1)}function wn(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function In(e,t,r){return!!t&&!!Zx.findAncestor(e,function(e){return e===r||Zx.isFunctionLike(e)?"quit":e===t})}function On(e){switch(e.kind){case 253:return e;case 255:return e.parent;case 256:return e.parent.parent;case 258:return e.parent.parent.parent;default:return}}function Mn(e){return Zx.find(e.declarations,Ln)}function Ln(e){return 253===e.kind||252===e.kind||255===e.kind&&!!e.name||256===e.kind||262===e.kind||258===e.kind||263===e.kind||259===e.kind&&Zx.exportAssignmentIsAlias(e)||Zx.isBinaryExpression(e)&&2===Zx.getAssignmentDeclarationKind(e)&&Zx.exportAssignmentIsAlias(e)||Zx.isPropertyAccessExpression(e)&&Zx.isBinaryExpression(e.parent)&&e.parent.left===e&&62===e.parent.operatorToken.kind&&Rn(e.parent.right)||282===e.kind||281===e.kind&&Rn(e.initializer)}function Rn(e){return Zx.isAliasableExpression(e)||Zx.isFunctionExpression(e)&&Qm(e)}function Bn(e,t){if(265===e.moduleReference.kind){var r=ai(e,Zx.getExternalModuleImportEqualsDeclarationExpression(e)),n=ui(r);return Xn(e,r,n,!1),n}var i,a=ti(e.moduleReference,t);return Xn(i=e,void 0,r=a,!1)&&(n=Zn(vi(i)),t=Zx.typeOnlyDeclarationIsExport(n),e=t?Zx.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:Zx.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,r=t?Zx.Diagnostics._0_was_exported_here:Zx.Diagnostics._0_was_imported_here,t=Zx.unescapeLeadingUnderscores(n.name.escapedText),Zx.addRelatedInfo(un(i.moduleReference,e),Zx.createDiagnosticForNode(n,r,t))),a}function jn(e,t,r,n){var i=e.exports.get("export=");if(i)return Bs(qa(i),t);t=e.exports.get(t),n=Gn(t,n);return Xn(r,t,n,!1),n}function Jn(e){return Zx.isExportAssignment(e)&&!e.isExportEquals||Zx.hasModifier(e,512)||Zx.isExportSpecifier(e)}function zn(e,t,r){if(!m)return!1;if(e&&!e.isDeclarationFile)return Zx.isSourceFileJS(e)?!e.externalModuleIndicator&&!jn(t,Zx.escapeLeadingUnderscores("__esModule"),void 0,r):_i(t);e=jn(t,"default",void 0,!0);return(!e||!Zx.some(e.declarations,Jn))&&!jn(t,Zx.escapeLeadingUnderscores("__esModule"),void 0,r)}function Un(e,t){var r=ai(e,e.parent.moduleSpecifier);if(r){var n,i,a=void 0,a=Zx.isShorthandAmbientModuleSymbol(r)?r:jn(r,"default",e,t),o=zn(Zx.find(r.declarations,Zx.isSourceFile),r,t);if(a||o){if(o){var s=ui(r,t)||Gn(r,t);return Xn(e,r,s,!1),s}}else _i(r)?(n=x>=Zx.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",i=r.exports.get("export=").valueDeclaration,s=un(e.name,Zx.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Qi(r),n),Zx.addRelatedInfo(s,Zx.createDiagnosticForNode(i,Zx.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)?un(i.name,Zx.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Qi(n),Qi(i.symbol)):(i=un(i.name,Zx.Diagnostics.Module_0_has_no_default_export,Qi(n)),!(n=null===(n=n.exports)||void 0===n?void 0:n.get("__export"))||(n=Zx.find(n.declarations,function(e){var t;return!!(Zx.isExportDeclaration(e)&&e.moduleSpecifier&&null!==(t=null===(t=ai(e,e.moduleSpecifier))||void 0===t?void 0:t.exports)&&void 0!==t&&t.has("default"))}))&&Zx.addRelatedInfo(i,Zx.createDiagnosticForNode(n,Zx.Diagnostics.export_Asterisk_does_not_re_export_a_default))));return Xn(e,a,void 0,!1),a}}function Vn(e,t,r){void 0===r&&(r=!1);var n,i,a=ai(e,e.moduleSpecifier),o=t.propertyName||t.name,s="default"===o.escapedText&&!(!G.allowSyntheticDefaultImports&&!G.esModuleInterop),c=li(a,e.moduleSpecifier,r,s);if(c&&o.escapedText){if(Zx.isShorthandAmbientModuleSymbol(a))return a;var u=void 0,u=a&&a.exports&&a.exports.get("export=")?Bs(qa(c),o.escapedText):function(e,t){if(3&e.flags){e=e.valueDeclaration.type;if(e)return Gn(Bs(gl(e),t))}}(c,o.escapedText);u=Gn(u,r);var s=function(e,t,r){if(1536&e.flags){var n=(null!==(n=t.propertyName)&&void 0!==n?n:t.name).escapedText,n=fi(e).get(n),r=Gn(n,r);return Xn(t,n,r,!1),r}}(c,t,r);void 0===s&&"default"===o.escapedText&&zn(Zx.find(a.declarations,Zx.isSourceFile),a,r)&&(s=ui(a,r)||Gn(a,r));var l,t=s&&u&&s!==u?function(e,t){if(e===Ce&&t===Ce)return Ce;if(790504&e.flags)return e;var r=pn(e.flags|t.flags,e.escapedName);return r.declarations=Zx.deduplicate(Zx.concatenate(e.declarations,t.declarations),Zx.equateValues),r.parent=e.parent||t.parent,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),t.members&&(r.members=Zx.cloneMap(t.members)),e.exports&&(r.exports=Zx.cloneMap(e.exports)),r}(u,s):s||u;return t||(r=ri(a,e),s=Zx.declarationNameToString(o),void 0!==(u=$g(o,c))?(l=Qi(u),c=un(o,Zx.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2,r,s,l),u.valueDeclaration&&Zx.addRelatedInfo(c,Zx.createDiagnosticForNode(u.valueDeclaration,Zx.Diagnostics._0_is_declared_here,l))):null!==(l=a.exports)&&void 0!==l&&l.has("default")?un(o,Zx.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,r,s):(e=e,o=o,n=s,s=r,i=null===(a=(r=a).valueDeclaration.locals)||void 0===a?void 0:a.get(o.escapedText),a=r.exports,i?(r=null==a?void 0:a.get("export="))?Ci(r,i)?function(e,t,r,n){var i;x>=Zx.ModuleKind.ES2015?(i=G.esModuleInterop?Zx.Diagnostics._0_can_only_be_imported_by_using_a_default_import:Zx.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,un(t,i,r)):Zx.isInJSFile(e)?(i=G.esModuleInterop?Zx.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:Zx.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,un(t,i,r)):(i=G.esModuleInterop?Zx.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:Zx.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,un(t,i,r,r,n))}(e,o,n,s):un(o,Zx.Diagnostics.Module_0_has_no_exported_member_1,s,n):(a=(a=a?Zx.find(Hs(a),function(e){return!!Ci(e,i)}):void 0)?un(o,Zx.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,s,n,Qi(a)):un(o,Zx.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,s,n),Zx.addRelatedInfo.apply(void 0,__spreadArrays([a],Zx.map(i.declarations,function(e,t){return Zx.createDiagnosticForNode(e,0===t?Zx.Diagnostics._0_is_declared_here:Zx.Diagnostics.and_here,n)})))):un(o,Zx.Diagnostics.Module_0_has_no_exported_member_1,s,n))),t}}function Kn(e,t,r){r=e.parent.parent.moduleSpecifier?Vn(e.parent.parent,e,r):ni(e.propertyName||e.name,t,!1,r);return Xn(e,void 0,r,!1),r}function qn(e,t){if(Zx.isClassExpression(e))return Yy(e).symbol;if(Zx.isEntityName(e)||Zx.isEntityNameExpression(e)){t=ni(e,901119,!0,t);return t?t:(Yy(e),Sn(e).resolvedSymbol)}}function Wn(e,t){switch(void 0===t&&(t=!1),e.kind){case 253:return Bn(e,t);case 255:return Un(e,t);case 256:return s=t,c=(o=e).parent.parent.moduleSpecifier,u=ai(o,c),s=li(u,c,s,!1),Xn(o,u,s,!1),s;case 262:return a=t,u=(o=e).parent.moduleSpecifier,s=u&&ai(o,u),a=u&&li(s,u,a,!1),Xn(o,s,a,!1),a;case 258:return i=t,i=Vn((a=e).parent.parent.parent,a,i),Xn(a,void 0,i,!1),i;case 263:return Kn(e,901119,t);case 259:case 209:return i=e,n=t,n=qn(Zx.isExportAssignment(i)?i.expression:i.right,n),Xn(i,void 0,n,!1),n;case 252:return r=t,r=ui((n=e).parent.symbol,r),Xn(n,void 0,r,!1),r;case 282:return ni(e.name,901119,!0,t);case 281:return r=t,qn(e.initializer,r);case 194:return function(e,t){if(Zx.isBinaryExpression(e.parent)&&e.parent.left===e&&62===e.parent.operatorToken.kind)return qn(e.parent.right,t)}(e,t);default:return Zx.Debug.fail()}var r,n,i,a,o,s,c,u}function Hn(e,t){return void 0===t&&(t=901119),e&&(2097152==(e.flags&(2097152|t))||2097152&e.flags&&67108864&e.flags)}function Gn(e,t){return!t&&Hn(e)?Qn(e):e}function Qn(e){Zx.Debug.assert(0!=(2097152&e.flags),"Should only get Alias here.");var t=Dn(e);if(t.target)t.target===Te&&(t.target=Ce);else{t.target=Te;var r=Mn(e);if(!r)return Zx.Debug.fail();var n=Wn(r);t.target===Te?t.target=n||Ce:un(r,Zx.Diagnostics.Circular_definition_of_import_alias_0,Qi(e))}return t.target}function Xn(e,t,r,n){if(e){var i=vi(e);if(Zx.isTypeOnlyImportOrExportDeclaration(e))return Dn(i).typeOnlyDeclaration=e,1;i=Dn(i);return Yn(i,t,n)||Yn(i,r,n)}}function Yn(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&&Zx.find(r.declarations,Zx.isTypeOnlyImportOrExportDeclaration),e.typeOnlyDeclaration=null!==(r=null!=t?t:Dn(r).typeOnlyDeclaration)&&void 0!==r&&r),!!e.typeOnlyDeclaration}function Zn(e){if(2097152&e.flags)return Dn(e).typeOnlyDeclaration||void 0}function $n(e){var t=vi(e),e=Qn(t);e&&(e===Ce||111551&e.flags&&!ex(e)&&!Zn(t))&&ei(t)}function ei(e){var t=Dn(e);if(!t.referenced){t.referenced=!0;t=Mn(e);if(!t)return Zx.Debug.fail();!Zx.isInternalModuleImportEqualsDeclaration(t)||((e=Gn(e))===Ce||111551&e.flags)&&Yy(t.moduleReference)}}function ti(e,t){return 75===e.kind&&Zx.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent),75===e.kind||153===e.parent.kind?ni(e,1920,!1,t):(Zx.Debug.assert(253===e.parent.kind),ni(e,901119,!1,t))}function ri(e,t){return e.parent?ri(e.parent,t)+"."+Qi(e):Qi(e,t,void 0,20)}function ni(e,t,r,n,i){if(!Zx.nodeIsMissing(e)){var a=1920|(Zx.isInJSFile(e)?111551&t:0);if(75===e.kind){var o,s=t===a||Zx.nodeIsSynthesized(e)?Zx.Diagnostics.Cannot_find_namespace_0:cp(Zx.getFirstIdentifier(e)),c=Zx.isInJSFile(e)&&!Zx.nodeIsSynthesized(e)?function(e,t){if(jc(e.parent)){var r=function(e){if(Zx.findAncestor(e,function(e){return Zx.isJSDocNode(e)||4194304&e.flags?Zx.isJSDocTypeAlias(e):"quit"}))return;var t=Zx.getJSDocHost(e);if(Zx.isExpressionStatement(t)&&Zx.isBinaryExpression(t.expression)&&3===Zx.getAssignmentDeclarationKind(t.expression))if(r=vi(t.expression.left))return ii(r);if((Zx.isObjectLiteralMethod(t)||Zx.isPropertyAssignment(t))&&Zx.isBinaryExpression(t.parent.parent)&&6===Zx.getAssignmentDeclarationKind(t.parent.parent))if(r=vi(t.parent.parent.left))return ii(r);e=Zx.getEffectiveJSDocHost(e);if(e&&Zx.isFunctionLike(e)){var r;return(r=vi(e))&&r.valueDeclaration}}(e.parent);if(r)return Nn(r,e.escapedText,t,void 0,e,!0)}}(e,t):void 0;if(!(o=hi(Nn(i||e,e.escapedText,t,r||c?void 0:s,e,!0))))return hi(c)}else{if(153!==e.kind&&194!==e.kind)throw Zx.Debug.assertNever(e,"Unknown entity name kind.");s=153===e.kind?e.left:e.expression,c=153===e.kind?e.right:e.name,a=ni(s,a,r,!1,i);if(!a||Zx.nodeIsMissing(c))return;if(a===Ce)return a;if(Zx.isInJSFile(e)&&a.valueDeclaration&&Zx.isVariableDeclaration(a.valueDeclaration)&&a.valueDeclaration.initializer&&ty(a.valueDeclaration.initializer)&&(!(i=ai(i=a.valueDeclaration.initializer.arguments[0],i))||(i=ui(i))&&(a=i)),!(o=hi(Tn(fi(a),c.escapedText,t))))return void(r||un(c,Zx.Diagnostics.Namespace_0_has_no_exported_member_1,ri(a),Zx.declarationNameToString(c)))}return Zx.Debug.assert(0==(1&Zx.getCheckFlags(o)),"Should never get an instantiated symbol here."),!Zx.nodeIsSynthesized(e)&&Zx.isEntityName(e)&&(2097152&o.flags||259===e.parent.kind)&&Xn(Zx.getAliasDeclarationFromName(e),o,void 0,!0),o.flags&t||n?o:Qn(o)}}function ii(e){e=e.parent.valueDeclaration;if(e)return(Zx.isAssignmentDeclaration(e)?Zx.getAssignedExpandoInitializer(e):Zx.hasOnlyExpressionInitializer(e)?Zx.getDeclaredExpandoInitializer(e):void 0)||e}function ai(e,t,r){return oi(e,t,r?void 0:Zx.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations)}function oi(e,t,r,n){return void 0===n&&(n=!1),Zx.isStringLiteralLike(t)?si(e,t.text,r,t,n):void 0}function si(e,t,r,n,i){void 0===i&&(i=!1),Zx.startsWith(t,"@types/")&&un(n,Zx.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Zx.removePrefix(t,"@types/"),t);var a=Qs(t,!0);if(a)return a;var o=Zx.getSourceFileOfNode(e),s=Zx.getResolvedModule(o,t),a=s&&Zx.getResolutionDiagnostic(G,s),e=s&&!a&&b.getSourceFile(s.resolvedFileName);if(e)return e.symbol?(s.isExternalLibraryImport&&!Zx.resolutionExtensionIsTSOrJson(s.extension)&&ci(!1,n,s,t),hi(e.symbol)):void(r&&un(n,Zx.Diagnostics.File_0_is_not_a_module,e.fileName));if(mt){o=Zx.findBestPatternMatch(mt,function(e){return e.pattern},t);if(o){e=yt&&yt.get(t);return e?hi(e):hi(o.symbol)}}if(s&&!Zx.resolutionExtensionIsTSOrJson(s.extension)&&void 0===a||a===Zx.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)i?un(n,Zx.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,t,s.resolvedFileName):ci(X&&!!r,n,s,t);else if(r){if(s){i=b.getProjectReferenceRedirect(s.resolvedFileName);if(i)return void un(n,Zx.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,i,s.resolvedFileName)}a?un(n,a,t,s.resolvedFileName):(s=Zx.tryExtractTSExtension(t))?un(n,Zx.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,s,Zx.removeExtension(t,s)):!G.resolveJsonModule&&Zx.fileExtensionIs(t,".json")&&Zx.getEmitModuleResolutionKind(G)===Zx.ModuleResolutionKind.NodeJs&&Zx.hasJsonModuleEmitEnabled(G)?un(n,Zx.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,t):un(n,r,t)}}function ci(e,t,r,n){var i=r.packageId,a=r.resolvedFileName,i=!Zx.isExternalModuleNameRelative(n)&&i?(r=i.name,o().has(Zx.getTypesPackageName(r))?Zx.chainDiagnosticMessages(void 0,Zx.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,Zx.mangleScopedPackageName(i.name)):Zx.chainDiagnosticMessages(void 0,Zx.Diagnostics.Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,Zx.mangleScopedPackageName(i.name))):void 0;_n(e,t,Zx.chainDiagnosticMessages(i,Zx.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,n,a))}function ui(e,t){if(null!=e&&e.exports){t=function(e,t){if(!e||e===Ce||e===t||1===t.exports.size||2097152&e.flags)return e;var r=Dn(e);if(r.cjsExportMerged)return r.cjsExportMerged;var n=33554432&e.flags?e:mn(e);n.flags=512|n.flags,void 0===n.exports&&(n.exports=Zx.createSymbolTable());return t.exports.forEach(function(e,t){"export="!==t&&n.exports.set(t,n.exports.has(t)?yn(n.exports.get(t),e):e)}),Dn(n).cjsExportMerged=n,r.cjsExportMerged=n}(hi(Gn(e.exports.get("export="),t)),hi(e));return hi(t)||e}}function li(e,t,r,n){var i=ui(e,r);if(!r&&i){if(!(n||1539&i.flags||Zx.getDeclarationOfKind(i,290))){var a=x>=Zx.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return un(t,Zx.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,a),i}if(G.esModuleInterop){n=t.parent;if(Zx.isImportDeclaration(n)&&Zx.getNamespaceDeclarationNode(n)||Zx.isImportCall(n)){a=qa(i),t=js(a,0);if(t&&t.length||(t=js(a,1)),t&&t.length){a=ey(a,i,e),e=pn(i.flags,i.escapedName);e.declarations=i.declarations?i.declarations.slice():[],e.parent=i.parent,e.target=i,e.originatingImport=n,i.valueDeclaration&&(e.valueDeclaration=i.valueDeclaration),i.constEnumOnlyModule&&(e.constEnumOnlyModule=!0),i.members&&(e.members=Zx.cloneMap(i.members)),i.exports&&(e.exports=Zx.cloneMap(i.exports));a=ls(a);return e.type=Li(e,a.members,Zx.emptyArray,Zx.emptyArray,a.stringIndexInfo,a.numberIndexInfo),e}}}}return i}function _i(e){return void 0!==e.exports.get("export=")}function di(e){return Hs(gi(e))}function pi(e,t){t=gi(t);if(t)return t.get(e)}function fi(e){return 6256&e.flags?Io(e,"resolvedExports"):1536&e.flags?gi(e):e.exports||A}function gi(e){var t=Dn(e);return t.resolvedExports||(t.resolvedExports=yi(e))}function mi(n,e,i,a){e&&e.forEach(function(e,t){var r;"default"!==t&&((r=n.get(t))?i&&a&&r&&Gn(r)!==Gn(e)&&((r=i.get(t)).exportsWithDuplicate?r.exportsWithDuplicate.push(a):r.exportsWithDuplicate=[a]):(n.set(t,e),i&&a&&i.set(t,{specifierText:Zx.getTextOfNode(a.moduleSpecifier)})))})}function yi(e){var u=[];return function e(t){if(!(t&&t.exports&&Zx.pushIfUnique(u,t)))return;var a=Zx.cloneMap(t.exports);var t=t.exports.get("__export");if(t){for(var r=Zx.createSymbolTable(),o=Zx.createMap(),n=0,i=t.declarations;n<i.length;n++){var s=i[n],c=ai(s,s.moduleSpecifier),c=e(c);mi(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];Xr.add(Zx.createDiagnosticForNode(i,Zx.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,o.get(t).specifierText,Zx.unescapeLeadingUnderscores(t)))}}),mi(a,r)}return a}(e=ui(e))||A}function hi(e){var t;return e&&e.mergeId&&(t=Lr[e.mergeId])?t:e}function vi(e){return hi(e.symbol&&Mo(e.symbol))}function bi(e){return hi(e.parent&&Mo(e.parent))}function xi(t,e){var r=bi(t);if(r&&!(262144&t.flags)){var n=Zx.mapDefined(r.declarations,function(e){return r&&Di(e,r)}),i=e&&function(e,t){var r,n=Zx.getSourceFileOfNode(t),i=""+uD(n),a=Dn(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];Zx.nodeIsSynthesized(c)||(c=ai(t,c,!0))&&Si(c,e)&&(r=Zx.append(r,c))}if(Zx.length(r))return(a.extendedContainersByFile||(a.extendedContainersByFile=Zx.createMap())).set(i,r),r}if(a.extendedContainers)return a.extendedContainers;for(var u=0,l=b.getSourceFiles();u<l.length;u++){var _=l[u];Zx.isExternalModule(_)&&(Si(_=vi(_),e)&&(r=Zx.append(r,_)))}return a.extendedContainers=r||Zx.emptyArray}(t,e);if(e&&ji(r,e,1920,!1))return Zx.concatenate(Zx.concatenate([r],n),i);n=Zx.append(n,r);return Zx.concatenate(n,i)}i=Zx.mapDefined(t.declarations,function(e){return!Zx.isAmbientModule(e)&&e.parent&&Wi(e.parent)?vi(e.parent):Zx.isClassExpression(e)&&Zx.isBinaryExpression(e.parent)&&62===e.parent.operatorToken.kind&&Zx.isAccessExpression(e.parent.left)&&Zx.isEntityNameExpression(e.parent.left.expression)?Zx.isModuleExportsAccessExpression(e.parent.left)||Zx.isExportsIdentifier(e.parent.left.expression)?vi(Zx.getSourceFileOfNode(e)):(Yy(e.parent.left.expression),Sn(e.parent.left.expression).resolvedSymbol):void 0});if(Zx.length(i))return Zx.mapDefined(i,function(e){return Si(e,t)?e:void 0})}function Di(e,t){var r=Ki(e),e=r&&r.exports&&r.exports.get("export=");return e&&Ci(e,t)?r:void 0}function Si(e,t){if(e===bi(t))return t;var r=e.exports&&e.exports.get("export=");if(r&&Ci(r,t))return e;r=fi(e),e=r.get(t.escapedName);return e&&Ci(e,t)?e:Zx.forEachEntry(r,function(e){if(Ci(e,t))return e})}function Ci(e,t){return hi(Gn(hi(e)))===hi(Gn(hi(t)))&&e}function Ti(e){return hi(e&&0!=(1048576&e.flags)?e.exportSymbol:e)}function ki(e){return 111551&e.flags||2097152&e.flags&&111551&Qn(e).flags&&!Zn(e)}function Ei(e){for(var t=0,r=e.members;t<r.length;t++){var n=r[t];if(162===n.kind&&Zx.nodeIsPresent(n.body))return n}}function Ni(e){e=new t(fe,e);return r++,e.id=r,e}function Ai(e,t,r){void 0===r&&(r=0);e=Ni(e);return e.intrinsicName=t,e.objectFlags=r,e}function Fi(e){e=gu(e);return e.flags|=16,e.intrinsicName="boolean",e}function Pi(e,t){var r=Ni(524288);return r.objectFlags=e,r.symbol=t,r.members=void 0,r.properties=void 0,r.callSignatures=void 0,r.constructSignatures=void 0,r.stringIndexInfo=void 0,r.numberIndexInfo=void 0,r}function wi(e){var t=Ni(262144);return e&&(t.symbol=e),t}function Ii(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function Oi(e){var r;return e.forEach(function(e,t){!Ii(t)&&ki(e)&&(r=r||[]).push(e)}),r||Zx.emptyArray}function Mi(e,t,r,n,i,a){return e.members=t,e.properties=t===A?Zx.emptyArray:Oi(t),e.callSignatures=r,e.constructSignatures=n,e.stringIndexInfo=i,e.numberIndexInfo=a,e}function Li(e,t,r,n,i,a){return Mi(Pi(16,e),t,r,n,i,a)}function Ri(e,n){for(var i,t=e;t;t=t.parent){var r=function(e){if(e.locals&&!Cn(e)&&(i=n(e.locals)))return{value:i};switch(e.kind){case 290:if(!Zx.isExternalOrCommonJsModule(e))break;case 249:var t=vi(e);if(i=n((null==t?void 0:t.exports)||A))return{value:i};break;case 245:case 214:case 246:var r;if((vi(e).members||A).forEach(function(e,t){788968&e.flags&&(r=r||Zx.createSymbolTable()).set(t,e)}),r&&(i=n(r)))return{value:i}}}(t);if("object"==typeof r)return r.value}return n(ce)}function Bi(e){return 111551===e?111551:1920}function ji(n,i,a,o,r){if(void 0===r&&(r=Zx.createMap()),n&&!function(e){if(e.declarations&&e.declarations.length){for(var t=0,r=e.declarations;t<r.length;t++)switch(r[t].kind){case 159:case 161:case 163:case 164:continue;default:return!1}return!0}return!1}(n)){var e=""+lD(n),s=r.get(e);return s||r.set(e,s=[]),Ri(i,c)}function c(e,t){if(Zx.pushIfUnique(s,e)){t=function(e,r){if(l(e.get(n.escapedName),void 0,r))return[n];return Zx.forEachEntry(e,function(e){if(2097152&e.flags&&"export="!==e.escapedName&&"default"!==e.escapedName&&!(Zx.isUMDExportSymbol(e)&&i&&Zx.isExternalModule(Zx.getSourceFileOfNode(i)))&&(!o||Zx.some(e.declarations,Zx.isExternalModuleImportEqualsDeclaration))&&(r||!Zx.getDeclarationOfKind(e,263))){var t=_(e,Qn(e),r);if(t)return t}if(e.escapedName===n.escapedName&&e.exportSymbol&&l(hi(e.exportSymbol),void 0,r))return[n]})||(e===ce?_(le,le,r):void 0)}(e,t);return s.pop(),t}}function u(e,t){return!Ji(e,i,t)||!!ji(e.parent,i,Bi(t),o,r)}function l(e,t,r){return(n===(t||e)||hi(n)===hi(t||e))&&!Zx.some(e.declarations,Wi)&&(r||u(hi(e),a))}function _(e,t,r){if(l(e,t,r))return[e];t=fi(t),t=t&&c(t,!0);return t&&u(e,Bi(a))?[e].concat(t):void 0}}function Ji(t,e,r){var n=!1;return Ri(e,function(e){e=hi(e.get(t.escapedName));return!!e&&(e===t||!!((e=2097152&e.flags&&!Zx.getDeclarationOfKind(e,263)?Qn(e):e).flags&r)&&(n=!0))}),n}function zi(e,t){return 0===Vi(e,t,788968,!1).accessibility}function Ui(e,t){return 0===Vi(e,t,111551,!1).accessibility}function Vi(e,t,r,n){if(e&&t){n=function e(t,r,n,i,a){if(Zx.length(t)){for(var o,s=!1,c=0,u=t;c<u.length;c++){var l=u[c],_=ji(l,r,i,!1);if(_){o=l;var d=Hi(_[0],a);if(d)return d}else if(Zx.some(l.declarations,Wi)){if(a){s=!0;continue}return{accessibility:0}}if(_=xi(l,r),d=!!Zx.length(l.declarations)&&Zx.first(l.declarations),!Zx.length(_)&&111551&i&&d&&Zx.isObjectLiteralExpression(d)&&d.parent&&Zx.isVariableDeclaration(d.parent)&&d===d.parent.initializer&&(_=[vi(d.parent)]),l=e(_,r,n,n===l?Bi(i):i,a))return l}return s?{accessibility:0}:o?{accessibility:1,errorSymbolName:Qi(n,r,i),errorModuleName:o!==n?Qi(o,r,1920):void 0}:void 0}}([e],t,e,r,n);if(n)return n;n=Zx.forEach(e.declarations,Ki);if(n)if(n!==Ki(t))return{accessibility:2,errorSymbolName:Qi(e,t,r),errorModuleName:Qi(n)};return{accessibility:1,errorSymbolName:Qi(e,t,r)}}return{accessibility:0}}function Ki(e){e=Zx.findAncestor(e,qi);return e&&vi(e)}function qi(e){return Zx.isAmbientModule(e)||290===e.kind&&Zx.isExternalOrCommonJsModule(e)}function Wi(e){return Zx.isModuleWithStringLiteralName(e)||290===e.kind&&Zx.isExternalOrCommonJsModule(e)}function Hi(e,r){var n;if(Zx.every(Zx.filter(e.declarations,function(e){return 75!==e.kind}),function(e){if(sa(e))return!0;var t=On(e);{if(t&&!Zx.hasModifier(t,1)&&sa(t.parent))return i(e,t);if(Zx.isVariableDeclaration(e)&&Zx.isVariableStatement(e.parent.parent)&&!Zx.hasModifier(e.parent.parent,1)&&sa(e.parent.parent.parent))return i(e,e.parent.parent);if(Zx.isLateVisibilityPaintedStatement(e)&&!Zx.hasModifier(e,1)&&sa(e.parent))return i(e,e)}return!1}))return{accessibility:0,aliasesToMakeVisible:n};function i(e,t){return r&&(Sn(e).isVisible=!0,n=Zx.appendIfUnique(n,t)),!0}}function Gi(e,t){var r=172===e.parent.kind||Zx.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent)||154===e.parent.kind?1160127:153===e.kind||194===e.kind||253===e.parent.kind?1920:788968,e=Zx.getFirstIdentifier(e),r=Nn(t,e.escapedText,r,void 0,void 0,!1);return r&&Hi(r,!0)||{accessibility:1,errorSymbolName:Zx.getTextOfNode(e),errorNode:e}}function Qi(i,a,o,e,t){void 0===e&&(e=4);var s=70221824;2&e&&(s|=128),1&e&&(s|=512),8&e&&(s|=16384),16&e&&(s|=134217728);var c=4&e?C.symbolToExpression:C.symbolToEntityName;return t?r(t).getText():Zx.usingSingleLineStringWriter(r);function r(e){var t=c(i,o,a,s),r=Zx.createPrinter({removeComments:!0}),n=a&&Zx.getSourceFileOfNode(a);return r.writeNode(4,t,n,e),e}}function Xi(i,a,o,s,e){return void 0===o&&(o=0),e?t(e).getText():Zx.usingSingleLineStringWriter(t);function t(e){var t=262144&o?1===s?171:170:1===s?166:165,r=C.signatureToSignatureDeclaration(i,t,a,70222336|ea(o)),n=Zx.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),t=a&&Zx.getSourceFileOfNode(a);return n.writeNode(4,r,t,Zx.getTrailingSemicolonDeferringWriter(e)),e}}function Yi(e,t,r,n){void 0===r&&(r=1064960),void 0===n&&(n=Zx.createTextWriter(""));var i=G.noErrorTruncation||1&r,e=C.typeToTypeNode(e,t,70221824|ea(r)|(i?1:0),n);if(void 0===e)return Zx.Debug.fail("should always get typenode");r=Zx.createPrinter({removeComments:!0}),t=t&&Zx.getSourceFileOfNode(t);r.writeNode(4,e,t,n);n=n.getText(),i=i?2*Zx.noTruncationMaximumTruncationLength:2*Zx.defaultMaximumTruncationLength;return i&&n&&n.length>=i?n.substr(0,i-"...".length)+"...":n}function Zi(e,t){var r=$i(e.symbol)?Yi(e,e.symbol.valueDeclaration):Yi(e),n=$i(t.symbol)?Yi(t,t.symbol.valueDeclaration):Yi(t);return r===n&&(r=Yi(e,void 0,64),n=Yi(t,void 0,64)),[r,n]}function $i(e){return e&&e.valueDeclaration&&Zx.isExpression(e.valueDeclaration)&&!ql(e.valueDeclaration)}function ea(e){return void 0===e&&(e=0),814775659&e}function ta(i,a,o,e){return void 0===o&&(o=16384),e?t(e).getText():Zx.usingSingleLineStringWriter(t);function t(e){var t=Zx.createTypePredicateNodeWithModifier(2===i.kind||3===i.kind?Zx.createToken(124):void 0,1===i.kind||3===i.kind?Zx.createIdentifier(i.parameterName):Zx.createThisTypeNode(),i.type&&C.typeToTypeNode(i.type,a,70222336|ea(o))),r=Zx.createPrinter({removeComments:!0}),n=a&&Zx.getSourceFileOfNode(a);return r.writeNode(4,t,n,e),e}}function ra(e){return 8===e?"private":16===e?"protected":"public"}function na(e){return e&&e.parent&&250===e.parent.kind&&Zx.isExternalModuleAugmentation(e.parent.parent)}function ia(e){return 290===e.kind||Zx.isAmbientModule(e)}function aa(e,t){var r=Dn(e).nameType;if(r){if(384&r.flags){e=""+r.value;return Zx.isIdentifierText(e,G.target)||ig(e)?ig(e)&&Zx.startsWith(e,"-")?"["+e+"]":e:'"'+Zx.escapeString(e,34)+'"'}if(8192&r.flags)return"["+oa(r.symbol,t)+"]"}}function oa(e,t){if(t&&"default"===e.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!e.declarations||t.enclosingDeclaration&&Zx.findAncestor(e.declarations[0],ia)!==Zx.findAncestor(t.enclosingDeclaration,ia)))return"default";if(e.declarations&&e.declarations.length){var r=Zx.firstDefined(e.declarations,function(e){return Zx.getNameOfDeclaration(e)?e:void 0}),n=r&&Zx.getNameOfDeclaration(r);if(r&&n){if(Zx.isCallExpression(r)&&Zx.isBindableObjectDefinePropertyCall(r))return Zx.symbolName(e);if(Zx.isComputedPropertyName(n)&&!(4096&Zx.getCheckFlags(e))){var i=Dn(e).nameType;if(i&&384&i.flags){i=aa(e,t);if(void 0!==i)return i}}return Zx.declarationNameToString(n)}if((r=r||e.declarations[0]).parent&&242===r.parent.kind)return Zx.declarationNameToString(r.parent.name);switch(r.kind){case 214:case 201:case 202:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),214===r.kind?"(Anonymous class)":"(Anonymous function)"}}n=aa(e,t);return void 0!==n?n:Zx.symbolName(e)}function sa(t){if(t){var e=Sn(t);return void 0===e.isVisible&&(e.isVisible=!!function(){switch(t.kind){case 315:case 322:case 316:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&Zx.isSourceFile(t.parent.parent.parent));case 191:return sa(t.parent.parent);case 242:if(Zx.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 249:case 245:case 246:case 247:case 244:case 248:case 253:if(Zx.isExternalModuleAugmentation(t))return!0;var e=da(t);return 1&Zx.getCombinedModifierFlags(t)||253!==t.kind&&290!==e.kind&&8388608&e.flags?sa(e):Cn(e);case 159:case 158:case 163:case 164:case 161:case 160:if(Zx.hasModifier(t,24))return!1;case 162:case 166:case 165:case 167:case 156:case 250:case 170:case 171:case 173:case 169:case 174:case 175:case 178:case 179:case 182:return sa(t.parent);case 255:case 256:case 258:return!1;case 155:case 290:case 252:return!0;case 259:default:return!1}}()),e.isVisible}return!1}function ca(e,n){var t,i,a;return e.parent&&259===e.parent.kind?t=Nn(e,e.escapedText,2998271,void 0,e,!1):263===e.parent.kind&&(t=Kn(e.parent,2998271)),t&&((a=Zx.createMap()).set(""+lD(t),!0),function r(e){Zx.forEach(e,function(e){var t=On(e)||e;n?Sn(e).isVisible=!0:(i=i||[],Zx.pushIfUnique(i,t)),Zx.isInternalModuleImportEqualsDeclaration(e)&&(t=e.moduleReference,t=Zx.getFirstIdentifier(t),e=Nn(e,t.escapedText,901119,void 0,void 0,!1),t=e&&""+lD(e),e&&!a.has(t)&&(a.set(t,!0),r(e.declarations)))})}(t.declarations)),i}function ua(e,t){var r=la(e,t);if(!(0<=r))return Pr.push(e),wr.push(!0),Ir.push(t),1;for(var n=Pr.length,i=r;i<n;i++)wr[i]=!1}function la(e,t){for(var r=Pr.length-1;0<=r;r--){if(function(e,t){switch(t){case 0:return!!Dn(e).type;case 5:return!!Sn(e).resolvedEnumType;case 2:return!!Dn(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 6:return!!e.resolvedTypeArguments}return Zx.Debug.assertNever(t)}(Pr[r],Ir[r]))return-1;if(Pr[r]===e&&Ir[r]===t)return r}return-1}function _a(){return Pr.pop(),Ir.pop(),wr.pop()}function da(e){return Zx.findAncestor(Zx.getRootDeclaration(e),function(e){switch(e.kind){case 242:case 243:case 258:case 257:case 256:case 255:return!1;default:return!0}}).parent}function pa(e,t){t=Bs(e,t);return t?qa(t):void 0}function fa(e){return e&&0!=(1&e.flags)}function ga(e){var t=vi(e);return t&&Dn(t).type||Ca(e,!1)}function ma(e,t,r){if(131072&(e=Bp(e,function(e){return!(98304&e.flags)})).flags)return it;if(1048576&e.flags)return jp(e,function(e){return ma(e,t,r)});var n=gu(Zx.map(t,Su));if(Iu(e)||Ou(n)){if(131072&n.flags)return e;var i=$t=$t||Hc("Omit",524288,Zx.Diagnostics.Cannot_find_global_type_0);return i?wc(i,[e,n]):Ae}for(var a=Zx.createSymbolTable(),o=0,s=fs(e);o<s.length;o++){var c=s[o];t_(Cu(c,8576),n)||24&Zx.getDeclarationModifierFlagsFromSymbol(c)||!al(c)||a.set(c.escapedName,ol(c,!1))}i=Vs(e,0),e=Vs(e,1),e=Li(r,a,Zx.emptyArray,Zx.emptyArray,i,e);return e.objectFlags|=131072,e}function ya(e,t){e=ha(e);return e?af(e,t):t}function ha(e){var t=function(e){var t=e.parent.parent;switch(t.kind){case 191:case 281:return ha(t);case 192:return ha(e.parent);case 242:return t.initializer;case 209:return t.right}}(e);if(t&&t.flowNode){var r=(r=(n=e).parent,191!==n.kind||189!==r.kind?281!==n.kind&&282!==n.kind?""+r.elements.indexOf(n):va(n.name):va(n.propertyName||n.name));if(r){var n=Zx.createNode(195,e.pos,e.end);n.parent=e,n.expression=t;e=Zx.createNode(10,e.pos,e.end);return e.parent=n,e.text=r,n.argumentExpression=e,n.flowNode=t.flowNode,n}}}function va(e){e=Su(e);return 384&e.flags?""+e.value:void 0}function ba(e){var t=e.parent,r=ga(t.parent);if(!r||fa(r))return r;if(Q&&8388608&e.flags&&Zx.isParameterDeclaration(e)?r=yd(r):!Q||!t.parent.initializer||65536&xp(Fp(t.parent.initializer))||(r=Dp(r,524288)),189===t.kind)if(e.dotDotDotToken){if(2&(r=Is(r)).flags||!ug(r))return un(e,Zx.Diagnostics.Rest_types_may_only_be_created_from_object_types),Ae;for(var n=[],i=0,a=t.elements;i<a.length;i++){var o=a[i];o.dotDotDotToken||n.push(o.propertyName||o.name)}c=ma(r,n,e.symbol)}else var s=e.propertyName||e.name,c=ya(e,df(Ju(r,u=Su(s),s),e.name));else{var u,s=Tv(65,r,we,t),l=t.elements.indexOf(e);c=e.dotDotDotToken?Rp(r,sd)?jp(r,function(e){return uu(e,l)}):nu(s):Q_(r)?(u=dl(l),t=Zf(e)?8:0,ya(e,df(zu(r,u,e.name,t)||Ae,e.name))):s}return e.initializer?Zx.getEffectiveTypeAnnotationNode(Zx.walkUpBindingElementsAndPatterns(e))?!Q||32768&dd(Zy(e))?c:Dp(c,524288):$y(e,gu([Dp(c,524288),Zy(e)],2)):c}function xa(e){e=Zx.getJSDocType(e);if(e)return gl(e)}function Da(e){e=Zx.skipParentheses(e);return 192===e.kind&&0===e.elements.length}function Sa(e,t){return void 0===t&&(t=!0),Q&&t?md(e):e}function Ca(e,t){if(Zx.isVariableDeclaration(e)&&231===e.parent.parent.kind){var r=Eu(Lg(ph(e.parent.parent.expression)));return 4456448&r.flags?Nu(r):Re}if(Zx.isVariableDeclaration(e)&&232===e.parent.parent.kind)return Cv(e.parent.parent)||ke;if(Zx.isBindingPattern(e.parent))return ba(e);r=t&&(Zx.isParameter(e)&&Gs(e)||!Zx.isBindingElement(e)&&!Zx.isVariableDeclaration(e)&&!!e.questionToken),t=Oa(e);if(t)return Sa(t,r);if((X||Zx.isInJSFile(e))&&242===e.kind&&!Zx.isBindingPattern(e.name)&&!(1&Zx.getCombinedModifierFlags(e))&&!(8388608&e.flags)){if(!(2&Zx.getCombinedNodeFlags(e)||e.initializer&&(i=e.initializer,100!==(i=Zx.skipParentheses(i)).kind&&(75!==i.kind||up(i)!==ue))))return Ee;if(e.initializer&&Da(e.initializer))return Ft}if(156===e.kind){var n=e.parent;if(164===n.kind&&!Fo(n)){t=Zx.getDeclarationOfKind(vi(e.parent),163);if(t){var i=tc(t),t=jx(n);return t&&e===t?(Zx.Debug.assert(!t.type),qa(i.thisParameter)):sc(i)}}if(Zx.isInJSFile(e)){var a=Zx.getJSDocType(n);if(a&&Zx.isFunctionTypeNode(a))return cy(tc(a),n.parameters.indexOf(e))}if(a="this"===e.symbol.escapedName?Tf(n):kf(e))return Sa(a,r)}else if(Zx.isInJSFile(e)){n=ka(e,vi(e),Zx.getDeclaredExpandoInitializer(e));if(n)return n}return e.initializer?Sa(a=$y(e,Zy(e)),r):Zx.isJsxAttribute(e)?Ue:Zx.isBindingPattern(e.name)?Fa(e.name,!1,!0):void 0}function Ta(e,t){var r=Zx.getAssignedExpandoInitializer(e.valueDeclaration);if(r){var n=Zx.getJSDocTypeTag(r);return n&&n.typeExpression?gl(n.typeExpression):ka(e.valueDeclaration,e,r)||nd(Yy(r))}for(var i,a,o,s=!1,c=!1,u=0,l=e.declarations;u<l.length;u++){var _,d=l[u],p=Zx.isBinaryExpression(d)||Zx.isCallExpression(d)?d:Zx.isAccessExpression(d)?Zx.isBinaryExpression(d.parent)?d.parent:d:void 0;p&&(4===(_=Zx.isAccessExpression(p)?Zx.getAssignmentDeclarationPropertyAccessKind(p):Zx.getAssignmentDeclarationKind(p))&&(Ea(p)?s=!0:c=!0),Zx.isCallExpression(p)||(i=function(e,t,r,n){t=Zx.getEffectiveTypeAnnotationNode(t.parent);if(t){var i=Ad(gl(t));if(!e)return i;e===Ae||i===Ae||Xl(e,i)||fv(void 0,e,n,i)}if(r.parent){i=Zx.getEffectiveTypeAnnotationNode(r.parent.valueDeclaration);if(i)return pa(gl(i),r.escapedName)}return e}(i,p,e,d)),i||(a=a||[]).push(Zx.isBinaryExpression(p)||Zx.isCallExpression(p)?function(e,t,r,n){if(Zx.isCallExpression(r)){if(t)return qa(t);var i=Yy(r.arguments[2]),a=pa(i,"value");if(a)return a;a=pa(i,"get");if(a){a=gm(a);if(a)return sc(a)}i=pa(i,"set");if(i){var o=gm(i);if(o)return my(o)}return ke}if(function(t,e){return Zx.isPropertyAccessExpression(t)&&104===t.expression.kind&&Zx.forEachChildRecursively(e,function(e){return _p(t,e)})}(r.left,r.right))return ke;o=t?qa(t):nd(Yy(r.right));if(524288&o.flags&&2===n&&"export="===e.escapedName){var n=ls(o),s=Zx.createSymbolTable();Zx.copyEntries(n.members,s),t&&!t.exports&&(t.exports=Zx.createSymbolTable()),(t||e).exports.forEach(function(e,t){var r,n,i=s.get(t);i&&i!==e?111551&e.flags?(Zx.getSourceFileOfNode(e.valueDeclaration)!==Zx.getSourceFileOfNode(i.valueDeclaration)&&(n=Zx.unescapeLeadingUnderscores(e.escapedName),r=(null===(r=Zx.tryCast(i.valueDeclaration,Zx.isNamedDeclaration))||void 0===r?void 0:r.name)||i.valueDeclaration,Zx.addRelatedInfo(un(e.valueDeclaration,Zx.Diagnostics.Duplicate_identifier_0,n),Zx.createDiagnosticForNode(r,Zx.Diagnostics._0_was_also_declared_here,n)),Zx.addRelatedInfo(un(r,Zx.Diagnostics.Duplicate_identifier_0,n),Zx.createDiagnosticForNode(e.valueDeclaration,Zx.Diagnostics._0_was_also_declared_here,n))),(n=pn(e.flags|i.flags,t)).type=gu([qa(e),qa(i)]),n.valueDeclaration=i.valueDeclaration,n.declarations=Zx.concatenate(i.declarations,e.declarations),s.set(t,n)):s.set(t,yn(e,i)):s.set(t,e)});n=Li(n.symbol,s,n.callSignatures,n.constructSignatures,n.stringIndexInfo,n.numberIndexInfo);return n.objectFlags|=16384&Zx.getObjectFlags(o),n}if(X_(o))return Pd(r,At),At;return o}(e,t,p,_):He))}if(!(n=i)){if(!Zx.length(a))return Ae;var f,r=s?(f=a,o=e.declarations,Zx.Debug.assert(f.length===o.length),f.filter(function(e,t){t=o[t],t=Zx.isBinaryExpression(t)?t:Zx.isBinaryExpression(t.parent)?t.parent:void 0;return t&&Ea(t)})):void 0;!c||(f=function(e){var t=Zx.forEach(e.declarations,function(e){e=Zx.getThisContainer(e,!1).parent;return Zx.isClassLike(e)&&e});if(t){t=mo(vi(t)),t=t&&ao(t)[0];if(t)return pa(t,e.escapedName)}}(e))&&((r=r||[]).push(f),s=!0);n=gu(Zx.some(r,function(e){return!!(-98305&e.flags)})?r:a,2)}n=Ad(Sa(n,c&&!s));return Bp(n,function(e){return!!(-98305&e.flags)})===He?(Pd(e.valueDeclaration,ke),ke):n}function ka(e,t,r){if(Zx.isInJSFile(e)&&r&&Zx.isObjectLiteralExpression(r)&&!r.properties.length){for(var n=Zx.createSymbolTable();Zx.isBinaryExpression(e)||Zx.isPropertyAccessExpression(e);){var i=vi(e);i&&Zx.hasEntries(i.exports)&&bn(n,i.exports),e=(Zx.isBinaryExpression(e)?e:e.parent).parent}r=vi(e);r&&Zx.hasEntries(r.exports)&&bn(n,r.exports);t=Li(t,n,Zx.emptyArray,Zx.emptyArray,void 0,void 0);return t.objectFlags|=16384,t}}function Ea(e){e=Zx.getThisContainer(e,!1);return 162===e.kind||244===e.kind||201===e.kind&&!Zx.isPrototypePropertyAssignment(e.parent)}function Na(e,t,r){return e.initializer?Sa($y(e,Zy(e,Zx.isBindingPattern(e.name)?Fa(e.name,!0,!1):Pe))):Zx.isBindingPattern(e.name)?Fa(e.name,t,r):(r&&!Ia(e)&&Pd(e,ke),t?Fe:ke)}function Aa(e,t,r){var n=e.elements,i=Zx.lastOrUndefined(n),a=!(!i||191!==i.kind||!i.dotDotDotToken);if(0===n.length||1===n.length&&a)return 2<=M?(i=ke,tu($c(!0),[i])):At;a=cu(Zx.map(n,function(e){return Zx.isOmittedExpression(e)?ke:Na(e,t,r)}),Zx.findLastIndex(n,function(e){return!Zx.isOmittedExpression(e)&&!Zf(e)},n.length-(a?2:1))+1,a);return t&&((a=Ec(a)).pattern=e,a.objectFlags|=1048576),a}function Fa(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),(189===e.kind?function(e,r,n){var i,a=Zx.createSymbolTable(),o=1048704;Zx.forEach(e.elements,function(e){var t=e.propertyName||e.name;e.dotDotDotToken?i=vc(ke,!1):ko(t=Su(t))?(t=Po(t),(t=pn(4|(e.initializer?16777216:0),t)).type=Na(e,r,n),t.bindingElement=e,a.set(t.escapedName,t)):o|=512});var t=Li(void 0,a,Zx.emptyArray,Zx.emptyArray,i,void 0);return t.objectFlags|=o,r&&(t.pattern=e,t.objectFlags|=1048576),t}:Aa)(e,t,r)}function Pa(e,t){return wa(Ca(e,!0),e,t)}function wa(e,t,r){return e?(r&&wd(t,e),8192&e.flags&&(Zx.isBindingElement(t)||!t.type)&&e.symbol!==vi(t)&&(e=qe),Ad(e)):(e=Zx.isParameter(t)&&t.dotDotDotToken?At:ke,r&&(Ia(t)||Pd(t,e)),e)}function Ia(e){e=Zx.getRootDeclaration(e);return Fh(156===e.kind?e.parent:e)}function Oa(e){e=Zx.getEffectiveTypeAnnotationNode(e);if(e)return gl(e)}function Ma(e){var t=Dn(e);return t.type||(e=function(e){if(4194304&e.flags)return function(e){return(e=mo(bi(e))).typeParameters?kc(e,Zx.map(e.typeParameters,function(e){return ke})):e}(e);if(e===pe)return ke;if(134217728&e.flags){var t=vi(Zx.getSourceFileOfNode(e.valueDeclaration)),r=Zx.createSymbolTable();return r.set("exports",t),Li(e,r,Zx.emptyArray,Zx.emptyArray,void 0,void 0)}var n,r=e.valueDeclaration;if(Zx.isCatchClauseVariableDeclarationOrBindingElement(r))return ke;if(Zx.isSourceFile(r)&&Zx.isJsonSourceFile(r))return r.statements.length?Ad(nd(ph(r.statements[0].expression))):it;if(!ua(e,0))return(512&e.flags&&!(67108864&e.flags)?Ua:Ka)(e);if(259===r.kind)n=wa(Yy(r.expression),r);else if(Zx.isBinaryExpression(r)||Zx.isInJSFile(r)&&(Zx.isCallExpression(r)||(Zx.isPropertyAccessExpression(r)||Zx.isBindableStaticElementAccessExpression(r))&&Zx.isBinaryExpression(r.parent)))n=Ta(e);else if(Zx.isJSDocPropertyLikeTag(r)||Zx.isPropertyAccessExpression(r)||Zx.isElementAccessExpression(r)||Zx.isIdentifier(r)||Zx.isStringLiteralLike(r)||Zx.isNumericLiteral(r)||Zx.isClassDeclaration(r)||Zx.isFunctionDeclaration(r)||Zx.isMethodDeclaration(r)&&!Zx.isObjectLiteralMethod(r)||Zx.isMethodSignature(r)||Zx.isSourceFile(r)){if(9136&e.flags)return Ua(e);n=Zx.isBinaryExpression(r.parent)?Ta(e):Oa(r)||ke}else if(Zx.isPropertyAssignment(r))n=Oa(r)||nh(r);else if(Zx.isJsxAttribute(r))n=Oa(r)||dg(r);else if(Zx.isShorthandPropertyAssignment(r))n=Oa(r)||rh(r.name,0);else if(Zx.isObjectLiteralMethod(r))n=Oa(r)||ih(r,0);else if(Zx.isParameter(r)||Zx.isPropertyDeclaration(r)||Zx.isPropertySignature(r)||Zx.isVariableDeclaration(r)||Zx.isBindingElement(r))n=Pa(r,!0);else if(Zx.isEnumDeclaration(r))n=Ua(e);else if(Zx.isEnumMember(r))n=Va(e);else{if(!Zx.isAccessor(r))return Zx.Debug.fail("Unhandled declaration kind! "+Zx.Debug.formatSyntaxKind(r.kind)+" for "+Zx.Debug.formatSymbol(e));n=Ja(e)}return _a()?n:(!(512&e.flags)||67108864&e.flags?Ka:Ua)(e)}(e),t.type||(t.type=e)),t.type}function La(e){if(e)return 163!==e.kind?Zx.getEffectiveSetAccessorTypeAnnotationNode(e):Zx.getEffectiveReturnTypeNode(e)}function Ra(e){e=La(e);return e&&gl(e)}function Ba(e){return ac(tc(e))}function ja(e){var t=Dn(e);return t.type||(t.type=function(e){if(!ua(e,0))return Ae;var t=Ja(e);_a()||(t=ke,X&&un(Zx.getDeclarationOfKind(e,163),Zx.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,Qi(e)));return t}(e))}function Ja(e){var t=Zx.getDeclarationOfKind(e,163),r=Zx.getDeclarationOfKind(e,164);if(t&&Zx.isInJSFile(t)){var n=xa(t);if(n)return n}n=Ra(t);if(n)return n;n=Ra(r);return n||(t&&t.body?Sy(t):(r?Fh(r)||_n(X,r,Zx.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Qi(e)):(Zx.Debug.assert(!!t,"there must exist a getter as we are current checking either setter or getter in this function"),Fh(t)||_n(X,t,Zx.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Qi(e))),ke))}function za(e){e=io(so(e));return 8650752&e.flags?e:2097152&e.flags?Zx.find(e.types,function(e){return!!(8650752&e.flags)}):void 0}function Ua(e){var t,r=Dn(e),n=r;return r.type||(!(t=e.valueDeclaration&&Zx.getDeclarationOfExpando(e.valueDeclaration))||(t=Xm(e,vi(t)))&&(e=r=t),n.type=r.type=function(e){var t=e.valueDeclaration;{if(1536&e.flags&&Zx.isShorthandAmbientModuleSymbol(e))return ke;if(t&&(209===t.kind||Zx.isAccessExpression(t)&&209===t.parent.kind))return Ta(e);if(512&e.flags&&t&&Zx.isSourceFile(t)&&t.commonJsModuleIndicator){var r=ui(e);if(r!==e){if(!ua(e,0))return Ae;var n=hi(e.exports.get("export=")),n=Ta(n,n===r?void 0:r);return _a()?n:Ka(e)}}}r=Pi(16,e);{if(32&e.flags){n=za(e);return n?xu([r,n]):r}return Q&&16777216&e.flags?md(r):r}}(e)),r.type}function Va(e){var t=Dn(e);return t.type||(t.type=fo(e))}function Ka(e){var t=e.valueDeclaration;return Zx.getEffectiveTypeAnnotationNode(t)?(un(e.valueDeclaration,Zx.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Qi(e)),Ae):(X&&(156!==t.kind||t.initializer)&&un(e.valueDeclaration,Zx.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Qi(e)),ke)}function qa(e){var t,r,n=Zx.getCheckFlags(e);return 65536&n?((t=Dn(t=e)).type||(Zx.Debug.assertIsDefined(t.deferralParent),Zx.Debug.assertIsDefined(t.deferralConstituents),t.type=(1048576&t.deferralParent.flags?gu:xu)(t.deferralConstituents)),t.type):1&n?function(e){var t=Dn(e);if(!t.type){if(!ua(e,0))return t.type=Ae;var r=Jl(qa(t.target),t.mapper);_a()||(r=Ka(e)),t.type=r}return t.type}(e):262144&n?function(e){if(!e.type){if(!ua(e,0))return Ae;var t=Jl(rs(e.mappedType.target||e.mappedType),e.mapper),t=Q&&16777216&e.flags&&!jy(t,49152)?md(t):524288&e.checkFlags?Dp(t,524288):t;_a()||(un(H,Zx.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Qi(e),Yi(e.mappedType)),t=Ae),e.type=t,e.mapper=void 0}return e.type}(e):8192&n?qd((r=e).propertyType,r.mappedType,r.constraintType):7&e.flags?Ma(e):9136&e.flags?Ua(e):8&e.flags?Va(e):98304&e.flags?ja(e):2097152&e.flags?((e=Dn(r=e)).type||(r=Qn(r),e.type=111551&r.flags?qa(r):Ae),e.type):Ae}function Wa(e,t){return void 0!==e&&void 0!==t&&0!=(4&Zx.getObjectFlags(e))&&e.target===t}function Ha(e){return 4&Zx.getObjectFlags(e)?e.target:e}function Ga(e,n){return function e(t){{if(7&Zx.getObjectFlags(t)){var r=Ha(t);return r===n||Zx.some(ao(r),e)}if(2097152&t.flags)return Zx.some(t.types,e)}return!1}(e)}function Qa(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];e=Zx.appendIfUnique(e,go(vi(i)))}return e}function Xa(t,e){for(;;){var r;if((t=t.parent)&&Zx.isBinaryExpression(t)&&(6!==(r=Zx.getAssignmentDeclarationKind(t))&&3!==r||(r=vi(t.left))&&r.parent&&!Zx.findAncestor(r.parent.valueDeclaration,function(e){return t===e})&&(t=r.parent.valueDeclaration)),!t)return;switch(t.kind){case 225:case 245:case 214:case 246:case 165:case 166:case 160:case 170:case 171:case 300:case 244:case 161:case 201:case 202:case 247:case 321:case 322:case 316:case 315:case 186:case 180:var n=Xa(t,e);if(186===t.kind)return Zx.append(n,go(vi(t.typeParameter)));if(180===t.kind)return Zx.concatenate(n,Gu(t));if(225===t.kind&&!Zx.isInJSFile(t))break;var i=Qa(n,Zx.getEffectiveTypeParameterDeclarations(t)),n=e&&(245===t.kind||214===t.kind||246===t.kind||Qm(t))&&so(vi(t)).thisType;return n?Zx.append(i,n):i}}}function Ya(e){e=32&e.flags?e.valueDeclaration:Zx.getDeclarationOfKind(e,246);return Zx.Debug.assert(!!e,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Xa(e)}function Za(e){for(var t=0,r=e.declarations;t<r.length;t++){var n,i=r[t];(246===i.kind||245===i.kind||214===i.kind||Qm(i)||Zx.isTypeAlias(i))&&(n=Qa(n,Zx.getEffectiveTypeParameterDeclarations(i)))}return n}function $a(e){e=Js(e,1);if(1!==e.length)return!1;e=e[0];return!e.typeParameters&&1===e.parameters.length&&mD(e)&&G_(oy(e.parameters[0]))===ke}function eo(e){if(0<Js(e,1).length)return 1;if(8650752&e.flags){e=xs(e);return e&&$a(e)}}function to(e){return Zx.getEffectiveBaseTypeNode(e.symbol.valueDeclaration)}function ro(e,t,r){var n=Zx.length(t),i=Zx.isInJSFile(r);return Zx.filter(Js(e,1),function(e){return(i||n>=$s(e.typeParameters))&&n<=Zx.length(e.typeParameters)})}function no(e,t,r){var e=ro(e,t,r),n=Zx.map(t,gl);return Zx.sameMap(e,function(e){return Zx.some(e.typeParameters)?_c(e,n,Zx.isInJSFile(r)):e})}function io(e){if(!e.resolvedBaseConstructorType){var t=e.symbol.valueDeclaration,r=Zx.getEffectiveBaseTypeNode(t),n=to(e);if(!n)return e.resolvedBaseConstructorType=we;if(!ua(e,1))return Ae;var i=ph(n.expression);if(r&&n!==r&&(Zx.Debug.assert(!r.typeArguments),ph(r.expression)),2621440&i.flags&&ls(i),!_a())return un(e.symbol.valueDeclaration,Zx.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Qi(e.symbol)),e.resolvedBaseConstructorType=Ae;if(!(1&i.flags||i===Le||eo(i))){t=un(n.expression,Zx.Diagnostics.Type_0_is_not_a_constructor_function_type,Yi(i));return 262144&i.flags&&(r=Dc(i),n=Pe,!r||(r=Js(r,1))[0]&&(n=sc(r[0])),Zx.addRelatedInfo(t,Zx.createDiagnosticForNode(i.symbol.declarations[0],Zx.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Qi(i.symbol),Yi(n)))),e.resolvedBaseConstructorType=Ae}e.resolvedBaseConstructorType=i}return e.resolvedBaseConstructorType}function ao(e){return e.resolvedBaseTypes||(8&e.objectFlags?e.resolvedBaseTypes=[nu(gu(e.typeParameters||Zx.emptyArray),e.readonly)]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=Zx.resolvingEmptyArray;var t=Ns(io(e));if(!(2621441&t.flags))return e.resolvedBaseTypes=Zx.emptyArray;var r=to(e),n=t.symbol?mo(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=Ac(e);return t[r].symbol!==e[r].symbol}return!0}(n))a=Pc(r,t.symbol);else if(1&t.flags)a=t;else{var i=no(t,r.typeArguments,r);if(!i.length)return un(r.expression,Zx.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=Zx.emptyArray;a=sc(i[0])}if(a===Ae)return e.resolvedBaseTypes=Zx.emptyArray;if(!oo(i=Is(a))){var a=Rs(void 0,a),a=Zx.chainDiagnosticMessages(a,Zx.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Yi(i));return Xr.add(Zx.createDiagnosticForNodeFromMessageChain(r.expression,a)),e.resolvedBaseTypes=Zx.emptyArray}if(e===i||Ga(i,e))return un(e.symbol.valueDeclaration,Zx.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Yi(e,void 0,2)),e.resolvedBaseTypes=Zx.emptyArray;e.resolvedBaseTypes===Zx.resolvingEmptyArray&&(e.members=void 0),e.resolvedBaseTypes=[i]}(e),64&e.symbol.flags&&function(e){e.resolvedBaseTypes=e.resolvedBaseTypes||Zx.emptyArray;for(var t=0,r=e.symbol.declarations;t<r.length;t++){var n=r[t];if(246===n.kind&&Zx.getInterfaceBaseTypeNodes(n))for(var i=0,a=Zx.getInterfaceBaseTypeNodes(n);i<a.length;i++){var o=a[i],s=Is(gl(o));s!==Ae&&(oo(s)?e===s||Ga(s,e)?un(n,Zx.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Yi(e,void 0,2)):e.resolvedBaseTypes===Zx.emptyArray?e.resolvedBaseTypes=[s]:e.resolvedBaseTypes.push(s):un(o,Zx.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}(e)):Zx.Debug.fail("type must be class or interface")),e.resolvedBaseTypes}function oo(e){if(262144&e.flags){var t=xs(e);if(t)return oo(t)}return!!(67633153&e.flags&&!us(e)||2097152&e.flags&&Zx.every(e.types,oo))}function so(e){var t,r,n,i=Dn(e),a=i;return i.declaredType||(t=32&e.flags?1:2,(n=Xm(e,function(e){e=e&&e.parent&&(Zx.isFunctionDeclaration(e)&&vi(e)||Zx.isBinaryExpression(e.parent)&&vi(e.parent.left)||Zx.isVariableDeclaration(e.parent)&&vi(e.parent)),e=e&&e.exports&&e.exports.get("prototype"),e=e&&e.valueDeclaration&&function(e){if(!e.parent)return!1;var t=e.parent;for(;t&&194===t.kind;)t=t.parent;if(t&&Zx.isBinaryExpression(t)&&Zx.isPrototypeAccess(t.left)&&62===t.operatorToken.kind){e=Zx.getInitializerOfBinaryExpression(t);return Zx.isObjectLiteralExpression(e)&&e}}(e.valueDeclaration);return e?vi(e):void 0}(e.valueDeclaration)))&&(e=i=n),r=a.declaredType=i.declaredType=Pi(t,e),n=Ya(e),a=Za(e),!n&&!a&&1!=t&&function(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];if(246===n.kind){if(128&n.flags)return;n=Zx.getInterfaceBaseTypeNodes(n);if(n)for(var i=0,a=n;i<a.length;i++){var o=a[i];if(Zx.isEntityNameExpression(o.expression)){o=ni(o.expression,788968,!0);if(!o||!(64&o.flags)||so(o).thisType)return}}}}return 1}(e)||(r.objectFlags|=4,r.typeParameters=Zx.concatenate(n,a),r.outerTypeParameters=n,r.localTypeParameters=a,r.instantiations=Zx.createMap(),r.instantiations.set(Cc(r.typeParameters),r),(r.target=r).resolvedTypeArguments=r.typeParameters,r.thisType=wi(e),r.thisType.isThisType=!0,r.thisType.constraint=r)),i.declaredType}function co(e){var t=Dn(e);if(!t.declaredType){if(!ua(e,2))return Ae;var r=Zx.Debug.checkDefined(Zx.find(e.declarations,Zx.isTypeAlias),"Type alias symbol with no valid declaration found"),n=Zx.isJSDocTypeAlias(r)?r.typeExpression:r.type,i=n?gl(n):Ae;_a()?(n=Za(e))&&(t.typeParameters=n,t.instantiations=Zx.createMap(),t.instantiations.set(Cc(n),i)):(i=Ae,un(Zx.isNamedDeclaration(r)?r.name:r||r,Zx.Diagnostics.Type_alias_0_circularly_references_itself,Qi(e))),t.declaredType=i}return t.declaredType}function uo(e){var t=e.initializer;if(!t)return!(8388608&e.flags);switch(t.kind){case 10:case 8:case 14:return 1;case 207:return 40===t.operator&&8===t.operand.kind;case 75:return Zx.nodeIsMissing(t)||vi(e.parent).exports.get(t.escapedText);case 209:return function e(t){return!!Zx.isStringLiteralLike(t)||209===t.kind&&e(t.left)&&e(t.right)}(t);default:return}}function lo(e){var t=Dn(e);if(void 0!==t.enumKind)return t.enumKind;for(var r=!1,n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(248===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o];if(c.initializer&&Zx.isStringLiteralLike(c.initializer))return t.enumKind=1;uo(c)||(r=!0)}}return t.enumKind=r?0:1}function _o(e){return 1024&e.flags&&!(1048576&e.flags)?mo(bi(e.symbol)):e}function po(e){var t=Dn(e);if(t.declaredType)return t.declaredType;if(1===lo(e)){_++;for(var r=[],n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(248===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o],u=cx(c),u=ul(dl(void 0!==u?u:0,_,vi(c)));Dn(vi(c)).declaredType=u,r.push(ll(u))}}if(r.length){var l=gu(r,1,e,void 0);return 1048576&l.flags&&(l.flags|=1024,l.symbol=e),t.declaredType=l}}l=Ni(32);return l.symbol=e,t.declaredType=l}function fo(e){var t=Dn(e);return t.declaredType||(e=po(bi(e)),t.declaredType||(t.declaredType=e)),t.declaredType}function go(e){var t=Dn(e);return t.declaredType||(t.declaredType=wi(e))}function mo(e){return yo(e)||Ae}function yo(e){return 96&e.flags?so(e):524288&e.flags?co(e):262144&e.flags?go(e):384&e.flags?po(e):8&e.flags?fo(e):2097152&e.flags?(e=Dn(t=e)).declaredType||(e.declaredType=mo(Qn(t))):void 0;var t}function ho(e){switch(e.kind){case 125:case 148:case 143:case 140:case 151:case 128:case 144:case 141:case 110:case 146:case 100:case 137:case 187:return!0;case 174:return ho(e.elementType);case 169:return!e.typeArguments||e.typeArguments.every(ho)}return!1}function vo(e){e=Zx.getEffectiveConstraintOfTypeParameter(e);return!e||ho(e)}function bo(e){var t=Zx.getEffectiveTypeAnnotationNode(e);return t?ho(t):!Zx.hasInitializer(e)}function xo(e){if(e.declarations&&1===e.declarations.length){var t=e.declarations[0];if(t)switch(t.kind){case 159:case 158:return bo(t);case 161:case 160:case 162:case 163:case 164:return r=t,n=Zx.getEffectiveReturnTypeNode(r),i=Zx.getEffectiveTypeParameterDeclarations(r),(162===r.kind||!!n&&ho(n))&&r.parameters.every(bo)&&i.every(vo)}}var r,n,i}function Do(e,t,r){for(var n=Zx.createSymbolTable(),i=0,a=e;i<a.length;i++){var o=a[i];n.set(o.escapedName,r&&xo(o)?o:wl(o,t))}return n}function So(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];e.has(i.escapedName)||Co(i)||e.set(i.escapedName,i)}}function Co(e){return e.valueDeclaration&&Zx.isPrivateIdentifierPropertyDeclaration(e.valueDeclaration)&&Zx.hasModifier(e.valueDeclaration,32)}function To(e){var t,r;return e.declaredProperties||(r=Oo(t=e.symbol),e.declaredProperties=Oi(r),e.declaredCallSignatures=Zx.emptyArray,e.declaredConstructSignatures=Zx.emptyArray,e.declaredCallSignatures=ic(r.get("__call")),e.declaredConstructSignatures=ic(r.get("__new")),e.declaredStringIndexInfo=bc(t,0),e.declaredNumberIndexInfo=bc(t,1)),e}function ko(e){return!!(8576&e.flags)}function Eo(e){if(!Zx.isComputedPropertyName(e)&&!Zx.isElementAccessExpression(e))return!1;var t=Zx.isComputedPropertyName(e)?e.expression:e.argumentExpression;return Zx.isEntityNameExpression(t)&&ko(Zx.isComputedPropertyName(e)?ag(e):Yy(t))}function No(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function Ao(e){e=Zx.getNameOfDeclaration(e);return!!e&&Eo(e)}function Fo(e){return Zx.hasDynamicName(e)&&!Ao(e)}function Po(e){return 8192&e.flags?e.escapedName:384&e.flags?Zx.escapeLeadingUnderscores(""+e.value):Zx.Debug.fail()}function wo(e,t,r,n){Zx.Debug.assert(!!n.symbol,"The member is expected to have a symbol.");var i=Sn(n);if(!i.resolvedSymbol){i.resolvedSymbol=n.symbol;var a=Zx.isBinaryExpression(n)?n.left:n.name,o=Zx.isElementAccessExpression(a)?Yy(a.argumentExpression):ag(a);if(ko(o)){var s=Po(o),c=n.symbol.flags,u=r.get(s);u||r.set(s,u=pn(0,s,4096));var l,t=t&&t.get(s);return(u.flags&fn(c)||t)&&(t=t?Zx.concatenate(t.declarations,u.declarations):u.declarations,l=!(8192&o.flags)&&Zx.unescapeLeadingUnderscores(s)||Zx.declarationNameToString(a),Zx.forEach(t,function(e){return un(Zx.getNameOfDeclaration(e)||e,Zx.Diagnostics.Property_0_was_also_declared_here,l)}),un(a||n,Zx.Diagnostics.Duplicate_property_0,l),u=pn(0,s,4096)),u.nameType=o,o=u,n=n,c=c,Zx.Debug.assert(!!(4096&Zx.getCheckFlags(o)),"Expected a late-bound symbol."),o.flags|=c,(Dn(n.symbol).lateSymbol=o).declarations?o.declarations.push(n):o.declarations=[n],111551&c&&(o.valueDeclaration&&o.valueDeclaration.kind===n.kind||(o.valueDeclaration=n)),u.parent?Zx.Debug.assert(u.parent===e,"Existing symbol parent should match new one"):u.parent=e,i.resolvedSymbol=u}}return i.resolvedSymbol}function Io(e,t){var r=Dn(e);if(!r[t]){var n="resolvedExports"===t,i=n?1536&e.flags?yi(e):e.exports:e.members;r[t]=i||A;for(var a=Zx.createSymbolTable(),o=0,s=e.declarations;o<s.length;o++){var c=s[o],c=Zx.getMembersOfDeclaration(c);if(c)for(var u=0,l=c;u<l.length;u++){var _=l[u];n===Zx.hasStaticModifier(_)&&Ao(_)&&wo(e,i,a,_)}}var d=e.assignmentDeclarationMembers;if(d)for(var p=0,f=Zx.arrayFrom(d.values());p<f.length;p++){var _=f[p],g=Zx.getAssignmentDeclarationKind(_);n==!(3===g||4===g||9===g||6===g)&&Ao(_)&&wo(e,i,a,_)}r[t]=function(e,t){if(!Zx.hasEntries(e))return t;if(!Zx.hasEntries(t))return e;var r=Zx.createSymbolTable();return bn(r,e),bn(r,t),r}(i,a)||A}return r[t]}function Oo(e){return 6256&e.flags?Io(e,"resolvedMembers"):e.members||A}function Mo(e){if(106500&e.flags&&"__computed"===e.escapedName){var t,r=Dn(e);return!r.lateSymbol&&Zx.some(e.declarations,Ao)&&(t=hi(e.parent),(Zx.some(e.declarations,Zx.hasStaticModifier)?fi:Oo)(t)),r.lateSymbol||(r.lateSymbol=e)}return e}function Lo(e,t,r){if(4&Zx.getObjectFlags(e)){var n=e.target,i=Ac(e);if(Zx.length(n.typeParameters)===Zx.length(i)){n=kc(n,Zx.concatenate(i,[t||n.thisType]));return r?Ns(n):n}}else if(2097152&e.flags)return xu(Zx.map(e.types,function(e){return Lo(e,t,r)}));return r?Ns(e):e}function Ro(e,t,r,n){var i,a,o,s,c,u=Zx.rangeEquals(r,n,0,r.length)?(a=t.symbol?Oo(t.symbol):Zx.createSymbolTable(t.declaredProperties),o=t.declaredCallSignatures,s=t.declaredConstructSignatures,c=t.declaredStringIndexInfo,t.declaredNumberIndexInfo):(i=bl(r,n),a=Do(t.declaredProperties,i,1===r.length),o=vl(t.declaredCallSignatures,i),s=vl(t.declaredConstructSignatures,i),c=Kl(t.declaredStringIndexInfo,i),Kl(t.declaredNumberIndexInfo,i)),r=ao(t);if(r.length){t.symbol&&a===Oo(t.symbol)&&(a=Zx.createSymbolTable(t.declaredProperties)),Mi(e,a,o,s,c,u);for(var l=Zx.lastOrUndefined(n),_=0,d=r;_<d.length;_++){var p=d[_],p=l?Lo(Jl(p,i),l):p;So(a,fs(p)),o=Zx.concatenate(o,Js(p,0)),s=Zx.concatenate(s,Js(p,1)),c=c||(p===ke?vc(ke,!1):Vs(p,0)),u=u||Vs(p,1)}}Mi(e,a,o,s,c,u)}function Bo(e,t,r,n,i,a,o,s){s=new u(fe,s);return s.declaration=e,s.typeParameters=t,s.parameters=n,s.thisParameter=r,s.resolvedReturnType=i,s.resolvedTypePredicate=a,s.minArgumentCount=o,s.target=void 0,s.mapper=void 0,s.unionSignatures=void 0,s}function jo(e){var t=Bo(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,3&e.flags);return t.target=e.target,t.mapper=e.mapper,t.unionSignatures=e.unionSignatures,t}function Jo(e,t){e=jo(e);return e.unionSignatures=t,e.target=void 0,e.mapper=void 0,e}function zo(e,t){if((12&e.flags)===t)return e;e.optionalCallSignatureCache||(e.optionalCallSignatureCache={});var r=4===t?"inner":"outer";return e.optionalCallSignatureCache[r]||(e.optionalCallSignatureCache[r]=function(e,t){Zx.Debug.assert(4===t||8===t,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");e=jo(e);return e.flags|=t,e}(e,t))}function Uo(n){if(mD(n)){var i=n.parameters.length-1,e=qa(n.parameters[i]);if(sd(e)){var t=Ac(e),a=e.target.minLength,o=e.target.hasRestElement?t.length-1:-1,t=Zx.map(t,function(e,t){var r=pn(1,sy(n,i+t),t===o?32768:a<=t?16384:0);return r.type=t===o?nu(e):e,r});return Zx.concatenate(n.parameters.slice(0,i),t)}}return n.parameters}function Vo(e,t,r,n,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(V_(s,t,r,n,i,r?$l:Yl))return s}}function Ko(e){for(var t,r,n=0;n<e.length;n++){if(0===e[n].length)return Zx.emptyArray;1<e[n].length&&(r=void 0===r?n:-1);for(var i=0,a=e[n];i<a.length;i++){var o,s,c,u,l=a[i];t&&Vo(t,l,!1,!1,!0)||(o=function(e,t,r){if(t.typeParameters){if(0<r)return;for(var n=1;n<e.length;n++)if(!Vo(e[n],t,!1,!1,!1))return;return[t]}for(var i,n=0;n<e.length;n++){var a=n===r?t:Vo(e[n],t,!0,!1,!0);if(!a)return;i=Zx.appendIfUnique(i,a)}return i}(e,l,n))&&(s=l,1<o.length&&(u=l.thisParameter,(c=Zx.forEach(o,function(e){return e.thisParameter}))&&(u=Cd(c,xu(Zx.mapDefined(o,function(e){return e.thisParameter&&qa(e.thisParameter)})))),(s=Jo(l,o)).thisParameter=u),(t=t||[]).push(s))}}if(!Zx.length(t)&&-1!==r){for(var _=e[void 0!==r?r:0],d=_.slice(),p=function(e){if(e!==_){var o=e[0];if(Zx.Debug.assert(!!o,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),!(d=o.typeParameters&&Zx.some(d,function(e){return!!e.typeParameters})?void 0:Zx.map(d,function(e){return r=o,n=(t=e).declaration,i=function(e,t){for(var r=_y(e),n=_y(t),i=n<=r?e:t,a=i===e?t:e,o=i===e?r:n,s=py(e)||py(t),c=s&&!py(i),u=new Array(o+(c?1:0)),l=0;l<o;l++){var _=uy(i,l),d=uy(a,l)||Pe,p=xu([_,d]),f=s&&!c&&l===o-1,g=l>=dy(i)&&l>=dy(a),_=r<=l?void 0:sy(e,l),d=n<=l?void 0:sy(t,l),d=pn(1|(g&&!f?16777216:0),(_===d?_:_?d?void 0:_:d)||"arg"+l);d.type=f?nu(p):p,u[l]=d}{var m;c&&((m=pn(1,"args")).type=nu(cy(a,o)),u[o]=m)}return u}(t,r),a=function(e,t){if(!e||!t)return e||t;t=xu([qa(e),qa(t)]);return Cd(e,t)}(t.thisParameter,r.thisParameter),e=Math.max(t.minArgumentCount,r.minArgumentCount),(e=Bo(n,t.typeParameters||r.typeParameters,a,i,void 0,void 0,e,3&(t.flags|r.flags))).unionSignatures=Zx.concatenate(t.unionSignatures||[t],[r]),e;var t,r,n,i,a})))return"break"}},f=0,g=e;f<g.length;f++)if("break"===p(g[f]))break;t=d}return t||Zx.emptyArray}function qo(e,t){for(var r=[],n=!1,i=0,a=e;i<a.length;i++){var o=Vs(Ns(a[i]),t);if(!o)return;r.push(o.type),n=n||o.isReadonly}return vc(gu(r,2),n)}function Wo(e,t){return e?t?xu([e,t]):e:t}function Ho(e,t){return e?t?vc(xu([e.type,t.type]),e.isReadonly&&t.isReadonly):e:t}function Go(e,t){return e&&t&&vc(gu([e.type,t.type]),e.isReadonly||t.isReadonly)}function Qo(e){var t=Zx.countWhere(e,function(e){return 0<Js(e,1).length}),e=Zx.map(e,$a);return 0<t&&t===Zx.countWhere(e,function(e){return e})&&(t=e.indexOf(!0),e[t]=!1),e}function Xo(n){for(var i,a,o,s,c=n.types,u=Qo(c),l=Zx.countWhere(u,function(e){return e}),e=function(r){var e,t=n.types[r];u[r]||((e=Js(t,1)).length&&0<l&&(e=Zx.map(e,function(e){var t=jo(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(sc(Js(t[a],1)[0]));return xu(i)}(sc(e),c,u,r),t})),a=Yo(a,e)),i=Yo(i,Js(t,0)),o=Ho(o,Vs(t,0)),s=Ho(s,Vs(t,1))},t=0;t<c.length;t++)e(t);Mi(n,A,i||Zx.emptyArray,a||Zx.emptyArray,o,s)}function Yo(e,t){for(var r=0,n=t;r<n.length;r++)!function(t){e&&!Zx.every(e,function(e){return!V_(e,t,!1,!1,!1,Yl)})||(e=Zx.append(e,t))}(n[r]);return e}function Zo(e){var t,r,n,i,a,o,s,c=hi(e.symbol);e.target?(Mi(e,A,Zx.emptyArray,Zx.emptyArray,void 0,void 0),Mi(e,t=Do(_s(e.target),e.mapper,!1),i=vl(Js(e.target,0),e.mapper),s=vl(Js(e.target,1),e.mapper),r=Kl(Vs(e.target,0),e.mapper),a=Kl(Vs(e.target,1),e.mapper))):2048&c.flags?(Mi(e,A,Zx.emptyArray,Zx.emptyArray,void 0,void 0),i=ic((t=Oo(c)).get("__call")),s=ic(t.get("__new")),Mi(e,t,i,s,r=bc(c,0),a=bc(c,1))):(t=A,r=void 0,c.exports&&(t=fi(c),c===le&&(n=Zx.createMap(),t.forEach(function(e){418&e.flags||n.set(e.escapedName,e)}),t=n)),Mi(e,t,Zx.emptyArray,Zx.emptyArray,void 0,void 0),32&c.flags&&(11272192&(i=io(so(c))).flags?So(t=Zx.createSymbolTable(Oi(t)),fs(i)):i===ke&&(r=vc(ke,!1))),a=384&c.flags&&(32&mo(c).flags||Zx.some(e.properties,function(e){return!!(296&qa(e).flags)}))?pr:void 0,Mi(e,t,Zx.emptyArray,Zx.emptyArray,r,a),8208&c.flags&&(e.callSignatures=ic(c)),32&c.flags&&(o=so(c),s=c.members?ic(c.members.get("__constructor")):Zx.emptyArray,16&c.flags&&(s=Zx.addRange(s.slice(),Zx.mapDefined(e.callSignatures,function(e){return Qm(e.declaration)?Bo(e.declaration,e.typeParameters,e.thisParameter,e.parameters,o,void 0,e.minArgumentCount,3&e.flags):void 0}))),s.length||(s=function(e){var t=Js(io(e),1);if(0===t.length)return[Bo(void 0,e.localTypeParameters,void 0,Zx.emptyArray,e,void 0,0,0)];for(var r=to(e),n=Zx.isInJSFile(r),i=Vc(r),a=Zx.length(i),o=[],s=0,c=t;s<c.length;s++){var u=c[s],l=$s(u.typeParameters),_=Zx.length(u.typeParameters);(n||l<=a&&a<=_)&&((u=_?pc(u,ec(i,u.typeParameters,l,n)):jo(u)).typeParameters=e.localTypeParameters,u.resolvedReturnType=e,o.push(u))}return o}(o)),e.constructSignatures=s))}function $o(e){if(131069&e.flags)return e;if(4194304&e.flags)return Eu(Ns(e.type));if(16777216&e.flags){if(e.root.isDistributive){var t=e.checkType,r=$o(t);if(r!==t)return jl(e,Nl(e.root.checkType,r,e.mapper))}return e}return 1048576&e.flags?gu(Zx.sameMap(e.types,$o)):2097152&e.flags?xu(Zx.sameMap(e.types,$o)):He}function es(e){return e.typeParameter||(e.typeParameter=go(vi(e.declaration.typeParameter)))}function ts(e){return e.constraintType||(e.constraintType=ms(es(e))||Ae)}function rs(e){return e.templateType||(e.templateType=e.declaration.type?Jl(Sa(gl(e.declaration.type),!!(4&os(e))),e.mapper):Ae)}function ns(e){return Zx.getEffectiveConstraintOfTypeParameter(e.declaration.typeParameter)}function is(e){e=ns(e);return 184===e.kind&&134===e.operator}function as(e){var t;return e.modifiersType||(is(e)?e.modifiersType=Jl(gl(ns(e).type),e.mapper):(t=(t=ts(Vu(e.declaration)))&&262144&t.flags?ms(t):t,e.modifiersType=t&&4194304&t.flags?Jl(t.type,e.mapper):Pe)),e.modifiersType}function os(e){e=e.declaration;return(e.readonlyToken?40===e.readonlyToken.kind?2:1:0)|(e.questionToken?40===e.questionToken.kind?8:4:0)}function ss(e){e=os(e);return 8&e?-1:4&e?1:0}function cs(e){var t=ss(e),e=as(e);return t||(us(e)?ss(e):0)}function us(e){return!!(32&Zx.getObjectFlags(e))&&Ou(ts(e))}function ls(e){var t,r,n,i,a;return e.members||(524288&e.flags?4&e.objectFlags?(n=To((r=e).target),i=Zx.concatenate(n.typeParameters,[n.thisType]),a=Ac(r),Ro(r,n,i,a.length===i.length?a:Zx.concatenate(a,[r]))):3&e.objectFlags?Ro(t=e,To(t),Zx.emptyArray,Zx.emptyArray):2048&e.objectFlags?function(e){for(var t=Vs(e.source,0),r=os(e.mappedType),n=!(1&r),i=4&r?0:16777216,t=t&&vc(qd(t.type,e.mappedType,e.constraintType),n&&t.isReadonly),a=Zx.createSymbolTable(),o=0,s=fs(e.source);o<s.length;o++){var c=s[o],u=8192|(n&&Oy(c)?8:0),u=pn(4|c.flags&i,c.escapedName,u);u.declarations=c.declarations,u.nameType=Dn(c).nameType,u.propertyType=qa(c),u.mappedType=e.mappedType,u.constraintType=e.constraintType,a.set(c.escapedName,u)}Mi(e,a,Zx.emptyArray,Zx.emptyArray,t,void 0)}(e):16&e.objectFlags?Zo(e):32&e.objectFlags&&function(a){var o,s,c=Zx.createSymbolTable();Mi(a,A,Zx.emptyArray,Zx.emptyArray,void 0,void 0);var u=es(a),e=ts(a),l=rs(a.target||a),_=Ns(as(a)),d=os(a),t=h?128:8576;if(is(a)){for(var r=0,n=fs(_);r<n.length;r++)i(Cu(n[r],t));(1&_.flags||Vs(_,0))&&i(Re),!h&&Vs(_,1)&&i(Be)}else Lp($o(e),i);function i(e){var t,r,n,i=Al(a.mapper,u,e);ko(e)?(t=Po(e),r=Bs(_,t),(n=pn(4|((n=!!(4&d||!(8&d)&&r&&16777216&r.flags))?16777216:0),t,262144|(!!(1&d||!(2&d)&&r&&Oy(r))?8:0)|(Q&&!n&&r&&16777216&r.flags?524288:0))).mappedType=a,n.mapper=i,r&&(n.syntheticOrigin=r,n.declarations=r.declarations),n.nameType=e,c.set(t,n)):45&e.flags&&(i=Jl(l,i),5&e.flags?o=vc(i,!!(1&d)):s=vc(s?gu([s.type,i]):i,!!(1&d)))}Mi(a,c,Zx.emptyArray,Zx.emptyArray,o,s)}(e):1048576&e.flags?(n=e,i=Ko(Zx.map(n.types,function(e){return e===vt?[lr]:Js(e,0)})),a=Ko(Zx.map(n.types,function(e){return Js(e,1)})),r=qo(n.types,0),t=qo(n.types,1),Mi(n,A,i,a,r,t)):2097152&e.flags&&Xo(e)),e}function _s(e){return 524288&e.flags?ls(e).properties:Zx.emptyArray}function ds(e,t){if(524288&e.flags){t=ls(e).members.get(t);if(t&&ki(t))return t}}function ps(e){if(!e.resolvedProperties){for(var t=Zx.createSymbolTable(),r=0,n=e.types;r<n.length;r++){for(var i=n[r],a=0,o=fs(i);a<o.length;a++){var s,c=o[a];t.has(c.escapedName)||(s=ws(e,c.escapedName))&&t.set(c.escapedName,s)}if(1048576&e.flags&&!Vs(i,0)&&!Vs(i,1))break}e.resolvedProperties=Oi(t)}return e.resolvedProperties}function fs(e){return(3145728&(e=As(e)).flags?ps:_s)(e)}function gs(e){return 262144&e.flags?ms(e):8388608&e.flags?Ss(t=e)?function(e){var t=ys(e.indexType);if(t&&t!==e.indexType){var r=zu(e.objectType,t);if(r)return r}r=ys(e.objectType);if(r&&r!==e.objectType)return zu(r,e.indexType);return}(t):void 0:16777216&e.flags?Ss(t=e)?bs(t):void 0:xs(e);var t}function ms(e){return Ss(e)?Dc(e):void 0}function ys(e){var t=Lu(e,!1);return t!==e?t:gs(e)}function hs(e){var t,r;return e.resolvedDefaultConstraint||(t=(r=e).resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?Jl(r.root.trueType,r.combinedMapper):Wu(r)),r=Hu(e),e.resolvedDefaultConstraint=fa(t)?r:fa(r)?t:gu([t,r])),e.resolvedDefaultConstraint}function vs(e){if(e.root.isDistributive&&e.restrictiveInstantiation!==e){var t=Lu(e.checkType,!1),t=t===e.checkType?gs(t):t;if(t&&t!==e.checkType){e=jl(e,Nl(e.root.checkType,t,e.mapper));if(!(131072&e.flags))return e}}}function bs(e){return vs(e)||hs(e)}function xs(e){if(62128128&e.flags){var t=Cs(e);return t!==ut&&t!==lt?t:void 0}return 4194304&e.flags?et:void 0}function Ds(e){return xs(e)||e}function Ss(e){return Cs(e)!==lt}function Cs(e){var i=!1;return e.resolvedBaseConstraint||(e.resolvedBaseConstraint=Lo(t(e),e));function t(e){if(!e.immediateBaseConstraint){if(!ua(e,4))return lt;if(50<=p)return un(H,Zx.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),i=!0,e.immediateBaseConstraint=ut;p++;var t,r,n=function(e){if(262144&e.flags){var t=Dc(e);return e.isThisType||!t?t:c(t)}if(3145728&e.flags){for(var r=e.types,n=[],i=0,a=r;i<a.length;i++){var o=c(a[i]);o&&n.push(o)}return 1048576&e.flags&&n.length===r.length?gu(n):2097152&e.flags&&n.length?xu(n):void 0}if(4194304&e.flags)return et;if(8388608&e.flags){var s=c(e.objectType),r=c(e.indexType),r=s&&r&&zu(s,r);return r&&c(r)}if(16777216&e.flags){t=bs(e);p++;t=t&&c(t);return p--,t}if(33554432&e.flags)return c(e.substitute);return e}(Lu(e,!1));p--,_a()||(262144&e.flags&&((t=xc(e))&&(r=un(t,Zx.Diagnostics.Type_parameter_0_has_a_circular_constraint,Yi(e)),!H||Zx.isNodeDescendantOf(t,H)||Zx.isNodeDescendantOf(H,t)||Zx.addRelatedInfo(r,Zx.createDiagnosticForNode(H,Zx.Diagnostics.Circularity_originates_in_type_at_this_location)))),n=lt),i&&(n=lt),e.immediateBaseConstraint=n||ut}return e.immediateBaseConstraint}function c(e){e=t(e);return e!==ut&&e!==lt?e:void 0}}function Ts(e){var t;return e.default?e.default===_t&&(e.default=lt):e.target?(t=Ts(e.target),e.default=t?Jl(t,e.mapper):ut):(e.default=_t,t=(t=e.symbol&&Zx.forEach(e.symbol.declarations,function(e){return Zx.isTypeParameterDeclaration(e)&&e.default}))?gl(t):ut,e.default===_t&&(e.default=t)),e.default}function ks(e){e=Ts(e);return e!==ut&&e!==lt?e:void 0}function Es(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){var t=Ml(e);if(t){var r=ms(t);if(r&&(q_(r)||sd(r)))return Jl(e,Nl(t,r,e.mapper))}return e}(e))}function Ns(e){var t,e=63176704&e.flags?xs(e)||Pe:e;return 32&Zx.getObjectFlags(e)?Es(e):2097152&e.flags?(t=e).resolvedApparentType||(t.resolvedApparentType=Lo(t,t,!0)):132&e.flags?Ct:296&e.flags?Tt:2112&e.flags?(t=7<=M,(er=er||Gc("BigInt",0,t))||it):528&e.flags?kt:12288&e.flags?Xc(2<=M):67108864&e.flags?it:4194304&e.flags?et:2&e.flags&&!Q?it:e}function As(e){return Is(Ns(Is(e)))}function Fs(e,t){for(var r,n,i,a,o,s=1048576&e.flags,c=s?0:16777216,u=4,l=0,_=0,d=e.types;_<d.length;_++)(D=Ns(d[_]))===Ae||131072&D.flags||(o=(x=Bs(D,t))?Zx.getDeclarationModifierFlagsFromSymbol(x):0,x?(s?c|=16777216&x.flags:c&=x.flags,r?x!==r&&(n||(n=Zx.createMap()).set(""+lD(r),r),a=""+lD(x),n.has(a)||n.set(a,x)):r=x,l|=(Oy(x)?8:0)|(24&o?0:256)|(16&o?512:0)|(8&o?1024:0)|(32&o?2048:0),Pg(x)||(u=2)):s&&((o=!No(t)&&(ig(t)&&Vs(D,1)||Vs(D,0)))?(l|=32|(o.isReadonly?8:0),i=Zx.append(i,sd(D)?cd(D)||we:o.type)):tp(D)?(l|=32,i=Zx.append(i,we)):l|=16));if(r&&!(s&&(n||48&l)&&1536&l)){if(!(n||16&l||i))return r;for(var p,f,g,m,y=[],h=!1,v=0,b=n?Zx.arrayFrom(n.values()):[r];v<b.length;v++){var x=b[v];m?x.valueDeclaration&&x.valueDeclaration!==m&&(h=!0):m=x.valueDeclaration,p=Zx.addRange(p,x.declarations);var D=qa(x);f?D!==f&&(l|=64):(f=D,g=Dn(x).nameType),td(D)&&(l|=128),131072&D.flags&&(l|=131072),y.push(D)}Zx.addRange(y,i);var S=pn(4|c,t,u|l);return S.containingType=e,!h&&m&&(S.valueDeclaration=m).symbol.parent&&(S.parent=m.symbol.parent),S.declarations=p,S.nameType=g,2<y.length?(S.checkFlags|=65536,S.deferralParent=e,S.deferralConstituents=y):S.type=(s?gu:xu)(y),S}}function Ps(e,t){var r=e.propertyCache||(e.propertyCache=Zx.createSymbolTable()),n=r.get(t);return n||(n=Fs(e,t))&&r.set(t,n),n}function ws(e,t){t=Ps(e,t);return!t||16&Zx.getCheckFlags(t)?void 0:t}function Is(e){return 1048576&e.flags&&268435456&e.objectFlags?e.resolvedReducedType||(e.resolvedReducedType=function(e){var t=Zx.sameMap(e.types,Is);if(t===e.types)return e;t=gu(t);1048576&t.flags&&(t.resolvedReducedType=t);return t}(e)):2097152&e.flags?(268435456&e.objectFlags||(e.objectFlags|=268435456|(Zx.some(ps(e),Os)?536870912:0)),536870912&e.objectFlags?He:e):e}function Os(e){return Ms(e)||Ls(e)}function Ms(e){return!(16777216&e.flags||192!=(131264&Zx.getCheckFlags(e))||!(131072&qa(e).flags))}function Ls(e){return!e.valueDeclaration&&!!(1024&Zx.getCheckFlags(e))}function Rs(e,t){if(536870912&Zx.getObjectFlags(t)){var r=Zx.find(ps(t),Ms);if(r)return Zx.chainDiagnosticMessages(e,Zx.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Yi(t,void 0,536870912),Qi(r));r=Zx.find(ps(t),Ls);if(r)return Zx.chainDiagnosticMessages(e,Zx.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Yi(t,void 0,536870912),Qi(r))}return e}function Bs(e,t){if(524288&(e=As(e)).flags){var r=ls(e),n=r.members.get(t);if(n&&ki(n))return n;r=r===ct?vt:r.callSignatures.length?bt:r.constructSignatures.length?xt:void 0;if(r){r=ds(r,t);if(r)return r}return ds(ht,t)}if(3145728&e.flags)return ws(e,t)}function js(e,t){if(3670016&e.flags){e=ls(e);return 0===t?e.callSignatures:e.constructSignatures}return Zx.emptyArray}function Js(e,t){return js(As(e),t)}function zs(e,t){if(3670016&e.flags){e=ls(e);return 0===t?e.stringIndexInfo:e.numberIndexInfo}}function Us(e,t){t=zs(e,t);return t&&t.type}function Vs(e,t){return zs(As(e),t)}function Ks(e,t){return Us(As(e),t)}function qs(e,t){if(Sd(e)){for(var r=[],n=0,i=fs(e);n<i.length;n++){var a=i[n];0!==t&&!ig(a.escapedName)||r.push(qa(a))}if(0===t&&Zx.append(r,Ks(e,1)),r.length)return gu(r)}}function Ws(e){for(var t=0,r=Zx.getEffectiveTypeParameterDeclarations(e);t<r.length;t++)var n=r[t],i=Zx.appendIfUnique(i,go(n.symbol));return i}function Hs(e){var r=[];return e.forEach(function(e,t){Ii(t)||r.push(e)}),r}function Gs(e){return Zx.isInJSFile(e)&&(e.type&&299===e.type.kind||Zx.getJSDocParameterTags(e).some(function(e){var t=e.isBracketed,e=e.typeExpression;return t||!!e&&299===e.type.kind}))}function Qs(e,t){if(!Zx.isExternalModuleNameRelative(e)){e=Tn(ce,'"'+e+'"',512);return e&&t?hi(e):e}}function Xs(e){if(Zx.hasQuestionToken(e)||Ys(e)||Gs(e))return!0;if(e.initializer){var t=tc(e.parent),r=e.parent.parameters.indexOf(e);return Zx.Debug.assert(0<=r),r>=dy(t,!0)}t=Zx.getImmediatelyInvokedFunctionExpression(e.parent);return!!t&&(!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=t.arguments.length)}function Ys(e){if(!Zx.isJSDocParameterTag(e))return!1;var t=e.isBracketed,e=e.typeExpression;return t||!!e&&299===e.type.kind}function Zs(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function $s(e){var t,r=0;if(e)for(var n=0;n<e.length;n++)(t=e[n]).symbol&&Zx.forEach(t.symbol.declarations,function(e){return Zx.isTypeParameterDeclaration(e)&&e.default})||(r=n+1);return r}function ec(e,t,r,n){var i=Zx.length(t);if(!i)return[];var a=Zx.length(e);if(n||r<=a&&a<=i){for(var o=e?e.slice():[],s=a;s<i;s++)o[s]=Ae;for(var c=op(n),s=a;s<i;s++){var u=ks(t[s]);n&&u&&(Xl(u,Pe)||Xl(u,it))&&(u=ke),o[s]=u?Jl(u,bl(t,o)):c}return o.length=t.length,o}return e&&e.slice()}function tc(e){var t=Sn(e);if(!t.resolvedSignature){var r=[],n=0,i=0,a=void 0,o=!1,s=Zx.getImmediatelyInvokedFunctionExpression(e),c=Zx.isJSDocConstructSignature(e);!s&&Zx.isInJSFile(e)&&Zx.isValueSignatureDeclaration(e)&&!Zx.hasJSDocParameterTags(e)&&!Zx.getJSDocType(e)&&(n|=16);for(var u=c?1:0;u<e.parameters.length;u++){var l=e.parameters[u],_=l.symbol,d=Zx.isJSDocParameterTag(l)?l.typeExpression&&l.typeExpression.type:l.type;_&&4&_.flags&&!Zx.isBindingPattern(l.name)&&(_=Nn(l,_.escapedName,111551,void 0,void 0,!1)),0===u&&"this"===_.escapedName?(o=!0,a=l.symbol):r.push(_),d&&187===d.kind&&(n|=2),Ys(l)||l.initializer||l.questionToken||l.dotDotDotToken||s&&r.length>s.arguments.length&&!d||Gs(l)||(i=r.length)}163!==e.kind&&164!==e.kind||Fo(e)||o&&a||(c=163===e.kind?164:163,(c=Zx.getDeclarationOfKind(vi(e),c))&&(a=(p=jx(p=c))&&p.symbol));var p=162===e.kind?so(hi(e.parent.symbol)):void 0,p=p?p.localTypeParameters:Ws(e);(Zx.hasRestParameter(e)||Zx.isInJSFile(e)&&function(e,t){if(Zx.isJSDocSignature(e)||!nc(e))return!1;var r=Zx.lastOrUndefined(e.parameters),r=r?Zx.getJSDocParameterTags(r):Zx.getJSDocTags(e).filter(Zx.isJSDocParameterTag),e=Zx.firstDefined(r,function(e){return e.typeExpression&&Zx.isJSDocVariadicType(e.typeExpression.type)?e.typeExpression.type:void 0}),r=pn(3,"args",32768);r.type=e?nu(gl(e.type)):At,e&&t.pop();return t.push(r),!0}(e,r))&&(n|=1),t.resolvedSignature=Bo(e,p,a,r,void 0,void 0,i,n)}return t.resolvedSignature}function rc(e){if(Zx.isInJSFile(e)&&Zx.isFunctionLikeDeclaration(e)){e=Zx.getJSDocTypeTag(e),e=e&&e.typeExpression&&gm(gl(e.typeExpression));return e&&fc(e)}}function nc(e){var t=Sn(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 75:return"arguments"===t.escapedText&&Zx.isExpressionNode(t);case 159:case 161:case 163:case 164:return 154===t.name.kind&&e(t.name);default:return!Zx.nodeStartsNewLexicalEnvironment(t)&&!Zx.isPartOfTypeNode(t)&&!!Zx.forEachChild(t,e)}}(e.body)),t.containsArgumentsReference}function ic(e){if(!e)return Zx.emptyArray;for(var t=[],r=0;r<e.declarations.length;r++){var n=e.declarations[r];if(Zx.isFunctionLike(n)){if(0<r&&n.body){var i=e.declarations[r-1];if(n.parent===i.parent&&n.kind===i.kind&&n.pos===i.end)continue}t.push(tc(n))}}return t}function ac(e){if(e.thisParameter)return qa(e.thisParameter)}function oc(e){var t,r,n,i,a;return e.resolvedTypePredicate||(e.target?(t=oc(e.target),e.resolvedTypePredicate=t?(i=t,a=e.mapper,Zs(i.kind,i.parameterName,i.parameterIndex,Jl(i.type,a))):cr):e.unionSignatures?e.resolvedTypePredicate=function(e){for(var t,r=[],n=0,i=e;n<i.length;n++){var a=oc(i[n]);if(a&&2!==a.kind&&3!==a.kind){if(t){if(!mu(t,a))return}else t=a;r.push(a.type)}}if(!t)return;e=gu(r);return Zs(t.kind,t.parameterName,t.parameterIndex,e)}(e.unionSignatures)||cr:(t=void 0,(i=e.declaration&&Zx.getEffectiveReturnTypeNode(e.declaration))||!Zx.isInJSFile(e.declaration)||(r=rc(e.declaration))&&e!==r&&(t=oc(r)),e.resolvedTypePredicate=i&&Zx.isTypePredicateNode(i)?(a=e,n=(r=i).parameterName,i=r.type&&gl(r.type),183===n.kind?Zs(r.assertsModifier?2:0,void 0,void 0,i):Zs(r.assertsModifier?3:1,n.escapedText,Zx.findIndex(a.parameters,function(e){return e.escapedName===n.escapedText}),i)):t||cr),Zx.Debug.assert(!!e.resolvedTypePredicate)),e.resolvedTypePredicate===cr?void 0:e.resolvedTypePredicate}function sc(e){if(!e.resolvedReturnType){if(!ua(e,3))return Ae;var t,r,n=e.target?Jl(sc(e.target),e.mapper):e.unionSignatures?gu(Zx.map(e.unionSignatures,sc),2):cc(e.declaration)||(Zx.nodeIsMissing(e.declaration.body)?ke:Sy(e.declaration));4&e.flags?n=hd(n):8&e.flags&&(n=md(n)),_a()||(e.declaration&&((r=Zx.getEffectiveReturnTypeNode(e.declaration))?un(r,Zx.Diagnostics.Return_type_annotation_circularly_references_itself):X&&(t=e.declaration,(r=Zx.getNameOfDeclaration(t))?un(r,Zx.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,Zx.declarationNameToString(r)):un(t,Zx.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=ke),e.resolvedReturnType=n}return e.resolvedReturnType}function cc(e){if(162===e.kind)return so(hi(e.parent.symbol));if(Zx.isJSDocConstructSignature(e))return gl(e.parameters[0].type);var t=Zx.getEffectiveReturnTypeNode(e);if(t)return gl(t);if(163===e.kind&&!Fo(e)){t=Zx.isInJSFile(e)&&xa(e);if(t)return t;t=Ra(Zx.getDeclarationOfKind(vi(e),164));if(t)return t}return(e=rc(e=e))&&sc(e)}function uc(e){return!e.resolvedReturnType&&0<=la(e,3)}function lc(e){if(mD(e)){e=qa(e.parameters[e.parameters.length-1]),e=sd(e)?cd(e):e;return e&&Ks(e,1)}}function _c(e,t,r,n){e=dc(e,ec(t,e.typeParameters,$s(e.typeParameters),r));if(n){r=mm(sc(e));if(r){r=jo(r);r.typeParameters=n;n=jo(e);return n.resolvedReturnType=mc(r),n}}return e}function dc(e,t){var r=e.instantiations||(e.instantiations=Zx.createMap()),n=Cc(t),i=r.get(n);return i||r.set(n,i=pc(e,t)),i}function pc(e,t){return Pl(e,(t=t,bl(e.typeParameters,t)),!0)}function fc(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=Pl(t=e,Tl(t.typeParameters),!0)):e;var t}function gc(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=_c(t=e,Zx.map(t.typeParameters,function(e){return e.target&&!ms(e.target)?e.target:e}),Zx.isInJSFile(t.declaration))):e;var t}function mc(e){var t,r;return e.isolatedSignatureType||(t=162===(r=e.declaration?e.declaration.kind:0)||166===r||171===r,(r=Pi(16)).members=A,r.properties=Zx.emptyArray,r.callSignatures=t?Zx.emptyArray:[e],r.constructSignatures=t?[e]:Zx.emptyArray,e.isolatedSignatureType=r),e.isolatedSignatureType}function yc(e){return e.members.get("__index")}function hc(e,t){var r=1===t?140:143,e=yc(e);if(e)for(var n=0,i=e.declarations;n<i.length;n++){var a=i[n],o=Zx.cast(a,Zx.isIndexSignatureDeclaration);if(1===o.parameters.length){a=o.parameters[0];if(a.type&&a.type.kind===r)return o}}}function vc(e,t,r){return{type:e,isReadonly:t,declaration:r}}function bc(e,t){t=hc(e,t);if(t)return vc(t.type?gl(t.type):ke,Zx.hasModifier(t,64),t)}function xc(e){return Zx.mapDefined(Zx.filter(e.symbol&&e.symbol.declarations,Zx.isTypeParameterDeclaration),Zx.getEffectiveConstraintOfTypeParameter)[0]}function Dc(e){var t,r;return e.constraint||(e.target?(r=ms(e.target),e.constraint=r?Jl(r,e.mapper):ut):(t=xc(e))?(1&(r=gl(t)).flags&&r!==Ae&&(r=186===t.parent.parent.kind?et:Pe),e.constraint=r):e.constraint=function(e){var t;if(e.symbol)for(var r=0,n=e.symbol.declarations;r<n.length;r++){var i,a,o,s=n[r];181===s.parent.kind&&(169===(i=s.parent.parent).kind?!(o=kh(a=i))||(s=a.typeArguments.indexOf(s.parent))<o.length&&(!(s=ms(o[s]))||(o=Jl(s,bl(o,Ch(a,o))))!==e&&(t=Zx.append(t,o))):156===i.kind&&i.dotDotDotToken&&(t=Zx.append(t,nu(Pe))))}return t&&xu(t)}(e)||ut),e.constraint===ut?void 0:e.constraint}function Sc(e){e=Zx.getDeclarationOfKind(e.symbol,155),e=Zx.isJSDocTemplateTag(e.parent)?Zx.getHostSignatureFromJSDoc(e.parent):e.parent;return e&&vi(e)}function Cc(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 Tc(e,t){for(var r=0,n=0,i=e;n<i.length;n++){var a=i[n];a.flags&t||(r|=Zx.getObjectFlags(a))}return 3670016&r}function kc(e,t){var r=Cc(t),n=e.instantiations.get(r);return n||(n=Pi(4,e.symbol),e.instantiations.set(r,n),n.objectFlags|=t?Tc(t,0):0,n.target=e,n.resolvedTypeArguments=t),n}function Ec(e){var t=Ni(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function Nc(e,t,r){var n=Zu(t),i=$u(n),a=Pi(4,e.symbol);return a.target=e,a.node=t,a.mapper=r,a.aliasSymbol=n,a.aliasTypeArguments=r?hl(i,r):i,a}function Ac(e){if(!e.resolvedTypeArguments){if(!ua(e,6))return(null===(t=e.target.localTypeParameters)||void 0===t?void 0:t.map(function(){return Ae}))||Zx.emptyArray;var t=e.node,t=t?169===t.kind?Zx.concatenate(e.target.outerTypeParameters,Ch(t,e.target.localTypeParameters)):174===t.kind?[gl(t.elementType)]:Zx.map(t.elementTypes,gl):Zx.emptyArray;_a()?e.resolvedTypeArguments=e.mapper?hl(t,e.mapper):t:(e.resolvedTypeArguments=(null===(t=e.target.localTypeParameters)||void 0===t?void 0:t.map(function(){return Ae}))||Zx.emptyArray,un(e.node||H,e.target.symbol?Zx.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:Zx.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&Qi(e.target.symbol)))}return e.resolvedTypeArguments}function Fc(e){return Zx.length(e.target.typeParameters)}function Pc(e,t){var r=mo(hi(t)),n=r.localTypeParameters;if(n){var i=Zx.length(e.typeArguments),a=$s(n),o=Zx.isInJSFile(e);if(!(!X&&o)&&(i<a||i>n.length)){i=o&&Zx.isExpressionWithTypeArguments(e)&&!Zx.isJSDocAugmentsTag(e.parent);if(un(e,a===n.length?i?Zx.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:Zx.Diagnostics.Generic_type_0_requires_1_type_argument_s:i?Zx.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:Zx.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Yi(r,void 0,2),a,n.length),!o)return Ae}return 169===e.kind&&au(e,Zx.length(e.typeArguments)!==n.length)?Nc(r,e,void 0):kc(r,Zx.concatenate(r.outerTypeParameters,ec(Vc(e),n,a,o)))}return Jc(e,t)?r:Ae}function wc(e,t){var r=mo(e),n=Dn(e),i=n.typeParameters,a=Cc(t),o=n.instantiations.get(a);return o||n.instantiations.set(a,o=Jl(r,bl(i,ec(t,i,$s(i),Zx.isInJSFile(e.valueDeclaration))))),o}function Ic(e){switch(e.kind){case 169:return e.typeName;case 216:var t=e.expression;if(Zx.isEntityNameExpression(t))return t}}function Oc(e,t,r){return e&&ni(e,t,r)||Ce}function Mc(e,t){if(t===Ce)return Ae;if(96&(t=function(e){var t=e.valueDeclaration;if(t&&Zx.isInJSFile(t)&&!(524288&e.flags)&&!Zx.getExpandoInitializer(t,!1)){t=Zx.isVariableDeclaration(t)?Zx.getDeclaredExpandoInitializer(t):Zx.getAssignedExpandoInitializer(t);if(t){t=vi(t);if(t)return Xm(t,e)}}}(t)||t).flags)return Pc(e,t);if(524288&t.flags)return function(e,t){var r=mo(t),n=Dn(t).typeParameters;if(n){var i=Zx.length(e.typeArguments),a=$s(n);return i<a||i>n.length?(un(e,a===n.length?Zx.Diagnostics.Generic_type_0_requires_1_type_argument_s:Zx.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Qi(t),a,n.length),Ae):wc(t,Vc(e))}return Jc(e,t)?r:Ae}(e,t);var r=yo(t);if(r)return Jc(e,t)?ll(r):Ae;if(111551&t.flags&&jc(e)){r=function(e,t){var r=Sn(e);if(!r.resolvedJSDocType){var n=qa(t),i=n;if(t.valueDeclaration){var a=Zx.getRootDeclaration(t.valueDeclaration),t=!1;if(Zx.isVariableDeclaration(a)&&a.initializer){for(var o=a.initializer;Zx.isPropertyAccessExpression(o);)o=o.expression;t=Zx.isCallExpression(o)&&Zx.isRequireCall(o,!0)&&!!n.symbol}a=188===e.kind&&e.qualifier;n.symbol&&(t||a)&&(i=Mc(e,n.symbol))}r.resolvedJSDocType=i}return r.resolvedJSDocType}(e,t);return r||(Oc(Ic(e),788968),qa(t))}return Ae}function Lc(e,t){if(3&t.flags||t===e)return e;var r=e.id+">"+t.id,n=xe.get(r);if(n)return n;n=Ni(33554432);return n.baseType=e,n.substitute=t,xe.set(r,n),n}function Rc(e){return 175===e.kind&&1===e.elementTypes.length}function Bc(e,t){for(var r;t&&!Zx.isStatement(t)&&303!==t.kind;){var n,i=t.parent;180!==i.kind||t!==i.trueType||(n=function e(t,r,n){return Rc(r)&&Rc(n)?e(t,r.elementTypes[0],n.elementTypes[0]):Ku(gl(r))===t?gl(n):void 0}(e,i.checkType,i.extendsType))&&(r=Zx.append(r,n)),t=i}return r?Lc(e,xu(Zx.append(r,e))):e}function jc(e){return!!(4194304&e.flags)&&(169===e.kind||188===e.kind)}function Jc(e,t){if(!e.typeArguments)return 1;un(e,Zx.Diagnostics.Type_0_is_not_generic,t?Qi(t):e.typeName?Zx.declarationNameToString(e.typeName):eD)}function zc(e){if(Zx.isIdentifier(e.typeName)){var t=e.typeArguments;switch(e.typeName.escapedText){case"String":return Jc(e),Re;case"Number":return Jc(e),Be;case"Boolean":return Jc(e),Ke;case"Void":return Jc(e),We;case"Undefined":return Jc(e),we;case"Null":return Jc(e),Me;case"Function":case"function":return Jc(e),vt;case"array":return t&&t.length||X?void 0:At;case"promise":return t&&t.length||X?void 0:by(ke);case"Object":if(t&&2===t.length){if(Zx.isJSDocIndexSignature(e)){var r=gl(t[0]),n=vc(gl(t[1]),!1);return Li(void 0,A,Zx.emptyArray,Zx.emptyArray,r===Re?n:void 0,r===Be?n:void 0)}return ke}return Jc(e),X?void 0:ke}}}function Uc(e){var t=Sn(e);if(!t.resolvedType){if(Zx.isConstTypeReference(e)&&Zx.isAssertionExpression(e.parent))return t.resolvedSymbol=Ce,t.resolvedType=Yy(e.parent.expression);var r=void 0,n=void 0,i=788968;jc(e)&&((n=zc(e))||((r=Oc(Ic(e),i,!0))===Ce?r=Oc(Ic(e),900095):Oc(Ic(e),i),n=Mc(e,r))),n=n||Mc(e,r=Oc(Ic(e),i)),t.resolvedSymbol=r,t.resolvedType=n}return t.resolvedType}function Vc(e){return Zx.map(e.typeArguments,gl)}function Kc(e){var t=Sn(e);return t.resolvedType||(t.resolvedType=ll(Ad(ph(e.exprName)))),t.resolvedType}function qc(e,t){function r(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];switch(n.kind){case 245:case 246:case 248:return n}}}if(!e)return t?st:it;var n=mo(e);return 524288&n.flags?Zx.length(n.typeParameters)!==t?(un(r(e),Zx.Diagnostics.Global_type_0_must_have_1_type_parameter_s,Zx.symbolName(e),t),t?st:it):n:(un(r(e),Zx.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,Zx.symbolName(e)),t?st:it)}function Wc(e,t){return Hc(e,111551,t?Zx.Diagnostics.Cannot_find_global_value_0:void 0)}function Hc(e,t,r){return Nn(void 0,e,t,r,e,!1)}function Gc(e,t,r){e=Hc(e,788968,r?Zx.Diagnostics.Cannot_find_global_type_0:void 0);return e||r?qc(e,t):void 0}function Qc(e){return It=It||Wc("Symbol",e)}function Xc(e){return(Ot=Ot||Gc("Symbol",0,e))||it}function Yc(e){return(Lt=Lt||Gc("Promise",1,e))||st}function Zc(e){return Bt=Bt||Wc("Promise",e)}function $c(e){return(Jt=Jt||Gc("Iterable",1,e))||st}function eu(e,t){void 0===t&&(t=0);e=Hc(e,788968,void 0);return e&&qc(e,t)}function tu(e,t){return e!==st?kc(e,t):it}function ru(e){return tu((Mt=Mt||Gc("TypedPropertyDescriptor",1,!0))||st,[e])}function nu(e,t){return tu(t?St:Dt,[e])}function iu(e){var t=(r=e.parent,Zx.isTypeOperatorNode(r)&&138===r.operator);if(174===e.kind||1===e.elementTypes.length&&177===e.elementTypes[0].kind)return t?St:Dt;var r=Zx.lastOrUndefined(e.elementTypes),n=r&&177===r.kind?r:void 0,r=Zx.findLastIndex(e.elementTypes,function(e){return 176!==e.kind&&e!==n})+1;return su(e.elementTypes.length,r,!!n,t,void 0)}function au(e,t){return Zu(e)||function e(t){var r=t.parent;switch(r.kind){case 182:case 169:case 178:case 179:case 185:case 180:case 184:case 174:case 175:return e(r);case 247:return!0}return!1}(e)&&(174===e.kind?ou(e.elementType):175===e.kind?Zx.some(e.elementTypes,ou):t||Zx.some(e.typeArguments,ou))}function ou(e){switch(e.kind){case 169:return jc(e)||!!(524288&Oc(e.typeName,788968).flags);case 172:return!0;case 184:return 147!==e.operator&&ou(e.type);case 182:case 176:case 299:case 297:case 298:case 294:return ou(e.type);case 177:return 174!==e.type.kind||ou(e.type.elementType);case 178:case 179:return Zx.some(e.types,ou);case 185:return ou(e.objectType)||ou(e.indexType);case 180:return ou(e.checkType)||ou(e.extendsType)||ou(e.trueType)||ou(e.falseType)}return!1}function su(e,t,r,n,i){var a=e+(r?"+":",")+t+(n?"R":"")+(i&&i.length?","+i.join(","):""),o=me.get(a);return o||me.set(a,o=function(e,t,r,n,i){var a,o=[],s=r?e-1:e;if(e){a=new Array(e);for(var c=0;c<e;c++){var u,l=a[c]=wi();c<s&&((u=pn(4|(t<=c?16777216:0),""+c,n?8:0)).type=l,o.push(u))}}for(var _=[],c=t;c<=s;c++)_.push(dl(c));var d=pn(4,"length");return d.type=r?Be:gu(_),o.push(d),(d=Pi(12)).typeParameters=a,d.outerTypeParameters=void 0,d.localTypeParameters=a,d.instantiations=Zx.createMap(),d.instantiations.set(Cc(d.typeParameters),d),(d.target=d).resolvedTypeArguments=d.typeParameters,d.thisType=wi(),d.thisType.isThisType=!0,(d.thisType.constraint=d).declaredProperties=o,d.declaredCallSignatures=Zx.emptyArray,d.declaredConstructSignatures=Zx.emptyArray,d.declaredStringIndexInfo=void 0,d.declaredNumberIndexInfo=void 0,d.minLength=t,d.hasRestElement=r,d.readonly=n,d.associatedNames=i,d}(e,t,r,n,i)),o}function cu(e,t,r,n,i){void 0===t&&(t=e.length),void 0===r&&(r=!1),void 0===n&&(n=!1);var a=e.length;if(1===a&&r)return nu(e[0],n);i=su(a,t,0<a&&r,n,i);return e.length?kc(i,e):i}function uu(e,t){var r=e.target;return r.hasRestElement&&(t=Math.min(t,Fc(e)-1)),cu(Ac(e).slice(t),Math.max(0,r.minLength-t),r.hasRestElement,r.readonly,r.associatedNames&&r.associatedNames.slice(t))}function lu(e){return e.id}function _u(e,t){return 0<=Zx.binarySearch(e,t,lu,Zx.compareValues)}function du(e,t){var r=Zx.binarySearch(e,t,lu,Zx.compareValues);return r<0&&(e.splice(~r,0,t),1)}function pu(e,t,r){for(var n,i,a,o=0,s=r;o<s.length;o++){var c=s[o];n=e,i=t,a=void 0,t=1048576&(a=(c=c).flags)?pu(n,i,c.types):(131072&a||(i|=71041023&a,66846720&a&&(i|=262144),c===Ne&&(i|=8388608),!Q&&98304&a?524288&Zx.getObjectFlags(c)||(i|=4194304):(a=(a=n.length)&&c.id>n[a-1].id?~a:Zx.binarySearch(n,c,lu,Zx.compareValues))<0&&n.splice(~a,0,c)),i)}return t}function fu(e,t){var r=e.length;if(0===r||function(e){var t=e[0];if(1024&t.flags){for(var r=bi(t.symbol),n=1;n<e.length;n++){var i=e[n];if(!(1024&i.flags)||r!==bi(i.symbol))return}return 1}}(e))return 1;for(var n=r,i=0;0<n;)for(var a=e[--n],o=0,s=e;o<s.length;o++){var c=s[o];if(a!==c){if(1e5===i)if((t?25e6:1e6)<i/(r-n)*r)return void un(H,Zx.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(i++,D_(a,c,tn)&&(!(1&Zx.getObjectFlags(Ha(a)))||!(1&Zx.getObjectFlags(Ha(c)))||r_(a,c))){Zx.orderedRemoveItemAt(e,n);break}}}return 1}function gu(e,t,r,n){if(void 0===t&&(t=1),0===e.length)return He;if(1===e.length)return e[0];var i=[],a=pu(i,0,e);if(0!==t){if(3&a)return 1&a?8388608&a?Ne:ke:Pe;switch(t){case 1:11136&a&&function(e,t){for(var r=e.length;0<r;){var n=e[--r];(128&n.flags&&4&t||256&n.flags&&8&t||2048&n.flags&&64&t||8192&n.flags&&4096&t||_l(n)&&_u(e,n.regularType))&&Zx.orderedRemoveItemAt(e,r)}}(i,a);break;case 2:if(!fu(i,!(262144&a)))return Ae}if(0===i.length)return 65536&a?4194304&a?Me:Le:32768&a?4194304&a?we:Ie:He}return yu(i,(66994211&a?0:262144)|(2097152&a?268435456:0),r,n)}function mu(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function yu(e,t,r,n){if(0===e.length)return He;if(1===e.length)return e[0];var i=Cc(e),a=ye.get(i);return a||(a=Ni(1048576),ye.set(i,a),a.objectFlags=t|Tc(e,98304),a.types=e,a.aliasSymbol=r,a.aliasTypeArguments=n),a}function hu(e,t,r){for(var n,i,a,o=0,s=r;o<s.length;o++){var c=s[o];n=e,i=t,a=ll(c),c=void 0,t=2097152&(c=a.flags)?hu(n,i,a.types):(h_(a)?16777216&i||(i|=16777216,n.set(a.id.toString(),a)):(3&c?a===Ne&&(i|=8388608):!Q&&98304&c||n.has(a.id.toString())||(109440&a.flags&&109440&i&&(i|=67108864),n.set(a.id.toString(),a)),i|=71041023&c),i)}return t}function vu(e,t){if(Zx.every(e,function(e){return!!(1048576&e.flags)&&Zx.some(e.types,function(e){return!!(e.flags&t)})})){for(var r=0;r<e.length;r++)e[r]=Bp(e[r],function(e){return!(e.flags&t)});return 1}}function bu(e){var t,r=Zx.findIndex(e,function(e){return!!(262144&Zx.getObjectFlags(e))});if(!(r<0)){for(var n=r+1;n<e.length;){var i=e[n];262144&Zx.getObjectFlags(i)?((t=t||[e[r]]).push(i),Zx.orderedRemoveItemAt(e,n)):n++}if(t){for(var a=[],o=[],s=0,c=t;s<c.length;s++)for(var u=0,l=c[s].types;u<l.length;u++)du(a,i=l[u])&&(!function(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!_u(i.types,t)){var a=128&t.flags?Re:256&t.flags?Be:2048&t.flags?je:8192&t.flags?qe:void 0;if(!a||!_u(i.types,a))return}}return 1}(t,i)||du(o,i));return e[r]=yu(o,262144),1}}}function xu(e,t,r){var n=Zx.createMap(),i=hu(n,0,e),a=Zx.arrayFrom(n.values());if(131072&i||Q&&98304&i&&84410368&i||67108864&i&&130044&i||132&i&&67238776&i||296&i&&67238612&i||2112&i&&67236796&i||12288&i&&67226620&i||49152&i&&67189756&i)return He;if(1&i)return 8388608&i?Ne:ke;if(!Q&&98304&i)return 32768&i?we:Me;if((4&i&&128&i||8&i&&256&i||64&i&&2048&i||4096&i&&8192&i)&&function(e,t){for(var r=e.length;0<r;){var n=e[--r];(4&n.flags&&128&t||8&n.flags&&256&t||64&n.flags&&2048&t||4096&n.flags&&8192&t)&&Zx.orderedRemoveItemAt(e,r)}}(a,i),16777216&i&&524288&i&&Zx.orderedRemoveItemAt(a,Zx.findIndex(a,h_)),0===a.length)return Pe;if(1===a.length)return a[0];e=Cc(a);if(!(n=he.get(e))){if(1048576&i)if(bu(a))n=xu(a,t,r);else if(vu(a,32768))n=gu([xu(a),we],1,t,r);else if(vu(a,65536))n=gu([xu(a),Me],1,t,r);else{if(1e5<=Zx.reduceLeft(a,function(e,t){return e*(1048576&t.flags?t.types.length:1)},1))return un(H,Zx.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),Ae;var o=Zx.findIndex(a,function(e){return 0!=(1048576&e.flags)}),s=a[o],n=gu(Zx.map(s.types,function(e){return xu(Zx.replaceElement(a,o,e))}),1,t,r)}else i=a,s=t,t=r,(r=Ni(2097152)).objectFlags=Tc(i,98304),r.types=i,r.aliasSymbol=s,r.aliasTypeArguments=t,n=r;he.set(e,n)}return n}function Du(e,t){var r=Ni(4194304);return r.type=e,r.stringsOnly=t,r}function Su(e){return Zx.isPrivateIdentifier(e)?He:Zx.isIdentifier(e)?dl(Zx.unescapeLeadingUnderscores(e.escapedText)):ll((Zx.isComputedPropertyName(e)?ag:ph)(e))}function Cu(e,t){if(!(24&Zx.getDeclarationModifierFlagsFromSymbol(e))){var r,n=Dn(Mo(e)).nameType;if(n||Zx.isKnownSymbol(e)||(n="default"===e.escapedName?dl("default"):(r=e.valueDeclaration&&Zx.getNameOfDeclaration(e.valueDeclaration))&&Su(r)||dl(Zx.symbolName(e))),n&&n.flags&t)return n}return He}function Tu(e,t){return gu(Zx.map(fs(e),function(e){return Cu(e,t)}))}function ku(e){e=Vs(e,1);return e!==pr?e:void 0}function Eu(e,t,r){return void 0===t&&(t=h),1048576&(e=Is(e)).flags?xu(Zx.map(e.types,function(e){return Eu(e,t,r)})):2097152&e.flags?gu(Zx.map(e.types,function(e){return Eu(e,t,r)})):jy(e,58982400)?(n=e,t?n.resolvedStringIndexType||(n.resolvedStringIndexType=Du(n,!0)):n.resolvedIndexType||(n.resolvedIndexType=Du(n,!1))):32&Zx.getObjectFlags(e)?Bp(ts(e),function(e){return!(r&&5&e.flags)}):e===Ne?Ne:2&e.flags?He:131073&e.flags?et:t?!r&&Vs(e,0)?Re:Tu(e,128):!r&&Vs(e,0)?gu([Re,Be,Tu(e,8192)]):ku(e)?gu([Be,Tu(e,8320)]):Tu(e,8576);var n}function Nu(e){if(h)return e;var t=Zt=Zt||Hc("Extract",524288,Zx.Diagnostics.Cannot_find_global_type_0);return t?wc(t,[e,Re]):Re}function Au(e){return!X&&(!!(16384&Zx.getObjectFlags(e))||(1048576&e.flags?Zx.every(e.types,Au):2097152&e.flags?Zx.some(e.types,Au):!!(63176704&e.flags)&&Au(Cs(e))))}function Fu(e,t){var r=t&&195===t.kind?t:void 0;return ko(e)?Po(e):r&&om(r.argumentExpression,e,!1)?Zx.getPropertyNameForKnownSymbolName(Zx.idText(r.argumentExpression.name)):t&&Zx.isPropertyName(t)?Zx.getPropertyNameForPropertyNameNode(t):void 0}function Pu(e,t,r,n,i,a,o){var s=a&&195===a.kind?a:void 0,c=a&&Zx.isPrivateIdentifier(a)?void 0:Fu(r,a);if(void 0!==c){var u=Bs(t,c);if(u){if(s){if(tm(u,s,104===s.expression.kind),My(s,u,Zx.getAssignmentTargetKind(s)))return void un(s.argumentExpression,Zx.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Qi(u));4&o&&(Sn(a).resolvedSymbol=u)}var l=qa(u);return s&&1!==Zx.getAssignmentTargetKind(s)?af(s,l):l}if(Rp(t,sd)&&ig(c)&&0<=+c)return!a||!Rp(t,function(e){return!e.target.hasRestElement})||8&o||(_=wu(a),sd(t)?un(_,Zx.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,Yi(t),Fc(t),Zx.unescapeLeadingUnderscores(c)):un(_,Zx.Diagnostics.Property_0_does_not_exist_on_type_1,Zx.unescapeLeadingUnderscores(c),Yi(t))),d(Vs(t,1)),jp(t,function(e){return cd(e)||we})}if(!(98304&r.flags)&&Jy(r,12716)){if(131073&t.flags)return t;var _,u=Vs(t,0),l=Jy(r,296)&&Vs(t,1)||u;if(l)return 1&o&&l===u?void(s&&un(s,Zx.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Yi(r),Yi(e))):(a&&!Jy(r,12)?un(_=wu(a),Zx.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Yi(r)):d(l),l.type);if(131072&r.flags)return He;if(Au(t))return ke;if(s&&!Uy(t))return void(t.symbol===le&&void 0!==c&&le.exports.has(c)&&418&le.exports.get(c).flags?un(s,Zx.Diagnostics.Property_0_does_not_exist_on_type_1,Zx.unescapeLeadingUnderscores(c),Yi(t)):!X||G.suppressImplicitAnyIndexErrors||i||(void 0!==c&&Qg(c,t)?un(s,Zx.Diagnostics.Property_0_is_a_static_member_of_type_1,c,Yi(t)):Ks(t,1)?un(s.argumentExpression,Zx.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number):(i=void 0)!==c&&(i=Yg(c,t))?void 0!==i&&un(s.argumentExpression,Zx.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,c,Yi(t),i):void 0!==(c=function(t,e,r){var n=Zx.isAssignmentTarget(e)?"set":"get";if(!function(e){if(e=ds(t,e)){e=gm(qa(e));return e&&1<=dy(e)&&t_(r,cy(e,0))}}(n))return;e=Zx.tryGetPropertyAccessOrIdentifierToString(e.expression);void 0===e?e=n:e+="."+n;return e}(t,s,r))?un(s,Zx.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Yi(t),c):(i=void 0,1024&r.flags?i=Zx.chainDiagnosticMessages(void 0,Zx.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Yi(r)+"]",Yi(t)):8192&r.flags?(c=ri(r.symbol,s),i=Zx.chainDiagnosticMessages(void 0,Zx.Diagnostics.Property_0_does_not_exist_on_type_1,"["+c+"]",Yi(t))):128&r.flags||256&r.flags?i=Zx.chainDiagnosticMessages(void 0,Zx.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,Yi(t)):12&r.flags&&(i=Zx.chainDiagnosticMessages(void 0,Zx.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Yi(r),Yi(t))),i=Zx.chainDiagnosticMessages(i,Zx.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Yi(n),Yi(t)),Xr.add(Zx.createDiagnosticForNodeFromMessageChain(s,i)))))}return Au(t)?ke:(a&&(_=wu(a),384&r.flags?un(_,Zx.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,Yi(t)):12&r.flags?un(_,Zx.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Yi(t),Yi(r)):un(_,Zx.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Yi(r))),fa(r)?r:void 0);function d(e){e&&e.isReadonly&&s&&(Zx.isAssignmentTarget(s)||Zx.isDeleteTarget(s))&&un(s,Zx.Diagnostics.Index_signature_in_type_0_only_permits_reading,Yi(t))}}function wu(e){return 195===e.kind?e.argumentExpression:185===e.kind?e.indexType:154===e.kind?e.expression:e}function Iu(e){return 3145728&e.flags?(4194304&e.objectFlags||(e.objectFlags|=4194304|(Zx.some(e.types,Iu)?8388608:0)),!!(8388608&e.objectFlags)):!!(58982400&e.flags)||us(e)}function Ou(e){return 3145728&e.flags?(16777216&e.objectFlags||(e.objectFlags|=16777216|(Zx.some(e.types,Ou)?33554432:0)),!!(33554432&e.objectFlags)):!!(63176704&e.flags)}function Mu(e){return 262144&e.flags&&e.isThisType}function Lu(e,t){return 8388608&e.flags?function(e,t){var r=t?"simplifiedForWriting":"simplifiedForReading";if(e[r])return e[r]===lt?e:e[r];e[r]=lt;var n=function(e){if(33554432&e.flags)return e.substitute;return e}(Lu(e.objectType,t)),i=Lu(e.indexType,t),a=function(t,e,r){if(1048576&e.flags){e=Zx.map(e.types,function(e){return Lu(Ju(t,e),r)});return(r?xu:gu)(e)}}(n,i,t);if(a)return e[r]=a;if(!(63176704&i.flags)){i=Ru(n,i,t);if(i)return e[r]=i}if(us(n))return e[r]=jp(ju(n,e.indexType),function(e){return Lu(e,t)});return e[r]=e}(e,t):16777216&e.flags?function(e,t){var r=e.checkType,n=e.extendsType,i=Wu(e),a=Hu(e);if(131072&a.flags&&Ku(i)===Ku(r)){if(1&r.flags||t_(Vl(r),Vl(n)))return Lu(i,t);if(Bu(r,n))return He}else if(131072&i.flags&&Ku(a)===Ku(r)){if(!(1&r.flags)&&t_(Vl(r),Vl(n)))return He;if(1&r.flags||Bu(r,n))return Lu(a,t)}return e}(e,t):e}function Ru(e,t,r){if(3145728&e.flags){var n=Zx.map(e.types,function(e){return Lu(Ju(e,t),r)});return(2097152&e.flags||r?xu:gu)(n)}}function Bu(e,t){return 131072&gu([Wo(e,t),He]).flags}function ju(e,t){t=bl([es(e)],[t]),t=kl(e.mapper,t);return Jl(rs(e),t)}function Ju(e,t,r,n,i){return zu(e,t,r,0,n,i)||(r?Ae:Pe)}function zu(e,t,r,n,i,a){if(void 0===n&&(n=0),e===Ne||t===Ne)return Ne;if(!v_(e)||98304&t.flags||!Jy(t,12)||(t=Re),Ou(t)||(!r||185===r.kind)&&Iu(e)){if(3&e.flags)return e;var o=e.id+","+t.id,s=be.get(o);return s||be.set(o,(c=e,u=t,l=i,_=a,(o=Ni(8388608)).objectType=c,o.indexType=u,o.aliasSymbol=l,o.aliasTypeArguments=_,s=o)),s}var c,u,l,_,d=As(e);if(!(1048576&t.flags)||16&t.flags)return Pu(e,d,t,t,!1,r,4|n);for(var p=[],f=!1,g=0,m=t.types;g<m.length;g++){var y=Pu(e,d,m[g],t,f,r,n);if(y)p.push(y);else{if(!r)return;f=!0}}return f?void 0:2&n?xu(p,i,a):gu(p,1,i,a)}function Uu(e){var t,r,n,i=Sn(e);return i.resolvedType||(n=Ju(t=gl(e.objectType),r=gl(e.indexType),e,n=Zu(e),$u(n)),i.resolvedType=8388608&n.flags&&n.objectType===t&&n.indexType===r?Bc(n,e):n),i.resolvedType}function Vu(e){var t,r=Sn(e);return r.resolvedType||((t=Pi(32,e.symbol)).declaration=e,t.aliasSymbol=Zu(e),t.aliasTypeArguments=$u(t.aliasSymbol),ts(r.resolvedType=t)),r.resolvedType}function Ku(e){return 33554432&e.flags?e.baseType:8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?Ju(Ku(e.objectType),Ku(e.indexType)):e}function qu(o,s){for(var c,u;;){var e=function(){var e=Jl(o.checkType,s),t=Iu(e)||Ou(e),r=Jl(o.extendsType,s);if(e===Ne||r===Ne)return{value:Ne};var n=void 0;o.inferTypeParameters&&(a=Md(o.inferTypeParameters,void 0,0),t&&Zx.some(o.inferTypeParameters,function(e){return e===r})||Zd(a.inferences,e,r,384),n=El(s,a.mapper));var i=n?Jl(o.extendsType,n):r;if(!t&&!Iu(i)&&!Ou(i)){if(!(3&i.flags)&&(1&e.flags||!t_(Ul(e),Ul(i)))){1&e.flags&&(u=u||[]).push(zl(o.trueType,n||s));var a=o.falseType;if(16777216&a.flags){t=a.root;if(t.node.parent===o.node&&(!t.isDistributive||t.checkType===o.checkType))return o=t,"continue"}return c=zl(a,s),"break"}if(3&i.flags||t_(Vl(e),Vl(i)))return c=zl(o.trueType,n||s),"break"}e=Ku(e);return(c=Ni(16777216)).root=o,c.checkType=e,c.extendsType=r,c.mapper=s,c.combinedMapper=n,c.aliasSymbol=o.aliasSymbol,c.aliasTypeArguments=hl(o.aliasTypeArguments,s),"break"}();if("object"==typeof e)return e.value;if("break"===e)break}return u?gu(Zx.append(u,c)):c}function Wu(e){return e.resolvedTrueType||(e.resolvedTrueType=Jl(e.root.trueType,e.mapper))}function Hu(e){return e.resolvedFalseType||(e.resolvedFalseType=Jl(e.root.falseType,e.mapper))}function Gu(e){var t;return e.locals&&e.locals.forEach(function(e){262144&e.flags&&(t=Zx.append(t,mo(e)))}),t}function Qu(e){var t=Sn(e);if(!t.resolvedType){if(e.isTypeOf&&e.typeArguments)return un(e,Zx.Diagnostics.Type_arguments_cannot_be_used_here),t.resolvedSymbol=Ce,t.resolvedType=Ae;if(!Zx.isLiteralImportTypeNode(e))return un(e.argument,Zx.Diagnostics.String_literal_expected),t.resolvedSymbol=Ce,t.resolvedType=Ae;var r=e.isTypeOf?111551:4194304&e.flags?900095:788968,n=ai(e,e.argument.literal);if(!n)return t.resolvedSymbol=Ce,t.resolvedType=Ae;n=ui(n,!1);if(Zx.nodeIsMissing(e.qualifier))n.flags&r?t.resolvedType=Xu(e,t,n,r):(un(e,111551==r?Zx.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:Zx.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=Ce,t.resolvedType=Ae);else{for(var i,a=function e(t){return Zx.isIdentifier(t)?[t]:Zx.append(e(t.left),t.right)}(e.qualifier),o=n;i=a.shift();){var s=a.length?1920:r,s=Tn(fi(hi(Gn(o))),i.escapedText,s);if(!s)return un(i,Zx.Diagnostics.Namespace_0_has_no_exported_member_1,ri(o),Zx.declarationNameToString(i)),t.resolvedType=Ae;Sn(i).resolvedSymbol=s,o=Sn(i.parent).resolvedSymbol=s}t.resolvedType=Xu(e,t,o,r)}}return t.resolvedType}function Xu(e,t,r,n){var i=Gn(r);return t.resolvedSymbol=i,111551===n?qa(r):Mc(e,i)}function Yu(e){var t,r,n=Sn(e);return n.resolvedType||(t=Zu(e),0!==Oo(e.symbol).size||t?((r=Pi(16,e.symbol)).aliasSymbol=t,r.aliasTypeArguments=$u(t),Zx.isJSDocTypeLiteral(e)&&e.isArrayType&&(r=nu(r)),n.resolvedType=r):n.resolvedType=ot),n.resolvedType}function Zu(e){for(var t=e.parent;Zx.isParenthesizedTypeNode(t)||Zx.isTypeOperatorNode(t)&&138===t.operator;)t=t.parent;return Zx.isTypeAlias(t)?vi(t):void 0}function $u(e){return e?Za(e):void 0}function el(e){return 524288&e.flags&&!us(e)}function tl(e){return y_(e)||!!(71405564&e.flags)}function rl(e){return 524288&e.flags&&16&Zx.getObjectFlags(e)&&(1===Zx.length(fs(e))||Zx.every(fs(e),function(e){return!!(16777216&e.flags)}))}function nl(e,s){if(2===e.types.length){var t=e.types[0],r=e.types[1];return Zx.every(e.types,tl)?y_(t)?t:y_(r)?r:it:tl(t)&&rl(r)?n(r):tl(r)&&rl(t)?n(t):void 0}function n(e){for(var t=Zx.createSymbolTable(),r=0,n=fs(e);r<n.length;r++){var i,a,o=n[r];24&Zx.getDeclarationModifierFlagsFromSymbol(o)||al(o)&&(i=65536&o.flags&&!(32768&o.flags),(a=pn(16777220,o.escapedName,s?8:0)).type=i?we:qa(o),a.declarations=o.declarations,a.nameType=Dn(o).nameType,a.syntheticOrigin=o,t.set(o.escapedName,a))}e=Li(e.symbol,t,Zx.emptyArray,Zx.emptyArray,Vs(e,0),Vs(e,1));return e.objectFlags|=1048704,e}}function il(t,r,n,i,a){if(1&t.flags||1&r.flags)return ke;if(2&t.flags||2&r.flags)return Pe;if(131072&t.flags)return r;if(131072&r.flags)return t;if(1048576&t.flags)return(e=nl(t,a))?il(e,r,n,i,a):jp(t,function(e){return il(e,r,n,i,a)});if(1048576&r.flags)return(e=nl(r,a))?il(t,e,n,i,a):jp(r,function(e){return il(t,e,n,i,a)});if(71307260&r.flags)return t;if(Iu(t)||Iu(r)){if(y_(t))return r;if(2097152&t.flags){var e=t.types,o=e[e.length-1];if(el(o)&&el(r))return xu(Zx.concatenate(e.slice(0,e.length-1),[il(o,r,n,i,a)]))}return xu([t,r])}for(var s,c=Zx.createSymbolTable(),u=Zx.createUnderscoreEscapedMap(),o=t===it?(s=Vs(r,0),Vs(r,1)):(s=Go(Vs(t,0),Vs(r,0)),Go(Vs(t,1),Vs(r,1))),l=0,_=fs(r);l<_.length;l++){var d=_[l];24&Zx.getDeclarationModifierFlagsFromSymbol(d)?u.set(d.escapedName,!0):al(d)&&c.set(d.escapedName,ol(d,a))}for(var p=0,f=fs(t);p<f.length;p++){var g,m,y,h=f[p];!u.has(h.escapedName)&&al(h)&&(c.has(h.escapedName)?(g=qa(d=c.get(h.escapedName)),16777216&d.flags&&(m=Zx.concatenate(h.declarations,d.declarations),(y=pn(4|16777216&h.flags,h.escapedName)).type=gu([qa(h),Dp(g,524288)]),y.leftSpread=h,y.rightSpread=d,y.declarations=m,y.nameType=Dn(h).nameType,c.set(h.escapedName,y))):c.set(h.escapedName,ol(h,a)))}o=Li(n,c,Zx.emptyArray,Zx.emptyArray,sl(s,a),sl(o,a));return o.objectFlags|=1049728|i,o}function al(e){return!(Zx.some(e.declarations,Zx.isPrivateIdentifierPropertyDeclaration)||106496&e.flags&&e.declarations.some(function(e){return Zx.isClassLike(e.parent)}))}function ol(e,t){var r=65536&e.flags&&!(32768&e.flags);if(!r&&t===Oy(e))return e;t=pn(4|16777216&e.flags,e.escapedName,t?8:0);return t.type=r?we:qa(e),t.declarations=e.declarations,t.nameType=Dn(e).nameType,t.syntheticOrigin=e,t}function sl(e,t){return e&&e.isReadonly!==t?vc(e.type,t,e.declaration):e}function cl(e,t,r){e=Ni(e);return e.symbol=r,e.value=t,e}function ul(e){var t;return 2944&e.flags?(e.freshType||((t=cl(e.flags,e.value,e.symbol)).regularType=e,t.freshType=t,e.freshType=t),e.freshType):e}function ll(e){return 2944&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=gu(Zx.sameMap(e.types,ll))):e}function _l(e){return!!(2944&e.flags)&&e.freshType===e}function dl(e,t,r){var n=(t||"")+("number"==typeof e?"#":"string"==typeof e?"@":"n")+("object"==typeof e?Zx.pseudoBigIntToString(e):e),i=ve.get(n);return i||(t=("number"==typeof e?256:"string"==typeof e?128:2048)|(t?1024:0),ve.set(n,i=cl(t,e,r)),i.regularType=i),i}function pl(e){if(Zx.isValidESSymbolDeclaration(e)){var t=vi(e),e=Dn(t);return e.uniqueESSymbolType||(e.uniqueESSymbolType=(e=t,(t=Ni(8192)).symbol=e,t.escapedName="__@"+t.symbol.escapedName+"@"+lD(t.symbol),t))}return qe}function fl(e){var t,r,n=Sn(e);return n.resolvedType||(n.resolvedType=(t=e,r=Zx.getThisContainer(t,!1),!(e=r&&r.parent)||!Zx.isClassLike(e)&&246!==e.kind||Zx.hasModifier(r,32)||Zx.isConstructorDeclaration(r)&&!Zx.isNodeDescendantOf(t,r.body)?e&&Zx.isObjectLiteralExpression(e)&&Zx.isBinaryExpression(e.parent)&&6===Zx.getAssignmentDeclarationKind(e.parent)||(e=4194304&t.flags?Zx.getHostSignatureFromJSDoc(t):void 0)&&Zx.isFunctionExpression(e)&&Zx.isBinaryExpression(e.parent)&&3===Zx.getAssignmentDeclarationKind(e.parent)?so(vi(e.parent.left).parent).thisType:Qm(r)&&Zx.isNodeDescendantOf(t,r.body)?so(vi(r)).thisType:(un(t,Zx.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Ae):so(vi(e)).thisType)),n.resolvedType}function gl(e){return Bc(ml(e),e)}function ml(e){switch(e.kind){case 125:case 295:case 296:return ke;case 148:return Pe;case 143:return Re;case 140:return Be;case 151:return je;case 128:return Ke;case 144:return qe;case 110:return We;case 146:return we;case 100:return Me;case 137:return He;case 141:return 131072&e.flags&&!X?ke:Ze;case 183:case 104:return fl(e);case 187:return(d=Sn(_=e)).resolvedType||(d.resolvedType=ll(ph(_.literal))),d.resolvedType;case 169:return Uc(e);case 168:return e.assertsModifier?We:Ke;case 216:return Uc(e);case 172:return Kc(e);case 174:case 175:return(l=Sn(u=e)).resolvedType||((d=iu(u))===st?l.resolvedType=it:au(u)?l.resolvedType=175===u.kind&&0===u.elementTypes.length?d:Nc(d,u,void 0):(u=174===u.kind?[gl(u.elementType)]:Zx.map(u.elementTypes,gl),l.resolvedType=kc(d,u))),l.resolvedType;case 176:return c=gl((c=e).type),Q?md(c):c;case 178:return(l=Sn(u=e)).resolvedType||(c=Zu(u),l.resolvedType=gu(Zx.map(u.types,gl),1,c,$u(c))),l.resolvedType;case 179:return(s=Sn(a=e)).resolvedType||(o=Zu(a),s.resolvedType=xu(Zx.map(a.types,gl),o,$u(o))),s.resolvedType;case 297:return i=gl((i=e).type),Q?gd(i,65536):i;case 299:return Sa(gl(e.type));case 182:case 298:case 294:return gl(e.type);case 177:return G_(gl(e.type))||Ae;case 301:return function(e){var t=gl(e.type),r=e.parent,n=e.parent.parent;if(Zx.isJSDocTypeExpression(e.parent)&&Zx.isJSDocParameterTag(n)){e=Zx.getHostSignatureFromJSDoc(n);if(e){e=Zx.lastOrUndefined(e.parameters),n=Zx.getParameterSymbolFromJSDoc(n);if(!e||n&&e.symbol===n&&Zx.isRestParameter(e))return nu(t)}}if(Zx.isParameter(r)&&Zx.isJSDocFunctionType(r.parent))return nu(t);return Sa(t)}(e);case 170:case 171:case 173:case 304:case 300:case 305:return Yu(e);case 184:return function(e){var t=Sn(e);if(!t.resolvedType)switch(e.operator){case 134:t.resolvedType=Eu(gl(e.type));break;case 147:t.resolvedType=144===e.type.kind?pl(Zx.walkUpParenthesizedTypes(e.parent)):Ae;break;case 138:t.resolvedType=gl(e.type);break;default:throw Zx.Debug.assertNever(e.operator)}return t.resolvedType}(e);case 185:return Uu(e);case 186:return Vu(e);case 180:return(n=Sn(r=e)).resolvedType||(a=gl(r.checkType),s=$u(o=Zu(r)),i=Xa(r,!0),i=s?i:Zx.filter(i,function(e){return Ol(e,r)}),s={node:r,checkType:a,extendsType:gl(r.extendsType),trueType:gl(r.trueType),falseType:gl(r.falseType),isDistributive:!!(262144&a.flags),inferTypeParameters:Gu(r),outerTypeParameters:i,instantiations:void 0,aliasSymbol:o,aliasTypeArguments:s},n.resolvedType=qu(s,void 0),i&&(s.instantiations=Zx.createMap(),s.instantiations.set(Cc(i),n.resolvedType))),n.resolvedType;case 181:return(t=Sn(n=e)).resolvedType||(t.resolvedType=go(vi(n.typeParameter))),t.resolvedType;case 188:return Qu(e);case 75:case 153:t=Rb(e);return t?mo(t):Ae;default:return Ae}var t,r,n,i,a,o,s,c,u,l,_,d}function yl(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 hl(e,t){return yl(e,t,Jl)}function vl(e,t){return yl(e,t,Pl)}function bl(e,t){return 1===e.length?Dl(e[0],t?t[0]:ke):{kind:1,sources:e,targets:t}}function xl(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]:ke;return e;case 2:return t.func(e);case 3:case 4:var a=xl(e,t.mapper1);return(a!==e&&3===t.kind?Jl:xl)(a,t.mapper2)}}function Dl(e,t){return{kind:0,source:e,target:t}}function Sl(e){return{kind:2,func:e}}function Cl(e,t,r){return{kind:e,mapper1:t,mapper2:r}}function Tl(e){return bl(e,void 0)}function kl(e,t){return e?Cl(3,e,t):t}function El(e,t){return e?Cl(4,e,t):t}function Nl(e,t,r){return r?Cl(4,Dl(e,t),r):Dl(e,t)}function Al(e,t,r){return e?Cl(4,e,Dl(t,r)):Dl(t,r)}function Fl(e){var t=wi(e.symbol);return t.target=e,t}function Pl(e,t,r){if(e.typeParameters&&!r){a=Zx.map(e.typeParameters,Fl),t=kl(bl(e.typeParameters,a),t);for(var n=0,i=a;n<i.length;n++)i[n].mapper=t}var a=Bo(e.declaration,a,e.thisParameter&&wl(e.thisParameter,t),yl(e.parameters,t,wl),void 0,void 0,e.minArgumentCount,3&e.flags);return a.target=e,a.mapper=t,a}function wl(e,t){var r=Dn(e);if(r.type&&!Ud(r.type))return e;1&Zx.getCheckFlags(e)&&(e=r.target,t=kl(r.mapper,t));var n=pn(e.flags,e.escapedName,1|53256&Zx.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 Il(e,t){var r,n=64&e.objectFlags?e.target:e,i=4&e.objectFlags?e.node:e.symbol.declarations[0],a=Sn(i),o=a.outerTypeParameters;if(o||(r=i,Zx.isInJSFile(r)&&(!(i=Zx.findAncestor(r,Zx.isJSDocParameterTag))||(u=Zx.getParameterSymbolFromJSDoc(i))&&(r=u.valueDeclaration)),u=Xa(r,!0),Qm(r)&&(c=Ws(r),u=Zx.addRange(u,c)),o=u||Zx.emptyArray,o=(4&n.objectFlags||2048&n.symbol.flags)&&!n.aliasTypeArguments?Zx.filter(o,function(e){return Ol(e,r)}):o,(a.outerTypeParameters=o).length&&(a.instantiations=Zx.createMap(),a.instantiations.set(Cc(o),n))),o.length){var s=kl(e.mapper,t),c=Zx.map(o,function(e){return xl(e,s)}),u=Cc(c),t=a.instantiations.get(u);return t||(c=bl(o,c),t=4&n.objectFlags?Nc(e.target,e.node,c):(32&n.objectFlags?function(u,l){var _=Ml(u);if(_){var e=Jl(_,l);if(_!==e)return jp(Is(e),function(e){if(61603843&e.flags&&e!==Ne&&e!==Ae){var t=Nl(_,e,l);return q_(e)?function(e,t,r){r=Rl(t,Be,!0,r);return r===Ae?Ae:nu(r,Ll(W_(e),os(t)))}(e,u,t):sd(e)?(n=u,i=t,a=(r=e).target.minLength,o=Zx.map(Ac(r),function(e,t){return Rl(n,dl(""+t),a<=t,i)}),s=os(n),c=4&s?0:8&s?Fc(r)-(r.target.hasRestElement?1:0):a,s=Ll(r.target.readonly,s),Zx.contains(o,Ae)?Ae:cu(o,c,r.target.hasRestElement,s,r.target.associatedNames)):Bl(u,t)}var r,n,i,a,o,s,c;return e})}return Bl(u,l)}:Bl)(n,c),a.instantiations.set(u,t)),t}return e}function Ol(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||223===n.kind||180===n.kind&&Zx.forEachChild(n.extendsType,i))return!0;return!!Zx.forEachChild(e,i)}return!0;function i(e){switch(e.kind){case 183:return!!r.isThisType;case 75:return!r.isThisType&&Zx.isPartOfTypeNode(e)&&!(153===(t=e).kind||169===t.parent.kind&&t.parent.typeArguments&&t===t.parent.typeName||188===t.parent.kind&&t.parent.typeArguments&&t===t.parent.qualifier)&&ml(e)===r;case 172:return!0}var t;return!!Zx.forEachChild(e,i)}}function Ml(e){e=ts(e);if(4194304&e.flags){e=Ku(e.type);if(262144&e.flags)return e}}function Ll(e,t){return!!(1&t)||!(2&t)&&e}function Rl(e,t,r,n){t=Al(n,es(e),t),t=Jl(rs(e.target||e),t),e=os(e);return Q&&4&e&&!jy(t,49152)?md(t):Q&&8&e&&r?Dp(t,524288):t}function Bl(e,t){var r,n,i=Pi(64|e.objectFlags,e.symbol);return 32&e.objectFlags&&(i.declaration=e.declaration,n=Fl(r=es(e)),t=kl(Dl(r,i.typeParameter=n),t),n.mapper=t),i.target=e,i.mapper=t,i.aliasSymbol=e.aliasSymbol,i.aliasTypeArguments=hl(e.aliasTypeArguments,t),i}function jl(e,t){var r=e.root;if(r.outerTypeParameters){var n=Zx.map(r.outerTypeParameters,function(e){return xl(e,t)}),i=Cc(n),a=r.instantiations.get(i);return a||(a=function(t,r){if(t.isDistributive){var n=t.checkType,e=xl(n,r);if(n!==e&&1179648&e.flags)return jp(e,function(e){return qu(t,Nl(n,e,r))})}return qu(t,r)}(r,bl(r.outerTypeParameters,n)),r.instantiations.set(i,a)),a}return e}function Jl(e,t){if(!e||!t)return e;if(50===d||5e6<=l)return un(H,Zx.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ae;a++,l++,d++;t=function(e,t){var r=e.flags;if(262144&r)return xl(e,t);if(524288&r){var n=e.objectFlags;if(16&n)return Ud(e)?Il(e,t):e;if(32&n)return Il(e,t);if(4&n){if(e.node)return Il(e,t);var i=e.resolvedTypeArguments,a=hl(i,t);return a!==i?kc(e.target,a):e}return e}if(2097152&r||1048576&r&&!(131068&r)){if(!Ud(e))return e;i=e.types,a=hl(i,t);return a===i?e:2097152&r?xu(a,e.aliasSymbol,hl(e.aliasTypeArguments,t)):gu(a,1,e.aliasSymbol,hl(e.aliasTypeArguments,t))}if(4194304&r)return Eu(Jl(e.type,t));if(8388608&r)return Ju(Jl(e.objectType,t),Jl(e.indexType,t),void 0,e.aliasSymbol,hl(e.aliasTypeArguments,t));if(16777216&r)return jl(e,kl(e.mapper,t));if(33554432&r){r=Jl(e.baseType,t);if(8650752&r.flags)return Lc(r,Jl(e.substitute,t));t=Jl(e.substitute,t);return 3&t.flags||t_(Vl(r),Vl(t))?r:t}return e}(e,t);return d--,t}function zl(e,t){d--;t=Jl(e,t);return d++,t}function Ul(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=Jl(e,nt))}function Vl(e){return 262143&e.flags?e:e.restrictiveInstantiation||(e.restrictiveInstantiation=Jl(e,rt),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation,e.restrictiveInstantiation)}function Kl(e,t){return e&&vc(Jl(e.type,t),e.isReadonly,e.declaration)}function ql(e){switch(Zx.Debug.assert(161!==e.kind||Zx.isObjectLiteralMethod(e)),e.kind){case 201:case 202:case 161:case 244:return Wl(e);case 193:return Zx.some(e.properties,ql);case 192:return Zx.some(e.elements,ql);case 210:return ql(e.whenTrue)||ql(e.whenFalse);case 209:return(56===e.operatorToken.kind||60===e.operatorToken.kind)&&(ql(e.left)||ql(e.right));case 281:return ql(e.initializer);case 200:return ql(e.expression);case 274:return Zx.some(e.properties,ql)||Zx.isJsxOpeningElement(e.parent)&&Zx.some(e.parent.parent.children,ql);case 273:var t=e.initializer;return!!t&&ql(t);case 276:t=e.expression;return!!t&&ql(t)}return!1}function Wl(e){return(!Zx.isFunctionDeclaration(e)||Zx.isInJSFile(e)&&!!xa(e))&&(Hl(e)||!(e=e).typeParameters&&!Zx.getEffectiveReturnTypeNode(e)&&!!e.body&&223!==e.body.kind&&ql(e.body))}function Hl(e){if(!e.typeParameters){if(Zx.some(e.parameters,function(e){return!Zx.getEffectiveTypeAnnotationNode(e)}))return!0;if(202!==e.kind){e=Zx.firstOrUndefined(e.parameters);if(!e||!Zx.parameterIsThisKeyword(e))return!0}}return!1}function Gl(e){return(Zx.isInJSFile(e)&&Zx.isFunctionDeclaration(e)||Qf(e)||Zx.isObjectLiteralMethod(e))&&Wl(e)}function Ql(e){if(524288&e.flags){var t=ls(e);if(t.constructSignatures.length||t.callSignatures.length){var r=Pi(16,e.symbol);return r.members=t.members,r.properties=t.properties,r.callSignatures=Zx.emptyArray,r.constructSignatures=Zx.emptyArray,r}}else if(2097152&e.flags)return xu(Zx.map(e.types,Ql));return e}function Xl(e,t){return D_(e,t,an)}function Yl(e,t){return D_(e,t,an)?-1:0}function Zl(e,t){return D_(e,t,rn)?-1:0}function $l(e,t){return D_(e,t,en)?-1:0}function e_(e,t){return D_(e,t,en)}function t_(e,t){return D_(e,t,rn)}function r_(t,r){return 1048576&t.flags?Zx.every(t.types,function(e){return r_(e,r)}):1048576&r.flags?Zx.some(r.types,function(e){return r_(t,e)}):58982400&t.flags?r_(xs(t)||Pe,r):r===ht?!!(67633152&t.flags):r===vt?!!(524288&t.flags)&&bp(t):Ga(t,Ha(r))}function n_(e,t){return D_(e,t,nn)}function i_(e,t){return n_(e,t)||n_(t,e)}function a_(e,t,r,n,i,a){return T_(e,t,rn,r,n,i,a)}function o_(e,t,r,n,i,a){return s_(e,t,rn,r,n,i,a,void 0)}function s_(e,t,r,n,i,a,o,s){return!!D_(e,t,r)||(!n||!u_(i,e,t,r,a,o,s))&&T_(e,t,r,n,a,o,s)}function c_(e){return!!(16777216&e.flags||2097152&e.flags&&Zx.some(e.types,c_))}function u_(e,t,r,n,i,a,o){if(!e||c_(r))return!1;if(!T_(t,r,n,void 0)&&function(e,t,r,n,i,a,o){for(var s=Js(t,0),c=Js(t,1),u=0,l=[c,s];u<l.length;u++){var _=l[u];if(Zx.some(_,function(e){e=sc(e);return!(131073&e.flags)&&T_(e,r,n,void 0)})){var d=o||{};a_(t,r,e,i,a,d);d=d.errors[d.errors.length-1];return Zx.addRelatedInfo(d,Zx.createDiagnosticForNode(e,_===c?Zx.Diagnostics.Did_you_mean_to_use_new_with_this_expression:Zx.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}(e,t,r,n,i,a,o))return!0;switch(e.kind){case 276:case 200:return u_(e.expression,t,r,n,i,a,o);case 209:switch(e.operatorToken.kind){case 62:case 27:return u_(e.right,t,r,n,i,a,o)}break;case 193:return s=e,c=t,l=n,_=a,d=o,!(131068&(u=r).flags)&&l_(function(t){var r,n,i,a;return __generator(this,function(e){switch(e.label){case 0:if(!Zx.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],Zx.isSpreadAssignment(i))return[3,7];if(!(a=Cu(vi(i),8576))||131072&a.flags)return[3,7];switch(i.kind){case 164:case 163:case 161:case 282:return[3,2];case 281: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:Zx.isComputedNonLiteralName(i.name)?Zx.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:Zx.Debug.assertNever(i),e.label=7;case 7:return r++,[3,1];case 8:return[2]}})}(s),c,u,l,_,d);case 192:return function(e,t,r,n,i,a){if(131068&r.flags)return!1;if(Y_(t))return l_(p_(e,r),t,r,n,i,a);var o=e.contextualType;e.contextualType=r;try{var s=$f(e,1,!0);return e.contextualType=o,!!Y_(s)&&l_(p_(e,r),s,r,n,i,a)}finally{e.contextualType=o}}(e,t,r,n,a,o);case 274:return function(i,e,a,t,r,n){var o,s=l_(function(t){var r,n;return __generator(this,function(e){switch(e.label){case 0:if(!Zx.length(t.properties))return[2];r=0,n=t.properties,e.label=1;case 1:return r<n.length?(n=n[r],Zx.isJsxSpreadAttribute(n)?[3,3]:[4,{errorNode:n.name,innerExpression:n.initializer,nameType:dl(Zx.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(Zx.isJsxOpeningElement(i.parent)&&Zx.isJsxElement(i.parent.parent)){var c=i.parent.parent,u=bg(hg(i)),l=void 0===u?"children":Zx.unescapeLeadingUnderscores(u),_=dl(l),d=Ju(a,_),p=d_(c.children);if(!Zx.length(p))return s;var f,g,m=1<Zx.length(p),y=Bp(d,Z_),h=Bp(d,function(e){return!Z_(e)});m?y!==He?(u=cu(pg(c,0)),m=function(t,r){var n,i,a,o;return __generator(this,function(e){switch(e.label){case 0:if(!Zx.length(t.children))return[2];i=n=0,e.label=1;case 1:return i<t.children.length?(a=t.children[i],o=dl(i-n),(o=__(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=l_(m,u,y,t,r,n)||s):D_(Ju(e,_),d,t)||(s=!0,g=un(c.openingElement.tagName,Zx.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,l,Yi(d)),n&&n.skipLogging&&(n.errors||(n.errors=[])).push(g)):h!==He?(f=__(p[0],_,v))&&(s=l_(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):D_(Ju(e,_),d,t)||(s=!0,g=un(c.openingElement.tagName,Zx.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,l,Yi(d)),n&&n.skipLogging&&(n.errors||(n.errors=[])).push(g))}return s;function v(){var e,t,r,n;return o||(e=Zx.getTextOfNode(i.parent.tagName),t=void 0===(n=bg(hg(i)))?"children":Zx.unescapeLeadingUnderscores(n),r=Ju(a,dl(t)),n=Zx.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:Zx.formatMessage(void 0,n,e,t,Yi(r))})),o}}(e,t,r,n,a,o);case 202:return function(e,t,r,n,i,a){if(Zx.isBlock(e.body))return!1;if(Zx.some(e.parameters,Zx.hasType))return!1;var o=gm(t);if(!o)return!1;var s=Js(r,0);if(!Zx.length(s))return!1;var c=e.body,t=sc(o),o=gu(Zx.map(s,sc));if(!T_(t,o,n,void 0)){s=c&&u_(c,t,o,n,void 0,i,a);if(s)return s;a=a||{};if(T_(t,o,n,c,void 0,i,a),a.errors)return r.symbol&&Zx.length(r.symbol.declarations)&&Zx.addRelatedInfo(a.errors[a.errors.length-1],Zx.createDiagnosticForNode(r.symbol.declarations[0],Zx.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),0==(2&Zx.getFunctionFlags(e))&&!pa(t,"then")&&T_(by(t),o,n,void 0)&&Zx.addRelatedInfo(a.errors[a.errors.length-1],Zx.createDiagnosticForNode(e,Zx.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(e,t,r,n,a,o)}var s,c,u,l,_,d;return!1}function l_(e,t,r,n,i,a){for(var o=!1,s=e.next();!s.done;s=e.next()){var c,u=s.value,l=u.errorNode,_=u.innerExpression,d=u.nameType,p=u.errorMessage,f=function(e,t,r){var n=zu(t,r);if(n)return n;if(1048576&t.flags){t=k_(e,t);if(t)return zu(t,r)}}(t,r,d);!f||8388608&f.flags||(c=zu(t,d))&&!T_(c,f,n,void 0)&&(_&&u_(_,c,f,n,void 0,i,a)||(u=a||{},T_(_=_?function(e,t){e.contextualType=t;try{return rh(e,1,t)}finally{e.contextualType=void 0}}(_,c):c,f,n,l,p,i,u)&&_!==c&&T_(c,f,n,l,p,i,u),u.errors&&(c=u.errors[u.errors.length-1],f=!1,(p=void 0!==(l=ko(d)?Po(d):void 0)?Bs(r,l):void 0)||(u=Jy(d,296)&&Vs(r,1)||Vs(r,0)||void 0)&&u.declaration&&!Zx.getSourceFileOfNode(u.declaration).hasNoDefaultLib&&(f=!0,Zx.addRelatedInfo(c,Zx.createDiagnosticForNode(u.declaration,Zx.Diagnostics.The_expected_type_comes_from_this_index_signature))),!f&&(p&&Zx.length(p.declarations)||r.symbol&&Zx.length(r.symbol.declarations))&&(p=(p&&Zx.length(p.declarations)?p:r.symbol).declarations[0],Zx.getSourceFileOfNode(p).hasNoDefaultLib||Zx.addRelatedInfo(c,Zx.createDiagnosticForNode(p,Zx.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!l||8192&d.flags?Yi(d):Zx.unescapeLeadingUnderscores(l),Yi(r)))))),o=!0)}return o}function __(e,t,r){switch(e.kind){case 276: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 266:case 267:case 270:return{errorNode:e,innerExpression:e,nameType:t};default:return Zx.Debug.assertNever(e,"Found invalid jsx child")}}function d_(e){return Zx.filter(e,function(e){return!Zx.isJsxText(e)||!e.containsOnlyTriviaWhiteSpaces})}function p_(t,r){var n,i,a;return __generator(this,function(e){switch(e.label){case 0:if(!(a=Zx.length(t.elements)))return[2];n=0,e.label=1;case 1:return n<a?Y_(r)&&!Bs(r,""+n)?[3,3]:(i=t.elements[n],Zx.isOmittedExpression(i)?[3,3]:(a=dl(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 f_(e,t,r,n,i){return T_(e,t,nn,r,n,i)}function g_(e,t,r,n,i,a,o,s){if(e===t)return-1;if(!(g=t).typeParameters&&(!g.thisParameter||fa(oy(g.thisParameter)))&&1===g.parameters.length&&mD(g)&&(oy(g.parameters[0])===At||fa(oy(g.parameters[0])))&&fa(sc(g)))return-1;var c=_y(t);if(!py(t)&&(8&r?py(e)||_y(e)>c:dy(e)>c))return 0;e.typeParameters&&e.typeParameters!==t.typeParameters&&(e=hm(e,t=gc(t),void 0,o));var u=_y(e),l=gy(e),_=gy(t);if((l||_)&&Jl(l||_,s),l&&_&&u!==c)return 0;var d=t.declaration?t.declaration.kind:0,p=!(3&r)&&P&&161!==d&&160!==d&&162!==d,f=-1,g=ac(e);if(g&&g!==We){d=ac(t);if(d){if(!(v=!p&&o(g,d,!1)||o(d,g,n)))return n&&i(Zx.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;f&=v}}for(var m=l||_?Math.min(u,c):Math.max(u,c),y=l||_?m-1:-1,h=0;h<m;h++){var v,b=(h===y?ly:cy)(e,h),x=(h===y?ly:cy)(t,h),D=3&r?void 0:gm(yd(b)),S=3&r?void 0:gm(yd(x));if((v=D&&S&&!oc(D)&&!oc(S)&&(98304&dd(b))==(98304&dd(x))?g_(S,D,8&r|(p?2:1),n,i,a,o,s):!(3&r)&&!p&&o(b,x,!1)||o(x,b,n))&&8&r&&h>=dy(e)&&h<dy(t)&&o(b,x,!1)&&(v=0),!v)return n&&i(Zx.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,Zx.unescapeLeadingUnderscores(sy(e,h)),Zx.unescapeLeadingUnderscores(sy(t,h))),0;f&=v}if(!(4&r)){u=uc(t)?ke:t.declaration&&Qm(t.declaration)?so(hi(t.declaration.symbol)):sc(t);if(u===We)return f;c=uc(e)?ke:e.declaration&&Qm(e.declaration)?so(hi(e.declaration.symbol)):sc(e),l=oc(t);if(l){_=oc(e);if(_)f&=function(e,t,r,n,i){if(e.kind!==t.kind)return r&&(n(Zx.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),n(Zx.Diagnostics.Type_predicate_0_is_not_assignable_to_1,ta(e),ta(t))),0;if((1===e.kind||3===e.kind)&&e.parameterIndex!==t.parameterIndex)return r&&(n(Zx.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,e.parameterName,t.parameterName),n(Zx.Diagnostics.Type_predicate_0_is_not_assignable_to_1,ta(e),ta(t))),0;i=e.type===t.type?-1:e.type&&t.type?i(e.type,t.type,r):0;0===i&&r&&n(Zx.Diagnostics.Type_predicate_0_is_not_assignable_to_1,ta(e),ta(t));return i}(_,l,n,i,o);else if(Zx.isIdentifierTypePredicate(l))return n&&i(Zx.Diagnostics.Signature_0_must_be_a_type_predicate,Xi(e)),0}else!(f&=1&r&&o(u,c,!1)||o(c,u,n))&&n&&a&&a(c,u)}return f}function m_(e,t){var r=fc(e),n=fc(t),e=sc(r),t=sc(n);return(t===We||D_(t,e,rn)||D_(e,t,rn))&&0!==g_(r,n,!0?4:0,!1,void 0,void 0,Zl,void 0)}function y_(e){return 524288&e.flags?!us(e)&&((t=ls(e))!==ct&&0===t.properties.length&&0===t.callSignatures.length&&0===t.constructSignatures.length&&!t.stringIndexInfo&&!t.numberIndexInfo):!!(67108864&e.flags)||(1048576&e.flags?Zx.some(e.types,y_):!!(2097152&e.flags)&&Zx.every(e.types,y_));var t}function h_(e){return!!(16&Zx.getObjectFlags(e))&&y_(e)}function v_(e){return 524288&e.flags&&!us(e)&&0===fs(e).length&&Vs(e,0)&&!Vs(e,1)||3145728&e.flags&&Zx.every(e.types,v_)||!1}function b_(e,t,r){if(e===t)return 1;var n=lD(e)+","+lD(t),i=on.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=qa(t),o=0,s=fs(qa(e));o<s.length;o++){var c=s[o];if(8&c.flags){var u=Bs(a,c.escapedName);if(!(u&&8&u.flags))return void(r?(r(Zx.Diagnostics.Property_0_is_missing_in_type_1,Zx.symbolName(c),Yi(mo(t),void 0,64)),on.set(n,6)):on.set(n,2))}}return on.set(n,1),1}on.set(n,6)}function x_(e,t,r,n){var i=e.flags,a=t.flags;if(3&a||131072&i||e===Ne)return 1;if(!(131072&a)){if(132&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&&b_(e.symbol,t.symbol,n))return 1;if(1024&i&&1024&a){if(1048576&i&&1048576&a&&b_(e.symbol,t.symbol,n))return 1;if(2944&i&&2944&a&&e.value===t.value&&b_(bi(e.symbol),bi(t.symbol),n))return 1}if(32768&i&&(!Q||49152&a))return 1;if(65536&i&&(!Q||65536&a))return 1;if(524288&i&&67108864&a)return 1;if(r===rn||r===nn){if(1&i)return 1;if(264&i&&!(1024&i)&&(32&a||256&a&&1024&a))return 1}}}function D_(e,t,r){if(_l(e)&&(e=e.regularType),_l(t)&&(t=t.regularType),e===t)return!0;if(r!==an){if(r===nn&&!(131072&t.flags)&&x_(t,e,r)||x_(e,t,r))return!0}else if(!(3145728&e.flags||3145728&t.flags||e.flags===t.flags||66584576&e.flags))return!1;if(524288&e.flags&&524288&t.flags){var n=r.get(L_(e,t,0,r));if(void 0!==n)return!!(1&n)}return!!(66846720&e.flags||66846720&t.flags)&&T_(e,t,r,void 0)}function S_(e,t){return 4096&Zx.getObjectFlags(e)&&!lg(t.escapedName)}function C_(e,t){for(;;){var r=_l(e)?e.regularType:4&Zx.getObjectFlags(e)&&e.node?kc(e.target,Ac(e)):3145728&e.flags?Is(e):33554432&e.flags?t?e.baseType:e.substitute:25165824&e.flags?Lu(e,t):e;if(r===e)break;e=r}return e}function T_(e,t,S,f,c,r,n){var x,u,l,_,d,g,p=0,m=0,y=0,h=!1,v=0,b=[],D=!1;Zx.Debug.assert(S!==an||!f,"no error reporting in identity checking");var i,a,o=F(e,t,!!f,c);return b.length&&s(),h?(a=un(f||H,Zx.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,Yi(e),Yi(t)),n&&(n.errors||(n.errors=[])).push(a)):x&&(!r||(i=r())&&(Zx.concatenateDiagnosticMessageChains(i,x),x=i),i=void 0,c&&f&&!o&&e.symbol&&((e=Dn(e.symbol)).originatingImport&&!Zx.isImportCall(e.originatingImport)&&T_(qa(e.target),t,S,void 0)&&(e=Zx.createDiagnosticForNode(e.originatingImport,Zx.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=Zx.append(i,e))),a=Zx.createDiagnosticForNodeFromMessageChain(f,x,i),u&&Zx.addRelatedInfo.apply(void 0,__spreadArrays([a],u)),n&&(n.errors||(n.errors=[])).push(a),n&&n.skipLogging||Xr.add(a)),f&&n&&n.skipLogging&&0===o&&Zx.Debug.assert(!!n.errors,"missed opportunity to interact with error."),0!==o;function C(e){x=e.errorInfo,g=e.lastSkippedInfo,b=e.incompatibleStack,v=e.overrideNextErrorInfo,u=e.relatedInfo}function T(){return{errorInfo:x,lastSkippedInfo:g,incompatibleStack:b.slice(),overrideNextErrorInfo:v,relatedInfo:u?u.slice():void 0}}function k(e,t,r,n,i){v++,g=void 0,b.push([e,t,r,n,i])}function s(){var e=b;b=[];var t=g;if(g=void 0,1===e.length)return E.apply(void 0,e[0]),void(t&&N.apply(void 0,__spreadArrays([void 0],t)));for(var r="",n=[];e.length;){var i=e.pop(),a=i[0],o=i.slice(1);switch(a.code){case Zx.Diagnostics.Types_of_property_0_are_incompatible.code:0===r.indexOf("new ")&&(r="("+r+")");var s=""+o[0];0===r.length?r=s:Zx.isIdentifierText(s,G.target)?r=r+"."+s:"["===s[0]&&"]"===s[s.length-1]?r+=s:r=r+"["+s+"]";break;case Zx.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case Zx.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case Zx.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case Zx.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:0===r.length?((s=a).code===Zx.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?s=Zx.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:a.code===Zx.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(s=Zx.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),n.unshift([s,o[0],o[1]])):r=(a.code===Zx.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||a.code===Zx.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"")+r+"("+(a.code===Zx.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||a.code===Zx.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...")+")";break;default:return Zx.Debug.fail("Unhandled Diagnostic: "+a.code)}}r?E(")"===r[r.length-1]?Zx.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:Zx.Diagnostics.The_types_of_0_are_incompatible_between_these_types,r):n.shift();for(var c=0,u=n;c<u.length;c++){var l=u[c],a=l[0],o=l.slice(1),l=a.elidedInCompatabilityPyramid;a.elidedInCompatabilityPyramid=!1,E.apply(void 0,__spreadArrays([a],o)),a.elidedInCompatabilityPyramid=l}t&&N.apply(void 0,__spreadArrays([void 0],t))}function E(e,t,r,n,i){Zx.Debug.assert(!!f),b.length&&s(),e.elidedInCompatabilityPyramid||(x=Zx.chainDiagnosticMessages(x,e,t,r,n,i))}function N(e,t,r){b.length&&s();var n=Zi(t,r),i=n[0],n=n[1];262144&r.flags&&((r=xs(r))&&t_(t,r)?E(Zx.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,i,n,Yi(r)):E(Zx.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,n,i)),E(e=e||(S===nn?Zx.Diagnostics.Type_0_is_not_comparable_to_type_1:i===n?Zx.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:Zx.Diagnostics.Type_0_is_not_assignable_to_type_1),i,n)}function A(e,t,r){return sd(e)?e.target.readonly&&H_(t)?void(r&&E(Zx.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Yi(e),Yi(t))):sd(t)||q_(t):W_(e)&&H_(t)?void(r&&E(Zx.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Yi(e),Yi(t))):!sd(t)||q_(e)}function F(u,l,_,d,e){if(void 0===_&&(_=!1),void 0===e&&(e=0),524288&u.flags&&131068&l.flags)return x_(u,l,S,_?E:void 0)?-1:(p(u,l,0,!!(4096&Zx.getObjectFlags(u))),0);var t=C_(u,!1),r=C_(l,!0);if(t===r)return-1;if(S===an)return function(e,t){var r=e.flags&t.flags;if(!(66584576&r))return 0;if(3145728&r){r=P(e,t);return r&&(r&=P(t,e)),r}return O(e,t,!1,0)}(t,r);if(262144&t.flags&&gs(t)===r)return-1;if(1048576&r.flags&&524288&t.flags&&r.types.length<=3&&jy(r,98304)){var n=Jp(r,-98305);if(!(1179648&n.flags)){if(t===n)return-1;r=n}}if(S===nn&&!(131072&r.flags)&&x_(r,t,S)||x_(t,r,S,_?E:void 0))return-1;var i=!!(4096&Zx.getObjectFlags(t)),a=!(2&e)&&tp(t)&&32768&Zx.getObjectFlags(t);if(a&&function(o,e,s){if(!Ng(e)||!X&&16384&Zx.getObjectFlags(e))return!1;var c=!!(4096&Zx.getObjectFlags(o));if((S===rn||S===nn)&&(Mp(ht,e)||!c&&y_(e)))return!1;var u,l=e;1048576&e.flags&&(l=Yx(o,e,F)||function(e){if(jy(e,67108864)){var t=Bp(e,function(e){return!(131068&e.flags)});if(!(131072&t.flags))return t}return e}(e),u=1048576&l.flags?l.types:[l]);for(var t=function(e){if(i=e,a=o.symbol,i.valueDeclaration&&a.valueDeclaration&&i.valueDeclaration.parent===a.valueDeclaration&&!S_(o,e)){if(!Eg(l,e.escapedName,c)){if(s){var t,r=Bp(l,Ng);if(!f)return{value:Zx.Debug.fail()};Zx.isJsxAttributes(f)||Zx.isJsxOpeningLikeElement(f)||Zx.isJsxOpeningLikeElement(f.parent)?(e.valueDeclaration&&Zx.isJsxAttribute(e.valueDeclaration)&&Zx.getSourceFileOfNode(f)===Zx.getSourceFileOfNode(e.valueDeclaration.name)&&(f=e.valueDeclaration.name),E(Zx.Diagnostics.Property_0_does_not_exist_on_type_1,Qi(e),Yi(r))):(t=o.symbol&&Zx.firstOrUndefined(o.symbol.declarations),i=void 0,e.valueDeclaration&&Zx.findAncestor(e.valueDeclaration,function(e){return e===t})&&Zx.getSourceFileOfNode(t)===Zx.getSourceFileOfNode(f)&&(a=e.valueDeclaration,Zx.Debug.assertNode(a,Zx.isObjectLiteralElementLike),a=(f=a).name,Zx.isIdentifier(a)&&(i=Yg(a,r))),void 0!==i?E(Zx.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Qi(e),Yi(r),i):E(Zx.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Qi(e),Yi(r)))}return{value:!0}}if(u&&!F(qa(e),(r=u,n=e.escapedName,gu(Zx.reduceLeft(r,function(e,t){var r=(3145728&(t=Ns(t)).flags?ws:ds)(t,n),t=r&&qa(r)||ig(n)&&Ks(t,1)||Ks(t,0)||we;return Zx.append(e,t)},void 0)||Zx.emptyArray)),s))return s&&k(Zx.Diagnostics.Types_of_property_0_are_incompatible,Qi(e)),{value:!0}}var n,i,a},r=0,n=fs(o);r<n.length;r++){var i=n[r],i=t(i);if("object"==typeof i)return i.value}return!1}(t,r,_))return _&&N(d,t,r),0;var o=S!==nn&&!(2&e)&&2752508&t.flags&&t!==ht&&2621440&r.flags&&N_(r)&&(0<fs(t).length||Ub(t));if(o&&!function(e,t,r){for(var n=0,i=fs(e);n<i.length;n++){var a=i[n];if(Eg(t,a.escapedName,r))return!0}return!1}(t,r,i))return _&&(c=Js(t,0),s=Js(t,1),0<c.length&&F(sc(c[0]),r,!1)||0<s.length&&F(sc(s[0]),r,!1)?E(Zx.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Yi(t),Yi(r)):E(Zx.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Yi(t),Yi(r))),0;var s,n=0,c=T();return 1048576&t.flags?n=(S===nn?I:function(e,t,r,n){for(var i=-1,a=e.types,o=0;o<a.length;o++){var s=a[o];if(1048576&t.flags&&t.types.length===a.length){var c=F(s,t.types[o],!1,void 0,n);if(c){i&=c;continue}}s=F(s,t,r,void 0,n);if(!s)return 0;i&=s}return i})(t,r,_&&!(131068&t.flags),e):(1048576&r.flags?n=w(Td(t),r,_&&!(131068&t.flags)&&!(131068&r.flags)):2097152&r.flags?n=function(e,t,r,n){for(var i=-1,t=t.types,a=0,o=t;a<o.length;a++){var s=o[a],s=F(e,s,r,void 0,n);if(!s)return 0;i&=s}return i}(Td(t),r,_,2):2097152&t.flags&&(n=I(t,r,!1,1)),!n&&(66846720&t.flags||66846720&r.flags)&&(n=O(t,r,_,e))&&C(c)),!n&&2359296&t.flags&&((s=function(e,t){for(var r,n=!1,i=0,a=e;i<a.length;i++)if(63176704&(s=a[i]).flags){for(var o=gs(s);o&&21233664&o.flags;)o=gs(o);o&&(r=Zx.append(r,o),t&&(r=Zx.append(r,s)))}else 67238908&s.flags&&(n=!0);if(r&&(t||n)){if(n)for(var s,c=0,u=e;c<u.length;c++)67238908&(s=u[c]).flags&&(r=Zx.append(r,s));return xu(r)}}(2097152&t.flags?t.types:[t],!!(1048576&r.flags)))&&(2097152&t.flags||1048576&r.flags)&&Rp(s,function(e){return e!==t})&&(n=F(s,r,!1,void 0,e))&&C(c)),n&&!D&&(2097152&r.flags&&(a||o)||el(r)&&!q_(r)&&!sd(r)&&2097152&t.flags&&3670016&Ns(t).flags&&!Zx.some(t.types,function(e){return!!(2097152&Zx.getObjectFlags(e))}))&&(D=!0,n&=O(t,r,_,4),D=!1),p(t,r,n,i),n;function p(e,t,r,n){if(!r&&_){e=u.aliasSymbol?u:e,t=l.aliasSymbol?l:t;var i=0<v;if(i&&v--,524288&e.flags&&524288&t.flags&&(a=x,A(e,t,_),x!==a&&(i=!!x)),524288&e.flags&&131068&t.flags)o=t,s=$i((a=e).symbol)?Yi(a,a.symbol.valueDeclaration):Yi(a),c=$i(o.symbol)?Yi(o,o.symbol.valueDeclaration):Yi(o),(Ct===a&&Re===o||Tt===a&&Be===o||kt===a&&Ke===o||Xc(!1)===a&&qe===o)&&E(Zx.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,c,s);else if(e.symbol&&524288&e.flags&&ht===e)E(Zx.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(n&&2097152&t.flags){c=t.types,s=mg(aD.IntrinsicAttributes,f),n=mg(aD.IntrinsicClassAttributes,f);if(s!==Ae&&n!==Ae&&(Zx.contains(c,s)||Zx.contains(c,n)))return r}else x=Rs(x,l);if(!d&&i)return g=[e,t],r;N(d,e,t)}var a,o,s,c}}function P(e,t){for(var r=-1,n=0,i=e.types;n<i.length;n++){var a=w(i[n],t,!1);if(!a)return 0;r&=a}return r}function w(e,t,r){var n=t.types;if(1048576&t.flags&&_u(n,e))return-1;for(var i=0,a=n;i<a.length;i++){var o=F(e,a[i],!1);if(o)return o}return r&&F(e,k_(e,t,F)||n[n.length-1],!0),0}function I(e,t,r,n){var i=e.types;if(1048576&e.flags&&_u(i,t))return-1;for(var a=i.length,o=0;o<a;o++){var s=F(i[o],t,r&&o===a-1,void 0,n);if(s)return s}return 0}function O(e,t,r,n){if(h)return 0;var i=L_(e,t,n|(D?8:0),S),a=S.get(i);if(void 0!==a&&(!(r&&2&a)||4&a))return or&&(8&(s=24&a)&&Jl(e,Sl(M)),16&s&&Jl(e,Sl(L))),1&a?-1:0;if(l){for(var o=0;o<p;o++)if(i===l[o])return 1;if(100===m)return h=!0,0}else l=[],_=[],d=[];var s=p;l[p]=i,p++,_[m]=e,d[m]=t,m++;var c,a=y;1&y||!j_(e,_,m)||(y|=1),2&y||!j_(t,d,m)||(y|=2);var u=0;or&&(c=or,or=function(e){return u|=e?16:8,c(e)});n=3!==y?function(e,t,i,r){if(4&r)return J(e,t,i,void 0,0);var a,o,n=e.flags&t.flags;if(S===an&&!(524288&n)){if(4194304&n)return F(e.type,t.type,!1);var s=0;return 8388608&n&&(s=F(e.objectType,t.objectType,!1))&&(s&=F(e.indexType,t.indexType,!1))?s:16777216&n&&e.root.isDistributive===t.root.isDistributive&&(s=F(e.checkType,t.checkType,!1))&&(s&=F(e.extendsType,t.extendsType,!1))&&(s&=F(Wu(e),Wu(t),!1))&&(s&=F(Hu(e),Hu(t),!1))?s:33554432&n?F(e.substitute,t.substitute,!1):0}var c=!1,u=T();if(17301504&e.flags&&e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol&&!e.aliasTypeArgumentsContainsMarker&&!t.aliasTypeArgumentsContainsMarker){if((h=F_(e.aliasSymbol))===Zx.emptyArray)return 1;if(void 0!==(v=b(e.aliasTypeArguments,t.aliasTypeArguments,h,r)))return v}if(262144&t.flags){if(32&Zx.getObjectFlags(e)&&F(Eu(t),ts(e))&&!(4&os(e))){var l=rs(e),_=Ju(t,es(e));if(a=F(l,_,i))return a}}else if(4194304&t.flags){if(4194304&e.flags&&(a=F(t.type,e.type,!1)))return a;var d=ys(t.type);if(d&&-1===F(e,Eu(d,t.stringsOnly),i))return-1}else if(8388608&t.flags){if(S!==an){var p=t.objectType,f=t.indexType,g=xs(p)||p,m=xs(f)||f;if(!Iu(g)&&!Ou(m))if((d=zu(g,m,void 0,2|(g!==p?1:0)))&&(a=F(e,d,i)))return a}}else if(us(t)){f=rs(t),m=os(t);if(!(8&m)){if(8388608&f.flags&&f.objectType===e&&f.indexType===es(t))return-1;if(!us(e)){g=ts(t),p=Eu(e,void 0,!0),f=4&m,m=f?Wo(g,p):void 0;if(f?!(131072&m.flags):F(g,p)){p=es(t),p=m?xu([m,p]):p,_=Ju(e,p),l=rs(t);if(a=F(_,l,i))return a}o=x,C(u)}}}if(8650752&e.flags)if(8388608&e.flags&&8388608&t.flags){if((a=F(e.objectType,t.objectType,i))&&(a&=F(e.indexType,t.indexType,i)),a)return C(u),a}else if(!(d=gs(e))||262144&e.flags&&1&d.flags){if(a=F(it,Jp(t,-67108865)))return C(u),a}else{if(a=F(d,t,!1,void 0,r))return C(u),a;if(a=F(Lo(d,e),t,i,void 0,r))return C(u),a}else if(4194304&e.flags){if(a=F(et,t,i))return C(u),a}else if(16777216&e.flags){if(16777216&t.flags){_=e.root.inferTypeParameters,l=e.extendsType,d=void 0;if(_&&(Zd((_=Md(_,void 0,0,F)).inferences,t.extendsType,l,384),l=Jl(l,_.mapper),d=_.mapper),Xl(l,t.extendsType)&&(F(e.checkType,t.checkType)||F(t.checkType,e.checkType))&&((a=F(Jl(Wu(e),d),Wu(t),i))&&(a&=F(Hu(e),Hu(t),i)),a))return C(u),a}else{var y=vs(e);if(y&&(a=F(y,t,i)))return C(u),a}y=hs(e);if(y&&(a=F(y,t,i)))return C(u),a}else{if(S!==en&&S!==tn&&function(e){return 32&Zx.getObjectFlags(e)&&4&os(e)}(t)&&y_(e))return-1;if(us(t))return us(e)&&(a=function(e,t,r){if(S===nn||(S===an?os(e)===os(t):cs(e)<=cs(t))){var n=ts(t),i=Jl(ts(e),Sl(cs(e)<0?M:L));if(n=F(n,i,r)){i=bl([es(e)],[es(t)]);return n&F(Jl(rs(e),i),rs(t),r)}}return 0}(e,t,i))?(C(u),a):0;var h,y=!!(131068&e.flags);if(S!==an)e=Ns(e);else if(us(e))return 0;if(4&Zx.getObjectFlags(e)&&4&Zx.getObjectFlags(t)&&e.target===t.target&&!(8192&Zx.getObjectFlags(e)||8192&Zx.getObjectFlags(t))){if((h=w_(e.target))===Zx.emptyArray)return 1;if(void 0!==(v=b(Ac(e),Ac(t),h,r)))return v}else{if(W_(t)?q_(e)||sd(e):q_(t)&&sd(e)&&!e.target.readonly)return S!==an?F(Ks(e,1)||ke,Ks(t,1)||ke,i):0;if((S===en||S===tn)&&y_(t)&&32768&Zx.getObjectFlags(t)&&!y_(e))return 0}if(2621440&e.flags&&524288&t.flags){var v=i&&x===u.errorInfo&&!y;if((a=J(e,t,v,void 0,r))&&(a&=z(e,t,0,v))&&(a&=z(e,t,1,v))&&(a&=W(e,t,0,y,v,r))&&(a&=W(e,t,1,y,v,r)),c&&a)x=o||x||u.errorInfo;else if(a)return a}if(2621440&e.flags&&1048576&t.flags){t=Jp(t,36175872);if(1048576&t.flags){t=function(s,c){var u=mp(fs(s),c);if(!u)return 0;for(var e=1,t=0,r=u;t<r.length;t++){var n=r[t];if(25<(e*=function(e){return 1048576&e.flags?e.types.length:1}(qa(n))))return 0}for(var i=new Array(u.length),a=Zx.createUnderscoreEscapedMap(),o=0;o<u.length;o++){var l=qa(n=u[o]);i[o]=1048576&l.flags?l.types:[l],a.set(n.escapedName,!0)}for(var _=Zx.cartesianProduct(i),d=[],p=function(n){var e=!1;e:for(var t=0,r=c.types;t<r.length;t++){for(var i=r[t],a=0;a<u.length;a++){var o=function(t){var e=u[t],r=Bs(i,e.escapedName);return r?e===r?"continue":B(s,c,e,r,function(e){return n[t]},!1,0,Q||S===nn)?void 0:"continue-outer":"continue-outer"}(a);if("continue-outer"===o)continue e}Zx.pushIfUnique(d,i,Zx.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&=J(s,b,!1,a,0))&&(y&=z(s,b,0,!1))&&(y&=z(s,b,1,!1))&&(y&=W(s,b,0,!1,!1,0))&&(y&=W(s,b,1,!1,!1,0)),!y)return y}return y}(e,t);if(t)return t}}}return 0;function b(e,t,r,n){if(a=function(e,t,r,n,i){if(void 0===e&&(e=Zx.emptyArray),void 0===t&&(t=Zx.emptyArray),void 0===r&&(r=Zx.emptyArray),e.length!==t.length&&S===an)return 0;for(var a=(e.length<=t.length?e:t).length,o=-1,s=0;s<a;s++){var c=s<r.length?r[s]:1,u=7&c;if(4!=u){var l=e[s],_=t[s],d=-1;if(8&c?d=S===an?F(l,_,!1):Yl(l,_):1==u?d=F(l,_,n,void 0,i):2==u?d=F(_,l,n,void 0,i):3==u?d=(d=F(_,l,!1))||F(l,_,n,void 0,i):(d=F(l,_,n,void 0,i))&&(d&=F(_,l,n,void 0,i)),!d)return 0;o&=d}}return o}(e,t,r,i,n))return a;if(Zx.some(r,function(e){return!!(24&e)}))return o=void 0,void C(u);t=t&&function(e,t){for(var r=0;r<t.length;r++)if(1==(7&t[r])&&16384&e[r].flags)return!0;return!1}(t,r);if(c=!t,r!==Zx.emptyArray&&!t){if(c&&(!i||!Zx.some(r,function(e){return 0==(7&e)})))return 0;o=x,C(u)}}}(e,t,r,n):1;if(or=or&&c,y=a,m--,n){if(-1===n||0===m){for(o=s;o<p;o++)S.set(l[o],1|u);p=s}}else S.set(i,2|(r?4:0)|u),p=s;return n}function M(e){return!or||e!==dt&&e!==pt&&e!==sr||or(!1),e}function L(e){return!or||e!==dt&&e!==pt&&e!==sr||or(!0),e}function R(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 B(e,t,r,n,i,a,o,s){var c,u=Zx.getDeclarationModifierFlagsFromSymbol(r),l=Zx.getDeclarationModifierFlagsFromSymbol(n);if(8&u||8&l){if(r.valueDeclaration!==n.valueDeclaration)return a&&(8&u&&8&l?E(Zx.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Qi(n)):E(Zx.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Qi(n),Yi(8&u?e:t),Yi(8&u?t:e))),0}else if(16&l){if(c=r,R_(n,function(e){return!!(16&Zx.getDeclarationModifierFlagsFromSymbol(e))&&(t=c,r=B_(e),!R_(t,function(e){e=B_(e);return!!e&&Ga(e,r)}));var t,r}))return a&&E(Zx.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Qi(n),Yi(B_(r)||e),Yi(B_(n)||t)),0}else if(16&u)return a&&E(Zx.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Qi(n),Yi(e),Yi(t)),0;o=function(e,t,r,n,i){var a=Q&&!!(48&Zx.getCheckFlags(t)),o=r(e);if(65536&Zx.getCheckFlags(t)&&!Dn(t).type){e=Dn(t);Zx.Debug.assertIsDefined(e.deferralParent),Zx.Debug.assertIsDefined(e.deferralConstituents);for(var s=!!(1048576&e.deferralParent.flags),c=s?0:-1,u=0,l=e.deferralConstituents;u<l.length;u++){var _=F(o,l[u],!1,void 0,s?0:2);if(s){if(_)return _}else{if(!_)return F(o,Sa(qa(t),a),n);c&=_}}return s&&!c&&a&&(c=F(o,we)),s&&!c&&n?F(o,Sa(qa(t),a),n):c}return F(o,Sa(qa(t),a),n,void 0,i)}(r,n,i,a,o);return o?s||!(16777216&r.flags)||16777216&n.flags?o:(a&&E(Zx.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Qi(n),Yi(e),Yi(t)),0):(a&&k(Zx.Diagnostics.Types_of_property_0_are_incompatible,Qi(n)),0)}function j(e,t,r,n){var i=!1;if(r.valueDeclaration&&Zx.isNamedDeclaration(r.valueDeclaration)&&Zx.isPrivateIdentifier(r.valueDeclaration.name)&&e.symbol&&32&e.symbol.flags){var a=r.valueDeclaration.name.escapedText,o=Zx.getSymbolNameForPrivateIdentifier(e.symbol,a);if(o&&Bs(e,o)){var o=Zx.getDeclarationName(e.symbol.valueDeclaration),s=Zx.getDeclarationName(t.symbol.valueDeclaration);return void E(Zx.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Fn(a),Fn(""===o.escapedText?eD:o),Fn(""===s.escapedText?eD:s))}}s=Zx.arrayFrom(Wd(e,t,n,!1));c&&(c.code===Zx.Diagnostics.Class_0_incorrectly_implements_interface_1.code||c.code===Zx.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=Qi(r),E.apply(void 0,__spreadArrays([Zx.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,n],Zi(e,t))),Zx.length(r.declarations)&&(n=Zx.createDiagnosticForNode(r.declarations[0],Zx.Diagnostics._0_is_declared_here,n),Zx.Debug.assert(!!x),u?u.push(n):u=[n]),i&&x&&v++):A(e,t,!1)&&(5<s.length?E(Zx.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Yi(e),Yi(t),Zx.map(s.slice(0,4),function(e){return Qi(e)}).join(", "),s.length-4):E(Zx.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Yi(e),Yi(t),Zx.map(s,function(e){return Qi(e)}).join(", ")),i&&x&&v++)}function J(e,t,r,n,i){if(S===an)return function(e,t,r){if(!(524288&e.flags&&524288&t.flags))return 0;e=R(_s(e),r),r=R(_s(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=ds(t,o.escapedName);if(!s)return 0;s=U_(o,s,F);if(!s)return 0;n&=s}return n}(e,t,n);var a=!(S!==en&&S!==tn||tp(e)||X_(e)||sd(e)),o=Hd(e,t,a,!1);if(o)return r&&j(e,t,o,a),0;if(tp(t))for(var s=0,c=R(fs(e),n);s<c.length;s++)if(!ds(t,(v=c[s]).escapedName)){var u=qa(v);if(u!==we&&u!==Ie&&u!==Oe)return r&&E(Zx.Diagnostics.Property_0_does_not_exist_on_type_1,Qi(v),Yi(t)),0}var l=-1;if(sd(t)){var _=cd(t);if(_){if(!sd(e))return 0;a=cd(e);if(a&&!F(a,_,r))return r&&E(Zx.Diagnostics.Rest_signatures_are_incompatible),0;for(var d=Fc(t)-1,p=Fc(e)-(a?1:0),f=Ac(e),g=d;g<p;g++){if(!(b=F(f[g],_,r)))return r&&E(Zx.Diagnostics.Property_0_is_incompatible_with_rest_element_type,""+g),0;l&=b}}}for(var d=fs(t),m=sd(e)&&sd(t),y=0,h=R(d,n);y<h.length;y++){var v,b,x=h[y],D=x.escapedName;if(!(4194304&x.flags)&&(!m||ig(D)||"length"===D))if((v=Bs(e,D))&&v!==x){if(!(b=B(e,t,v,x,qa,r,i,S===nn)))return 0;l&=b}}return l}function z(e,t,r,n){if(S===an)return function(e,t,r){var n=Js(e,r),i=Js(t,r);if(n.length!==i.length)return 0;for(var a=-1,o=0;o<n.length;o++){var s=V_(n[o],i[o],!1,!1,!1,F);if(!s)return 0;a&=s}return a}(e,t,r);if(t===ct||e===ct)return-1;var i=e.symbol&&Qm(e.symbol.valueDeclaration),a=t.symbol&&Qm(t.symbol.valueDeclaration),o=Js(e,i&&1===r?0:r),s=Js(t,a&&1===r?0:r);if(1===r&&o.length&&s.length){if(Zx.isAbstractConstructorType(e)&&!Zx.isAbstractConstructorType(t))return n&&E(Zx.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=Zx.getSelectedModifierFlags(e.declaration,24),t=Zx.getSelectedModifierFlags(t.declaration,24);if(8===t)return!0;if(16===t&&8!==e)return!0;if(16!==t&&!e)return!0;r&&E(Zx.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,ra(e),ra(t));return!1}(o[0],s[0],n))return 0}var c=-1,u=T(),l=1===r?V:U;if(64&Zx.getObjectFlags(e)&&64&Zx.getObjectFlags(t)&&e.symbol===t.symbol)for(var _=0;_<s.length;_++){if(!(h=K(o[_],s[_],!0,n,l(o[_],s[_]))))return 0;c&=h}else if(1===o.length&&1===s.length)t=S===nn||!!G.noStrictGenericChecks,c=K(o[0],s[0],t,n,l(o[0],s[0]));else e:for(var d=0,p=s;d<p.length;d++){for(var f=p[d],g=n,m=0,y=o;m<y.length;m++){var h,v=y[m];if(h=K(v,f,!0,g,l(v,f))){c&=h,C(u);continue e}g=!1}return g&&E(Zx.Diagnostics.Type_0_provides_no_match_for_the_signature_1,Yi(e),Xi(f,void 0,void 0,r)),0}return c}function U(e,t){return 0===e.parameters.length&&0===t.parameters.length?function(e,t){return k(Zx.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Yi(e),Yi(t))}:function(e,t){return k(Zx.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,Yi(e),Yi(t))}}function V(e,t){return 0===e.parameters.length&&0===t.parameters.length?function(e,t){return k(Zx.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Yi(e),Yi(t))}:function(e,t){return k(Zx.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,Yi(e),Yi(t))}}function K(e,t,r,n,i){return g_(r?fc(e):e,r?fc(t):t,S===tn?8:0,n,E,i,F,Sl(L))}function q(e,t,r){t=F(e,t,r);return!t&&r&&E(Zx.Diagnostics.Index_signatures_are_incompatible),t}function W(e,t,r,n,i,a){if(S===an)return function(e,t,r){t=Vs(t,r),r=Vs(e,r);if(!r&&!t)return-1;if(r&&t&&r.isReadonly===t.isReadonly)return F(r.type,t.type);return 0}(e,t,r);t=Ks(t,r);if(!t||1&t.flags&&!n)return-1;if(us(e))return 0===r?F(rs(e),t,i):0;n=Ks(e,r)||1===r&&Ks(e,0);if(n)return q(n,t,i);if(1&a||!Sd(e))return i&&E(Zx.Diagnostics.Index_signature_is_missing_in_type_0,Yi(e)),0;a=function(e,t,r,n){for(var i=-1,a=0,o=(2097152&e.flags?ps:_s)(e);a<o.length;a++){var s=o[a];if(!S_(e,s)){var c=Dn(s).nameType;if(!(c&&8192&c.flags)&&(0===r||ig(s.escapedName))){c=F(qa(s),t,n);if(!c)return n&&E(Zx.Diagnostics.Property_0_is_incompatible_with_index_signature,Qi(s)),0;i&=c}}}return i}(e,t,r,i);return!a||0!==r||(e=Ks(e,1))&&(a&=q(e,t,i)),a}}function k_(e,t,r){return void 0===r&&(r=Zl),Yx(e,t,r,!0)||function(r,e){var n=Zx.getObjectFlags(r);if(20&n&&1048576&e.flags)return Zx.find(e.types,function(e){if(524288&e.flags){var t=n&Zx.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&Zx.getObjectFlags(e)&&Lp(t,Q_))return Zx.find(t.types,function(e){return!Q_(e)})}(e,t)||function(e,t){var r=0;if(0<Js(e,r).length||0<Js(e,r=1).length)return Zx.find(t.types,function(e){return 0<Js(e,r).length})}(e,t)||function(e,t){for(var r,n=0,i=0,a=t.types;i<a.length;i++){var o,s=a[i],c=xu([Eu(e),Eu(s)]);4194304&c.flags?(r=s,n=1/0):1048576&c.flags?(o=Zx.length(Zx.filter(c.types,ed)),n<=o&&(r=s,n=o)):ed(c)&&n<=1&&(r=s,n=1)}return r}(e,t)}function E_(e,t,r,n,i){for(var a=e.types.map(function(e){}),o=0,s=t;o<s.length;o++){var c=s[o],u=c[0],l=c[1],c=Ps(e,l);if(!(i&&c&&16&Zx.getCheckFlags(c)))for(var _=0,d=0,p=e.types;d<p.length;d++){var f=pa(p[d],l);f&&r(u(),f)?a[_]=void 0===a[_]||a[_]:a[_]=!1,_++}}t=a.indexOf(!0);return-1===t||-1!==a.indexOf(!0,t+1)?n:e.types[t]}function N_(e){if(524288&e.flags){var t=ls(e);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&!t.stringIndexInfo&&!t.numberIndexInfo&&0<t.properties.length&&Zx.every(t.properties,function(e){return!!(16777216&e.flags)})}return!!(2097152&e.flags)&&Zx.every(e.types,N_)}function A_(e,t,r){e=kc(e,Zx.map(e.typeParameters,function(e){return e===t?r:e}));return e.objectFlags|=8192,e}function F_(n){var i=Dn(n);return P_(i.typeParameters,i,function(e,t,r){r=wc(n,hl(i.typeParameters,Dl(t,r)));return r.aliasTypeArgumentsContainsMarker=!0,r})}function P_(e,o,s){void 0===e&&(e=Zx.emptyArray);var c=o.variances;if(!c){o.variances=Zx.emptyArray,c=[];for(var t=0,r=e;t<r.length;t++)!function(e){var t=!1,r=!1,n=or;or=function(e){return e?r=!0:t=!0};var i=s(o,e,dt),a=s(o,e,pt);3===(a=(t_(a,i)?1:0)|(t_(i,a)?2:0))&&t_(s(o,e,sr),i)&&(a=4),or=n,(t||r)&&(t&&(a|=8),r&&(a|=16)),c.push(a)}(r[t]);o.variances=c}return c}function w_(e){return e===Dt||e===St||8&e.objectFlags?g:P_(e.typeParameters,e,A_)}function I_(e){return 262144&e.flags&&!ms(e)}function O_(e){return t=e,!!(4&Zx.getObjectFlags(t))&&!t.node&&Zx.some(Ac(e),function(e){return I_(e)||O_(e)});var t}function M_(e,t,r){void 0===r&&(r=0);for(var n=""+e.target.id,i=0,a=Ac(e);i<a.length;i++){var o,s=a[i];I_(s)?((o=t.indexOf(s))<0&&(o=t.length,t.push(s)),n+="="+o):r<4&&O_(s)?n+="<"+M_(s,t,r+1)+">":n+="-"+s.id}return n}function L_(e,t,r,n){n===an&&e.id>t.id&&(i=e,e=t,t=i);var i=r?":"+r:"";if(O_(e)&&O_(t)){r=[];return M_(e,r)+","+M_(t,r)+i}return e.id+","+t.id+i}function R_(e,t){if(!(6&Zx.getCheckFlags(e)))return t(e);for(var r=0,n=e.containingType.types;r<n.length;r++){var i=Bs(n[r],e.escapedName),i=i&&R_(i,t);if(i)return i}}function B_(e){return e.parent&&32&e.parent.flags?mo(bi(e)):void 0}function j_(e,t,r){if(5<=r&&524288&e.flags&&!rp(e)){var n=e.symbol;if(n)for(var i=0,a=0;a<r;a++){var o=t[a];if(524288&o.flags&&o.symbol===n&&5<=++i)return 1}}if(5<=r&&8388608&e.flags)for(var s=J_(e),i=0,a=0;a<r;a++){o=t[a];if(J_(o)===s&&5<=++i)return 1}}function J_(e){for(var t=e;8388608&t.flags;)t=t.objectType;return t}function z_(e,t){return 0!==U_(e,t,Yl)}function U_(e,t,r){if(e===t)return-1;var n=24&Zx.getDeclarationModifierFlagsFromSymbol(e);if(n!=(24&Zx.getDeclarationModifierFlagsFromSymbol(t)))return 0;if(n){if(ab(e)!==ab(t))return 0}else if((16777216&e.flags)!=(16777216&t.flags))return 0;return Oy(e)!==Oy(t)?0:r(qa(e),qa(t))}function V_(e,t,r,n,i,a){if(e===t)return-1;if(s=t,c=r,u=_y(o=e),l=_y(s),_=dy(o),r=dy(s),o=py(o),s=py(s),(u!==l||_!==r||o!==s)&&!(c&&_<=r))return 0;var o,s,c,u,l,_;if(Zx.length(e.typeParameters)!==Zx.length(t.typeParameters))return 0;if(t.typeParameters){for(var d=bl(e.typeParameters,t.typeParameters),p=0;p<t.typeParameters.length;p++)if(!((b=e.typeParameters[p])===(h=t.typeParameters[p])||a(Jl(Dc(b),d)||Pe,Dc(h)||Pe)&&a(Jl(ks(b),d)||Pe,ks(h)||Pe)))return 0;e=Pl(e,d,!0)}var f=-1;if(!n){var g=ac(e);if(g){var m=ac(t);if(m){if(!(v=a(g,m)))return 0;f&=v}}}for(var y=_y(t),p=0;p<y;p++){var h,v,b=cy(e,p);if(!(v=a(h=cy(t,p),b)))return 0;f&=v}return i||(g=oc(e),m=oc(t),f&=g||m?(i=m,m=a,(g=g)&&i&&mu(g,i)?g.type===i.type?-1:g.type&&i.type?m(g.type,i.type):0:0):a(sc(e),sc(t))),f}function K_(e){return function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t],i=rd(n),a=a||i;if(i===n||i!==a)return}return 1}(e)?gu(e):Zx.reduceLeft(e,function(e,t){return e_(e,t)?t:e})}function q_(e){return!!(4&Zx.getObjectFlags(e))&&(e.target===Dt||e.target===St)}function W_(e){return!!(4&Zx.getObjectFlags(e))&&e.target===St}function H_(e){return q_(e)&&!W_(e)||sd(e)&&!e.target.readonly}function G_(e){return q_(e)?Ac(e)[0]:void 0}function Q_(e){return q_(e)||!(98304&e.flags)&&t_(e,Pt)}function X_(e){e=q_(e)?Ac(e)[0]:void 0;return e===Ie||e===Xe}function Y_(e){return sd(e)||!!Bs(e,"0")}function Z_(e){return Q_(e)||Y_(e)}function $_(e){return!(240512&e.flags)}function ed(e){return!!(109440&e.flags)}function td(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||Zx.every(e.types,ed):ed(e))}function rd(e){return 1024&e.flags?_o(e):128&e.flags?Re:256&e.flags?Be:2048&e.flags?je:512&e.flags?Ke:1048576&e.flags?gu(Zx.sameMap(e.types,rd)):e}function nd(e){return 1024&e.flags&&_l(e)?_o(e):128&e.flags&&_l(e)?Re:256&e.flags&&_l(e)?Be:2048&e.flags&&_l(e)?je:512&e.flags&&_l(e)?Ke:1048576&e.flags?gu(Zx.sameMap(e.types,nd)):e}function id(e){return 8192&e.flags?qe:1048576&e.flags?gu(Zx.sameMap(e.types,id)):e}function ad(e,t){return eh(e,t)||(e=id(nd(e))),e}function od(e,t,r,n){return e&&ed(e)&&(e=ad(e,t?Hv(r,t,n):void 0)),e}function sd(e){return!!(4&Zx.getObjectFlags(e)&&8&e.target.objectFlags)}function cd(e){return e.target.hasRestElement?Ac(e)[e.target.typeParameters.length-1]:void 0}function ud(e){return Fc(e)-(e.target.hasRestElement?1:0)}function ld(e){return"0"===e.value.base10Value}function _d(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=dd(n[r]);return t}function dd(e){return 1048576&e.flags?_d(e.types):128&e.flags?""===e.value?128:0:256&e.flags?0===e.value?256:0:2048&e.flags?ld(e)?2048:0:512&e.flags?e===Je||e===ze?512:0:117724&e.flags}function pd(e){return 117632&dd(e)?Bp(e,function(e){return!(117632&dd(e))}):e}function fd(e){return 4&e.flags?Nr:8&e.flags?Ar:64&e.flags?Fr:e===ze||e===Je||114688&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&ld(e)?e:He}function gd(e,t){t=t&~e.flags&98304;return 0==t?e:gu(32768==t?[e,we]:65536==t?[e,Me]:[e,we,Me])}function md(e){return Zx.Debug.assert(Q),32768&e.flags?e:gu([e,we])}function yd(e){return Q?(t=e,(wt=wt||(Hc("NonNullable",524288,void 0)||Ce))!==Ce?wc(wt,[t]):Dp(t,2097152)):e;var t}function hd(e){return Q?gu([e,Oe]):e}function vd(e){return e!==Oe}function bd(e){return Q?Bp(e,vd):e}function xd(e,t,r){return r?(Zx.isOutermostOptionalChain(t)?md:hd)(e):e}function Dd(e,t){return Zx.isExpressionOfOptionalChainRoot(t)?yd(e):Zx.isOptionalChain(t)?bd(e):e}function Sd(e){return 2097152&e.flags?Zx.every(e.types,Sd):!(!e.symbol||0==(7040&e.symbol.flags)||Ub(e))||!!(2048&Zx.getObjectFlags(e)&&Sd(e.source))}function Cd(e,t){var r=pn(e.flags,e.escapedName,8&Zx.getCheckFlags(e));r.declarations=e.declarations,r.parent=e.parent,r.type=t,(r.target=e).valueDeclaration&&(r.valueDeclaration=e.valueDeclaration);e=Dn(e).nameType;return e&&(r.nameType=e),r}function Td(e){if(!(tp(e)&&32768&Zx.getObjectFlags(e)))return e;var t=e.regularType;if(t)return t;var r=e,t=function(e,t){for(var r=Zx.createSymbolTable(),n=0,i=_s(e);n<i.length;n++){var a=i[n],o=qa(a),s=t(o);r.set(a.escapedName,s===o?a:Cd(a,s))}return r}(e,Td),t=Li(r.symbol,t,r.callSignatures,r.constructSignatures,r.stringIndexInfo,r.numberIndexInfo);return t.flags=r.flags,t.objectFlags|=-32769&r.objectFlags,e.regularType=t}function kd(e,t,r){return{parent:e,propertyName:t,siblings:r,resolvedProperties:void 0}}function Ed(e){if(!e.resolvedProperties){for(var t=Zx.createMap(),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];!tp(a)||(a=ds(a,t.propertyName))&&Lp(qa(a),function(e){r.push(e)})}t.siblings=r}return t.siblings}(e);r<n.length;r++){var i=n[r];if(tp(i)&&!(1024&Zx.getObjectFlags(i)))for(var a=0,o=fs(i);a<o.length;a++){var s=o[a];t.set(s.escapedName,s)}}e.resolvedProperties=Zx.arrayFrom(t.values())}return e.resolvedProperties}function Nd(e,t){for(var r,n,i=Zx.createSymbolTable(),a=0,o=_s(e);a<o.length;a++){var s=o[a];i.set(s.escapedName,function(e,t){if(!(4&e.flags))return e;var r=qa(e);return(t=Fd(r,t&&kd(t,e.escapedName,void 0)))===r?e:Cd(e,t)}(s,t))}if(t)for(var c=0,u=Ed(t);c<u.length;c++){s=u[c];i.has(s.escapedName)||i.set(s.escapedName,(r=s,n=void 0,(n=Se.get(r.escapedName))||((n=Cd(r,we)).flags|=16777216,Se.set(r.escapedName,n),n)))}var l=Vs(e,0),_=Vs(e,1),_=Li(e.symbol,i,Zx.emptyArray,Zx.emptyArray,l&&vc(Ad(l.type),l.isReadonly),_&&vc(Ad(_.type),_.isReadonly));return _.objectFlags|=2113536&Zx.getObjectFlags(e),_}function Ad(e){return Fd(e,void 0)}function Fd(e,t){if(1572864&Zx.getObjectFlags(e)){if(void 0===t&&e.widened)return e.widened;var r,n,i=void 0;return 98305&e.flags?i=ke:tp(e)?i=Nd(e,t):1048576&e.flags?(r=t||kd(void 0,void 0,e.types),i=gu(n=Zx.sameMap(e.types,function(e){return 98304&e.flags?e:Fd(e,r)}),Zx.some(n,y_)?2:1)):2097152&e.flags?i=xu(Zx.sameMap(e.types,Ad)):(q_(e)||sd(e))&&(i=kc(e.target,Zx.sameMap(Ac(e),Ad))),i&&void 0===t&&(e.widened=i),i||e}return e}function Pd(e,t,r){var n,i=Yi(Ad(t));if(!Zx.isInJSFile(e)||Zx.isCheckJsEnabledForFile(Zx.getSourceFileOfNode(e),G)){switch(e.kind){case 209:case 159:case 158:n=X?Zx.Diagnostics.Member_0_implicitly_has_an_1_type:Zx.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 156:var a=e;if(Zx.isIdentifier(a.name)&&(Zx.isCallSignatureDeclaration(a.parent)||Zx.isMethodSignature(a.parent)||Zx.isFunctionTypeNode(a.parent))&&-1<a.parent.parameters.indexOf(a)&&(Nn(a,a.name.escapedText,788968,void 0,a.name.escapedText,!0)||a.name.originalKeywordKind&&Zx.isTypeNodeKind(a.name.originalKeywordKind))){var o="arg"+a.parent.parameters.indexOf(a);return void _n(X,e,Zx.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,o,Zx.declarationNameToString(a.name))}n=e.dotDotDotToken?X?Zx.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:Zx.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:X?Zx.Diagnostics.Parameter_0_implicitly_has_an_1_type:Zx.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 191:if(n=Zx.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!X)return;break;case 300:return void un(e,Zx.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 244:case 161:case 160:case 163:case 164:case 201:case 202:if(X&&!e.name)return void un(e,3===r?Zx.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:Zx.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);n=X?3===r?Zx.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:Zx.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:Zx.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 186:return void(X&&un(e,Zx.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:n=X?Zx.Diagnostics.Variable_0_implicitly_has_an_1_type:Zx.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}_n(X,e,n,Zx.declarationNameToString(Zx.getNameOfDeclaration(e)),i)}}function wd(e,t,r){!(I&&X&&524288&Zx.getObjectFlags(t))||r&&Xf(e)||!function e(t){var r=!1;if(524288&Zx.getObjectFlags(t)){if(1048576&t.flags)if(Zx.some(t.types,y_))r=!0;else for(var n=0,i=t.types;n<i.length;n++)e(l=i[n])&&(r=!0);if(q_(t)||sd(t))for(var a=0,o=Ac(t);a<o.length;a++)e(l=o[a])&&(r=!0);if(tp(t))for(var s=0,c=_s(t);s<c.length;s++){var u=c[s],l=qa(u);524288&Zx.getObjectFlags(l)&&(e(l)||un(u.valueDeclaration,Zx.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,Qi(u),Yi(Ad(l))),r=!0)}}return r}(t)&&Pd(e,t,r)}function Id(e,t,r){var n=_y(e),i=_y(t),a=fy(e),o=fy(t),i=o?i-1:i,s=a?i:Math.min(n,i),n=ac(e);!n||(i=ac(t))&&r(n,i);for(var c=0;c<s;c++)r(cy(e,c),cy(t,c));o&&r(ly(e,s),o)}function Od(e,t,r){var n=oc(e),i=oc(t);n&&i&&mu(n,i)&&n.type&&i.type?r(n.type,i.type):r(sc(e),sc(t))}function Md(e,t,r,n){return Ld(e.map(jd),t,r,n||Zl)}function Ld(e,t,r,n){var i={inferences:e,signature:t,flags:r,compareTypes:n,mapper:Sl(function(e){return Rd(i,e,!0)}),nonFixingMapper:Sl(function(e){return Rd(i,e,!1)})};return i}function Rd(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&&(Bd(n),a.isFixed=!0),ap(e,i)}return t}function Bd(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];n.isFixed||(n.inferredType=void 0)}}function jd(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1}}function Jd(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed}}function zd(e){return e&&e.mapper}function Ud(e){var t=Zx.getObjectFlags(e);if(67108864&t)return!!(134217728&t);t=!!(63176704&e.flags||4&t&&(e.node||Zx.forEach(Ac(e),Ud))||16&t&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||131104&t||3145728&e.flags&&!(1024&e.flags)&&Zx.some(e.types,Ud));return 3899393&e.flags&&(e.objectFlags|=67108864|(t?134217728:0)),t}function Vd(e,t){return!!(e===t||3145728&e.flags&&Zx.some(e.types,function(e){return Vd(e,t)})||16777216&e.flags&&(Vd(Wu(e),t)||Vd(Hu(e),t)))}function Kd(e,t,r){var n=e.id+","+t.id+","+r.id;if(xr.has(n))return xr.get(n);xr.set(n,void 0);r=function(e,t,r){if(!(Vs(e,0)||0!==fs(e).length&&function t(e){return!(2097152&Zx.getObjectFlags(e))||tp(e)&&Zx.some(fs(e),function(e){return t(qa(e))})}(e)))return;if(q_(e))return nu(qd(Ac(e)[0],t,r),W_(e));if(sd(e)){var n=Zx.map(Ac(e),function(e){return qd(e,t,r)}),i=4&os(t)?Fc(e)-(e.target.hasRestElement?1:0):e.target.minLength;return cu(n,i,e.target.hasRestElement,e.target.readonly,e.target.associatedNames)}i=Pi(2064,void 0);return i.source=e,i.mappedType=t,i.constraintType=r,i}(e,t,r);return xr.set(n,r),r}function qd(e,t,r){r=Ju(r.type,es(t)),t=rs(t),r=jd(r);return Zd([r],e,t),Qd(r)||Pe}function Wd(t,r,n,i){var a,o,s,c,u;return __generator(this,function(e){switch(e.label){case 0:c=fs(r),a=0,c=c,e.label=1;case 1:return a<c.length?Co(o=c[a])||!n&&(16777216&o.flags||48&Zx.getCheckFlags(o))?[3,5]:(s=Bs(t,o.escapedName))?[3,3]:[4,o]:[3,6];case 2:return e.sent(),[3,5];case 3:return i?!(109440&(c=qa(o)).flags)||1&(u=qa(s)).flags||ll(u)===ll(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 Hd(e,t,r,n){n=Wd(e,t,r,n).next();if(!n.done)return n.value}function Gd(e,t){return sd(e)&&sd(t)&&(r=e,(n=t).target.minLength>r.target.minLength||!cd(n)&&(!!cd(r)||ud(n)<ud(r)))||Hd(e,t,!1,!0)&&Hd(t,e,!1,!0);var r,n}function Qd(e){return e.candidates?gu(e.candidates,2):e.contraCandidates?xu(e.contraCandidates):void 0}function Xd(e){return!!Sn(e).skipDirectInference}function Yd(e){return e.symbol&&Zx.some(e.symbol.declarations,Xd)}function Zd(g,e,m,h,y){var n,o;void 0===h&&(h=0),void 0===y&&(y=!1);var v,b=!1,x=512,D=!0;function S(e,t){if(Ud(t)){if(e===Ne){var r=v;return v=e,S(t,t),void(v=r)}if(e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)E(e.aliasTypeArguments,t.aliasTypeArguments,F_(e.aliasSymbol));else if(e===t&&3145728&e.flags)for(var n=0,i=e.types;n<i.length;n++){var a=i[n];S(a,a)}else{if(1048576&t.flags){var o=k(1048576&e.flags?e.types:[e],t.types,$d),s=k(o[0],o[1],ep),c=s[0];if(0===(o=s[1]).length)return;if(t=gu(o),0===c.length)return void C(e,t,1);e=gu(c)}else if(2097152&t.flags&&Zx.some(t.types,function(e){return!!N(e)||us(e)&&!!N(Ml(e)||He)})){if(!(1048576&e.flags)){s=k(2097152&e.flags?e.types:[e],t.types,Xl),c=s[0],o=s[1];if(0===c.length||0===o.length)return;e=xu(c),t=xu(o)}}else 41943040&t.flags&&(t=Ku(t));if(8650752&t.flags){if(2097152&Zx.getObjectFlags(e)||e===Fe||e===Ge||32&h&&(e===Ee||e===Ft)||Yd(e))return;o=N(t);if(o)return o.isFixed||((void 0===o.priority||h<o.priority)&&(o.candidates=void 0,o.contraCandidates=void 0,o.topLevel=!0,o.priority=h),h===o.priority&&(f=v||e,y&&!b?Zx.contains(o.contraCandidates,f)||(o.contraCandidates=Zx.append(o.contraCandidates,f),Bd(g)):Zx.contains(o.candidates,f)||(o.candidates=Zx.append(o.candidates,f),Bd(g))),!(32&h)&&262144&t.flags&&o.topLevel&&!Vd(m,t)&&(o.topLevel=!1,Bd(g))),void(x=Math.min(x,h));(f=Lu(t,!1))!==t?T(e,f,S):8388608&t.flags&&(63176704&(o=Lu(t.indexType,!1)).flags&&((d=Ru(Lu(t.objectType,!1),o,!1))&&d!==t&&T(e,d,S)))}if(!(4&Zx.getObjectFlags(e)&&4&Zx.getObjectFlags(t)&&(e.target===t.target||q_(e)&&q_(t)))||e.node&&t.node)if(4194304&e.flags&&4194304&t.flags)y=!y,S(e.type,t.type),y=!y;else if((td(e)||4&e.flags)&&4194304&t.flags){d=(d=e,p=Zx.createSymbolTable(),Lp(d,function(e){var t,r;128&e.flags&&((r=pn(4,t=Zx.escapeLeadingUnderscores(e.value))).type=ke,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),p.set(t,r))}),d=4&d.flags?vc(it,!1):void 0,Li(void 0,p,Zx.emptyArray,Zx.emptyArray,d,void 0));y=!y,C(d,t.type,64),y=!y}else if(8388608&e.flags&&8388608&t.flags)S(e.objectType,t.objectType),S(e.indexType,t.indexType);else if(16777216&e.flags&&16777216&t.flags)S(e.checkType,t.checkType),S(e.extendsType,t.extendsType),S(Wu(e),Wu(t)),S(Hu(e),Hu(t));else if(16777216&t.flags){var u=h;h|=y?16:0,A(e,[Wu(t),Hu(t)],t.flags),h=u}else if(3145728&t.flags)A(e,t.types,t.flags);else if(1048576&e.flags)for(var l=0,_=e.types;l<_.length;l++)S(_[l],t);else{if(e=Is(e),!(128&h&&65273856&e.flags)){u=Ns(e);if(u!==e&&D&&!(2621440&u.flags))return D=!1,S(u,t);e=u}2621440&e.flags&&T(e,t,F)}else E(Ac(e),Ac(t),w_(e.target));var d,p,f;25165824&e.flags&&(f=Lu(e,y))!==e&&S(f,t)}}}function C(e,t,r){var n=h;h|=r,S(e,t),h=n}function T(e,t,r){var n,i=e.id+","+t.id,a=o&&o.get(i);x=void 0===a?((o=o||Zx.createMap()).set(i,-1),n=x,x=512,r(e,t),o.set(i,x),Math.min(x,n)):Math.min(x,a)}function k(e,t,r){for(var n,i,a=0,o=t;a<o.length;a++)for(var s=o[a],c=0,u=e;c<u.length;c++){var l=u[c];r(l,s)&&(S(l,s),n=Zx.appendIfUnique(n,l),i=Zx.appendIfUnique(i,s))}return[n?Zx.filter(e,function(e){return!Zx.contains(n,e)}):e,i?Zx.filter(t,function(e){return!Zx.contains(i,e)}):t]}function E(e,t,r){for(var n=(e.length<t.length?e:t).length,i=0;i<n;i++)(i<r.length&&2==(7&r[i])?f:S)(e[i],t[i])}function f(e,t){P||256&h?(y=!y,S(e,t),y=!y):S(e,t)}function N(e){if(8650752&e.flags)for(var t=0,r=g;t<r.length;t++){var n=r[t];if(e===n.typeParameter)return n}}function A(e,t,r){var n=0;if(1048576&r){for(var i=void 0,a=1048576&e.flags?e.types:[e],o=new Array(a.length),s=!1,c=0,u=t;c<u.length;c++)if(N(g=u[c]))i=g,n++;else for(var l=0;l<a.length;l++){var _=x;x=512,S(a[l],g),x===h&&(o[l]=!0),s=s||-1===x,x=Math.min(x,_)}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&&Zx.find(i.types,function(e){return!!N(e)});if(!i||t&&i!==t)return;t=i}return t}(t);return void(d&&C(e,d,1))}if(1===n&&!s){d=Zx.flatMap(a,function(e,t){return o[t]?void 0:e});if(d.length)return void S(gu(d),i)}}else for(var p=0,f=t;p<f.length;p++)N(g=f[p])?n++:S(e,g);if(2097152&r?1===n:0<n)for(var g,m=0,y=t;m<y.length;m++)N(g=y[m])&&C(e,g,1)}function F(e,t){var r=524288&t.flags&&!(16&Zx.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags)?sd(t)?t.target:t.symbol:void 0;r?Zx.contains(n,r)?x=-1:((n=n||[]).push(r),i(e,t),n.pop()):i(e,t)}function i(e,t){if(4&Zx.getObjectFlags(e)&&4&Zx.getObjectFlags(t)&&(e.target===t.target||q_(e)&&q_(t)))E(Ac(e),Ac(t),w_(e.target));else{if(us(e)&&us(t)&&(S(ts(e),ts(t)),S(rs(e),rs(t))),32&Zx.getObjectFlags(t))if(function e(t,r,n){if(1048576&n.flags){for(var i=!1,a=0,o=n.types;a<o.length;a++)i=e(t,r,o[a])||i;return i}if(4194304&n.flags){var s=N(n.type);return!s||s.isFixed||Yd(t)||(c=Kd(t,r,n))&&C(c,s.typeParameter,2097152&Zx.getObjectFlags(t)?4:2),!0}if(262144&n.flags){C(Eu(t),n,8);var c=gs(n);return c&&e(t,r,c)?!0:(s=Zx.map(fs(t),qa),n=Ks(t,0),c=(c=ku(t))&&c.type,S(gu(Zx.append(Zx.append(s,n),c)),rs(r)),!0)}return!1}(e,t,ts(t)))return;if(!Gd(e,t)){if(q_(e)||sd(e)){if(sd(t)){for(var r=sd(e)?ud(e):0,n=ud(t),i=(sd(e)?cd:G_)(e),a=cd(t),o=n<r||i?n:r,s=0;s<o;s++)S(s<r?Ac(e)[s]:i,Ac(t)[s]);return void(a&&(n=o<r?Ac(e).slice(o,r):[],i&&n.push(i),n.length&&S(gu(n),a)))}if(q_(t))return void u(e,t)}!function(e,t){for(var t=_s(t),r=0,n=t;r<n.length;r++){var i=n[r],a=Bs(e,i.escapedName);a&&S(qa(a),qa(i))}}(e,t),c(e,t,0),c(e,t,1),u(e,t)}}}function c(e,t,r){for(var n,i,a,o,s=Js(e,r),c=Js(t,r),u=s.length,l=c.length,_=u<l?u:l,d=!!(2097152&Zx.getObjectFlags(e)),p=0;p<_;p++)n=function(e){var t=e.typeParameters;if(t){var r=Tl(t);return Pl(e,bl(t,Zx.map(t,function(e){return Jl(xs(e),r)||Pe})),!0)}return e}(s[u-_+p]),i=fc(c[l-_+p]),o=void 0,(a=d)||(o=b,a=i.declaration?i.declaration.kind:0,b=b||161===a||160===a||162===a,Id(n,i,f),b=o),!void Od(n,i,S)}function u(e,t){var r=Ks(t,0);r&&(n=Ks(e,0)||qs(e,0))&&S(n,r);var n,t=Ks(t,1);t&&(n=Ks(e,1)||Ks(e,0)||qs(e,1))&&S(n,t)}S(e,m)}function $d(e,t){return Xl(e,t)||!!(4&t.flags&&128&e.flags||8&t.flags&&256&e.flags)}function ep(e,t){return!!(524288&e.flags&&524288&t.flags&&e.symbol&&e.symbol===t.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)}function tp(e){return!!(128&Zx.getObjectFlags(e))}function rp(e){return!!(65664&Zx.getObjectFlags(e))}function np(e){return 104&e.priority?xu(e.contraCandidates):(e=e.contraCandidates,Zx.reduceLeft(e,function(e,t){return e_(t,e)?t:e}))}function ip(e,t){var r,n=function(e){if(1<e.length){var t=Zx.filter(e,rp);if(t.length){t=gu(t,2);return Zx.concatenate(Zx.filter(e,function(e){return!rp(e)}),[t])}}return e}(e.candidates),r=!!(r=ms(r=e.typeParameter))&&jy(16777216&r.flags?hs(r):r,4325372),t=!r&&e.topLevel&&(e.isFixed||!Vd(sc(t),e.typeParameter)),n=r?Zx.sameMap(n,ll):t?Zx.sameMap(n,nd):n;return Ad(104&e.priority?gu(n,2):function(e){if(!Q)return K_(e);var t=Zx.filter(e,function(e){return!(98304&e.flags)});return t.length?gd(K_(t),98304&_d(e)):gu(e,2)}(n))}function ap(e,t){var r,n,i,a,o,s=e.inferences[t];return s.inferredType||(n=void 0,(r=e.signature)?(i=s.candidates?ip(s,r):void 0,s.contraCandidates?(r=np(s),n=!i||131072&i.flags||!e_(i,r)?r:i):i?n=i:1&e.flags?n=Ge:(i=ks(s.typeParameter))&&(n=Jl(i,El((o=t,Sl(function(t){return Zx.findIndex(a.inferences,function(e){return e.typeParameter===t})>=o?Pe:t})),(a=e).nonFixingMapper)))):n=Qd(s),s.inferredType=n||op(!!(2&e.flags)),(t=ms(s.typeParameter))&&(t=Jl(t,e.nonFixingMapper),n&&e.compareTypes(n,Lo(t,n))||(s.inferredType=n=t))),s.inferredType}function op(e){return e?ke:Pe}function sp(e){for(var t=[],r=0;r<e.inferences.length;r++)t.push(ap(e,r));return t}function cp(e){switch(e.escapedText){case"document":case"console":return Zx.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return G.types?Zx.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:Zx.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery;case"describe":case"suite":case"it":case"test":return G.types?Zx.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:Zx.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return G.types?Zx.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:Zx.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":return Zx.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later;default:return 282===e.parent.kind?Zx.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:Zx.Diagnostics.Cannot_find_name_0}}function up(e){var t=Sn(e);return t.resolvedSymbol||(t.resolvedSymbol=!Zx.nodeIsMissing(e)&&Nn(e,e.escapedText,1160127,cp(e),e,!Zx.isWriteOnlyAccess(e),!1,Zx.Diagnostics.Cannot_find_name_0_Did_you_mean_1)||Ce),t.resolvedSymbol}function lp(e){return!!Zx.findAncestor(e,function(e){return 172===e.kind||75!==e.kind&&153!==e.kind&&"quit"})}function _p(e,t){switch(t.kind){case 200:case 218:return _p(e,t.expression)}switch(e.kind){case 75:return 75===t.kind&&up(e)===up(t)||(242===t.kind||191===t.kind)&&Ti(up(e))===vi(t);case 104:return 104===t.kind;case 102:return 102===t.kind;case 218:case 200:return _p(e.expression,t);case 194:case 195:return Zx.isAccessExpression(t)&&dp(e)===dp(t)&&_p(e.expression,t.expression)}return!1}function dp(e){return 194===e.kind?e.name.escapedText:Zx.isStringOrNumericLiteralLike(e.argumentExpression)?Zx.escapeLeadingUnderscores(e.argumentExpression.text):void 0}function pp(e,t){for(;Zx.isAccessExpression(e);)if(_p(e=e.expression,t))return!0;return!1}function fp(e,t){for(;Zx.isOptionalChain(e);)if(_p(e=e.expression,t))return 1}function gp(e,t){if(e&&1048576&e.flags){t=Ps(e,t);if(t&&2&Zx.getCheckFlags(t))return void 0===t.isDiscriminantProperty&&(t.isDiscriminantProperty=192==(192&t.checkFlags)&&!jy(qa(t),63176704)),!!t.isDiscriminantProperty}return!1}function mp(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];gp(t,a.escapedName)&&(r?r.push(a):r=[a])}return r}function yp(e,t){return _p(e,t)||pp(e,t)}function hp(e){return(!e.id||e.id<0)&&(e.id=rD,rD++),e.id}function vp(e,t){if(e!==t){if(131072&t.flags)return t;var r=Bp(e,function(e){return function(e,t){if(!(1048576&e.flags))return t_(e,t);for(var r=0,n=e.types;r<n.length;r++)if(t_(n[r],t))return!0;return!1}(t,e)});if(512&t.flags&&_l(t)&&(r=jp(r,ul)),t_(t,r))return r}return e}function bp(e){var t=ls(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&e_(e,vt))}function xp(e){var t=e.flags;if(4&t)return Q?16317953:16776705;if(128&t){var r=""===e.value;return Q?r?12123649:7929345:r?12582401:16776705}if(40&t)return Q?16317698:16776450;if(256&t){var n=0===e.value;return Q?n?12123394:7929090:n?12582146:16776450}if(64&t)return Q?16317188:16775940;if(2048&t){n=ld(e);return Q?n?12122884:7928580:n?12581636:16775940}return 16&t?Q?16316168:16774920:528&t?Q?e===Je||e===ze?12121864:7927560:e===Je||e===ze?12580616:16774920:524288&t?16&Zx.getObjectFlags(e)&&y_(e)?Q?16318463:16777215:bp(e)?Q?7880640:16728e3:Q?7888800:16736160:49152&t?9830144:65536&t?9363232:12288&t?Q?7925520:16772880:67108864&t?Q?7888800:16736160:131072&t?0:63176704&t?xp(xs(e)||Pe):3145728&t?function(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=xp(n[r]);return t}(e.types):16777215}function Dp(e,t){return Bp(e,function(e){return 0!=(xp(e)&t)})}function Sp(e,t){if(t){t=lh(t);return gu([Dp(e,524288),t])}return e}function Cp(e,t){var r=Su(t);if(!ko(r))return Ae;r=Po(r);return df(pa(e,r),t)||ig(r)&&Ks(e,1)||Ks(e,0)||Ae}function Tp(e,t){return Rp(e,Y_)&&(pa(r=e,""+t)||(Rp(r,sd)?jp(r,function(e){return cd(e)||we}):void 0))||Tv(65,e,we,void 0)||Ae;var r}function kp(e){return nu(Tv(65,e,we,void 0)||Ae)}function Ep(e){return 209===e.parent.kind&&e.parent.left===e||232===e.parent.kind&&e.parent.initializer===e}function Np(e){return Cp(Ap(e.parent),e.name)}function Ap(e){var t,r,n=e.parent;switch(n.kind){case 231:return Re;case 232:return Cv(n)||Ae;case 209:return 192===(r=n).parent.kind&&Ep(r.parent)||281===r.parent.kind&&Ep(r.parent.parent)?Sp(Ap(r),r.right):lh(r.right);case 203:return we;case 192:return t=e,Tp(Ap(r=n),r.elements.indexOf(t));case 213:return kp(Ap(n.parent));case 281:return Np(n);case 282:return Sp(Np(t=n),t.objectAssignmentInitializer)}return Ae}function Fp(e){return Sn(e).resolvedType||lh(e)}function Pp(e){return 242===e.kind?(r=e).initializer?Fp(r.initializer):231===r.parent.parent.kind?Re:232===r.parent.parent.kind&&Cv(r.parent.parent)||Ae:(r=(t=e).parent,e=Pp(r.parent),Sp(189===r.kind?Cp(e,t.propertyName||t.name):t.dotDotDotToken?kp(e):Tp(e,r.elements.indexOf(t)),t.initializer));var t,r}function wp(e){switch(e.kind){case 200:return wp(e.expression);case 209:switch(e.operatorToken.kind){case 62:return wp(e.left);case 27:return wp(e.right)}}return e}function Ip(e){var t=Sn(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(277===(i=i).kind?ll(lh(i.expression)):He)}}return t.switchTypes}function Op(e,t){for(var r=[],n=0,i=e.caseBlock.clauses;n<i.length;n++){var a=i[n];if(277===a.kind){if(Zx.isStringLiteralLike(a.expression)){r.push(a.expression.text);continue}return Zx.emptyArray}t&&r.push(void 0)}return r}function Mp(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(!_u(t.types,i))return}return 1}if(1024&e.flags&&_o(e)===t)return 1;return _u(t.types,e)}(e,t)}function Lp(e,t){return 1048576&e.flags?Zx.forEach(e.types,t):t(e)}function Rp(e,t){return 1048576&e.flags?Zx.every(e.types,t):t(e)}function Bp(e,t){if(1048576&e.flags){var r=e.types,n=Zx.filter(r,t);return n===r?e:yu(n,e.objectFlags)}return 131072&e.flags||t(e)?e:He}function jp(e,t,r){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);for(var n,i=0,a=e.types;i<a.length;i++){var o=t(a[i]);o&&(n?n.push(o):n=[o])}return n&&gu(n,r?0:1)}function Jp(e,t){return Bp(e,function(e){return 0!=(e.flags&t)})}function zp(e,t){return Mp(Re,e)&&jy(t,128)||Mp(Be,e)&&jy(t,256)||Mp(je,e)&&jy(t,2048)?jp(e,function(e){return 4&e.flags?Jp(t,132):8&e.flags?Jp(t,264):64&e.flags?Jp(t,2112):e}):e}function Up(e){return 0===e.flags}function Vp(e){return 0===e.flags?e.type:e}function Kp(e,t){return t?{flags:0,type:e}:e}function qp(e){return De[e.id]||(De[e.id]=(t=e,(e=Pi(256)).elementType=t,e));var t}function Wp(e,t){t=rd(dh(t));return Mp(t,e.elementType)?e:qp(gu([e.elementType,t]))}function Hp(e){return e.finalArrayType||(e.finalArrayType=131072&(e=e.elementType).flags?Ft:nu(1048576&e.flags?gu(e.types,2):e))}function Gp(e){return 256&Zx.getObjectFlags(e)?Hp(e):e}function Qp(e){return 256&Zx.getObjectFlags(e)?e.elementType:He}function Xp(e,t){return function(e){for(var t=!1,r=0,n=e;r<n.length;r++){var i=n[r];if(!(131072&i.flags)){if(!(256&Zx.getObjectFlags(i)))return;t=!0}}return t}(e)?qp(gu(Zx.map(e,Qp))):gu(Zx.sameMap(e,Gp),t)}function Yp(e){var t=function e(t){var r=t.parent;return 200===r.kind||209===r.kind&&62===r.operatorToken.kind&&r.left===t||209===r.kind&&27===r.operatorToken.kind&&r.right===t?e(r):t}(e),r=t.parent,e=Zx.isPropertyAccessExpression(r)&&("length"===r.name.escapedText||196===r.parent.kind&&Zx.isIdentifier(r.name)&&Zx.isPushOrUnshiftIdentifier(r.name)),r=195===r.kind&&r.expression===t&&209===r.parent.kind&&62===r.parent.operatorToken.kind&&r.parent.left===r&&!Zx.isAssignmentTarget(r.parent)&&Jy(lh(r.argumentExpression),296);return e||r}function Zp(e,t){if(8752&e.flags)return qa(e);if(7&e.flags){var r=e.valueDeclaration;if(r){if((242===(i=r).kind||156===i.kind||159===i.kind||158===i.kind)&&Zx.getEffectiveTypeAnnotationNode(i))return qa(e);if(Zx.isVariableDeclaration(r)&&232===r.parent.parent.kind){var n=r.parent.parent,i=$p(n.expression,void 0);if(i)return Tv(n.awaitModifier?15:13,i,we,void 0)}t&&Zx.addRelatedInfo(t,Zx.createDiagnosticForNode(r,Zx.Diagnostics._0_needs_an_explicit_type_annotation,Qi(e)))}}var i}function $p(e,t){if(!(16777216&e.flags))switch(e.kind){case 75:var r=Ti(up(e));return Zp(2097152&r.flags?Qn(r):r,t);case 104:return function(e){e=Zx.getThisContainer(e,!1);if(Zx.isFunctionLike(e)){var t=tc(e);if(t.thisParameter)return Zp(t.thisParameter)}if(Zx.isClassLike(e.parent)){t=vi(e.parent);return Zx.hasModifier(e,32)?qa(t):mo(t).thisType}}(e);case 102:return Sf(e);case 194:r=$p(e.expression,t),r=r&&Bs(r,e.name.escapedText);return r&&Zp(r,t);case 200:return $p(e.expression,t)}}function ef(e){var t,r=Sn(e),n=r.effectsSignature;return void 0===n&&(t=void 0,226===e.parent.kind?t=$p(e.expression,void 0):102!==e.expression.kind&&(t=Zx.isOptionalChain(e)?Jg(Dd(ph(e.expression),e.expression),e.expression):Og(e.expression)),t=1!==(t=Js(t&&Ns(t)||Pe,0)).length||t[0].typeParameters?Zx.some(t,tf)?Gm(e):void 0:t[0],n=r.effectsSignature=t&&tf(t)?t:lr),n===lr?void 0:n}function tf(e){return!!(oc(e)||e.declaration&&131072&(cc(e.declaration)||Pe).flags)}function rf(e){var t=function t(e,r){for(;;){if(e===tr)return rr;var n=e.flags;if(4096&n){if(!r){var i=hp(e),a=qr[i];return void 0!==a?a:qr[i]=t(e,!0)}r=!1}if(368&n)e=e.antecedent;else if(512&n){var o=ef(e.node);if(o){var s=oc(o);if(s&&3===s.kind){var c=e.node.arguments[s.parameterIndex];if(c&&nf(c))return!1}if(131072&sc(o).flags)return!1}e=e.antecedent}else{if(4&n)return Zx.some(e.antecedents,function(e){return t(e,!1)});if(8&n)e=e.antecedents[0];else{if(!(128&n)){if(1024&n){tr=void 0;var s=e.target,c=s.antecedents;s.antecedents=e.antecedents;var o=t(e.antecedent,!1);return s.antecedents=c,o}return!(1&n)}if(e.clauseStart===e.clauseEnd&&Ey(e.switchStatement))return!1;e=e.antecedent}}}}(e,!1);return tr=e,rr=t}function nf(e){e=Zx.skipParentheses(e);return 91===e.kind||209===e.kind&&(55===e.operatorToken.kind&&(nf(e.left)||nf(e.right))||56===e.operatorToken.kind&&nf(e.left)&&nf(e.right))}function af(c,p,l,u,e){var t;void 0===l&&(l=p);var r=!1,_=0;if(kr)return Ae;if(!c.flowNode||!e&&!(133970943&p.flags))return p;Er++;var d=Tr,e=Vp(g(c.flowNode));Tr=d;e=256&Zx.getObjectFlags(e)&&Yp(c)?Ft:Gp(e);return e===Ye||c.parent&&218===c.parent.kind&&131072&Dp(e,2097152).flags?p:e;function f(){return r?t:(r=!0,t=function e(t,r,n,i){switch(t.kind){case 75:var a=up(t);return a!==Ce?(i?uD(i):"-1")+"|"+r.id+"|"+n.id+"|"+(lf(t)?"@":"")+lD(a):void 0;case 104:return"0";case 218:case 200:return e(t.expression,r,n,i);case 194:case 195:var o=dp(t);if(void 0!==o)return(a=e(t.expression,r,n,i))&&a+"."+o}}(c,p,l,u))}function g(e){if(2e3===_)return kr=!0,t=c,r=Zx.findAncestor(t,Zx.isFunctionOrModuleBlock),t=Zx.getSourceFileOfNode(t),r=Zx.getSpanOfTokenAtPosition(t,r.statements.pos),Xr.add(Zx.createFileDiagnostic(t,r.start,r.length,Zx.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),Ae;var t,r;for(_++;;){var n=e.flags;if(4096&n)for(var i=d;i<Tr;i++)if(Vr[i]===e)return _--,Kr[i];var a=void 0;if(16&n){if(!(a=function(e){var t=e.node;if(_p(c,t)){if(!rf(e))return Ye;if(2===Zx.getAssignmentTargetKind(t)){var r=g(e.antecedent);return Kp(rd(Vp(r)),Up(r))}if(p!==Ee&&p!==Ft)return 1048576&p.flags?vp(p,m(e)):p;if(function(e){return 242===e.kind&&e.initializer&&Da(e.initializer)||191!==e.kind&&209===e.parent.kind&&Da(e.parent.right)}(t))return qp(He);r=rd(m(e));return t_(r,p)?r:At}if(pp(c,t)){if(!rf(e))return Ye;if(Zx.isVariableDeclaration(t)&&(Zx.isInJSFile(t)||Zx.isVarConst(t))){r=Zx.getDeclaredExpandoInitializer(t);if(r&&(201===r.kind||202===r.kind))return g(e.antecedent)}return p}if(Zx.isVariableDeclaration(t)&&231===t.parent.parent.kind&&_p(c,t.parent.parent.expression))return Lg(Vp(g(e.antecedent)));return}(e))){e=e.antecedent;continue}}else if(512&n){if(!(a=function(e){var t=ef(e.node);if(t){var r=oc(t);if(r&&(2===r.kind||3===r.kind)){var n=g(e.antecedent),i=Gp(Vp(n)),r=r.type?N(i,r,e.node,!0):3===r.kind&&0<=r.parameterIndex&&r.parameterIndex<e.node.arguments.length?function e(t,r){var r=Zx.skipParentheses(r);if(91===r.kind)return Ye;if(209===r.kind){if(55===r.operatorToken.kind)return e(e(t,r.left),r.right);if(56===r.operatorToken.kind)return gu([e(t,r.left),e(t,r.right)])}return A(t,r,!0)}(i,e.node.arguments[r.parameterIndex]):i;return r===i?n:Kp(r,Up(n))}if(131072&sc(t).flags)return Ye}return}(e))){e=e.antecedent;continue}}else if(96&n)a=function(e){var t=g(e.antecedent),r=Vp(t);if(131072&r.flags)return t;var n=0!=(32&e.flags),r=Gp(r),n=A(r,e.node,n);if(n===r)return t;t=Up(t);return Kp(t&&131072&n.flags?Ge:n,t)}(e);else if(128&n)a=function(t){var e=t.switchStatement.expression,r=g(t.antecedent),n=Vp(r);_p(c,e)?n=C(n,t.switchStatement,t.clauseStart,t.clauseEnd):204===e.kind&&_p(c,e.expression)?n=function(t,e,r,n){var i=Op(e,!0);if(!i.length)return t;var a,o=Zx.findIndex(i,function(e){return void 0===e}),s=r===n||r<=o&&o<n;{var c;a=-1<o?(c=i.filter(function(e){return void 0!==e}),e=o<r?r-1:r,o=o<n?n-1:n,u=c.slice(e,o),ky(e,o,c,s)):(u=i.slice(r,n),ky(r,n,i,s))}if(s)return Bp(t,function(e){return(xp(e)&a)===a});var u=Dp(gu(u.map(function(e){return function(e,t){switch(t){case"function":return 1&e.flags?e:vt;case"object":return 2&e.flags?gu([Ze,Me]):e;default:return Zr.get(t)||e}}(t,e)})),a);1048576&u.flags&&(u=vp(u,Ds(t)));return Dp(jp(t,function(r){return function(e){if(e_(r,e))return r;if(63176704&e.flags){var t=xs(e)||ke;if(e_(r,t))return xu([e,r])}return e}}(u)),a)}(n,t.switchStatement,t.clauseStart,t.clauseEnd):(Q&&(fp(e,c)?n=S(n,t.switchStatement,t.clauseStart,t.clauseEnd,function(e){return!(163840&e.flags)}):204===e.kind&&fp(e.expression,c)&&(n=S(n,t.switchStatement,t.clauseStart,t.clauseEnd,function(e){return!(131072&e.flags||128&e.flags&&"undefined"===e.value)}))),y(e,n)&&(n=h(n,e,function(e){return C(e,t.switchStatement,t.clauseStart,t.clauseEnd)})));return Kp(n,Up(r))}(e);else if(12&n){if(1===e.antecedents.length){e=e.antecedents[0];continue}a=(4&n?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=g(s);if((u=Vp(c))===p&&p===l)return u;Zx.pushIfUnique(r,u),Mp(u,p)||(n=!0),Up(c)&&(i=!0)}}if(t){var u=Vp(c=g(t));if(!Zx.contains(r,u)&&!Ey(t.switchStatement)){if(u===p&&p===l)return u;r.push(u),Mp(u,p)||(n=!0),Up(c)&&(i=!0)}}return Kp(Xp(r,n?2:1),i)}:function(e){var t=hp(e),r=jr[t]||(jr[t]=Zx.createMap()),n=f();if(!n)return p;t=r.get(n);if(t)return t;for(var i=Sr;i<Cr;i++)if(Jr[i]===e&&zr[i]===n&&Ur[i].length)return Kp(Xp(Ur[i],1),!0);for(var a,o=[],s=!1,c=0,u=e.antecedents;c<u.length;c++){var l=u[c],_=void 0;if(a){Jr[Cr]=e,zr[Cr]=n,Ur[Cr]=o,Cr++;var d=nr;nr=void 0,_=g(l),nr=d,Cr--;d=r.get(n);if(d)return d}else _=a=g(l);_=Vp(_);if(Zx.pushIfUnique(o,_),Mp(_,p)||(s=!0),_===p)break}t=Xp(o,s?2:1);if(Up(a))return Kp(t,!0);return r.set(n,t),t})(e)}else if(256&n){if(!(a=function(e){if(p===Ee||p===Ft){var t=e.node,r=(196===t.kind?t.expression:t.left).expression;if(_p(c,wp(r))){r=g(e.antecedent),e=Vp(r);if(256&Zx.getObjectFlags(e)){var n=e;if(196===t.kind)for(var i=0,a=t.arguments;i<a.length;i++){var o=a[i];n=Wp(n,o)}else Jy(dh(t.left.argumentExpression),296)&&(n=Wp(n,t.right));return n===e?r:Kp(n,Up(r))}return r}}return}(e))){e=e.antecedent;continue}}else if(1024&n){var o=e.target,s=o.antecedents;o.antecedents=e.antecedents,a=g(e.antecedent),o.antecedents=s}else if(2&n){s=e.node;if(s&&s!==u&&194!==c.kind&&195!==c.kind&&104!==c.kind){e=s.flowNode;continue}a=l}else a=dv(p);return 4096&n&&(Vr[Tr]=e,Kr[Tr]=a,Tr++),_--,a}}function m(e){e=e.node;return df((242===e.kind||191===e.kind?Pp:Ap)(e),c)}function y(e,t){if(1048576&t.flags&&Zx.isAccessExpression(e)){var r=dp(e);return void 0!==r?_p(c,e.expression)&&gp(t,r):void 0}}function h(e,t,r){var n=dp(t);if(void 0===n)return e;t=pa(e,n);if(!t)return e;var i=r(t);return Bp(e,function(e){var t,t=pa(t=e,e=n)||ig(e)&&Ks(t,1)||Ks(t,0)||Pe;return!(131072&t.flags)&&n_(t,i)})}function s(e,t,r){return _p(c,t)?Dp(e,r?4194304:8388608):(Q&&r&&fp(t,c)&&(e=Dp(e,2097152)),y(t,p)?h(e,t,function(e){return Dp(e,r?4194304:8388608)}):e)}function v(e,t,n){if(1572864&e.flags||Mu(e)){var i=Zx.escapeLeadingUnderscores(t.text);return Bp(e,function(e){return t=i,r=n,!!Vs(e=e,0)||((t=Bs(e,t))?!!(16777216&t.flags)||r:!r);var t,r})}return e}function n(e,t,r){switch(t.operatorToken.kind){case 62:return s(A(e,t.right,r),t.left,r);case 34:case 35:case 36:case 37:var n=t.operatorToken.kind,i=wp(t.left),a=wp(t.right);if(204===i.kind&&Zx.isStringLiteralLike(a))return D(e,i,n,a,r);if(204===a.kind&&Zx.isStringLiteralLike(i))return D(e,a,n,i,r);if(_p(c,i))return x(e,n,a,r);if(_p(c,a))return x(e,n,i,r);if(Q&&(fp(i,c)?e=b(e,n,a,r):fp(a,c)&&(e=b(e,n,i,r))),y(i,p))return h(e,i,function(e){return x(e,n,a,r)});if(y(a,p))return h(e,a,function(e){return x(e,n,i,r)});if(T(i))return k(e,n,a,r);if(T(a))return k(e,n,i,r);break;case 98:return function(e,t,r){var n=wp(t.left);if(!_p(c,n))return r&&Q&&fp(n,c)?Dp(e,2097152):e;var i,n=lh(t.right);if(!r_(n,vt))return e;t=Bs(n,"prototype");t&&(fa(t=qa(t))||(i=t));if(fa(e)&&(i===ht||i===vt))return e;i||(n=Js(n,1),i=n.length?gu(Zx.map(n,function(e){return sc(fc(e))})):it);return E(e,i,r,r_)}(e,t,r);case 97:var o=wp(t.right);if(Zx.isStringLiteralLike(t.left)&&_p(c,o))return v(e,t.left,r);break;case 27:return A(e,t.right,r)}return e}function b(e,t,r,n){var i=34===t||36===t,a=34===t||35===t?98304:32768,r=lh(r);return i!==n&&Rp(r,function(e){return!!(e.flags&a)})||i===n&&Rp(r,function(e){return!(e.flags&(3|a))})?Dp(e,2097152):e}function x(e,t,r,n){if(1&e.flags)return e;35!==t&&37!==t||(n=!n);var i=lh(r);if(2&e.flags&&n&&(36===t||37===t))return 67239932&i.flags?i:524288&i.flags?Ze:e;if(98304&i.flags)return Q?Dp(e,34===t||35===t?n?262144:2097152:65536&i.flags?n?131072:1048576:n?65536:524288):e;if(67637251&e.flags)return e;if(n){t=Bp(e,34===t?function(e){return i_(e,i)||(t=i,0!=(524&e.flags)&&0!=(28&t.flags));var t}:function(e){return i_(e,i)});return 131072&t.flags?e:zp(t,i)}if(ed(i)){var a=ll(i);return Bp(e,function(e){return ed(e)?!i_(e,i):ll(e)!==a})}return e}function D(e,t,r,n,i){35!==r&&37!==r||(i=!i);r=wp(t.expression);if(!_p(c,r))return Q&&fp(r,c)&&i===("undefined"!==n.text)?Dp(e,2097152):e;if(1&e.flags&&"function"===n.text)return e;if(i&&2&e.flags&&"object"===n.text){if(209===t.parent.parent.kind){var a=t.parent.parent;if(55===a.operatorToken.kind&&a.right===t.parent&&function e(t,r){return _p(t,r)||209===r.kind&&55===r.operatorToken.kind&&(e(t,r.left)||e(t,r.right))}(c,a.left))return Ze}return gu([Ze,Me])}a=i?nD.get(n.text)||128:iD.get(n.text)||32768;return Dp(i?jp(e,function(e){var t="function"===n.text?vt:Zr.get(n.text);if(t){if(e_(e,t))return e;if(e_(t,e))return t;if(63176704&e.flags){var r=xs(e)||ke;if(e_(t,r))return xu([e,t])}}return e}):e,a)}function S(e,t,r,n,i){return r!==n&&Zx.every(Ip(t).slice(r,n),i)?Dp(e,2097152):e}function C(e,t,r,n){var i=Ip(t);if(!i.length)return e;var a=i.slice(r,n),r=r===n||Zx.contains(a,He);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(Ze)}}return gu(void 0===o?a:o)}var u=gu(a),n=131072&u.flags?He:zp(Bp(e,function(e){return i_(u,e)}),u);if(!r)return n;r=Bp(e,function(e){return!(ed(e)&&Zx.contains(i,ll(e)))});return 131072&n.flags?r:gu([n,r])}function T(e){return(Zx.isPropertyAccessExpression(e)&&"constructor"===Zx.idText(e.name)||Zx.isElementAccessExpression(e)&&Zx.isStringLiteralLike(e.argumentExpression)&&"constructor"===e.argumentExpression.text)&&_p(c,e.expression)}function k(e,t,r,n){if(n?34!==t&&36!==t:35!==t&&37!==t)return e;r=lh(r);if(!_x(r)&&!eo(r))return e;r=Bs(r,"prototype");if(!r)return e;var r=qa(r),i=fa(r)?void 0:r;return i&&i!==ht&&i!==vt?fa(e)?i:Bp(e,function(e){return function(e,t){if(524288&e.flags&&1&Zx.getObjectFlags(e)||524288&t.flags&&1&Zx.getObjectFlags(t))return e.symbol===t.symbol;return e_(e,t)}(e,i)}):e}function E(e,t,r,n){if(!r)return Bp(e,function(e){return!n(e,t)});if(1048576&e.flags){r=Bp(e,function(e){return n(e,t)});if(!(131072&r.flags))return r}return e_(t,e)?t:t_(e,t)?e:t_(t,e)?t:xu([e,t])}function i(e,t,r){if(function(e,t){if(e.arguments)for(var r=0,n=e.arguments;r<n.length;r++)if(yp(t,n[r]))return 1;return!(194!==e.expression.kind||!yp(t,e.expression.expression))}(t,c)){var n=r||!Zx.isCallChain(t)?ef(t):void 0,n=n&&oc(n);if(n&&(0===n.kind||1===n.kind))return N(e,n,t,r)}return e}function N(e,t,r,n){if(t.type&&(!fa(e)||t.type!==ht&&t.type!==vt)){i=(i=r,1===(r=t).kind||3===r.kind?i.arguments[r.parameterIndex]:(i=Zx.skipParentheses(i.expression),Zx.isAccessExpression(i)?Zx.skipParentheses(i.expression):void 0));if(i){if(_p(c,i))return E(e,t.type,n,e_);if(Q&&n&&fp(i,c)&&!(65536&xp(t.type))&&(e=Dp(e,2097152)),y(i,p))return h(e,i,function(e){return E(e,t.type,n,e_)})}}var i;return e}function A(e,t,r){if(Zx.isExpressionOfOptionalChainRoot(t)||Zx.isBinaryExpression(t.parent)&&60===t.parent.operatorToken.kind&&t.parent.left===t)return function(e,t,r){if(_p(c,t))return Dp(e,r?2097152:262144);if(y(t,p))return h(e,t,function(e){return Dp(e,r?2097152:262144)});return e}(e,t,r);switch(t.kind){case 75:case 104:case 102:case 194:case 195:return s(e,t,r);case 196:return i(e,t,r);case 200:return A(e,t.expression,r);case 209:return n(e,t,r);case 207:if(53===t.operator)return A(e,t.operand,!r)}return e}}function of(e){return Zx.findAncestor(e.parent,function(e){return Zx.isFunctionLike(e)&&!Zx.getImmediatelyInvokedFunctionExpression(e)||250===e.kind||290===e.kind||159===e.kind})}function sf(e){var t=Zx.getRootDeclaration(e.valueDeclaration).parent,r=Sn(t);return 8388608&r.flags||(r.flags|=8388608,r=t,Zx.findAncestor(r.parent,function(e){return Zx.isFunctionLike(e)&&!!(8388608&Sn(e).flags)})||cf(t)),e.isAssigned}function cf(e){var t;75===e.kind?!Zx.isAssignmentTarget(e)||(t=up(e)).valueDeclaration&&156===Zx.getRootDeclaration(t.valueDeclaration).kind&&(t.isAssigned=!0):Zx.forEachChild(e,cf)}function uf(e){return 3&e.flags&&0!=(2&Fg(e))&&qa(e)!==Ft}function lf(e){var t=e.parent;return 194===t.kind||196===t.kind&&t.expression===e||195===t.kind&&t.expression===e||191===t.kind&&t.name===e&&t.initializer}function _f(e){return 58982400&e.flags&&jy(xs(e)||Pe,98304)}function df(e,t){return e&&lf(t)&&Lp(e,_f)?jp(Ad(e),Ds):e}function pf(e,t){!Hn(e,111551)||lp(t)||Zn(e)||(G.preserveConstEnums&&(t=t,Zx.findAncestor(t,function(e){return e.parent&&Zx.isExportAssignment(e.parent)&&e.parent.expression===e&&Zx.isEntityNameExpression(e)}))||!ex(Qn(e))?ei(e):(e=Dn(e=e)).constEnumReferenced||(e.constEnumReferenced=!0))}function ff(e){var t=up(e);if(t===Ce)return Ae;if(t===de){var r=Zx.getContainingFunction(e);return M<2&&(202===r.kind?un(e,Zx.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Zx.hasModifier(r,256)&&un(e,Zx.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Sn(r).flags|=8192,qa(t)}e.parent&&Zx.isPropertyAccessExpression(e.parent)&&e.parent.expression===e||pf(t,e);var n=Ti(t),i=n.valueDeclaration;if(32&n.flags)if(245===i.kind&&Zx.nodeIsDecorated(i))for(r=Zx.getContainingClass(e);void 0!==r;){if(r===i&&r.name!==e){Sn(i).flags|=16777216,Sn(e).flags|=33554432;break}r=Zx.getContainingClass(r)}else if(214===i.kind)for(r=Zx.getThisContainer(e,!1);290!==r.kind;){if(r.parent===i){159===r.kind&&Zx.hasModifier(r,32)&&(Sn(i).flags|=16777216,Sn(e).flags|=33554432);break}r=Zx.getThisContainer(r,!1)}!function(e,t){if(!(2<=M||0==(34&t.flags)||Zx.isSourceFile(t.valueDeclaration)||280===t.valueDeclaration.parent.kind)){for(var r,n,i,a,o=Zx.getEnclosingBlockScopeContainer(t.valueDeclaration),s=function(e,t){return!!Zx.findAncestor(e,function(e){return e===t?"quit":Zx.isFunctionLike(e)})}(e.parent,o),c=o,u=!1;c&&!Zx.nodeStartsNewLexicalEnvironment(c);){if(Zx.isIterationStatement(c,!1)){u=!0;break}c=c.parent}u&&(s&&(r=!0,Zx.isForStatement(o)&&(!(a=Zx.getAncestor(t.valueDeclaration,243))||a.parent!==o||(n=function(e,t){return Zx.findAncestor(e,function(e){return e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement})}(e.parent,o))&&((i=Sn(n)).flags|=131072,i=i.capturedBlockScopeBindings||(i.capturedBlockScopeBindings=[]),Zx.pushIfUnique(i,t),n===o.initializer&&(r=!1))),r&&(Sn(c).flags|=65536)),Zx.isForStatement(o)&&(a=Zx.getAncestor(t.valueDeclaration,243))&&a.parent===o&&function(e,t){var r=e;for(;200===r.parent.kind;)r=r.parent;var n=!1;Zx.isAssignmentTarget(r)?n=!0:207!==r.parent.kind&&208!==r.parent.kind||(e=r.parent,n=45===e.operator||46===e.operator);return!!n&&!!Zx.findAncestor(r,function(e){return e===t?"quit":e===t.statement})}(e,o)&&(Sn(t.valueDeclaration).flags|=4194304),Sn(t.valueDeclaration).flags|=524288),s&&(Sn(t.valueDeclaration).flags|=262144)}}(e,t);var a=df(qa(n),e),o=Zx.getAssignmentTargetKind(e);if(o){if(!(3&n.flags||Zx.isInJSFile(e)&&512&n.flags))return un(e,Zx.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Qi(t)),Ae;if(Oy(n))return 3&n.flags?un(e,Zx.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Qi(t)):un(e,Zx.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Qi(t)),Ae}var s=2097152&n.flags;if(3&n.flags){if(1===o)return a}else{if(!s)return a;i=Zx.find(t.declarations,fD)}if(!i)return a;for(var c=156===Zx.getRootDeclaration(i).kind,u=of(i),l=of(e),_=l!==u,d=e.parent&&e.parent.parent&&Zx.isSpreadAssignment(e.parent)&&Ep(e.parent.parent),p=134217728&t.flags;l!==u&&(201===l.kind||202===l.kind||Zx.isObjectLiteralOrClassExpressionMethod(l))&&(uf(n)||c&&!sf(n));)l=of(l);d=c||s||_||d||p||Zx.isBindingElement(i)||a!==Ee&&a!==Ft&&(!Q||0!=(16387&a.flags)||lp(e)||263===e.parent.kind)||218===e.parent.kind||242===i.kind&&i.exclamationToken||8388608&i.flags,p=af(e,a,d?c?function(e,t){if(ua(t.symbol,2)){var r=Q&&156===t.kind&&t.initializer&&32768&dd(e)&&!(32768&dd(ph(t.initializer)));return _a(),r?Dp(e,524288):e}return Ka(t.symbol),e}(a,i):a:a===Ee||a===Ft?we:md(a),l,!d);if(Yp(e)||a!==Ee&&a!==Ft){if(!d&&!(32768&dd(a))&&32768&dd(p))return un(e,Zx.Diagnostics.Variable_0_is_used_before_being_assigned,Qi(t)),a}else if(p===Ee||p===Ft)return X&&(un(Zx.getNameOfDeclaration(i),Zx.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Qi(t),Yi(p)),un(e,Zx.Diagnostics.Variable_0_implicitly_has_an_1_type,Qi(t),Yi(p))),dv(p);return o?rd(p):p}function gf(e,t){Sn(e).flags|=2,159===t.kind||162===t.kind?Sn(t.parent).flags|=4:Sn(t).flags|=4}function mf(e){return Zx.isSuperCall(e)?e:Zx.isFunctionLike(e)?void 0:Zx.forEachChild(e,mf)}function yf(e){var t=Sn(e);return void 0===t.hasSuperCall&&(t.superCall=mf(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function hf(e){return io(mo(vi(e)))===Le}function vf(e,t,r){var n=t.parent;!Zx.getClassExtendsHeritageElement(n)||hf(n)||(!(t=yf(t))||t.end>e.pos)&&un(e,r)}function bf(e){var t=Zx.getThisContainer(e,!0),r=!1;switch(162===t.kind&&vf(e,t,Zx.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),202===t.kind&&(t=Zx.getThisContainer(t,!1),r=!0),t.kind){case 249:un(e,Zx.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 248:un(e,Zx.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 162:Df(e,t)&&un(e,Zx.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 159:case 158:!Zx.hasModifier(t,32)||99===G.target&&G.useDefineForClassFields||un(e,Zx.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 154:un(e,Zx.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}r&&M<2&&gf(e,t);var n,i,a=xf(e,!0,t);return y&&(a===(n=qa(le))&&r?un(e,Zx.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this):a||(i=un(e,Zx.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),Zx.isSourceFile(t)||(r=xf(t))&&r!==n&&Zx.addRelatedInfo(i,Zx.createDiagnosticForNode(t,Zx.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container)))),a||ke}function xf(e,t,r){void 0===t&&(t=!0),void 0===r&&(r=Zx.getThisContainer(e,!1));var n=Zx.isInJSFile(e);if(Zx.isFunctionLike(r)&&(!Nf(e)||Zx.getThisParameter(r))){var i=201===(i=r).kind&&Zx.isBinaryExpression(i.parent)&&3===Zx.getAssignmentDeclarationKind(i.parent)?i.parent.left.expression.expression:161===i.kind&&193===i.parent.kind&&Zx.isBinaryExpression(i.parent.parent)&&6===Zx.getAssignmentDeclarationKind(i.parent.parent)?i.parent.parent.left.expression:201===i.kind&&281===i.parent.kind&&193===i.parent.parent.kind&&Zx.isBinaryExpression(i.parent.parent.parent)&&6===Zx.getAssignmentDeclarationKind(i.parent.parent.parent)?i.parent.parent.parent.left.expression:201===i.kind&&Zx.isPropertyAssignment(i.parent)&&Zx.isIdentifier(i.parent.name)&&("value"===i.parent.name.escapedText||"get"===i.parent.name.escapedText||"set"===i.parent.name.escapedText)&&Zx.isObjectLiteralExpression(i.parent.parent)&&Zx.isCallExpression(i.parent.parent.parent)&&i.parent.parent.parent.arguments[2]===i.parent.parent&&9===Zx.getAssignmentDeclarationKind(i.parent.parent.parent)?i.parent.parent.parent.arguments[0].expression:Zx.isMethodDeclaration(i)&&Zx.isIdentifier(i.name)&&("value"===i.name.escapedText||"get"===i.name.escapedText||"set"===i.name.escapedText)&&Zx.isObjectLiteralExpression(i.parent)&&Zx.isCallExpression(i.parent.parent)&&i.parent.parent.arguments[2]===i.parent&&9===Zx.getAssignmentDeclarationKind(i.parent.parent)?i.parent.parent.arguments[0].expression:void 0;if(n&&i){i=ph(i).symbol;if(i&&i.members&&16&i.flags)if(a=mo(i).thisType)return af(e,a)}else if(n&&(201===r.kind||244===r.kind)&&Zx.getJSDocClassTag(r))return af(e,a=mo(hi(r.symbol)).thisType);var a=Ba(r)||Tf(r);if(a)return af(e,a)}if(Zx.isClassLike(r.parent)){var o=vi(r.parent);return af(e,o=Zx.hasModifier(r,32)?qa(o):mo(o).thisType)}if(n&&((o=function(e){var t=Zx.getJSDocType(e);if(t&&300===t.kind){t=t;if(0<t.parameters.length&&t.parameters[0].name&&"this"===t.parameters[0].name.escapedText)return gl(t.parameters[0].type)}e=Zx.getJSDocThisTag(e);if(e&&e.typeExpression)return gl(e.typeExpression)}(r))&&o!==Ae))return af(e,o);if(Zx.isSourceFile(r)){if(r.commonJsModuleIndicator){r=vi(r);return r&&qa(r)}if(t)return qa(le)}}function Df(e,t){return Zx.findAncestor(e,function(e){return Zx.isFunctionLikeDeclaration(e)?"quit":156===e.kind&&e.parent===t})}function Sf(e){var t=196===e.parent.kind&&e.parent.expression===e,r=Zx.getSuperContainer(e,!0),n=!1;if(!t)for(;r&&202===r.kind;)r=Zx.getSuperContainer(r,!0),n=M<2;var i=0;if(!function(e){if(!e)return!1;{if(t)return 162===e.kind;if(Zx.isClassLike(e.parent)||193===e.parent.kind)return Zx.hasModifier(e,32)?161===e.kind||160===e.kind||163===e.kind||164===e.kind:161===e.kind||160===e.kind||163===e.kind||164===e.kind||159===e.kind||158===e.kind||162===e.kind}return!1}(r)){var a=Zx.findAncestor(e,function(e){return e===r?"quit":154===e.kind});return a&&154===a.kind?un(e,Zx.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?un(e,Zx.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(Zx.isClassLike(r.parent)||193===r.parent.kind)?un(e,Zx.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):un(e,Zx.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Ae}if(t||162!==r.kind||vf(e,r,Zx.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),i=Zx.hasModifier(r,32)||t?512:256,Sn(e).flags|=i,161===r.kind&&Zx.hasModifier(r,256)&&(Zx.isSuperProperty(e.parent)&&Zx.isAssignmentTarget(e.parent)?Sn(r).flags|=4096:Sn(r).flags|=2048),n&&gf(e.parent,r),193===r.parent.kind)return M<2?(un(e,Zx.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Ae):ke;var o=r.parent;if(!Zx.getClassExtendsHeritageElement(o))return un(e,Zx.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Ae;a=mo(vi(o)),o=a&&ao(a)[0];return o?162===r.kind&&Df(e,r)?(un(e,Zx.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Ae):512===i?io(a):Lo(o,a.thisType):Ae}function Cf(e){return 4&Zx.getObjectFlags(e)&&e.target===Nt?Ac(e)[0]:void 0}function Tf(e){if(202!==e.kind){if(Gl(e)){var t=Yf(e);if(t){var r=t.thisParameter;if(r)return qa(r)}}t=Zx.isInJSFile(e);if(y||t){var n=161!==(r=e).kind&&163!==r.kind&&164!==r.kind||193!==r.parent.kind?201===r.kind&&281===r.parent.kind?r.parent.parent:void 0:r.parent;if(n){for(var i=zf(n),a=n,o=i;o;){var s=jp(o,function(e){return 2097152&e.flags?Zx.forEach(e.types,Cf):Cf(e)});if(s)return Jl(s,zd(qf(n)));if(281!==a.parent.kind)break;o=zf(a=a.parent.parent)}return Ad(i?yd(i):Yy(n))}i=Zx.walkUpParenthesizedExpressions(e.parent);if(209===i.kind&&62===i.operatorToken.kind){e=i.left;if(Zx.isAccessExpression(e)){e=e.expression;if(t&&Zx.isIdentifier(e)){i=Zx.getSourceFileOfNode(i);if(i.commonJsModuleIndicator&&up(e)===i.symbol)return}return Ad(Yy(e))}}}}}function kf(e){var t=e.parent;if(Gl(t)){var r=Zx.getImmediatelyInvokedFunctionExpression(t);if(r&&r.arguments){var n=Nm(r),i=t.parameters.indexOf(e);if(e.dotDotDotToken)return xm(n,i,n.length,ke,void 0);var r=Sn(r),a=r.resolvedSignature;r.resolvedSignature=ur;i=i<n.length?nd(ph(n[i])):e.initializer?void 0:Ie;return r.resolvedSignature=a,i}a=Yf(t);if(a){i=t.parameters.indexOf(e)-(Zx.getThisParameter(t)?1:0);return(e.dotDotDotToken&&Zx.lastOrUndefined(t.parameters)===e?ly:uy)(a,i)}}}function Ef(e){var t=Zx.getEffectiveTypeAnnotationNode(e);if(t)return gl(t);switch(e.kind){case 156:return kf(e);case 191:return function(e){var t=e.parent.parent,e=e.propertyName||e.name,t=Ef(t)||191!==t.kind&&t.initializer&&Zy(t);if(t&&!Zx.isBindingPattern(e)&&!Zx.isComputedNonLiteralName(e)){e=Su(e);if(ko(e)){e=Po(e);return pa(t,e)}}}(e)}}function Nf(e){for(var t=!1;e.parent&&!Zx.isFunctionLike(e.parent);){if(Zx.isParameter(e.parent)&&(t||e.parent.initializer===e))return 1;Zx.isBindingElement(e.parent)&&e.parent.initializer===e&&(t=!0),e=e.parent}}function Af(e,t){var r=!!(2&Zx.getFunctionFlags(t)),t=Ff(t);if(t)return Hv(e,t,r)||void 0}function Ff(e){var t=cc(e);if(t)return t;e=Xf(e);return e&&!uc(e)?sc(e):void 0}function Pf(e,t){t=Nm(e).indexOf(t);return-1===t?void 0:wf(e,t)}function wf(e,t){var r=Sn(e).resolvedSignature===_r?_r:Gm(e);return Zx.isJsxOpeningLikeElement(e)&&0===t?Wf(r,e):cy(r,t)}function If(e,t){var r=e.parent,n=r.left,i=r.operatorToken,a=r.right;switch(i.kind){case 62:if(e!==a)return;var o=function(e){var t=Zx.getAssignmentDeclarationKind(e);switch(t){case 0:return!0;case 5:case 1:case 6:case 3:if(e.left.symbol){var r=e.left.symbol.valueDeclaration;if(!r)return!1;var n=Zx.cast(e.left,Zx.isAccessExpression),i=Zx.getEffectiveTypeAnnotationNode(r);if(i)return gl(i);if(Zx.isIdentifier(n.expression)){i=n.expression,i=Nn(i,i.escapedText,111551,void 0,i.escapedText,!0);if(i){if(a=Zx.getEffectiveTypeAnnotationNode(i.valueDeclaration)){n=Zx.getElementOrPropertyAccessName(n);if(void 0!==n)return(o=Of(gl(a),n))||!1}return!1}}return!Zx.isInJSFile(r)}return!0;case 2:case 4:if(!e.symbol)return!0;if(e.symbol.valueDeclaration){var a=Zx.getEffectiveTypeAnnotationNode(e.symbol.valueDeclaration);if(a)if(o=gl(a))return o}if(2===t)return!1;a=Zx.cast(e.left,Zx.isAccessExpression);if(!Zx.isObjectLiteralMethod(Zx.getThisContainer(a.expression,!1)))return!1;var o=bf(a.expression),a=Zx.getElementOrPropertyAccessName(a);return void 0!==a&&o&&Of(o,a)||!1;case 7:case 8:case 9:return Zx.Debug.fail("Does not apply");default:return Zx.Debug.assertNever(t)}}(r);return o?!0===o?lh(n):o:void 0;case 56:case 60:o=Kf(r,t);return e===a&&(o&&o.pattern||!o&&!Zx.isDefaultedExpandoInitializer(r))?lh(n):o;case 55:case 27:return e===a?Kf(r,t):void 0;default:return}}function Of(e,n){return jp(e,function(e){if(us(e)){var t=ts(e),r=xs(t)||t,t=dl(Zx.unescapeLeadingUnderscores(n));if(t_(t,r))return ju(e,t)}else if(3670016&e.flags){r=Bs(e,n);if(r)return t=r,262144&Zx.getCheckFlags(t)&&!t.type&&0<=la(t,0)?void 0:qa(r);if(sd(e)){r=cd(e);if(r&&ig(n)&&0<=+n)return r}return ig(n)&&Mf(e,1)||Mf(e,0)}},!0)}function Mf(e,t){return jp(e,function(e){return Us(e,t)},!0)}function Lf(e,t){var r=zf(e.parent,t);if(r){if(!Fo(e)){t=Of(r,vi(e).escapedName);if(t)return t}return rg(e.name)&&Mf(r,1)||Mf(r,0)}}function Rf(e,t){return e&&(Of(e,""+t)||kv(1,e,we,void 0,!1))}function Bf(e){var t=e.parent;return Zx.isJsxAttributeLike(t)?Kf(e):Zx.isJsxElement(t)?function(e,t){var r=zf(e.openingElement.tagName),n=bg(hg(e));if(r&&!fa(r)&&n&&""!==n){var e=d_(e.children),i=e.indexOf(t),n=Of(r,n);return n&&(1===e.length?n:jp(n,function(e){return Q_(e)?Ju(e,dl(i)):e},!0))}}(t,e):void 0}function jf(e){if(!Zx.isJsxAttribute(e))return Kf(e.parent);var t=zf(e.parent);return t&&!fa(t)?Of(t,e.name.escapedText):void 0}function Jf(e){switch(e.kind){case 10:case 8:case 9:case 14:case 106:case 91:case 100:case 75:case 146:return!0;case 194:case 200:return Jf(e.expression);case 276:return!e.expression||Jf(e.expression)}return!1}function zf(e,t){var r,n,i=Uf((Zx.isObjectLiteralMethod(e)?function(e,t){if(Zx.Debug.assert(Zx.isObjectLiteralMethod(e)),!(16777216&e.flags))return Lf(e,t)}:Kf)(e,t),e,t);if(i&&!(t&&2&t&&8650752&i.flags)){t=jp(i,Ns,!0);if(1048576&t.flags){if(Zx.isObjectLiteralExpression(e))return i=e,E_(n=t,Zx.map(Zx.filter(i.properties,function(e){return!!e.symbol&&281===e.kind&&Jf(e.initializer)&&gp(n,e.symbol.escapedName)}),function(e){return[function(){return ph(e.initializer)},e.symbol.escapedName]}),t_,n);if(Zx.isJsxAttributes(e))return e=e,E_(r=t,Zx.map(Zx.filter(e.properties,function(e){return!!e.symbol&&273===e.kind&&gp(r,e.symbol.escapedName)&&(!e.initializer||Jf(e.initializer))}),function(e){return[e.initializer?function(){return ph(e.initializer)}:function(){return Ue},e.symbol.escapedName]}),t_,r)}return t}}function Uf(e,t,r){if(e&&jy(e,63176704)){t=qf(t);if(t&&Zx.some(t.inferences,sh)){if(r&&1&r)return Vf(e,t.nonFixingMapper);if(t.returnMapper)return Vf(e,t.returnMapper)}}return e}function Vf(e,t){return 63176704&e.flags?Jl(e,t):1048576&e.flags?gu(Zx.map(e.types,function(e){return Vf(e,t)}),0):2097152&e.flags?xu(Zx.map(e.types,function(e){return Vf(e,t)})):e}function Kf(e,t){if(!(16777216&e.flags)){if(e.contextualType)return e.contextualType;var r,n=e.parent;switch(n.kind){case 242:case 156:case 159:case 158:case 191:return function(e){var t=e.parent;if(Zx.hasInitializer(t)&&e===t.initializer){e=Ef(t);if(e)return e;if(Zx.isBindingPattern(t.name))return Fa(t.name,!0,!1)}}(e);case 202:case 235:return function(e){var t=Zx.getContainingFunction(e);if(t){e=Zx.getFunctionFlags(t);if(1&e)return;t=Ff(t);if(t){if(2&e){e=jp(t,Oh);return e&&gu([e,xy(e)])}return t}}}(e);case 212:return function(e){if(r=Zx.getContainingFunction(e)){var t=Zx.getFunctionFlags(r),r=Ff(r);if(r)return e.asteriskToken?r:Hv(0,r,0!=(2&t))}}(n);case 206:return function(e){if(e=Kf(e)){e=Rh(e);return e&&gu([e,xy(e)])}}(n);case 196:if(96===n.expression.kind)return Re;case 197:return Pf(n,e);case 199:case 217:return Zx.isConstTypeReference(n.type)?void 0:gl(n.type);case 209:return If(e,t);case 281:case 282:return Lf(n,t);case 283:return zf(n.parent,t);case 192:var i=n;return Rf(zf(i,t),Zx.indexOfNode(i.elements,e));case 210:return a=t,i=(r=e).parent,r===i.whenTrue||r===i.whenFalse?Kf(i,a):void 0;case 221:return Zx.Debug.assert(211===n.parent.kind),function(e,t){if(198===e.parent.kind)return Pf(e.parent,t)}(n.parent,e);case 200:var a=Zx.isInJSFile(n)?Zx.getJSDocTypeTag(n):void 0;return a?gl(a.typeExpression.type):Kf(n,t);case 276:return Bf(n);case 273:case 275:return jf(n);case 268:case 267:return function(e,t){if(Zx.isJsxOpeningElement(e)&&e.parent.contextualType&&4!==t)return e.parent.contextualType;return wf(e,0)}(n,t)}}}function qf(e){e=Zx.findAncestor(e,function(e){return!!e.inferenceContext});return e&&e.inferenceContext}function Wf(e,t){return(0!==Sm(t)?function(e,t){e=yy(e,Pe);e=Hf(t,hg(t),e);t=mg(aD.IntrinsicAttributes,t);t!==Ae&&(e=Wo(t,e));return e}:function(e,t){var r=hg(t),n=function(e){return vg(aD.ElementAttributesPropertyNameContainer,e)}(r),i=void 0===n?yy(e,Pe):""===n?sc(e):function(e,t){if(e.unionSignatures){for(var r=[],n=0,i=e.unionSignatures;n<i.length;n++){var a=sc(i[n]);if(fa(a))return a;a=pa(a,t);if(!a)return;r.push(a)}return xu(r)}e=sc(e);return fa(e)?e:pa(e,t)}(e,n);if(!i)return n&&Zx.length(t.attributes.properties)&&un(t,Zx.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Zx.unescapeLeadingUnderscores(n)),Pe;{if(fa(i=Hf(t,r,i)))return i;n=i,r=mg(aD.IntrinsicClassAttributes,t);r!==Ae&&(i=Za(r.symbol),e=sc(e),n=Wo(i?kc(r,ec([e],i,$s(i),Zx.isInJSFile(t))):r,n));t=mg(aD.IntrinsicAttributes,t);return t!==Ae&&(n=Wo(t,n)),n}})(e,t)}function Hf(e,t,r){t=(n=t)&&Tn(n.exports,aD.LibraryManagedAttributes,788968);if(t){var n=mo(t),t=function(e){if(_g(e.tagName))return mc(qm(e,t=Dg(e)));var t,r=Yy(e.tagName);return 128&r.flags?(t=xg(r,e))?mc(qm(e,t)):Ae:r}(e);if(2<=Zx.length(n.typeParameters))return kc(n,i=ec([t,r],n.typeParameters,2,Zx.isInJSFile(e)));if(2<=Zx.length(n.aliasTypeArguments)){var i=ec([t,r],n.aliasTypeArguments,2,Zx.isInJSFile(e));return wc(n.aliasSymbol,i)}}return r}function Gf(e,t){e=Js(e,0);if(1===e.length){e=e[0];if(!function(e,t){for(var r=0;r<t.parameters.length;r++){var n=t.parameters[r];if(n.initializer||n.questionToken||n.dotDotDotToken||Gs(n))break}t.parameters.length&&Zx.parameterIsThisKeyword(t.parameters[0])&&r--;return!py(e)&&_y(e)<r}(e,t))return e}}function Qf(e){return 201===e.kind||202===e.kind}function Xf(e){return Qf(e)||Zx.isObjectLiteralMethod(e)?Yf(e):void 0}function Yf(e){Zx.Debug.assert(161!==e.kind||Zx.isObjectLiteralMethod(e));var t=rc(e);if(t)return t;t=zf(e,1);if(t){if(!(1048576&t.flags))return Gf(t,e);for(var r,n=0,i=t.types;n<i.length;n++){var a=Gf(i[n],e);if(a)if(r){if(!V_(r[0],a,!1,!0,!0,Yl))return;r.push(a)}else r=[a]}return r?1===r.length?r[0]:Jo(r[0],r):void 0}}function Zf(e){return 191===e.kind&&!!e.initializer||209===e.kind&&62===e.operatorToken.kind}function $f(e,t,r){for(var n=e.elements,i=n.length,a=[],o=!1,s=!1,c=zf(e),u=Zx.isAssignmentTarget(e),l=th(e),_=0;_<i;_++){var d=n[_],p=213===d.kind&&d.expression,f=p&&ph(p,t,r);f&&sd(f)?(a.push.apply(a,Ac(f)),f.target.hasRestElement&&(_===i-1?o=!0:s=!0)):(u&&f?(f=Ks(f,1)||kv(65,f,we,void 0,!1))&&a.push(f):(m=rh(d,t,Rf(c,a.length),r),a.push(m)),p&&(_===i-1?o=!0:s=!0))}if(!s){var g,m,y=a.length-(o?1:0);if(u&&0<y)return(m=Ec(cu(a,y,o))).pattern=e,m;if(g=tg(a,c,o,a.length,l))return eg(g);if(r)return eg(cu(a,y,o))}return eg(nu(a.length?gu(a,2):Q?Xe:Ie,l))}function eg(e){if(!(4&Zx.getObjectFlags(e)))return e;var t=e.literalType;return t||((t=e.literalType=Ec(e)).objectFlags|=1114112),t}function tg(e,t,r,n,i){if(void 0===n&&(n=e.length),void 0===i&&(i=!1),i||t&&Lp(t,Y_))return cu(e,n-(r?1:0),r,i)}function rg(e){switch(e.kind){case 154:return Jy(ag(e),296);case 75:return ig(e.escapedText);case 8:case 10:return ig(e.text);default:return!1}}function ng(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function ig(e){return(+e).toString()===e}function ag(e){var t=Sn(e.expression);return t.resolvedType||(t.resolvedType=ph(e.expression),98304&t.resolvedType.flags||!Jy(t.resolvedType,12716)&&!t_(t.resolvedType,$e)?un(e,Zx.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any):om(e.expression,t.resolvedType,!0)),t.resolvedType}function og(e,t,r,n){for(var i=[],a=0;a<r.length;a++)0!==n&&!rg(e.properties[a+t].name)||i.push(qa(r[a]));return vc(i.length?gu(i,2):we,th(e))}function sg(e){Zx.Debug.assert(0!=(2097152&e.flags),"Should only get Alias here.");var t=Dn(e);if(!t.immediateTarget){e=Mn(e);if(!e)return Zx.Debug.fail();t.immediateTarget=Wn(e,!0)}return t.immediateTarget}function cg(r,e){var n=Zx.isAssignmentTarget(r);!function(e,t){for(var r=Zx.createUnderscoreEscapedMap(),n=0,i=e.properties;n<i.length;n++){var a=i[n];if(283!==a.kind){var o=a.name;if(154===o.kind&&Ox(o),282===a.kind&&!t&&a.objectAssignmentInitializer)return Gx(a.equalsToken,Zx.Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment);if(76===o.kind)return Gx(o,Zx.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);if(a.modifiers)for(var s=0,c=a.modifiers;s<c.length;s++){var u=c[s];126===u.kind&&161===a.kind||Gx(u,Zx.Diagnostics._0_modifier_cannot_be_used_here,Zx.getTextOfNode(u))}var l=void 0;switch(a.kind){case 282:Rx(a.exclamationToken,Zx.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 281:Lx(a.questionToken,Zx.Diagnostics.An_object_member_cannot_be_declared_optional),8===o.kind&&Xx(o),l=4;break;case 161:l=8;break;case 163:l=1;break;case 164:l=2;break;default:throw Zx.Debug.assertNever(a,"Unexpected syntax kind:"+a.kind)}if(!t){var _=Zx.getPropertyNameForPropertyNameNode(o);if(void 0!==_){var d=r.get(_);if(d)if(12&l&&12&d)Gx(o,Zx.Diagnostics.Duplicate_identifier_0,Zx.getTextOfNode(o));else{if(!(3&l&&3&d))return Gx(o,Zx.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===d||l===d)return Gx(o,Zx.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);r.set(_,l|d)}else r.set(_,l)}}}else if(t){_=Zx.skipParentheses(a.expression);if(Zx.isArrayLiteralExpression(_)||Zx.isObjectLiteralExpression(_))return Gx(a.expression,Zx.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}}}(r,n);for(var t=Q?Zx.createSymbolTable():void 0,i=Zx.createSymbolTable(),a=[],o=it,s=zf(r),c=s&&s.pattern&&(189===s.pattern.kind||193===s.pattern.kind),u=th(r),l=u?8:0,_=Zx.isInJSFile(r)&&!Zx.isInJsonFile(r),d=Zx.getJSDocEnumTag(r),p=!s&&_&&!d,f=w,g=!1,m=!1,y=!1,h=0,v=r.properties;h<v.length;h++){var b=v[h];b.name&&Zx.isComputedPropertyName(b.name)&&!Zx.isWellKnownSymbolSyntactically(b.name)&&ag(b.name)}for(var x=0,D=0;D<r.properties.length;D++){var S=r.properties[D],C=vi(S),T=S.name&&154===S.name.kind&&!Zx.isWellKnownSymbolSyntactically(S.name.expression)?ag(S.name):void 0;if(281===S.kind||282===S.kind||Zx.isObjectLiteralMethod(S)){var k=281===S.kind?nh(S,e):282===S.kind?rh(S.name,e):ih(S,e);_&&((E=xa(S))?(a_(k,E,S),k=E):d&&d.typeExpression&&a_(k,gl(d.typeExpression),S)),f|=3670016&Zx.getObjectFlags(k);var E=T&&ko(T)?T:void 0,N=E?pn(4|C.flags,Po(E),4096|l):pn(4|C.flags,C.escapedName,l);E&&(N.nameType=E),n?(281===S.kind&&Zf(S.initializer)||282===S.kind&&S.objectAssignmentInitializer)&&(N.flags|=16777216):!c||512&Zx.getObjectFlags(s)||((E=Bs(s,C.escapedName))?N.flags|=16777216&E.flags:G.suppressExcessPropertyErrors||Vs(s,0)||un(S.name,Zx.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Qi(C),Yi(s))),N.declarations=C.declarations,N.parent=C.parent,C.valueDeclaration&&(N.valueDeclaration=C.valueDeclaration),N.type=k,N.target=C,C=N,null!=t&&t.set(N.escapedName,N)}else{if(283===S.kind){if(M<2&&Sx(S,2),0<a.length&&(o=il(o,P(),r.symbol,f,u),a=[],i=Zx.createSymbolTable(),y=m=!1),!ug(k=Is(ph(S.expression))))return un(S,Zx.Diagnostics.Spread_types_may_only_be_created_from_object_types),Ae;t&&fg(k,t,S),o=il(o,k,r.symbol,f,u),x=D+1;continue}Zx.Debug.assert(163===S.kind||164===S.kind),Cb(S)}!T||8576&T.flags?i.set(C.escapedName,C):t_(T,$e)&&(t_(T,Be)?y=!0:m=!0,n&&(g=!0)),a.push(C)}if(c&&283!==r.parent.kind)for(var A=0,F=fs(s);A<F.length;A++){N=F[A];i.get(N.escapedName)||Bs(o,N.escapedName)||(16777216&N.flags||un(N.valueDeclaration||N.bindingElement,Zx.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),i.set(N.escapedName,N),a.push(N))}return o!==it?(0<a.length&&(o=il(o,P(),r.symbol,f,u),a=[],i=Zx.createSymbolTable(),y=m=!1),jp(o,function(e){return e===it?P():e})):P();function P(){var e=m?og(r,x,a,0):void 0,t=y?og(r,x,a,1):void 0,t=Li(r.symbol,i,Zx.emptyArray,Zx.emptyArray,e,t);return t.objectFlags|=1048704|f,p&&(t.objectFlags|=16384),g&&(t.objectFlags|=512),n&&(t.pattern=r),t}}function ug(e){if(63176704&e.flags){var t=xs(e);if(void 0!==t)return ug(t)}return!!(126615553&e.flags||117632&dd(e)&&ug(pd(e))||3145728&e.flags&&Zx.every(e.types,ug))}function lg(e){return!Zx.stringContains(e,"-")}function _g(e){return 75===e.kind&&Zx.isIntrinsicJsxName(e.escapedText)}function dg(e,t){return e.initializer?rh(e.initializer,t):Ue}function pg(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(Re):r.push(rh(a,t))}return r}function fg(e,t,r){for(var n=0,i=fs(e);n<i.length;n++){var a=i[n],o=t.get(a.escapedName),s=qa(a);!o||jy(s,98304)||jy(s,3)&&16777216&a.flags||(o=un(o.valueDeclaration,Zx.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Zx.unescapeLeadingUnderscores(o.escapedName)),Zx.addRelatedInfo(o,Zx.createDiagnosticForNode(r,Zx.Diagnostics.This_spread_always_overwrites_this_property)))}}function gg(e,t){return function(e,t){for(var r,n=e.attributes,i=Q?Zx.createSymbolTable():void 0,a=Zx.createSymbolTable(),o=at,s=!1,c=!1,u=4096,l=bg(hg(e)),_=0,d=n.properties;_<d.length;_++){var p,f,g=d[_],m=g.symbol;Zx.isJsxAttribute(g)?(f=dg(g,t),u|=3670016&Zx.getObjectFlags(f),(p=pn(33554436|m.flags,m.escapedName)).declarations=m.declarations,p.parent=m.parent,m.valueDeclaration&&(p.valueDeclaration=m.valueDeclaration),p.type=f,p.target=m,a.set(p.escapedName,p),null!=i&&i.set(p.escapedName,p),g.name.escapedText===l&&(c=!0)):(Zx.Debug.assert(275===g.kind),0<a.size&&(o=il(o,v(),n.symbol,u,!1),a=Zx.createSymbolTable()),fa(f=Is(Yy(g.expression,t)))&&(s=!0),ug(f)?(o=il(o,f,n.symbol,u,!1),i&&fg(f,i,g)):r=r?xu([r,f]):f)}s||0<a.size&&(o=il(o,v(),n.symbol,u,!1));var y,h=266===e.parent.kind?e.parent:void 0;return h&&h.openingElement===e&&0<h.children.length&&(y=pg(h,t),!s&&l&&""!==l&&(c&&un(n,Zx.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Zx.unescapeLeadingUnderscores(l)),e=(h=zf(e.attributes))&&Of(h,l),(h=pn(33554436,l)).type=1===y.length?y[0]:tg(y,e,!1)||nu(gu(y)),h.valueDeclaration=Zx.createPropertySignature(void 0,Zx.unescapeLeadingUnderscores(l),void 0,void 0,void 0),h.valueDeclaration.parent=n,h.valueDeclaration.symbol=h,(y=Zx.createSymbolTable()).set(l,h),o=il(o,Li(n.symbol,y,Zx.emptyArray,Zx.emptyArray,void 0,void 0),n.symbol,u,!1))),s?ke:r&&o!==at?xu([r,o]):r||(o===at?v():o);function v(){u|=w;var e=Li(n.symbol,a,Zx.emptyArray,Zx.emptyArray,void 0,void 0);return e.objectFlags|=1048704|u,e}}(e.parent,t)}function mg(e,t){t=hg(t),t=t&&fi(t),e=t&&Tn(t,e,788968);return e?mo(e):Ae}function yg(e){var t=Sn(e);if(t.resolvedSymbol)return t.resolvedSymbol;var r=mg(aD.IntrinsicElements,e);if(r===Ae)return X&&un(e,Zx.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Zx.unescapeLeadingUnderscores(aD.IntrinsicElements)),t.resolvedSymbol=Ce;if(!Zx.isIdentifier(e.tagName))return Zx.Debug.fail();var n=Bs(r,e.tagName.escapedText);return n?(t.jsxFlags|=1,t.resolvedSymbol=n):Ks(r,0)?(t.jsxFlags|=2,t.resolvedSymbol=r.symbol):(un(e,Zx.Diagnostics.Property_0_does_not_exist_on_type_1,Zx.idText(e.tagName),"JSX."+aD.IntrinsicElements),t.resolvedSymbol=Ce)}function hg(e){var t=e&&Sn(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){var r=cn(e),r=Nn(e,r,1920,void 0,r,!1);if(r){r=Gn(Tn(fi(Gn(r)),aD.JSX,1920));if(r)return t&&(t.jsxNamespace=r),r;t&&(t.jsxNamespace=!1)}}return Hc(aD.JSX,1920,void 0)}function vg(e,t){var r=t&&Tn(t.exports,e,788968),t=r&&mo(r),t=t&&fs(t);if(t){if(0===t.length)return"";if(1===t.length)return t[0].escapedName;1<t.length&&un(r.declarations[0],Zx.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,Zx.unescapeLeadingUnderscores(e))}}function bg(e){return vg(aD.ElementChildrenAttributeNameContainer,e)}function xg(e,t){t=mg(aD.IntrinsicElements,t);if(t===Ae)return ke;e=e.value,e=Bs(t,Zx.escapeLeadingUnderscores(e));if(e)return qa(e);t=Ks(t,0);return t||void 0}function Dg(e){Zx.Debug.assert(_g(e.tagName));var t=Sn(e);if(t.resolvedJsxElementAttributesType)return t.resolvedJsxElementAttributesType;e=yg(e);return 1&t.jsxFlags?t.resolvedJsxElementAttributesType=qa(e):2&t.jsxFlags?t.resolvedJsxElementAttributesType=Ks(mo(e),0):t.resolvedJsxElementAttributesType=Ae}function Sg(e){e=mg(aD.ElementClass,e);if(e!==Ae)return e}function Cg(e){return mg(aD.Element,e)}function Tg(e){e=Cg(e);if(e)return gu([e,Me])}function kg(e){var t=Zx.isJsxOpeningLikeElement(e);t&&function(e){Fx(e,e.typeArguments);for(var t=Zx.createUnderscoreEscapedMap(),r=0,n=e.attributes.properties;r<n.length;r++){var i=n[r];if(275!==i.kind){var a=i.name,i=i.initializer;if(t.get(a.escapedText))return Gx(a,Zx.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(a.escapedText,!0),i&&276===i.kind&&!i.expression)return Gx(i,Zx.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(e),o=e,0===(G.jsx||0)&&un(o,Zx.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===Cg(o)&&X&&un(o,Zx.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist);var r,n,i,a=Xr&&2===G.jsx?Zx.Diagnostics.Cannot_find_name_0:void 0,o=cn(e),o=Nn(t?e.tagName:e,o,111551,a,o,!0);function s(){var e=Zx.getTextOfNode(r.tagName);return Zx.chainDiagnosticMessages(void 0,Zx.Diagnostics._0_cannot_be_used_as_a_JSX_component,e)}o&&(o.isReferenced=67108863,2097152&o.flags&&!Zn(o)&&ei(o)),t&&(t=Gm(o=e),e=Sm(o),t=sc(t),r=o,1===e?(n=Tg(r))&&T_(t,n,rn,r.tagName,Zx.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,s):0===e?(i=Sg(r))&&T_(t,i,rn,r.tagName,Zx.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,s):(n=Tg(r),i=Sg(r),n&&i&&T_(t,gu([n,i]),rn,r.tagName,Zx.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,s)))}function Eg(e,t,r){if(524288&e.flags){var n=ls(e);if(n.stringIndexInfo||n.numberIndexInfo&&ig(t)||ds(e,t)||r&&!lg(t))return 1}else if(3145728&e.flags&&Ng(e))for(var i=0,a=e.types;i<a.length;i++)if(Eg(a[i],t,r))return 1}function Ng(e){return!!(524288&e.flags&&!(512&Zx.getObjectFlags(e))||67108864&e.flags||1048576&e.flags&&Zx.some(e.types,Ng)||2097152&e.flags&&Zx.every(e.types,Ng))}function Ag(e,t){if(!function(e){if(e.expression&&Zx.isCommaSequence(e.expression))Gx(e.expression,Zx.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(e),e.expression){t=ph(e.expression,t);return e.dotDotDotToken&&t!==ke&&!q_(t)&&un(e,Zx.Diagnostics.JSX_spread_child_must_be_an_array_type),t}return Ae}function Fg(e){return e.valueDeclaration?Zx.getCombinedNodeFlags(e.valueDeclaration):0}function Pg(e){if(8192&e.flags||4&Zx.getCheckFlags(e))return 1;if(Zx.isInJSFile(e.valueDeclaration)){e=e.valueDeclaration.parent;return e&&Zx.isBinaryExpression(e)&&3===Zx.getAssignmentDeclarationKind(e)}}function wg(e,t,r,n){var i,a=Zx.getDeclarationModifierFlagsFromSymbol(n),o=153===e.kind?e.right:188===e.kind?e:e.name;if(t){if(M<2&&Ig(n))return un(o,Zx.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&a)return un(o,Zx.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Qi(n),Yi(B_(n))),!1}if(128&a&&Zx.isThisProperty(e)&&Ig(n)&&((s=Zx.getClassLikeDeclarationOfSymbol(bi(n)))&&(i=e,!!Zx.findAncestor(i,function(e){return!!(Zx.isConstructorDeclaration(e)&&Zx.nodeIsPresent(e.body)||Zx.isPropertyDeclaration(e))||!(!Zx.isClassLike(e)&&!Zx.isFunctionLikeDeclaration(e))&&"quit"}))))return un(o,Zx.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Qi(n),Zx.getTextOfIdentifierOrLiteral(s.name)),!1;if(Zx.isPropertyAccessExpression(e)&&Zx.isPrivateIdentifier(e.name))return!!Zx.getContainingClass(e)||(un(o,Zx.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),!1);if(!(24&a))return!0;if(8&a)return!!Ob(e,s=Zx.getClassLikeDeclarationOfSymbol(bi(n)))||(un(o,Zx.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Qi(n),Yi(B_(n))),!1);if(t)return!0;if(!(s=Ib(e,function(e){var t,e=mo(vi(e));return t=e,!R_(n,function(e){return!!(16&Zx.getDeclarationModifierFlagsFromSymbol(e))&&!Ga(t,B_(e))})&&t?e:void 0}))){t=void 0;if(32&a||!(t=function(e){e=Zx.getThisContainer(e,!1);return e&&Zx.isFunctionLike(e)?Zx.getThisParameter(e):void 0}(e))||!t.type)return un(o,Zx.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Qi(n),Yi(B_(n)||r)),!1;var t=gl(t.type),s=(262144&t.flags?ms(t):t).target}return!!(32&a)||(262144&r.flags&&(r=(r.isThisType?ms:xs)(r)),!(!r||!Ga(r,s))||(un(o,Zx.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,Qi(n),Yi(s)),!1))}function Ig(e){return R_(e,function(e){return!(8192&e.flags)})}function Og(e){return Jg(ph(e),e)}function Mg(e){return!!(98304&(Q?dd(e):e.flags))}function Lg(e){return Mg(e)?yd(e):e}function Rg(e,t){un(e,32768&t?65536&t?Zx.Diagnostics.Object_is_possibly_null_or_undefined:Zx.Diagnostics.Object_is_possibly_undefined:Zx.Diagnostics.Object_is_possibly_null)}function Bg(e,t){un(e,32768&t?65536&t?Zx.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:Zx.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:Zx.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function jg(e,t,r){if(Q&&2&e.flags)return un(t,Zx.Diagnostics.Object_is_of_type_unknown),Ae;var n=98304&(Q?dd(e):e.flags);if(n){r(t,n);n=yd(e);return 229376&n.flags?Ae:n}return e}function Jg(e,t){return jg(e,t,Rg)}function zg(e,t){e=Jg(e,t);return e!==Ae&&16384&e.flags&&un(t,Zx.Diagnostics.Object_is_possibly_undefined),e}function Ug(e){return 32&e.flags?(r=ph((t=e).expression),n=Dd(r,t.expression),xd(Hg(t,t.expression,Jg(n,t.expression),t.name),t,n!==r)):Hg(e,e.expression,Og(e.expression),e.name);var t,r,n}function Vg(e){return Hg(e,e.left,Og(e.left),e.right)}function Kg(e){for(;200===e.parent.kind;)e=e.parent;return Zx.isCallOrNewExpression(e.parent)&&e.parent.expression===e}function qg(e,t){for(var r=Zx.getContainingClass(t);r;r=Zx.getContainingClass(r)){var n=r.symbol,i=Zx.getSymbolNameForPrivateIdentifier(n,e),i=n.members&&n.members.get(i)||n.exports&&n.exports.get(i);if(i)return i}}function Wg(e,t){return Bs(e,t.escapedName)}function Hg(e,t,r,n){var i=Sn(t).resolvedSymbol,a=Zx.getAssignmentTargetKind(e),o=Ns(0!==a||Kg(e)?Ad(r):r);Zx.isPrivateIdentifier(n)&&Sx(e,262144);var s,c,u,l,_=fa(o)||o===Ge;if(Zx.isPrivateIdentifier(n)){var d=qg(n.escapedText,n);if(_){if(d)return o;if(!Zx.getContainingClass(n))return Gx(n,Zx.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),ke}if(!(s=d?Wg(r,d):void 0)&&function(e,r,t){var n,i=fs(e);i&&Zx.forEach(i,function(e){var t=e.valueDeclaration;if(t&&Zx.isNamedDeclaration(t)&&Zx.isPrivateIdentifier(t.name)&&t.name.escapedText===r.escapedText)return n=e,!0});var a=Fn(r);if(n){var o=n.valueDeclaration,s=Zx.getContainingClass(o);if(Zx.Debug.assert(!!s),t){i=t.valueDeclaration,t=Zx.getContainingClass(i);if(Zx.Debug.assert(!!t),Zx.findAncestor(t,function(e){return s===e})){e=un(r,Zx.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,Yi(e));return Zx.addRelatedInfo(e,Zx.createDiagnosticForNode(i,Zx.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,a),Zx.createDiagnosticForNode(o,Zx.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,a)),1}}return un(r,Zx.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,a,Fn(s.name||eD)),1}}(r,n,d))return Ae}else{if(_)return Zx.isIdentifier(t)&&i&&pf(i,e),o;s=Bs(o,n.escapedText)}if(!Zx.isIdentifier(t)||!i||s&&ex(s)||pf(i,e),s){if(c=e,d=n,!void((i=(_=s).valueDeclaration)&&!Zx.getSourceFileOfNode(c).isDeclarationFile&&(l=Zx.idText(d),!function(e){return!!Zx.findAncestor(e,function(e){switch(e.kind){case 159:return!0;case 281:case 161:case 163:case 164:case 283:case 154:case 221:case 276:case 273:case 274:case 275:case 268:case 216:case 279:return!1;default:return!Zx.isExpressionNode(e)&&"quit"}})}(c)||Zx.isAccessExpression(c)&&Zx.isAccessExpression(c.expression)||kn(i,d)||function(e){if(!(32&e.parent.flags))return!1;var t=qa(e.parent);for(;;){if(!(t=t.symbol&&function(e){e=ao(e);return 0!==e.length?xu(e):void 0}(t)))return!1;var r=Bs(t,e.escapedName);if(r&&r.valueDeclaration)return!0}}(_)?245!==i.kind||169===c.parent.kind||8388608&i.flags||kn(i,d)||(u=un(d,Zx.Diagnostics.Class_0_used_before_its_declaration,l)):u=un(d,Zx.Diagnostics.Property_0_is_used_before_its_initialization,l),u&&Zx.addRelatedInfo(u,Zx.createDiagnosticForNode(i,Zx.Diagnostics._0_is_declared_here,l)))),tm(s,e,104===t.kind),Sn(e).resolvedSymbol=s,wg(e,102===t.kind,o,s),My(e,s,a))return un(n,Zx.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Zx.idText(n)),Ae;l=df(qa(s),e)}else{a=Zx.isPrivateIdentifier(n)||0!==a&&Iu(r)&&!Mu(r)?void 0:Vs(o,0);if(!a||!a.type)return Au(r)?ke:r.symbol===le?(le.exports.has(n.escapedText)&&418&le.exports.get(n.escapedText).flags?un(n,Zx.Diagnostics.Property_0_does_not_exist_on_type_1,Zx.unescapeLeadingUnderscores(n.escapedText),Yi(r)):X&&un(n,Zx.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Yi(r)),ke):(n.escapedText&&!Pn(e)&&function(e,t){var r,n,i,a;if(!Zx.isPrivateIdentifier(e)&&1048576&t.flags&&!(131068&t.flags))for(var o=0,s=t.types;o<s.length;o++){var c=s[o];if(!Bs(c,e.escapedText)&&!Vs(c,0)){r=Zx.chainDiagnosticMessages(r,Zx.Diagnostics.Property_0_does_not_exist_on_type_1,Zx.declarationNameToString(e),Yi(c));break}}Qg(e.escapedText,t)?r=Zx.chainDiagnosticMessages(r,Zx.Diagnostics.Property_0_is_a_static_member_of_type_1,Zx.declarationNameToString(e),Yi(t)):(a=Mh(t))&&Bs(a,e.escapedText)?(r=Zx.chainDiagnosticMessages(r,Zx.Diagnostics.Property_0_does_not_exist_on_type_1,Zx.declarationNameToString(e),Yi(t)),n=Zx.createDiagnosticForNode(e,Zx.Diagnostics.Did_you_forget_to_use_await)):void 0!==(i=Xg(e,t))?(a=Zx.symbolName(i),r=Zx.chainDiagnosticMessages(r,Zx.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Zx.declarationNameToString(e),Yi(t),a),n=i.valueDeclaration&&Zx.createDiagnosticForNode(i.valueDeclaration,Zx.Diagnostics._0_is_declared_here,a)):r=Zx.chainDiagnosticMessages(Rs(r,t),Zx.Diagnostics.Property_0_does_not_exist_on_type_1,Zx.declarationNameToString(e),Yi(t)),t=Zx.createDiagnosticForNodeFromMessageChain(e,r),n&&Zx.addRelatedInfo(t,n),Xr.add(t)}(n,Mu(r)?o:r),Ae);a.isReadonly&&(Zx.isAssignmentTarget(e)||Zx.isDeleteTarget(e))&&un(e,Zx.Diagnostics.Index_signature_in_type_0_only_permits_reading,Yi(o)),l=a.type}return Gg(e,s,l,n)}function Gg(e,t,r,n){var i=Zx.getAssignmentTargetKind(e);if(!Zx.isAccessExpression(e)||1===i||t&&!(98311&t.flags)&&!(8192&t.flags&&1048576&r.flags))return r;var a,o,s=!1;Q&&S&&104===e.expression.kind?(a=t&&t.valueDeclaration)&&ob(a)&&(162!==(o=of(e)).kind||o.parent!==a.parent||8388608&a.flags||(s=!0)):Q&&t&&t.valueDeclaration&&Zx.isPropertyAccessExpression(t.valueDeclaration)&&Zx.getAssignmentDeclarationPropertyAccessKind(t.valueDeclaration)&&of(e)===of(t.valueDeclaration)&&(s=!0);e=af(e,r,s?md(r):r);return s&&!(32768&dd(r))&&32768&dd(e)?(un(n,Zx.Diagnostics.Property_0_is_used_before_being_assigned,Qi(t)),r):i?rd(e):e}function Qg(e,t){e=t.symbol&&Bs(qa(t.symbol),e);return void 0!==e&&e.valueDeclaration&&Zx.hasModifier(e.valueDeclaration,32)}function Xg(e,t){return em(Zx.isString(e)?e:Zx.idText(e),fs(t),111551)}function Yg(e,t){t=Xg(e,t);return t&&Zx.symbolName(t)}function Zg(e,n,t){return Zx.Debug.assert(void 0!==n,"outername should always be defined"),An(e,n,t,void 0,n,!1,!1,function(e,t,r){return Zx.Debug.assertEqual(n,t,"name should equal outerName"),Tn(e,t,r)||em(Zx.unescapeLeadingUnderscores(t),Zx.arrayFrom(e.values()),r)})}function $g(e,t){return t.exports&&em(Zx.idText(e),di(t),2623475)}function em(e,t,r){return Zx.getSpellingSuggestion(e,t,function(e){var t=Zx.symbolName(e);if(Zx.startsWith(t,'"'))return;if(e.flags&r)return t;if(2097152&e.flags){e=function(e){if(Dn(e).target!==Te)return Qn(e)}(e);if(e&&e.flags&r)return t}return})}function tm(e,t,r){var n=e&&106500&e.flags&&e.valueDeclaration;if(n){var i=Zx.hasModifier(n,8),n=Zx.isNamedDeclaration(e.valueDeclaration)&&Zx.isPrivateIdentifier(e.valueDeclaration.name);if((i||n)&&(!t||!Zx.isWriteOnlyAccess(t)||65536&e.flags)){if(r){t=Zx.findAncestor(t,Zx.isFunctionLikeDeclaration);if(t&&t.symbol===e)return}(1&Zx.getCheckFlags(e)?Dn(e).target:e).isReferenced=67108863}}}function rm(t,r,n,e){if(e===Ae||fa(e))return!0;var i=Bs(e,n);if(i){if(Zx.isPropertyAccessExpression(t)&&i.valueDeclaration&&Zx.isPrivateIdentifierPropertyDeclaration(i.valueDeclaration)){var a=Zx.getContainingClass(i.valueDeclaration);return!Zx.isOptionalChain(t)&&!!Zx.findAncestor(t,function(e){return e===a})}return wg(t,r,e,i)}return Zx.isInJSFile(t)&&0!=(1048576&e.flags)&&e.types.some(function(e){return rm(t,r,n,e)})}function nm(e){var t,r=Zx.skipParentheses(e);if(75===r.kind){var n=up(r);if(3&n.flags)for(var i=e,a=e.parent;a;){if(231===a.kind&&i===a.statement&&function(e){var t=e.initializer;if(243===t.kind){e=t.declarations[0];if(e&&!Zx.isBindingPattern(e.name))return vi(e)}else if(75===t.kind)return up(t)}(a)===n&&(Ks(t=lh(a.expression),1)&&!Ks(t,0)))return 1;a=(i=a).parent}}}function im(e){return 32&e.flags?(r=ph((t=e).expression),n=Dd(r,t.expression),xd(am(t,Jg(n,t.expression)),t,n!==r)):am(e,Og(e.expression));var t,r,n}function am(e,t){var r=0!==Zx.getAssignmentTargetKind(e)||Kg(e)?Ad(t):t,n=e.argumentExpression,t=ph(n);if(r===Ae||r===Ge)return r;if(Uy(r)&&!Zx.isStringLiteralLike(n))return un(n,Zx.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Ae;r=zu(r,nm(n)?Be:t,e,Zx.isAssignmentTarget(e)?2|(Iu(r)&&!Mu(r)?1:0):0)||Ae;return Nh(Gg(e,r.symbol,r,n),e)}function om(e,t,r){if(t!==Ae&&Zx.isWellKnownSymbolSyntactically(e))if(0!=(12288&t.flags)){var n=e.expression,i=up(n);if(i){t=Qc(!0);if(t){if(i===t)return 1;r&&un(n,Zx.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object)}}}else r&&un(e,Zx.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol,Zx.getTextOfNode(e))}function sm(e){return Zx.isCallOrNewExpression(e)||Zx.isTaggedTemplateExpression(e)||Zx.isJsxOpeningLikeElement(e)}function cm(e){return sm(e)&&Zx.forEach(e.typeArguments,Db),198===e.kind?ph(e.template):Zx.isJsxOpeningLikeElement(e)?ph(e.attributes):157!==e.kind&&Zx.forEach(e.arguments,function(e){ph(e)}),ur}function um(e){return cm(e),lr}function lm(e){return!!e&&(213===e.kind||220===e.kind&&e.isSpread)}function _m(e){return Zx.findIndex(e,lm)}function dm(e){return!!(16384&e.flags)}function pm(e,t,r,n){void 0===n&&(n=!1);var i=!1,a=_y(r),o=dy(r);if(198===e.kind){var s,c=t.length;i=211===e.template.kind?(s=Zx.last(e.template.templateSpans),Zx.nodeIsMissing(s.literal)||!!s.literal.isUnterminated):(s=e.template,Zx.Debug.assert(14===s.kind),!!s.isUnterminated)}else if(157===e.kind)c=Am(e,r);else if(Zx.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 Zx.Debug.assert(197===e.kind),0===dy(r);c=n?t.length+1:t.length,i=e.arguments.end===e.end;t=_m(t);if(0<=t)return t>=dy(r)&&(py(r)||t<_y(r))}if(py(r)||!(a<c)){if(i||o<=c)return 1;for(var u=c;u<o;u++)if(131072&Bp(cy(r,u),dm).flags)return;return 1}}function fm(e,t){var r=Zx.length(e.typeParameters),e=$s(e.typeParameters);return!Zx.some(t)||t.length>=e&&t.length<=r}function gm(e){return ym(e,0,!1)}function mm(e){return ym(e,0,!1)||ym(e,1,!1)}function ym(e,t,r){if(524288&e.flags){e=ls(e);if(r||0===e.properties.length&&!e.stringIndexInfo&&!e.numberIndexInfo){if(0===t&&1===e.callSignatures.length&&0===e.constructSignatures.length)return e.callSignatures[0];if(1===t&&1===e.constructSignatures.length&&0===e.callSignatures.length)return e.constructSignatures[0]}}}function hm(e,t,r,n){var i=Md(e.typeParameters,e,0,n),n=fy(t),n=r&&(n&&262144&n.flags?r.nonFixingMapper:r.mapper);return Id(n?Pl(t,n):t,e,function(e,t){Zd(i.inferences,e,t)}),r||Od(t,e,function(e,t){Zd(i.inferences,e,t,32)}),_c(e,sp(i),Zx.isInJSFile(t.declaration))}function vm(e,t,r,n,i){if(Zx.isJsxOpeningLikeElement(e))return o=n,s=i,c=Wf(c=t,a=e),o=Xy(a.attributes,c,s,o),Zd(s.inferences,o,c),sp(s);var a,o,s,c;157===e.kind||(a=Kf(e))&&(o=qf(e),s=(s=gm(c=Jl(a,zd((void 0===(c=1)&&(c=0),(s=o)&&Ld(Zx.map(s.inferences,Jd),s.signature,s.flags|c,s.compareTypes))))))&&s.typeParameters?mc(dc(s,s.typeParameters)):c,c=sc(t),Zd(i.inferences,s,c,32),s=Md(t.typeParameters,t,i.flags),o=Jl(a,o&&o.returnMapper),Zd(s.inferences,o,c),i.returnMapper=Zx.some(s.inferences,sh)?zd((u=s,(s=Zx.filter(u.inferences,sh)).length?Ld(Zx.map(s,Jd),u.signature,u.flags,u.compareTypes):void 0)):void 0);var u=ac(t);u&&(l=(l=km(e))?ph(l):We,Zd(i.inferences,l,u));for(var l=gy(t),_=l?Math.min(_y(t)-1,r.length):r.length,d=0;d<_;d++){var p,f=r[d];215!==f.kind&&(f=Xy(f,p=cy(t,d),i,n),Zd(i.inferences,f,p))}return l&&(u=xm(r,_,r.length,l,i),Zd(i.inferences,u,l)),sp(i)}function bm(e){return 1048576&e.flags?jp(e,bm):63176705&e.flags||H_(e)?e:sd(e)?cu(Ac(e),e.target.minLength,e.target.hasRestElement,!1,e.target.associatedNames):nu(Ju(e,Be))}function xm(e,t,r,n,i){if(r-1<=t){var a=e[r-1];if(lm(a))return 220===a.kind?nu(a.type):bm(Xy(a.expression,n,i,0))}for(var o=[],s=-1,c=t;c<r;c++){var u=Ju(n,dl(c-t)),l=Xy(e[c],u,i,0);s<0&&lm(e[c])&&(s=c-t);u=jy(u,4325372);o.push((u?ll:nd)(l))}return s<0?cu(o):cu(Zx.append(o.slice(0,s),gu(o.slice(s))),s,!0)}function Dm(e,t,r,n){for(var i=Zx.isInJSFile(e.declaration),a=e.typeParameters,o=ec(Zx.map(t,gl),a,$s(a),i),s=0;s<t.length;s++){Zx.Debug.assert(void 0!==a[s],"Should not call checkTypeArguments with too many type arguments");var c=ms(a[s]);if(c){var u=r&&n?function(){return Zx.chainDiagnosticMessages(void 0,Zx.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,l=n||Zx.Diagnostics.Type_0_does_not_satisfy_the_constraint_1,_=_||bl(a,o),d=o[s];if(!a_(d,Lo(Jl(c,_),d),r?t[s]:void 0,l,u))return}}return o}function Sm(e){if(_g(e.tagName))return 2;e=Ns(ph(e.tagName));return Zx.length(Js(e,1))?0:Zx.length(Js(e,0))?1:2}function Cm(g,e,t,r,m,n,y){e=Wf(e,g),r=Xy(g.attributes,e,void 0,r);return function(){var e=Zx.isJsxOpeningElement(g)||Zx.isJsxSelfClosingElement(g)&&!_g(g.tagName)?ph(g.tagName):void 0;if(!e)return 1;var t=Js(e,0);if(!Zx.length(t))return 1;var r=xx(g);if(!r)return 1;e=ni(r,111551,!0,!1,g);if(!e)return 1;e=Js(qa(e),0);if(!Zx.length(e))return 1;for(var n=!1,i=0,a=0,o=e;a<o.length;a++){var s=Js(cy(o[a],0),0);if(Zx.length(s))for(var c=0,u=s;c<u.length;c++){var l=u[c];if(n=!0,py(l))return 1;l=_y(l);i<l&&(i=l)}}if(!n)return 1;for(var _=1/0,d=0,p=t;d<p.length;d++){var f=dy(p[d]);f<_&&(_=f)}if(_<=i)return 1;m&&(t=Zx.createDiagnosticForNode(g.tagName,Zx.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,Zx.entityNameToString(g.tagName),_,Zx.entityNameToString(r),i),(r=null===(r=Rb(g.tagName))||void 0===r?void 0:r.valueDeclaration)&&Zx.addRelatedInfo(t,Zx.createDiagnosticForNode(r,Zx.Diagnostics._0_is_declared_here,Zx.entityNameToString(g.tagName))),y&&y.skipLogging&&(y.errors||(y.errors=[])).push(t),y.skipLogging||Xr.add(t));return}()&&s_(r,e,t,m?g.tagName:void 0,g.attributes,void 0,n,y)}function Tm(e,t,r,n,i,a,o){var s={errors:void 0,skipLogging:!0};if(Zx.isJsxOpeningLikeElement(e))return Cm(e,r,n,i,a,o,s)?void 0:(Zx.Debug.assert(!a||!!s.errors,"jsx should have errors when reporting errors"),s.errors||Zx.emptyArray);var c=ac(r);if(c&&c!==We&&197!==e.kind){var u=km(e),l=void 0;u?(l=ph(u),Zx.isOptionalChainRoot(u.parent)?l=yd(l):Zx.isOptionalChain(u.parent)&&(l=bd(l))):l=We;var _=a?u||e:void 0,u=Zx.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!T_(l,c,n,_,u,o,s))return Zx.Debug.assert(!a||!!s.errors,"this parameter should have errors when reporting errors"),s.errors||Zx.emptyArray}for(var d=Zx.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,c=gy(r),p=c?Math.min(_y(r)-1,t.length):t.length,f=0;f<p;f++){var g=t[f];if(215!==g.kind){var m=cy(r,f),y=Xy(g,m,void 0,i),y=4&i?Td(y):y;if(!s_(y,m,n,a?g:void 0,g,d,o,s))return Zx.Debug.assert(!a||!!s.errors,"parameter should have errors when reporting errors"),h(g,y,m),s.errors||Zx.emptyArray}}if(c){u=xm(t,p,t.length,c,void 0),_=a?p<t.length?t[p]:e:void 0;if(!T_(u,c,n,_,d,void 0,s))return Zx.Debug.assert(!a||!!s.errors,"rest parameter should have errors when reporting errors"),h(_,u,c),s.errors||Zx.emptyArray}function h(e,t,r){e&&a&&s.errors&&s.errors.length&&(Oh(r)||(t=Oh(t))&&D_(t,r,n)&&Zx.addRelatedInfo(s.errors[0],Zx.createDiagnosticForNode(e,Zx.Diagnostics.Did_you_forget_to_use_await)))}}function km(e){if(196===e.kind){e=Zx.skipOuterExpressions(e.expression);if(Zx.isAccessExpression(e))return e.expression}}function Em(e,t,r){var n=Zx.createNode(220,e.pos,e.end);return n.parent=e,n.type=t,n.isSpread=r||!1,n}function Nm(e){if(198===e.kind){var t=e.template,r=[Em(t,(Xt=Xt||Gc("TemplateStringsArray",0,!0))||it)];return 211===t.kind&&Zx.forEach(t.templateSpans,function(e){r.push(e.expression)}),r}if(157===e.kind)return function(e){var t=e.parent,r=e.expression;switch(t.kind){case 245:case 214:return[Em(r,qa(vi(t)))];case 156:var n=t.parent;return[Em(r,162===t.parent.kind?qa(vi(n)):Ae),Em(r,ke),Em(r,Be)];case 159:case 161:case 163:case 164:n=159!==t.kind&&0!==M;return[Em(r,function(e){var t=vi(e.parent);return(Zx.hasModifier(e,32)?qa:mo)(t)}(t)),Em(r,function(e){var t=e.name;switch(t.kind){case 75:return dl(Zx.idText(t));case 8:case 10:return dl(t.text);case 154:var r=ag(t);return Jy(r,12288)?r:Re;default:return Zx.Debug.fail("Unsupported property name.")}}(t)),Em(r,n?ru(Bb(t)):ke)]}return Zx.Debug.fail()}(e);if(Zx.isJsxOpeningLikeElement(e))return 0<e.attributes.properties.length||Zx.isJsxOpeningElement(e)&&0<e.parent.children.length?[e.attributes]:Zx.emptyArray;var n=e.arguments||Zx.emptyArray,i=n.length;if(i&&lm(n[i-1])&&_m(n)===i-1){var a=n[i-1],t=(Cr?ph:Yy)(a.expression);if(sd(t)){var e=Ac(t),o=t.target.hasRestElement?e.length-1:-1,e=Zx.map(e,function(e,t){return Em(a,e,t===o)});return Zx.concatenate(n.slice(0,i-1),e)}}return n}function Am(e,t){switch(e.parent.kind){case 245:case 214:return 1;case 159:return 2;case 161:case 163:case 164:return 0===M||t.parameters.length<=2?2:3;case 156:return 3;default:return Zx.Debug.fail()}}function Fm(e,t){var r,n,i=Zx.getSourceFileOfNode(e);return e=Zx.isPropertyAccessExpression(e.expression)?(r=(n=Zx.getErrorSpanForNode(i,e.expression.name)).start,t?n.length:e.end-r):(r=(n=Zx.getErrorSpanForNode(i,e.expression)).start,t?n.length:e.end-r),{start:r,length:e,sourceFile:i}}function Pm(e,t,r,n,i,a){if(Zx.isCallExpression(e)){var o=Fm(e),s=o.sourceFile,c=o.start,o=o.length;return Zx.createFileDiagnostic(s,c,o,t,r,n,i,a)}return Zx.createDiagnosticForNode(e,t,r,n,i,a)}function wm(e,t,r){for(var n,i=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY,c=r.length,u=0,l=t;u<l.length;u++){var _=l[u],d=dy(_),p=_y(_);d<c&&o<d&&(o=d),c<p&&p<s&&(s=p),d<i&&(i=d,n=_),a=Math.max(a,p)}var f,g=Zx.some(t,py),m=!g&&i<a?i+"-"+a:i,y=-1<_m(r);c<=a&&y&&c--;var h,t=g||y?g&&y?Zx.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:g?Zx.Diagnostics.Expected_at_least_0_arguments_but_got_1:Zx.Diagnostics.Expected_0_arguments_but_got_1_or_more:Zx.Diagnostics.Expected_0_arguments_but_got_1;if(n&&dy(n)>c&&n.declaration&&((v=n.declaration.parameters[n.thisParameter?c+1:c])&&(f=Zx.createDiagnosticForNode(v,Zx.isBindingPattern(v.name)?Zx.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:Zx.Diagnostics.An_argument_for_0_was_not_provided,v.name?Zx.isBindingPattern(v.name)?void 0:Zx.idText(Zx.getFirstIdentifier(v.name)):c))),i<c&&c<a)return Pm(e,Zx.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c,o,s);if(!y&&c<i){var v=Pm(e,t,m,c);return f?Zx.addRelatedInfo(v,f):v}g||y?(h=Zx.createNodeArray(r),y&&c&&(y=Zx.elementAt(r,_m(r)+1)||void 0,h=Zx.createNodeArray(r.slice(c<a&&y?r.indexOf(y):Math.min(a,r.length-1))))):h=Zx.createNodeArray(r.slice(a)),h.pos=Zx.first(h).pos,h.end=Zx.last(h).end,h.end===h.pos&&h.end++;m=Zx.createDiagnosticForNodeArray(Zx.getSourceFileOfNode(e),h,t,m,c);return f?Zx.addRelatedInfo(m,f):m}function Im(c,e,t,r,n,i){var u,a=198===c.kind,o=157===c.kind,s=Zx.isJsxOpeningLikeElement(c),l=!t;o||(u=c.typeArguments,(a||s||102!==c.expression.kind)&&Zx.forEach(u,Db));var _=t||[];if(!function(e,t,r){var n,i,a,o,s=0,c=-1;Zx.Debug.assert(!t.length);for(var u=0,l=e;u<l.length;u++){var _=l[u],d=_.declaration&&vi(_.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,yD(_)?(o=++c,s++):o=a,t.splice(o,0,r?zo(_,r):_)}}(e,_,n),!_.length)return l&&Xr.add(Pm(c,Zx.Diagnostics.Call_target_does_not_contain_any_signatures)),um(c);var d,p,f,g,m=Nm(c),y=1===_.length&&!_[0].typeParameters,h=o||y||!Zx.some(m,ql)?0:4,n=!!(16&r)&&196===c.kind&&c.arguments.hasTrailingComma;if(1<_.length&&(I=O(_,en,n)),I=I||O(_,rn,n))return I;if(l)if(d)if(1===d.length||3<d.length){var v,b=d[d.length-1];3<d.length&&(v=Zx.chainDiagnosticMessages(v,Zx.Diagnostics.The_last_overload_gave_the_following_error),v=Zx.chainDiagnosticMessages(v,Zx.Diagnostics.No_overload_matches_this_call));var x=Tm(c,m,b,rn,0,!0,function(){return v});if(x)for(var D=0,S=x;D<S.length;D++){var C=S[D];b.declaration&&3<d.length&&Zx.addRelatedInfo(C,Zx.createDiagnosticForNode(b.declaration,Zx.Diagnostics.The_last_overload_is_declared_here)),Xr.add(C)}else Zx.Debug.fail("No error for last overload signature")}else{for(var T=[],k=0,E=Number.MAX_VALUE,N=0,A=0,F=0,P=d;F<P.length;F++)!function(e){var t=Tm(c,m,e,rn,0,!0,function(){return Zx.chainDiagnosticMessages(void 0,Zx.Diagnostics.Overload_0_of_1_2_gave_the_following_error,A+1,_.length,Xi(e))});t?(t.length<=E&&(E=t.length,N=A),k=Math.max(k,t.length),T.push(t)):Zx.Debug.fail("No error for 3 or fewer overload signatures"),A++}(P[F]);var w=1<k?T[N]:Zx.flatten(T);Zx.Debug.assert(0<w.length,"No errors reported for 3 or fewer overload signatures");var I,r=Zx.chainDiagnosticMessages(Zx.map(w,function(e){return"string"==typeof e.messageText?e:e.messageText}),Zx.Diagnostics.No_overload_matches_this_call),n=Zx.flatMap(w,function(e){return e.relatedInformation});Zx.every(w,function(e){return e.start===w[0].start&&e.length===w[0].length&&e.file===w[0].file})?(l=(I=w[0]).file,x=I.start,I=I.length,Xr.add({file:l,start:x,length:I,code:r.code,category:r.category,messageText:r,relatedInformation:n})):Xr.add(Zx.createDiagnosticForNodeFromMessageChain(c,r,n))}else p?Xr.add(wm(c,[p],m)):f?Dm(f,c.typeArguments,!0,i):0===(g=Zx.filter(e,function(e){return fm(e,u)})).length?Xr.add(function(e,t,r){var n=r.length;if(1===t.length){var i=$s((l=t[0]).typeParameters),a=Zx.length(l.typeParameters);return Zx.createDiagnosticForNodeArray(Zx.getSourceFileOfNode(e),r,Zx.Diagnostics.Expected_0_type_arguments_but_got_1,i<a?i+"-"+a:i,n)}for(var o=-1/0,s=1/0,c=0,u=t;c<u.length;c++){var l,_=$s((l=u[c]).typeParameters),a=Zx.length(l.typeParameters);n<_?s=Math.min(s,_):a<n&&(o=Math.max(o,a))}return o!==-1/0&&s!==1/0?Zx.createDiagnosticForNodeArray(Zx.getSourceFileOfNode(e),r,Zx.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,n,o,s):Zx.createDiagnosticForNodeArray(Zx.getSourceFileOfNode(e),r,Zx.Diagnostics.Expected_0_type_arguments_but_got_1,o===-1/0?s:o,n)}(c,e,u)):o?i&&Xr.add(Pm(c,i)):Xr.add(wm(c,g,m));return o=c,i=_,g=m,t=!!t,Zx.Debug.assert(0<i.length),Cb(o),t||1===i.length||i.some(function(e){return!!e.typeParameters})?function(e,t,r){var n=function(e,t){for(var r=-1,n=-1,i=0;i<e.length;i++){var a=e[i],o=_y(a);if(py(a)||t<=o)return i;n<o&&(n=o,r=i)}return r}(t,void 0===_e?r.length:_e),i=t[n],a=i.typeParameters;if(!a)return i;var o=sm(e)?e.typeArguments:void 0,r=o?pc(i,function(e,t,r){var n=e.map(Bb);for(;n.length>t.length;)n.pop();for(;n.length<t.length;)n.push(ms(t[n.length])||op(r));return n}(o,a,Zx.isInJSFile(e))):function(e,t,r,n){t=Md(t,r,Zx.isInJSFile(e)?2:0),t=vm(e,r,n,12,t);return pc(r,t)}(e,a,i,r);return t[n]=r}(o,i,g):function(r){var e,t=Zx.mapDefined(r,function(e){return e.thisParameter});t.length&&(e=Mm(t,t.map(oy)));for(var n=Zx.minAndMax(r,Om),i=n.min,a=n.max,o=[],s=0;s<a;s++)!function(t){var e=Zx.mapDefined(r,function(e){return mD(e)?t<e.parameters.length-1?e.parameters[t]:Zx.last(e.parameters):t<e.parameters.length?e.parameters[t]:void 0});Zx.Debug.assert(0!==e.length),o.push(Mm(e,Zx.mapDefined(r,function(e){return uy(e,t)})))}(s);var c=Zx.mapDefined(r,function(e){return mD(e)?Zx.last(e.parameters):void 0}),t=0;0!==c.length&&(n=nu(gu(Zx.mapDefined(r,lc),2)),o.push(Lm(c,n)),t|=1);r.some(yD)&&(t|=2);return Bo(r[0].declaration,void 0,e,o,xu(r.map(sc)),void 0,i,t)}(i);function O(e,t,r){if(void 0===r&&(r=!1),f=p=d=void 0,y){var n=e[0];return Zx.some(u)||!pm(c,m,n,r)?void 0:Tm(c,m,n,t,0,!1,void 0)?void(d=[n]):n}for(var i=0;i<e.length;i++)if(fm(n=e[i],u)&&pm(c,m,n,r)){var a=void 0,o=void 0;if(n.typeParameters){var s=void 0;if(Zx.some(u)){if(!(s=Dm(n,u,!1))){f=n;continue}}else o=Md(n.typeParameters,n,Zx.isInJSFile(c)?2:0),s=vm(c,n,m,8|h,o),h|=4&o.flags?8:0;if(a=_c(n,s,Zx.isInJSFile(n.declaration),o&&o.inferredTypeParameters),gy(n)&&!pm(c,m,a,r)){p=a;continue}}else a=n;if(!Tm(c,m,a,t,h,!1,void 0)){if(h){if(h=0,o){a=_c(n,s=vm(c,n,m,h,o),Zx.isInJSFile(n.declaration),o&&o.inferredTypeParameters);if(gy(n)&&!pm(c,m,a,r)){p=a;continue}}if(Tm(c,m,a,t,h,!1,void 0)){(d=d||[]).push(a);continue}}return e[i]=a}(d=d||[]).push(a)}}}function Om(e){var t=e.parameters.length;return mD(e)?t-1:t}function Mm(e,t){return Lm(e,gu(t,2))}function Lm(e,t){return Cd(Zx.first(e),t)}function Rm(e){return!(!e.typeParameters||!_x(sc(e)))}function Bm(e,t,r,n){return fa(e)||fa(t)&&262144&e.flags||!r&&!n&&!(1179648&t.flags)&&t_(e,vt)}function jm(e,t,r){e.arguments&&M<1&&(0<=(a=_m(e.arguments))&&un(e.arguments[a],Zx.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher));var n=Og(e.expression);if(n===Ge)return dr;if((n=Ns(n))===Ae)return um(e);if(fa(n))return e.typeArguments&&un(e,Zx.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),cm(e);var i=Js(n,1);if(i.length){if(!function(e,t){if(!t||!t.declaration)return!0;var r=t.declaration,n=Zx.getSelectedModifierFlags(r,24);if(!n||162!==r.kind)return!0;var i=Zx.getClassLikeDeclarationOfSymbol(r.parent.symbol),t=mo(r.parent.symbol);if(Ob(e,i))return!0;i=Zx.getContainingClass(e);if(i&&16&n){i=Bb(i);if(function e(t,r){var n=ao(r);if(!Zx.length(n))return!1;var r=n[0];if(2097152&r.flags){for(var n=r.types,i=Qo(n),a=0,o=0,s=r.types;o<s.length;o++){var c=s[o];if(!i[a]&&3&Zx.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&&un(e,Zx.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Yi(t));16&n&&un(e,Zx.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Yi(t));return!1}(e,i[0]))return um(e);var a=n.symbol&&Zx.getClassLikeDeclarationOfSymbol(n.symbol);return a&&Zx.hasModifier(a,128)?(un(e,Zx.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),um(e)):Im(e,i,t,r,0)}i=Js(n,0);if(i.length){r=Im(e,i,t,r,0);return X||(r.declaration&&!Qm(r.declaration)&&sc(r)!==We&&un(e,Zx.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),ac(r)===We&&un(e,Zx.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),r}return zm(e.expression,n,1),um(e)}function Jm(e,t){var r,n=0===t,i=Rh(e),i=i&&0<Js(i,t).length;if(1048576&e.flags){for(var a=!1,o=0,s=e.types;o<s.length;o++){var c=s[o];if(0!==Js(c,t).length){if(a=!0,r)break}else if(r||(r=Zx.chainDiagnosticMessages(r,n?Zx.Diagnostics.Type_0_has_no_call_signatures:Zx.Diagnostics.Type_0_has_no_construct_signatures,Yi(c)),r=Zx.chainDiagnosticMessages(r,n?Zx.Diagnostics.Not_all_constituents_of_type_0_are_callable:Zx.Diagnostics.Not_all_constituents_of_type_0_are_constructable,Yi(e))),a)break}a||(r=Zx.chainDiagnosticMessages(void 0,n?Zx.Diagnostics.No_constituent_of_type_0_is_callable:Zx.Diagnostics.No_constituent_of_type_0_is_constructable,Yi(e))),r=r||Zx.chainDiagnosticMessages(r,n?Zx.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:Zx.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Yi(e))}else r=Zx.chainDiagnosticMessages(r,n?Zx.Diagnostics.Type_0_has_no_call_signatures:Zx.Diagnostics.Type_0_has_no_construct_signatures,Yi(e));return{messageChain:Zx.chainDiagnosticMessages(r,n?Zx.Diagnostics.This_expression_is_not_callable:Zx.Diagnostics.This_expression_is_not_constructable),relatedMessage:i?Zx.Diagnostics.Did_you_forget_to_use_await:void 0}}function zm(e,t,r,n){var i=Jm(t,r),a=i.messageChain,i=i.relatedMessage,a=Zx.createDiagnosticForNodeFromMessageChain(e,a);i&&Zx.addRelatedInfo(a,Zx.createDiagnosticForNode(e,i)),Zx.isCallExpression(e.parent)&&(e=(i=Fm(e.parent,!0)).start,i=i.length,a.start=e,a.length=i),Xr.add(a),Um(t,r,n?Zx.addRelatedInfo(a,n):a)}function Um(e,t,r){var n;e.symbol&&(!(n=Dn(e.symbol).originatingImport)||Zx.isImportCall(n)||(t=Js(qa(Dn(e.symbol).target),t))&&t.length&&Zx.addRelatedInfo(r,Zx.createDiagnosticForNode(n,Zx.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 Vm(e){switch(e.parent.kind){case 245:case 214:return Zx.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 156:return Zx.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 159:return Zx.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 161:case 163:case 164:return Zx.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return Zx.Debug.fail()}}function Km(e,t,r){var n=ph(e.expression),i=Ns(n);if(i===Ae)return um(e);var a,o=Js(i,0),s=Js(i,1).length;if(Bm(n,i,o.length,s))return cm(e);if(a=e,(s=o).length&&Zx.every(s,function(e){return 0===e.minArgumentCount&&!mD(e)&&e.parameters.length<Am(a,e)})){var c=Zx.getTextOfNode(e.expression,!1);return un(e,Zx.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,c),um(e)}c=Vm(e);if(o.length)return Im(e,o,t,r,0,c);r=Jm(i,0),c=Zx.chainDiagnosticMessages(r.messageChain,c),c=Zx.createDiagnosticForNodeFromMessageChain(e.expression,c);return r.relatedMessage&&Zx.addRelatedInfo(c,Zx.createDiagnosticForNode(e.expression,r.relatedMessage)),Xr.add(c),Um(i,0,c),um(e)}function qm(e,t){var r=hg(e),n=r&&fi(r),r=n&&Tn(n,aD.Element,788968),n=r&&C.symbolToEntityName(r,788968,e),e=Zx.createFunctionTypeNode(void 0,[Zx.createParameter(void 0,void 0,void 0,"props",void 0,C.typeToTypeNode(t,e))],n?Zx.createTypeReferenceNode(n,void 0):Zx.createKeywordTypeNode(125)),n=pn(1,"props");return n.type=t,Bo(e,void 0,void 0,[n],r?mo(r):Ae,void 0,1,0)}function Wm(e,t,r){if(_g(e.tagName)){var n=Dg(e),i=qm(e,n);return o_(Xy(e.attributes,Wf(i,e),void 0,0),n,e.tagName,e.attributes),i}var a=ph(e.tagName),n=Ns(a);if(n===Ae)return um(e);i=function t(e,r){if(4&e.flags)return[ur];if(128&e.flags){var n=xg(e,r);return n?[qm(r,n)]:(un(r,Zx.Diagnostics.Property_0_does_not_exist_on_type_1,e.value,"JSX."+aD.IntrinsicElements),Zx.emptyArray)}n=Ns(e),e=Js(n,1);return 0===e.length&&(e=Js(n,0)),0===e.length&&1048576&n.flags&&(e=Ko(Zx.map(n.types,function(e){return t(e,r)}))),e}(a,e);return Bm(a,n,i.length,0)?cm(e):0===i.length?(un(e.tagName,Zx.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Zx.getTextOfNode(e.tagName)),um(e)):Im(e,i,t,r,0)}function Hm(e,t,r){switch(e.kind){case 196:return function(e,t,r){if(102===e.expression.kind){var n=Sf(e.expression);if(fa(n)){for(var i=0,a=e.arguments;i<a.length;i++)ph(a[i]);return ur}if(n!==Ae){var o=Zx.getEffectiveBaseTypeNode(Zx.getContainingClass(e));if(o)return Im(e,no(n,o.typeArguments,o),t,r,0)}return cm(e)}var s,c=ph(e.expression);if(Zx.isCallChain(e)?(s=(u=Dd(c,e.expression))===c?0:Zx.isOutermostOptionalChain(e)?8:4,c=u):s=0,(c=jg(c,e.expression,Bg))===Ge)return dr;if((n=Ns(c))===Ae)return um(e);var o=Js(n,0),u=Js(n,1).length;return Bm(c,n,o.length,u)?(c!==Ae&&e.typeArguments&&un(e,Zx.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),cm(e)):o.length?8&r&&!e.typeArguments&&o.some(Rm)?(oh(e,r),_r):o.some(function(e){return Zx.isInJSFile(e.declaration)&&!!Zx.getJSDocClassTag(e.declaration)})?(un(e,Zx.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Yi(c)),um(e)):Im(e,o,t,r,s):(u?un(e,Zx.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Yi(c)):(u=void 0,1===e.arguments.length&&(c=Zx.getSourceFileOfNode(e).text,Zx.isLineBreak(c.charCodeAt(Zx.skipTrivia(c,e.expression.end,!0)-1))&&(u=Zx.createDiagnosticForNode(e.expression,Zx.Diagnostics.Are_you_missing_a_semicolon))),zm(e.expression,n,0,u)),um(e))}(e,t,r);case 197:return jm(e,t,r);case 198:return function(e,t,r){var n=ph(e.tag),i=Ns(n);if(i===Ae)return um(e);var a=Js(i,0),o=Js(i,1).length;return Bm(n,i,a.length,o)?cm(e):a.length?Im(e,a,t,r,0):(zm(e.tag,i,0),um(e))}(e,t,r);case 157:return Km(e,t,r);case 268:case 267:return Wm(e,t,r)}throw Zx.Debug.assertNever(e,"Branch in 'resolveSignature' should be unreachable.")}function Gm(e,t,r){var n=Sn(e),i=n.resolvedSignature;if(i&&i!==_r&&!t)return i;n.resolvedSignature=_r;r=Hm(e,t,r||0);return r!==_r&&(n.resolvedSignature=Sr===Cr?r:i),r}function Qm(e){if(!e||!Zx.isInJSFile(e))return!1;var t=Zx.isFunctionDeclaration(e)||Zx.isFunctionExpression(e)?e:Zx.isVariableDeclaration(e)&&e.initializer&&Zx.isFunctionExpression(e.initializer)?e.initializer:void 0;if(t){if(Zx.getJSDocClassTag(e))return!0;t=vi(t);return!!t&&Zx.hasEntries(t.members)}return!1}function Xm(e,t){if(t){var r=Dn(t);if(r.inferredClassSymbol&&r.inferredClassSymbol.has(""+lD(e)))return r.inferredClassSymbol.get(""+lD(e));e=Zx.isTransientSymbol(e)?e:mn(e);return e.exports=e.exports||Zx.createSymbolTable(),e.members=e.members||Zx.createSymbolTable(),e.flags|=32&t.flags,Zx.hasEntries(t.exports)&&bn(e.exports,t.exports),Zx.hasEntries(t.members)&&bn(e.members,t.members),(r.inferredClassSymbol||(r.inferredClassSymbol=Zx.createMap())).set(""+lD(e),e),e}}function Ym(e,t){Fx(e,e.typeArguments)||Px(e.arguments);t=Gm(e,void 0,t);if(t===_r)return Qe;if(102===e.expression.kind)return We;if(197===e.kind){var r=t.declaration;if(r&&162!==r.kind&&166!==r.kind&&171!==r.kind&&!Zx.isJSDocConstructSignature(r)&&!Qm(r))return X&&un(e,Zx.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),ke}if(Zx.isInJSFile(e)&&ty(e))return function(e){if(e=ai(e,e)){e=ui(e);if(e)return qa(e)}return ke}(e.arguments[0]);r=sc(t);if(12288&r.flags&&Zm(e))return pl(Zx.walkUpParenthesizedExpressions(e.parent));if(196===e.kind&&226===e.parent.kind&&16384&r.flags&&oc(t)&&(Zx.isDottedName(e.expression)?ef(e)||(t=un(e.expression,Zx.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation),$p(e.expression,t)):un(e.expression,Zx.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name)),Zx.isInJSFile(e)){e=Zx.getDeclarationOfExpando(e);if(e){e=vi(e);if(e&&Zx.hasEntries(e.exports)){e=Li(e,e.exports,Zx.emptyArray,Zx.emptyArray,void 0,void 0);return e.objectFlags|=16384,xu([r,e])}}}return r}function Zm(e){if(Zx.isCallExpression(e)){var t=e.expression;if(Zx.isPropertyAccessExpression(t)&&"for"===t.name.escapedText&&(t=t.expression),Zx.isIdentifier(t)&&"Symbol"===t.escapedText){e=Qc(!1);return e?e===Nn(t,"Symbol",111551,void 0,void 0,!1):void 0}}}function $m(e){if(Px(e.arguments)||function(e){if(x===Zx.ModuleKind.ES2015)return Gx(e,Zx.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd);if(e.typeArguments)return Gx(e,Zx.Diagnostics.Dynamic_import_cannot_have_type_arguments);var t=e.arguments;1!==t.length?Gx(e,Zx.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):(kx(t),Zx.isSpreadElement(t[0])&&Gx(t[0],Zx.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element))}(e),0===e.arguments.length)return Dy(e,ke);for(var t=e.arguments[0],r=Yy(t),n=1;n<e.arguments.length;++n)Yy(e.arguments[n]);(32768&r.flags||65536&r.flags||!t_(r,Re))&&un(t,Zx.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Yi(r));r=ai(e,t);if(r){t=li(r,t,!0,!1);if(t)return Dy(e,ey(qa(t),t,r))}return Dy(e,ke)}function ey(e,t,r){if(m&&e&&e!==Ae){var n,i=e;return i.syntheticType||(zn(Zx.find(r.declarations,Zx.isSourceFile),r,!1)?(n=Zx.createSymbolTable(),(r=pn(2097152,"default")).nameType=dl("default"),r.target=Gn(t),n.set("default",r),n=Li(r=pn(2048,"__type"),n,Zx.emptyArray,Zx.emptyArray,void 0,void 0),r.type=n,i.syntheticType=ug(e)?il(e,n,r,0,!1):n):i.syntheticType=e),i.syntheticType}return e}function ty(e){if(Zx.isRequireCall(e,!0)){if(!Zx.isIdentifier(e.expression))return Zx.Debug.fail();var t=Nn(e.expression,e.expression.escapedText,111551,void 0,void 0,!0);if(t===pe)return 1;if(!(2097152&t.flags)){e=16&t.flags?244:3&t.flags?242:0;if(0!=e){e=Zx.getDeclarationOfKind(t,e);return e&&8388608&e.flags}}}}function ry(e){return function(e){if(e.questionDotToken||32&e.flags)return Gx(e.template,Zx.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain);return!1}(e)||Fx(e,e.typeArguments),M<2&&Sx(e,131072),sc(Gm(e))}function ny(e,t,r,n){n=ph(r,n);if(Zx.isConstTypeReference(t))return function e(t){switch(t.kind){case 10:case 14:case 8:case 9:case 106:case 91:case 192:case 193:return!0;case 200:return e(t.expression);case 207:var r=t.operator,n=t.operand;return 40===r&&(8===n.kind||9===n.kind)||39===r&&8===n.kind;case 194:case 195:if(n=t.expression,Zx.isIdentifier(n))return(n=Rb(n))&&2097152&n.flags&&(n=Qn(n)),!!(n&&384&n.flags&&1===lo(n))}return!1}(r)||un(r,Zx.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),ll(n);Db(t),n=Td(rd(n));t=gl(t);return I&&t!==Ae&&(n_(t,Ad(n))||f_(n,t,e,Zx.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)),t}function iy(e){return 32&e.flags?(r=ph((t=e).expression),xd(yd(n=Dd(r,t.expression)),t,n!==r)):yd(ph(e.expression));var t,r,n}function ay(e){return function(e){var t=e.name.escapedText;switch(e.keywordToken){case 99:if("target"!==t)return Gx(e.name,Zx.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,e.name.escapedText,Zx.tokenToString(e.keywordToken),"target");break;case 96:if("meta"!==t)Gx(e.name,Zx.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,e.name.escapedText,Zx.tokenToString(e.keywordToken),"meta")}}(e),99===e.keywordToken?(t=e,(r=Zx.getNewTargetContainer(t))?162!==r.kind?qa(vi(r)):qa(vi(r.parent)):(un(t,Zx.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Ae)):96===e.keywordToken?function(e){x!==Zx.ModuleKind.ESNext&&x!==Zx.ModuleKind.System&&un(e,Zx.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_esnext_or_system);var t=Zx.getSourceFileOfNode(e);return Zx.Debug.assert(!!(2097152&t.flags),"Containing file is missing import meta node flag."),Zx.Debug.assert(!!t.externalModuleIndicator,"Containing file should be a module."),"meta"===e.name.escapedText?(Yt=Yt||Gc("ImportMeta",0,!0))||it:Ae}(e):Zx.Debug.assertNever(e.keywordToken);var t,r}function oy(e){var t=qa(e);if(Q){e=e.valueDeclaration;if(e&&Zx.hasInitializer(e))return md(t)}return t}function sy(e,t){var r=e.parameters.length-(mD(e)?1:0);if(t<r)return e.parameters[t].escapedName;var n=e.parameters[r]||Ce,e=qa(n);if(sd(e)){e=e.target.associatedNames,r=t-r;return e&&e[r]||n.escapedName+"_"+r}return n.escapedName}function cy(e,t){return uy(e,t)||ke}function uy(e,t){var r=e.parameters.length-(mD(e)?1:0);if(t<r)return oy(e.parameters[t]);if(mD(e)){e=qa(e.parameters[r]),r=t-r;if(!sd(e)||e.target.hasRestElement||r<Ac(e).length)return Ju(e,dl(r))}}function ly(e,t){var r=_y(e),n=fy(e),i=r-(n?1:0);if(n&&t===i)return n;for(var a=[],o=[],s=t;s<i;s++)a.push(cy(e,s)),o.push(sy(e,s));n&&(a.push(Ju(n,Be)),o.push(sy(e,i)));r=dy(e);return cu(a,r<t?0:r-t,!!n,!1,o)}function _y(e){var t=e.parameters.length;if(mD(e)){e=qa(e.parameters[t-1]);if(sd(e))return t+Ac(e).length-1}return t}function dy(e,t){if(mD(e)){var r=qa(e.parameters[e.parameters.length-1]);if(sd(r)){r=r.target.minLength;if(0<r)return e.parameters.length-1+r}}return!t&&16&e.flags?0:e.minArgumentCount}function py(e){if(mD(e)){e=qa(e.parameters[e.parameters.length-1]);return!sd(e)||e.target.hasRestElement}return!1}function fy(e){if(mD(e)){var t=qa(e.parameters[e.parameters.length-1]);return sd(t)?(e=cd(e=t))&&nu(e):t}}function gy(e){e=fy(e);return!e||q_(e)||fa(e)||0!=(131072&Is(e).flags)?void 0:e}function my(e){return yy(e,He)}function yy(e,t){return 0<e.parameters.length?cy(e,0):t}function hy(e,t){e.typeParameters=t.typeParameters,t.thisParameter&&((i=e.thisParameter)&&(!i.valueDeclaration||i.valueDeclaration.type)||(i||(e.thisParameter=Cd(t.thisParameter,void 0)),vy(e.thisParameter,qa(t.thisParameter))));for(var r=e.parameters.length-(mD(e)?1:0),n=0;n<r;n++){var i=e.parameters[n];Zx.getEffectiveTypeAnnotationNode(i.valueDeclaration)||vy(i,uy(t,n))}mD(e)&&(i=Zx.last(e.parameters),!Zx.isTransientSymbol(i)&&Zx.getEffectiveTypeAnnotationNode(i.valueDeclaration)||vy(i,ly(t,r)))}function vy(e,t){var r=Dn(e);r.type||(e=e.valueDeclaration,r.type=t||Pa(e,!0),75!==e.name.kind&&(r.type===Pe&&(r.type=Fa(e.name)),function e(t){for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];Zx.isOmittedExpression(i)||(75===i.name.kind?Dn(vi(i)).type=ba(i):e(i.name))}}(e.name)))}function by(e){var t=Yc(!0);return t!==st?kc(t,[e=Rh(e)||Pe]):Pe}function xy(e){var t=(Rt=Rt||Gc("PromiseLike",1,!0))||st;return t!==st?kc(t,[e=Rh(e)||Pe]):Pe}function Dy(e,t){t=by(t);return t===Pe?(un(e,Zx.isImportCall(e)?Zx.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:Zx.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),Ae):(Zc(!0)||un(e,Zx.isImportCall(e)?Zx.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:Zx.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 Sy(e,t){if(!e.body)return Ae;var r,n,i,a,o,s=Zx.getFunctionFlags(e),c=0!=(2&s),u=0!=(1&s),l=We;if(223!==e.body.kind)r=Yy(e.body,t&&-9&t),c&&(r=Lh(r,e,Zx.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member));else if(u){var _=Ay(e,t);_?0<_.length&&(r=gu(_,2)):l=He;var _=(d=e,n=t,i=[],a=[],o=0!=(2&Zx.getFunctionFlags(d)),Zx.forEachYieldExpression(d.body,function(e){var t=e.expression?ph(e.expression,n):Ie;Zx.pushIfUnique(i,Ty(e,t,ke,o)),(e=e.asteriskToken?(t=Pv(t,o?19:17,e.expression))&&t.nextType:Kf(e))&&Zx.pushIfUnique(a,e)}),{yieldTypes:i,nextTypes:a}),d=_.yieldTypes,_=_.nextTypes,d=Zx.some(d)?gu(d,2):void 0,_=Zx.some(_)?xu(_):void 0}else{var p=Ay(e,t);if(!p)return 2&s?Dy(e,He):He;if(0===p.length)return 2&s?Dy(e,We):We;r=gu(p,2)}return(r||d||_)&&(d&&wd(e,d,3),r&&wd(e,r,1),_&&wd(e,_,2),(r&&ed(r)||d&&ed(d)||_&&ed(_))&&(s=(t=Xf(e))?t===tc(e)?u?void 0:r:Uf(sc(t),e):void 0,u?(d=od(d,s,0,c),r=od(r,s,1,c),_=od(_,s,2,c)):(p=s,t=c,(s=r)&&ed(s)&&(s=ad(s,p?t?Mh(p):p:void 0)),r=s)),d=d&&Ad(d),r=r&&Ad(r),_=_&&Ad(_)),u?Cy(d||He,r||l,_||Af(2,e)||Pe,c):c?by(r||l):r||l}function Cy(e,t,r,n){var i=n?vr:br,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Pe,t=i.resolveIterationType(t,void 0)||Pe,r=i.resolveIterationType(r,void 0)||Pe,a!==st)return tu(a,[e,t,r]);var o=i.getGlobalIterableIteratorType(!1),n=o!==st?Mv(o,i):void 0,a=n?n.returnType:ke,n=n?n.nextType:we;return t_(t,a)&&t_(n,r)?o!==st?tu(o,[e]):(i.getGlobalIterableIteratorType(!0),it):(i.getGlobalGeneratorType(!0),it)}function Ty(e,t,r,n){var i=e.expression||e,t=e.asteriskToken?Tv(n?19:17,t,r,i):t;return n?Rh(t,i,e.asteriskToken?Zx.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Zx.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 ky(e,t,r,n){var i=0;if(n){for(var a=t;a<r.length;a++)i|=iD.get(r[a])||32768;for(a=e;a<t;a++)i&=~(iD.get(r[a])||0);for(a=0;a<e;a++)i|=iD.get(r[a])||32768}else{for(a=e;a<t;a++)i|=nD.get(r[a])||128;for(a=0;a<e;a++)i&=~(nD.get(r[a])||0)}return i}function Ey(e){var t=Sn(e);return void 0!==t.isExhaustive?t.isExhaustive:t.isExhaustive=function(e){if(204===e.expression.kind){var t=lh(e.expression.expression),r=ky(0,0,Op(e,!1),!0);return!!(131072&Bp(xs(t)||t,function(e){return(xp(e)&r)===r}).flags)}t=lh(e.expression);if(!td(t))return!1;e=Ip(e);return!(!e.length||Zx.some(e,$_))&&function(e,t){return 1048576&e.flags?!Zx.forEach(e.types,function(e){return!Zx.contains(t,e)}):Zx.contains(t,e)}(jp(t,ll),e)}(e)}function Ny(e){return e.endFlowNode&&rf(e.endFlowNode)}function Ay(t,r){var n=Zx.getFunctionFlags(t),i=[],a=Ny(t),o=!1;if(Zx.forEachReturnStatement(t.body,function(e){e=e.expression;e?(e=Yy(e,r&&-9&r),2&n&&(e=Lh(e,t,Zx.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),Zx.pushIfUnique(i,e)):a=!0}),0!==i.length||a||!o&&!function(e){switch(e.kind){case 201:case 202:return!0;case 161:return 193===e.parent.kind;default:return!1}}(t))return!(Q&&i.length&&a)||Qm(t)&&i.some(function(e){return e.symbol===t.symbol})||Zx.pushIfUnique(i,we),i}function Fy(e,t){if(I){var r=Zx.getFunctionFlags(e),t=t&&Xv(t,r);if((!t||!jy(t,16385))&&160!==e.kind&&!Zx.nodeIsMissing(e.body)&&223===e.body.kind&&Ny(e)){r=512&e.flags;if(t&&131072&t.flags)un(Zx.getEffectiveReturnTypeNode(e),Zx.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(t&&!r)un(Zx.getEffectiveReturnTypeNode(e),Zx.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(t&&Q&&!t_(we,t))un(Zx.getEffectiveReturnTypeNode(e)||e,Zx.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(G.noImplicitReturns){if(!t){if(!r)return;if(Yv(e,sc(tc(e))))return}un(Zx.getEffectiveReturnTypeNode(e)||e,Zx.Diagnostics.Not_all_code_paths_return_a_value)}}}}function Py(e,t){if(Zx.Debug.assert(161!==e.kind||Zx.isObjectLiteralMethod(e)),Cb(e),t&&4&t&&ql(e)){if(!Zx.getEffectiveReturnTypeNode(e)&&!Hl(e)){var r=Yf(e);if(r&&Ud(sc(r))){var n=Sn(e);if(n.contextFreeType)return n.contextFreeType;var i=Sy(e,t),a=Bo(void 0,void 0,void 0,Zx.emptyArray,i,void 0,0,0),o=Li(e.symbol,A,[a],Zx.emptyArray,void 0,void 0);return o.objectFlags|=2097152,n.contextFreeType=o}}return ct}return Ax(e)||201!==e.kind||Mx(e),i=t,1024&(n=Sn(a=e)).flags||(o=Yf(a),1024&n.flags||(n.flags|=1024,(t=Zx.firstOrUndefined(Js(qa(vi(a)),0)))&&(ql(a)&&(o?(n=qf(a),i&&2&i&&function(e,t,r){for(var n=e.parameters.length-(mD(e)?1:0),i=0;i<n;i++){var a=e.parameters[i].valueDeclaration;!a.type||(a=Zx.getEffectiveTypeAnnotationNode(a))&&Zd(r.inferences,gl(a),cy(t,i))}var o,s=fy(t);s&&262144&s.flags&&(hy(e,Pl(t,r.nonFixingMapper)),o=_y(t)-1,Zd(r.inferences,ly(e,o),s))}(t,o,n),n=n?Pl(o,n.mapper):o,hy(t,n)):function(e){e.thisParameter&&vy(e.thisParameter);for(var t=0,r=e.parameters;t<r.length;t++)vy(r[t])}(t)),!o||cc(a)||t.resolvedReturnType||(i=Sy(a,i),t.resolvedReturnType||(t.resolvedReturnType=i)),yh(a)))),qa(vi(e))}function wy(e,t,r,n){if(void 0===n&&(n=!1),t_(t,tt))return!0;t=n&&Oh(t);return dn(e,!!t&&t_(t,tt),r),!1}function Iy(e){if(!Zx.isCallExpression(e))return!1;if(!Zx.isBindableObjectDefinePropertyCall(e))return!1;var t=Yy(e.arguments[2]);if(pa(t,"value")){var r=Bs(t,"writable"),e=r&&qa(r);if(!e||e===Je||e===ze)return!0;if(r&&r.valueDeclaration&&Zx.isPropertyAssignment(r.valueDeclaration)){r=ph(r.valueDeclaration.initializer);if(r===Je||r===ze)return!0}return!1}return!Bs(t,"set")}function Oy(e){return!!(8&Zx.getCheckFlags(e)||4&e.flags&&64&Zx.getDeclarationModifierFlagsFromSymbol(e)||3&e.flags&&2&Fg(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags||Zx.some(e.declarations,Iy))}function My(e,t,r){if(0!==r){if(Oy(t)){if(4&t.flags&&Zx.isAccessExpression(e)&&104===e.expression.kind){var n=Zx.getContainingFunction(e);if(!n||162!==n.kind)return 1;if(t.valueDeclaration){var i=Zx.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(Zx.isAccessExpression(e)){e=Zx.skipParentheses(e.expression);if(75===e.kind){e=Sn(e).resolvedSymbol;if(2097152&e.flags){e=Mn(e);return e&&256===e.kind}}}}}function Ly(e,t,r){var n=Zx.skipOuterExpressions(e,7);if(75===n.kind||Zx.isAccessExpression(n)){if(!(32&n.flags))return 1;un(e,r)}else un(e,t)}function Ry(e){var t,r,n;I&&(32768&e.flags||(n=e,n=Zx.getThisContainer(n,!0),Zx.isSourceFile(n)?qx(t=Zx.getSourceFileOfNode(e))||(r=void 0,Zx.isEffectiveExternalModule(t,G)||(r=r||Zx.getSpanOfTokenAtPosition(t,e.pos),a=Zx.createFileDiagnostic(t,r.start,r.length,Zx.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),Xr.add(a)),(x!==Zx.ModuleKind.ESNext&&x!==Zx.ModuleKind.System||M<4)&&(r=Zx.getSpanOfTokenAtPosition(t,e.pos),a=Zx.createFileDiagnostic(t,r.start,r.length,Zx.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher),Xr.add(a))):qx(t=Zx.getSourceFileOfNode(e))||(r=Zx.getSpanOfTokenAtPosition(t,e.pos),a=Zx.createFileDiagnostic(t,r.start,r.length,Zx.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),(r=Zx.getContainingFunction(e))&&162!==r.kind&&0==(2&Zx.getFunctionFlags(r))&&(i=Zx.createDiagnosticForNode(r,Zx.Diagnostics.Did_you_mean_to_mark_this_function_as_async),Zx.addRelatedInfo(a,i)),Xr.add(a))),Nf(e)&&un(e,Zx.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer));var i=ph(e.expression),a=Lh(i,e,Zx.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return a!==i||a===Ae||3&i.flags||ln(!1,Zx.createDiagnosticForNode(e,Zx.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),a}function By(e){return jy(e,2112)?Jy(e,3)||jy(e,296)?tt:je:Be}function jy(e,t){if(e.flags&t)return!0;if(3145728&e.flags)for(var r=0,n=e.types;r<n.length;r++)if(jy(n[r],t))return!0;return!1}function Jy(e,t,r){return!!(e.flags&t)||!(r&&114691&e.flags)&&(!!(296&t)&&t_(e,Be)||!!(2112&t)&&t_(e,je)||!!(132&t)&&t_(e,Re)||!!(528&t)&&t_(e,Ke)||!!(16384&t)&&t_(e,We)||!!(131072&t)&&t_(e,He)||!!(65536&t)&&t_(e,Me)||!!(32768&t)&&t_(e,we)||!!(4096&t)&&t_(e,qe)||!!(67108864&t)&&t_(e,Ze))}function zy(e,t,r){return 1048576&e.flags?Zx.every(e.types,function(e){return zy(e,t,r)}):Jy(e,t,r)}function Uy(e){return 16&Zx.getObjectFlags(e)&&e.symbol&&Vy(e.symbol)}function Vy(e){return 0!=(128&e.flags)}function Ky(e,t,r,n,i){void 0===i&&(i=!1);var a=e.properties,o=a[r];if(281===o.kind||282===o.kind){var s=o.name,c=Su(s);!ko(c)||(e=Bs(t,Po(c)))&&(tm(e,o,i),wg(o,!1,t,e));s=ya(o,Ju(t,c,s));return Wy(282===o.kind?o:o.initializer,s)}if(283===o.kind){if(!(r<a.length-1)){M<99&&Sx(o,4);var u=[];if(n)for(var l=0,_=n;l<_.length;l++){var d=_[l];Zx.isSpreadAssignment(d)||u.push(d.name)}s=ma(t,u,t.symbol);return kx(n,Zx.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Wy(o.expression,s)}un(o,Zx.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}else un(o,Zx.Diagnostics.Property_assignment_expected)}function qy(e,t,r,n,i){var a=e.elements,o=a[r];if(215!==o.kind){if(213!==o.kind){var s=dl(r);if(Q_(t)){var c=Zf(o)?8:0,c=zu(t,s,Em(o,s),c)||Ae;return Wy(o,ya(o,Zf(o)?Dp(c,524288):c),i)}return Wy(o,n,i)}if(r<a.length-1)un(o,Zx.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{o=o.expression;if(209!==o.kind||62!==o.operatorToken.kind)return kx(e.elements,Zx.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Wy(o,Rp(t,sd)?jp(t,function(e){return uu(e,r)}):nu(n),i);un(o.operatorToken,Zx.Diagnostics.A_rest_element_cannot_have_an_initializer)}}}function Wy(e,t,r,n){var i,e=282===e.kind?((i=e).objectAssignmentInitializer&&(!Q||32768&dd(ph(i.objectAssignmentInitializer))||(t=Dp(t,524288)),function(e,t,r,n,i){var a=t.kind;if(62===a&&(193===e.kind||192===e.kind))return Wy(e,ph(r,n),n,104===r.kind);a=(55===a||56===a||60===a?xv:ph)(e,n),n=ph(r,n),Qy(e,t,r,a,n,i)}(i.name,i.equalsToken,i.objectAssignmentInitializer,r)),e.name):e;return 209===e.kind&&62===e.operatorToken.kind&&(Gy(e,r),e=e.left),193===e.kind?function(e,t,r){var n=e.properties;if(Q&&0===n.length)return Jg(t,e);for(var i=0;i<n.length;i++)Ky(e,t,i,n,r);return t}(e,t,n):(192===e.kind?function(e,t,r){var n=e.elements;M<2&&G.downlevelIteration&&Sx(e,512);for(var i=Tv(65,t,we,e)||Ae,a=0;a<n.length;a++)qy(e,t,a,i,r);return t}:function(e,t,r){var n=ph(e,r),i=283===e.parent.kind?Zx.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:Zx.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,r=283===e.parent.kind?Zx.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:Zx.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;Ly(e,i,r)&&o_(t,n,e,e);Zx.isPrivateIdentifierPropertyAccessExpression(e)&&Sx(e.parent,524288);return t})(e,t,r)}function Hy(e,t){return 0!=(98304&t.flags)||n_(e,t)}function Gy(e,t){for(var r,n,i,a={expr:[e],state:[0],leftType:[void 0]},o=0;0<=o;)switch(e=a.expr[o],a.state[o]){case 0:if(Zx.isInJSFile(e)&&Zx.getAssignedExpandoInitializer(e)){u(ph(e.right,t));break}if(s=i=void 0,i=(n=e).left,s=n.operatorToken,n=n.right,60===s.kind&&(!Zx.isBinaryExpression(i)||56!==i.operatorToken.kind&&55!==i.operatorToken.kind||Gx(i,Zx.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,Zx.tokenToString(i.operatorToken.kind),Zx.tokenToString(s.kind)),!Zx.isBinaryExpression(n)||56!==n.operatorToken.kind&&55!==n.operatorToken.kind||Gx(n,Zx.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,Zx.tokenToString(n.operatorToken.kind),Zx.tokenToString(s.kind))),62===(s=e.operatorToken.kind)&&(193===e.left.kind||192===e.left.kind)){u(Wy(e.left,ph(e.right,t),t,104===e.right.kind));break}l(1),_(e.left);break;case 1:var s,c=r;a.leftType[o]=c,55!==(s=e.operatorToken.kind)&&56!==s&&60!==s||bv(c,e.left),l(2),_(e.right);break;case 2:c=a.leftType[o];u(Qy(e.left,e.operatorToken,e.right,c,r,e));break;default:return Zx.Debug.fail("Invalid state "+a.state[o]+" for checkBinaryExpression")}return r;function u(e){r=e,o--}function l(e){a.state[o]=e}function _(e){Zx.isBinaryExpression(e)?(o++,a.expr[o]=e,a.state[o]=0,a.leftType[o]=void 0):r=ph(e,t)}}function Qy(n,a,i,o,s,c){var e,t,r,u,l,_=a.kind;switch(_){case 41:case 42:case 65:case 66:case 43:case 67:case 44:case 68:case 40:case 64:case 47:case 69:case 48:case 70:case 49:case 71:case 51:case 73:case 52:case 74:case 50:case 72:if(o===Ge||s===Ge)return Ge;o=Jg(o,n),s=Jg(s,i);var d=void 0;if(528&o.flags&&528&s.flags&&void 0!==(d=function(e){switch(e){case 51:case 73:return 56;case 52:case 74:return 37;case 50:case 72:return 55;default:return}}(a.kind)))return un(c||a,Zx.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Zx.tokenToString(a.kind),Zx.tokenToString(d)),Be;var p=wy(n,o,Zx.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),d=wy(i,s,Zx.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);if(Jy(o,3)&&Jy(s,3)||!jy(o,2112)&&!jy(s,2112))f=Be;else if(m(o,s)){switch(_){case 49:case 71:b()}f=je}else b(m),f=Ae;return p&&d&&h(f),f;case 39:case 63:if(o===Ge||s===Ge)return Ge;Jy(o,132)||Jy(s,132)||(o=Jg(o,n),s=Jg(s,i));var f=void 0;if(Jy(o,296,!0)&&Jy(s,296,!0)?f=Be:Jy(o,2112,!0)&&Jy(s,2112,!0)?f=je:Jy(o,132,!0)||Jy(s,132,!0)?f=Re:(fa(o)||fa(s))&&(f=o===Ae||s===Ae?Ae:ke),f&&!y(_))return f;if(f)return 63===_&&h(f),f;return b(function(e,t){return Jy(e,2543)&&Jy(t,2543)}),ke;case 29:case 31:case 32:case 33:return y(_)&&(o=rd(Jg(o,n)),s=rd(Jg(s,i)),v(function(e,t){return n_(e,t)||n_(t,e)||t_(e,tt)&&t_(t,tt)})),Ke;case 34:case 35:case 36:case 37:return v(function(e,t){return Hy(e,t)||Hy(t,e)}),Ke;case 98:return t=n,r=i,l=s,(u=o)===Ge||l===Ge?Ge:(!fa(u)&&zy(u,131068)&&un(t,Zx.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),fa(l)||Ub(l)||e_(l,vt)||un(r,Zx.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Ke);case 97:return u=n,t=i,l=s,(r=o)===Ge||l===Ge?Ge:(r=Jg(r,u),l=Jg(l,t),n_(r,Re)||Jy(r,12584)||un(u,Zx.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),zy(l,126091264)||un(t,Zx.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Ke);case 55:return 4194304&xp(o)?gu([jp(Q?o:rd(s),fd),s]):o;case 56:return 8388608&xp(o)?gu([pd(o),s],2):o;case 60:return 262144&xp(o)?gu([yd(o),s],2):o;case 62:var g=Zx.isBinaryExpression(n.parent)?Zx.getAssignmentDeclarationKind(n.parent):0;return function(e){if(2===g)for(var t=0,r=_s(e);t<r.length;t++){var n,i=r[t],a=qa(i);a.symbol&&32&a.symbol.flags&&(n=i.escapedName,(a=Nn(i.valueDeclaration,n,788968,void 0,n,!1))&&a.declarations.some(Zx.isJSDocTypedefTag)&&(hn(a,Zx.Diagnostics.Duplicate_identifier_0,Zx.unescapeLeadingUnderscores(n),i),hn(i,Zx.Diagnostics.Duplicate_identifier_0,Zx.unescapeLeadingUnderscores(n),a)))}}(s),function(e){switch(e){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var t=vi(n),r=Zx.getAssignedExpandoInitializer(i);return r&&Zx.isObjectLiteralExpression(r)&&t&&Zx.hasEntries(t.exports);default:return!1}}(g)?(524288&s.flags&&(2===g||6===g||y_(s)||bp(s)||1&Zx.getObjectFlags(s))||h(s),o):(h(s),Td(s));case 27:return G.allowUnreachableCode||!function e(t){switch((t=Zx.skipParentheses(t)).kind){case 75:case 10:case 13:case 198:case 211:case 14:case 8:case 9:case 106:case 91:case 100:case 146:case 201:case 214:case 202:case 192:case 193:case 204:case 218:case 267:case 266:return!0;case 210:return e(t.whenTrue)&&e(t.whenFalse);case 209:return!Zx.isAssignmentOperator(t.operatorToken.kind)&&(e(t.left)&&e(t.right));case 207:case 208:switch(t.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 205:case 199:case 217:default:return!1}}(n)||75===(e=i).kind&&"eval"===e.escapedText||un(n,Zx.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects),s;default:return Zx.Debug.fail()}function m(e,t){return Jy(e,2112)&&Jy(t,2112)}function y(e){var t=jy(o,12288)?n:jy(s,12288)?i:void 0;if(!t)return 1;un(t,Zx.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,Zx.tokenToString(e))}function h(e){I&&Zx.isAssignmentOperator(_)&&(!Ly(n,Zx.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,Zx.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)||Zx.isIdentifier(n)&&"exports"===Zx.unescapeLeadingUnderscores(n.escapedText)||o_(e,o,n,i))}function v(e){return!e(o,s)&&(b(e),1)}function b(e){var t=!1,r=c||a;e&&(n=Rh(o),i=Rh(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=rd(e),t=rd(t);r(e,t)||(n=e,i=t);return[n,i]}(o,s,e))[0],i=e[1]);n=Zi(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 dn(e,t,Zx.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,i,r,n);return}(r,t,i,n)&&dn(r,t,Zx.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,Zx.tokenToString(a.kind),i,n)}}function Xy(e,t,r,n){var i=274!==(o=e).kind||Zx.isJsxSelfClosingElement(o.parent)?o:o.parent.parent,a=i.contextualType,o=i.inferenceContext;try{i.contextualType=t;var s=ph(e,1|n|((i.inferenceContext=r)?2:0));return jy(s,2944)&&eh(s,Uf(t,e))?ll(s):s}finally{i.contextualType=a,i.inferenceContext=o}}function Yy(e,t){var r=Sn(e);if(!r.resolvedType){if(t&&0!==t)return ph(e,t);var n=Sr,i=nr;Sr=Cr,nr=void 0,r.resolvedType=ph(e,t),nr=i,Sr=n}return r.resolvedType}function Zy(e,t){var r=Zx.getEffectiveInitializer(e),r=_h(r)||(t?Xy(r,t,void 0,0):Yy(r));return Zx.isParameter(e)&&190===e.name.kind&&sd(r)&&!r.target.hasRestElement&&Fc(r)<e.name.elements.length?function(e,t){for(var r=t.elements,t=Fc(e),n=t?Ac(e).slice():[],i=t;i<r.length;i++){var a=r[i];(i<r.length-1||191!==a.kind||!a.dotDotDotToken)&&(n.push(!Zx.isOmittedExpression(a)&&Zf(a)?Na(a,!1,!1):ke),Zx.isOmittedExpression(a)||Zf(a)||Pd(a,ke))}return cu(n,e.target.minLength,!1,e.target.readonly)}(r,e.name):r}function $y(e,t){t=2&Zx.getCombinedNodeFlags(e)||Zx.isDeclarationReadonly(e)?t:nd(t);if(Zx.isInJSFile(e)){if(98304&t.flags)return Pd(e,ke),ke;if(X_(t))return Pd(e,At),At}return t}function eh(t,e){if(e){if(3145728&e.flags){var r=e.types;return Zx.some(r,function(e){return eh(t,e)})}if(58982400&e.flags){r=xs(e)||Pe;return jy(r,4)&&jy(t,128)||jy(r,8)&&jy(t,256)||jy(r,64)&&jy(t,2048)||jy(r,4096)&&jy(t,8192)||eh(t,r)}return!!(4194432&e.flags&&jy(t,128)||256&e.flags&&jy(t,256)||2048&e.flags&&jy(t,2048)||512&e.flags&&jy(t,512)||8192&e.flags&&jy(t,8192))}return!1}function th(e){e=e.parent;return Zx.isAssertionExpression(e)&&Zx.isConstTypeReference(e.type)||(Zx.isParenthesizedExpression(e)||Zx.isArrayLiteralExpression(e)||Zx.isSpreadElement(e))&&th(e)||(Zx.isPropertyAssignment(e)||Zx.isShorthandPropertyAssignment(e))&&th(e.parent)}function rh(e,t,r,n){t=ph(e,t,n);return th(e)?ll(t):(n=e,199===(n=Zx.skipParentheses(n)).kind||217===n.kind?t:ad(t,Uf(2===arguments.length?Kf(e):r,e)))}function nh(e,t){return 154===e.name.kind&&ag(e.name),rh(e.initializer,t)}function ih(e,t){return zx(e),154===e.name.kind&&ag(e.name),ah(e,Py(e,t),t)}function ah(e,t,r){if(r&&10&r){var n=ym(t,0,!0),i=ym(t,1,!0),a=n||i;if(a&&a.typeParameters){i=zf(e,2);if(i){i=ym(yd(i),n?0:1,!1);if(i&&!i.typeParameters){if(8&r)return oh(e,r),ct;n=qf(e),r=n.signature&&sc(n.signature),e=r&&mm(r);if(e&&!e.typeParameters&&!Zx.every(n.inferences,sh)){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;ch(e.inferredTypeParameters,s)||ch(i,s)?((s=wi(pn(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(!ch(e,a))return a}}(Zx.concatenate(e.inferredTypeParameters,i),s)))).target=c,r=Zx.append(r,c),n=Zx.append(n,s),i.push(s)):i.push(c)}if(n)for(var c,u=bl(r,n),l=0,_=n;l<_.length;l++)(c=_[l]).mapper=u;return i}(n,a.typeParameters),e=dc(a,r),o=Zx.map(n.inferences,function(e){return jd(e.typeParameter)});if(Id(e,i,function(e,t){Zd(o,e,t,0,!0)}),Zx.some(o,sh)&&(Od(e,i,function(e,t){Zd(o,e,t)}),!function(e,t){for(var r=0;r<e.length;r++)if(sh(e[r])&&sh(t[r]))return!0;return!1}(n.inferences,o)))return function(e,t){for(var r=0;r<e.length;r++)!sh(e[r])&&sh(t[r])&&(e[r]=t[r])}(n.inferences,o),n.inferredTypeParameters=Zx.concatenate(n.inferredTypeParameters,r),mc(e)}return mc(hm(a,i,n))}}}}return t}function oh(e,t){2&t&&(qf(e).flags|=4)}function sh(e){return!(!e.candidates&&!e.contraCandidates)}function ch(e,t){return Zx.some(e,function(e){return e.symbol.escapedName===t})}function uh(e){e=gm(e);if(e&&!e.typeParameters)return sc(e)}function lh(e){var t=_h(e);if(t)return t;if(67108864&e.flags&&nr){var r=nr[uD(e)];if(r)return r}t=Er,r=ph(e);return Er!==t&&((nr=nr||[])[uD(e)]=r,e.flags|=67108864),r}function _h(e){var t,r,n,i=Zx.skipParentheses(e);if(!Zx.isCallExpression(i)||102===i.expression.kind||Zx.isRequireCall(i,!0)||Zm(i)){if(Zx.isAssertionExpression(i)&&!Zx.isConstTypeReference(i.type))return gl(i.type);if(8===e.kind||10===e.kind||106===e.kind||91===e.kind)return ph(e)}else{i=Zx.isCallChain(i)?(r=ph((t=i).expression),n=Dd(r,t.expression),(e=uh(r))&&xd(e,t,n!==r)):uh(Og(i.expression));if(i)return i}}function dh(e){var t=Sn(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=ke;try{return t.contextFreeType=ph(e,4)}finally{e.contextualType=r}}function ph(e,t,r){var n=H;l=0;r=ah(H=e,function(e,t,r){var n=e.kind;if(f)switch(n){case 214:case 201:case 202:f.throwIfCancellationRequested()}switch(n){case 75:return ff(e);case 104:return bf(e);case 102:return Sf(e);case 100:return Le;case 14:case 10:return ul(dl(e.text));case 8:return Xx(e),ul(dl(+e.text));case 9:return function(e){Zx.isLiteralTypeNode(e.parent)||Zx.isPrefixUnaryExpression(e.parent)&&Zx.isLiteralTypeNode(e.parent.parent)||!(M<7)||Gx(e,Zx.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020)}(e),ul(function(e){return dl({negative:!1,base10Value:Zx.parsePseudoBigInt(e.text)})}(e));case 106:return Ue;case 91:return Je;case 211:return function(e){return Zx.forEach(e.templateSpans,function(e){jy(ph(e.expression),12288)&&un(e.expression,Zx.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String)}),Re}(e);case 13:return Et;case 192:return $f(e,t,r);case 193:return cg(e,t);case 194:return Ug(e);case 153:return Vg(e);case 195:return im(e);case 196:if(96===e.expression.kind)return $m(e);case 197:return Ym(e,t);case 198:return ry(e);case 200:return function(e,t){var r=Zx.isInJSFile(e)?Zx.getJSDocTypeTag(e):void 0;if(r)return ny(r,r.typeExpression.type,e.expression,t);return ph(e.expression,t)}(e,t);case 214:return function(e){return nb(e),Cb(e),qa(vi(e))}(e);case 201:case 202:return Py(e,t);case 204:return function(e){return ph(e.expression),$r}(e);case 199:case 217:return function(e){return ny(e,e.type,e.expression)}(e);case 218:return iy(e);case 219:return ay(e);case 203:return function(e){ph(e.expression);var t=Zx.skipParentheses(e.expression);return Zx.isAccessExpression(t)?(194===t.kind&&Zx.isPrivateIdentifier(t.name)&&un(t,Zx.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier),(e=Ti(Sn(t).resolvedSymbol))&&Oy(e)&&un(t,Zx.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property)):un(t,Zx.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Ke}(e);case 205:return function(e){return ph(e.expression),Ie}(e);case 206:return Ry(e);case 207:return function(e){var t=ph(e.operand);if(t===Ge)return Ge;switch(e.operand.kind){case 8:switch(e.operator){case 40:return ul(dl(-e.operand.text));case 39:return ul(dl(+e.operand.text))}break;case 9:if(40===e.operator)return ul(dl({negative:!0,base10Value:Zx.parsePseudoBigInt(e.operand.text)}))}switch(e.operator){case 39:case 40:case 54:return Jg(t,e.operand),jy(t,12288)&&un(e.operand,Zx.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,Zx.tokenToString(e.operator)),39===e.operator?(jy(t,2112)&&un(e.operand,Zx.Diagnostics.Operator_0_cannot_be_applied_to_type_1,Zx.tokenToString(e.operator),Yi(rd(t))),Be):By(t);case 53:xv(e.operand);var r=12582912&xp(t);return 4194304==r?Je:8388608==r?Ue:Ke;case 45:case 46:return wy(e.operand,Jg(t,e.operand),Zx.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Ly(e.operand,Zx.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,Zx.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),By(t)}return Ae}(e);case 208:return function(e){var t=ph(e.operand);return t===Ge?Ge:(wy(e.operand,Jg(t,e.operand),Zx.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Ly(e.operand,Zx.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,Zx.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),By(t))}(e);case 209:return Gy(e,t);case 210:return function(e,t){var r=xv(e.condition);return vv(e.condition,e.whenTrue,r),gu([ph(e.whenTrue,t),ph(e.whenFalse,t)],2)}(e,t);case 213:return function(e,t){return M<2&&Sx(e,G.downlevelIteration?1536:2048),Tv(33,ph(e.expression,t),we,e.expression)}(e,t);case 215:return Ie;case 212:return function(e){I&&(8192&e.flags||Wx(e,Zx.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),Nf(e)&&un(e,Zx.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var t=Zx.getContainingFunction(e);if(!t)return ke;if(!(1&(a=Zx.getFunctionFlags(t))))return ke;var r=0!=(2&a);e.asteriskToken&&(r&&M<99&&Sx(e,53248),!r&&M<2&&G.downlevelIteration&&Sx(e,256));var n=cc(t),i=(o=n&&Gv(n,r))&&o.yieldType||ke,a=o&&o.nextType||ke,o=r?Rh(a)||ke:a,a=e.expression?ph(e.expression):Ie,o=Ty(e,a,o,r);return n&&o&&o_(o,i,e.expression||e,e.expression),e.asteriskToken?Ev(r?19:17,1,a,e.expression)||ke:n?Hv(2,n,r)||ke:Af(2,t)||ke}(e);case 220:return e.type;case 276:return Ag(e,t);case 266:return function(e){return Cb(e),Cg(e)||ke}(e);case 267:return function(e){return Cb(e),Cg(e)||ke}(e);case 270:return function(e){return kg(e.openingFragment),2===G.jsx&&(G.jsxFactory||Zx.getSourceFileOfNode(e).pragmas.has("jsx"))&&un(e,G.jsxFactory?Zx.Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory:Zx.Diagnostics.JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma),pg(e),Cg(e)||ke}(e);case 274:return gg(e,t);case 268:Zx.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Ae}(e,t,r),t);return Uy(r)&&(t=r,194===(e=e).parent.kind&&e.parent.expression===e||195===e.parent.kind&&e.parent.expression===e||(75===e.kind||153===e.kind)&&Mb(e)||172===e.parent.kind&&e.parent.exprName===e||263===e.parent.kind||un(e,Zx.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),G.isolatedModules&&(Zx.Debug.assert(!!(128&t.symbol.flags)),8388608&t.symbol.valueDeclaration.flags&&un(e,Zx.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided))),H=n,r}function fh(e){e.expression&&Wx(e.expression,Zx.Diagnostics.Type_expected),Db(e.constraint),Db(e.default);var t=go(vi(e));xs(t),Ts(t)===lt&&un(e.default,Zx.Diagnostics.Type_parameter_0_has_a_circular_default,Yi(t));var r=ms(t),n=ks(t);r&&n&&a_(n,Lo(Jl(r,Dl(t,n)),n),e.default,Zx.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),I&&eb(e.name,Zx.Diagnostics.Type_parameter_name_cannot_be_0)}function gh(e){Cx(e),pv(e);var t=Zx.getContainingFunction(e);Zx.hasModifier(e,92)&&(162===t.kind&&Zx.nodeIsPresent(t.body)||un(e,Zx.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),162===t.kind&&Zx.isIdentifier(e.name)&&"constructor"===e.name.escapedText&&un(e.name,Zx.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),e.questionToken&&Zx.isBindingPattern(e.name)&&t.body&&un(e,Zx.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&Zx.isIdentifier(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==t.parameters.indexOf(e)&&un(e,Zx.Diagnostics.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),162!==t.kind&&166!==t.kind&&171!==t.kind||un(e,Zx.Diagnostics.A_constructor_cannot_have_a_this_parameter),202===t.kind&&un(e,Zx.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),163!==t.kind&&164!==t.kind||un(e,Zx.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!e.dotDotDotToken||Zx.isBindingPattern(e.name)||t_(Is(qa(e.symbol)),Pt)||un(e,Zx.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function mh(e){var t=function(e){switch(e.parent.kind){case 202:case 165:case 244:case 201:case 170:case 161:case 160:var t=e.parent;if(e===t.type)return t}}(e);if(t){var r=tc(t),n=oc(r);if(n){Db(e.type);var i=e.parameterName;if(0===n.kind||2===n.kind)fl(i);else if(0<=n.parameterIndex)mD(r)&&n.parameterIndex===r.parameters.length-1?un(i,Zx.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):n.type&&a_(n.type,qa(r.parameters[n.parameterIndex]),e.type,void 0,function(){return Zx.chainDiagnosticMessages(void 0,Zx.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(Zx.isBindingPattern(c)&&function e(t,r,n){for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(!Zx.isOmittedExpression(o)){var o=o.name;if(75===o.kind&&o.escapedText===n)return un(r,Zx.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((190===o.kind||189===o.kind)&&e(o,r,n))return!0}}}(c,i,n.parameterName)){a=!0;break}}a||un(e.parameterName,Zx.Diagnostics.Cannot_find_parameter_0,n.parameterName)}}}else un(e,Zx.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}function yh(e){167===e.kind?Cx(r=e)||function(e){var t=e.parameters[0];if(1!==e.parameters.length)return Gx(t?t.name:e,Zx.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(kx(e.parameters,Zx.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return Gx(t.dotDotDotToken,Zx.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(Zx.hasModifiers(t))return Gx(t.name,Zx.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return Gx(t.questionToken,Zx.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return Gx(t.name,Zx.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return Gx(t.name,Zx.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);if(143===t.type.kind||140===t.type.kind)return e.type||Gx(e,Zx.Diagnostics.An_index_signature_must_have_a_type_annotation);var r=gl(t.type);4&r.flags||8&r.flags?Gx(t.name,Zx.Diagnostics.An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead,Zx.getTextOfNode(t.name),Yi(r),Yi(e.type?gl(e.type):ke)):1048576&r.flags&&zy(r,384,!0)?Gx(t.name,Zx.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead):Gx(t.name,Zx.Diagnostics.An_index_signature_parameter_type_must_be_either_string_or_number)}(r):170!==e.kind&&244!==e.kind&&171!==e.kind&&165!==e.kind&&162!==e.kind&&166!==e.kind||Ax(e);var t=Zx.getFunctionFlags(e);if(4&t||(3==(3&t)&&M<99&&Sx(e,12288),2==(3&t)&&M<4&&Sx(e,64),0!=(3&t)&&M<2&&Sx(e,128)),tb(e.typeParameters),Zx.forEach(e.parameters,gh),e.type&&Db(e.type),I){n=e,!void(2<=M||G.noEmit||!Zx.hasRestParameter(n)||8388608&n.flags||Zx.nodeIsMissing(n.body)||Zx.forEach(n.parameters,function(e){e.name&&!Zx.isBindingPattern(e.name)&&e.name.escapedText===de.escapedName&&un(e,Zx.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}));var r,n,i=Zx.getEffectiveReturnTypeNode(e);if(X&&!i)switch(e.kind){case 166:un(e,Zx.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 165:un(e,Zx.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}i&&(1==(5&(r=Zx.getFunctionFlags(e)))?(t=gl(i))===We?un(i,Zx.Diagnostics.A_generator_cannot_have_a_void_type_annotation):a_(Cy(n=Hv(0,t,0!=(2&r))||ke,Hv(1,t,0!=(2&r))||n,Hv(2,t,0!=(2&r))||Pe,!!(2&r)),t,i):2==(3&r)&&function(e,t){var r=gl(t);if(2<=M){if(r===Ae)return;var n=Yc(!0);if(n!==st&&!Wa(r,n))return un(t,Zx.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)}else{if(!function(e){Jh(e&&Zx.getEntityNameFromTypeNode(e))}(t),r===Ae)return;var i=Zx.getEntityNameFromTypeNode(t);if(void 0===i)return un(t,Zx.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,Yi(r));var a=ni(i,111551,!0),n=a?qa(a):Ae;if(n===Ae)return 75===i.kind&&"Promise"===i.escapedText&&Ha(r)===Yc(!1)?un(t,Zx.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):un(t,Zx.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,Zx.entityNameToString(i));a=(jt=jt||Gc("PromiseConstructorLike",0,!0))||it;if(a===it)return un(t,Zx.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,Zx.entityNameToString(i));if(!a_(n,a,t,Zx.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&&Zx.getFirstIdentifier(i),t=Tn(e.locals,a.escapedText,111551);if(t)return un(t.valueDeclaration,Zx.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Zx.idText(a),Zx.entityNameToString(i))}Lh(r,e,Zx.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e,i)),167!==e.kind&&300!==e.kind&&Gh(e)}}function hh(e){for(var t=Zx.createMap(),r=0,n=e.members;r<n.length;r++){var i=n[r];if(158===i.kind){var a=void 0,o=i.name;switch(o.kind){case 10:case 8:a=o.text;break;case 75:a=Zx.idText(o);break;default:continue}t.get(a)?(un(Zx.getNameOfDeclaration(i.symbol.valueDeclaration),Zx.Diagnostics.Duplicate_identifier_0,a),un(i.name,Zx.Diagnostics.Duplicate_identifier_0,a)):t.set(a,!0)}}}function vh(e){if(246===e.kind){var t=vi(e);if(0<t.declarations.length&&t.declarations[0]!==e)return}e=yc(vi(e));if(e)for(var r=!1,n=!1,i=0,a=e.declarations;i<a.length;i++){var o=a[i];if(1===o.parameters.length&&o.parameters[0].type)switch(o.parameters[0].type.kind){case 143:n?un(o,Zx.Diagnostics.Duplicate_string_index_signature):n=!0;break;case 140:r?un(o,Zx.Diagnostics.Duplicate_number_index_signature):r=!0}}}function bh(e){if(Cx(e)||function(e){if(Zx.isClassLike(e.parent)){if(Zx.isStringLiteral(e.name)&&"constructor"===e.name.text)return Gx(e.name,Zx.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(Jx(e.name,Zx.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(M<2&&Zx.isPrivateIdentifier(e.name))return Gx(e.name,Zx.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(246===e.parent.kind){if(Jx(e.name,Zx.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 Gx(e.initializer,Zx.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(173===e.parent.kind){if(Jx(e.name,Zx.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 Gx(e.initializer,Zx.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}8388608&e.flags&&Vx(e);if(Zx.isPropertyDeclaration(e)&&e.exclamationToken&&(!Zx.isClassLike(e.parent)||!e.type||e.initializer||8388608&e.flags||Zx.hasModifier(e,160)))return Gx(e.exclamationToken,Zx.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)}(e)||Ox(e.name),pv(e),Zx.isPrivateIdentifier(e.name)&&M<99)for(var t=Zx.getEnclosingBlockScopeContainer(e);t;t=Zx.getEnclosingBlockScopeContainer(t))Sn(t).flags|=67108864}function xh(e){yh(e),function(e){var t=Zx.isInJSFile(e)?Zx.getJSDocTypeParameterDeclarations(e):void 0,r=e.typeParameters||t&&Zx.firstOrUndefined(t);if(r){t=r.pos===r.end?r.pos:Zx.skipTrivia(Zx.getSourceFileOfNode(e).text,r.pos);return Hx(e,t,r.end-t,Zx.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(e)||function(e){if(e=Zx.getEffectiveReturnTypeNode(e))Gx(e,Zx.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(e),Db(e.body);var t=vi(e),r=Zx.getDeclarationOfKind(t,e.kind);if(e===r&&wh(t),!Zx.nodeIsMissing(e.body)&&I){r=e.parent;if(Zx.getClassExtendsHeritageElement(r)){gf(e.parent,r);t=hf(r),r=yf(e);if(r){if(t&&un(r,Zx.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(99!==G.target||!G.useDefineForClassFields)&&(Zx.some(e.parent.members,function(e){return!!Zx.isPrivateIdentifierPropertyDeclaration(e)||159===e.kind&&!Zx.hasModifier(e,32)&&!!e.initializer})||Zx.some(e.parameters,function(e){return Zx.hasModifier(e,92)}))){for(var n=void 0,i=0,a=e.body.statements;i<a.length;i++){var o=a[i];if(226===o.kind&&Zx.isSuperCall(o.expression)){n=o;break}if(!Zx.isPrologueDirective(o))break}n||un(e,Zx.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else t||un(e,Zx.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Dh(e){var t,r,n;I&&(Ax(e)||function(e){if(!(8388608&e.flags)){if(M<1)return Gx(e.name,Zx.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(void 0===e.body&&!Zx.hasModifier(e,128))return Hx(e,e.end-1,";".length,Zx.Diagnostics._0_expected,"{")}if(e.body&&Zx.hasModifier(e,128))return Gx(e,Zx.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(e.typeParameters)return Gx(e.name,Zx.Diagnostics.An_accessor_cannot_have_type_parameters);if(!function(e){return jx(e)||e.parameters.length===(163===e.kind?0:1)}(e))return Gx(e.name,163===e.kind?Zx.Diagnostics.A_get_accessor_cannot_have_parameters:Zx.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(164===e.kind){if(e.type)return Gx(e.name,Zx.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var t=Zx.Debug.checkDefined(Zx.getSetAccessorValueParameter(e),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return Gx(t.dotDotDotToken,Zx.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return Gx(t.questionToken,Zx.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return Gx(e.name,Zx.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(e)||Ox(e.name),qh(e),yh(e),163===e.kind&&!(8388608&e.flags)&&Zx.nodeIsPresent(e.body)&&256&e.flags&&(512&e.flags||un(e.name,Zx.Diagnostics.A_get_accessor_must_return_a_value)),154===e.name.kind&&ag(e.name),Zx.isPrivateIdentifier(e.name)&&un(e.name,Zx.Diagnostics.An_accessor_cannot_be_named_with_a_private_identifier),Fo(e)||(r=163===e.kind?164:163,(n=Zx.getDeclarationOfKind(vi(e),r))&&((28&(t=Zx.getModifierFlags(e)))!=(28&(r=Zx.getModifierFlags(n)))&&un(e.name,Zx.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility),(128&t)!=(128&r)&&un(e.name,Zx.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),Sh(e,n,Ra,Zx.Diagnostics.get_and_set_accessor_must_have_the_same_type),Sh(e,n,Ba,Zx.Diagnostics.get_and_set_accessor_must_have_the_same_this_type))),n=ja(vi(e)),163===e.kind&&Fy(e,n)),Db(e.body)}function Sh(e,t,r,n){var i=r(e),t=r(t);i&&t&&!Xl(i,t)&&un(e,n)}function Ch(e,t){return ec(Zx.map(e.typeArguments,gl),t,$s(t),Zx.isInJSFile(e))}function Th(e,t){for(var r,n,i=!0,a=0;a<t.length;a++){var o=ms(t[a]);o&&(r||(n=bl(t,r=Ch(e,t))),i=i&&a_(r[a],Jl(o,n),e.typeArguments[a],Zx.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return i}function kh(e){var t=Uc(e);if(t!==Ae){e=Sn(e).resolvedSymbol;if(e)return 524288&e.flags&&Dn(e).typeParameters||(4&Zx.getObjectFlags(t)?t.target.localTypeParameters:void 0)}}function Eh(e){Fx(e,e.typeArguments),169!==e.kind||void 0===e.typeName.jsdocDotPos||Zx.isInJSFile(e)||Zx.isInJSDoc(e)||Hx(e,e.typeName.jsdocDotPos,1,Zx.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),Zx.forEach(e.typeArguments,Db);var t,r=Uc(e);r!==Ae&&(e.typeArguments&&I&&((t=kh(e))&&Th(e,t)),32&r.flags&&8&Sn(e).resolvedSymbol.flags&&un(e,Zx.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,Yi(r)))}function Nh(e,t){if(!(8388608&e.flags))return e;var r=e.objectType,n=e.indexType;if(t_(n,Eu(r,!1)))return 195===t.kind&&Zx.isAssignmentTarget(t)&&32&Zx.getObjectFlags(r)&&1&os(r)&&un(t,Zx.Diagnostics.Index_signature_in_type_0_only_permits_reading,Yi(r)),e;var i=Ns(r);if(Vs(i,1)&&Jy(n,296))return e;if(Iu(r)){var a=Fu(n,t);if(a){i=Lp(i,function(e){return Bs(e,a)});if(i&&24&Zx.getDeclarationModifierFlagsFromSymbol(i))return un(t,Zx.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Zx.unescapeLeadingUnderscores(a)),Ae}}return un(t,Zx.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Yi(n),Yi(r)),Ae}function Ah(e){!function(e){if(147===e.operator){if(144!==e.type.kind)return Gx(e.type,Zx.Diagnostics._0_expected,Zx.tokenToString(144));var t=Zx.walkUpParenthesizedTypes(e.parent);switch(t.kind){case 242:var r=t;if(75!==r.name.kind)return Gx(e,Zx.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!Zx.isVariableDeclarationInVariableStatement(r))return Gx(e,Zx.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&r.parent.flags))return Gx(t.name,Zx.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 159:if(!Zx.hasModifier(t,32)||!Zx.hasModifier(t,64))return Gx(t.name,Zx.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 158:if(!Zx.hasModifier(t,64))return Gx(t.name,Zx.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:Gx(e,Zx.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(138===e.operator&&174!==e.type.kind&&175!==e.type.kind)Wx(e,Zx.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Zx.tokenToString(144))}(e),Db(e.type)}function Fh(e){return(Zx.hasModifier(e,8)||Zx.isPrivateIdentifierPropertyDeclaration(e))&&!!(8388608&e.flags)}function Ph(e,t){var r=Zx.getCombinedModifierFlags(e);return 246!==e.parent.kind&&245!==e.parent.kind&&214!==e.parent.kind&&8388608&e.flags&&(2&r||Zx.isModuleBlock(e.parent)&&Zx.isModuleDeclaration(e.parent.parent)&&Zx.isGlobalScopeAugmentation(e.parent.parent)||(r|=1),r|=2),r&t}function wh(t){if(I){for(var e,r,n,i,a,o,s,c,u,l,_=0,d=155,p=!1,f=!0,g=!1,m=t.declarations,y=0!=(16384&t.flags),h=!1,v=!1,b=!1,x=0,D=m;x<D.length;x++){var S=D[x],C=8388608&S.flags,T=246===S.parent.kind||173===S.parent.kind||C;T&&(n=void 0),245!==S.kind&&214!==S.kind||C||(b=!0),244!==S.kind&&161!==S.kind&&160!==S.kind&&162!==S.kind||(_|=C=Ph(S,155),d&=C,p=p||Zx.hasQuestionToken(S),f=f&&Zx.hasQuestionToken(S),Zx.nodeIsPresent(S.body)&&e?y?v=!0:h=!0:n&&n.parent===S.parent&&n.end!==S.pos&&w(n),Zx.nodeIsPresent(S.body)?e=e||S:g=!0,n=S,T||(r=S))}if(v&&Zx.forEach(m,function(e){un(e,Zx.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),h&&Zx.forEach(m,function(e){un(Zx.getNameOfDeclaration(e),Zx.Diagnostics.Duplicate_function_implementation)}),b&&!y&&16&t.flags&&Zx.forEach(m,function(e){vn(e,Zx.Diagnostics.Duplicate_identifier_0,Zx.symbolName(t),m)}),!r||r.body||Zx.hasModifier(r,128)||r.questionToken||w(r),g&&(s=m,c=e,u=155,0!=(_^d)&&(l=Ph(P(s,c),u),Zx.forEach(s,function(e){var t=Ph(e,u)^l;1&t?un(Zx.getNameOfDeclaration(e),Zx.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&t?un(Zx.getNameOfDeclaration(e),Zx.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&t?un(Zx.getNameOfDeclaration(e)||e,Zx.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&t&&un(Zx.getNameOfDeclaration(e),Zx.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})),i=m,a=e,p!==f&&(o=Zx.hasQuestionToken(P(i,a)),Zx.forEach(i,function(e){Zx.hasQuestionToken(e)!==o&&un(Zx.getNameOfDeclaration(e),Zx.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})),e))for(var k=ic(t),E=tc(e),N=0,A=k;N<A.length;N++){var F=A[N];if(!m_(E,F)){Zx.addRelatedInfo(un(F.declaration,Zx.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),Zx.createDiagnosticForNode(e,Zx.Diagnostics.The_implementation_signature_is_declared_here));break}}}function P(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}function w(t){if(!t.name||!Zx.nodeIsMissing(t.name)){var r=!1,e=Zx.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&&(Zx.isPrivateIdentifier(t.name)&&Zx.isPrivateIdentifier(i)&&t.name.escapedText===i.escapedText||Zx.isComputedPropertyName(t.name)&&Zx.isComputedPropertyName(i)||Zx.isPropertyNameLiteral(t.name)&&Zx.isPropertyNameLiteral(i)&&Zx.getEscapedTextOfIdentifierOrLiteral(t.name)===Zx.getEscapedTextOfIdentifierOrLiteral(i)))return void((161===t.kind||160===t.kind)&&Zx.hasModifier(t,32)!==Zx.hasModifier(e,32)&&un(n,Zx.hasModifier(t,32)?Zx.Diagnostics.Function_overload_must_be_static:Zx.Diagnostics.Function_overload_must_not_be_static));if(Zx.nodeIsPresent(e.body))return void un(n,Zx.Diagnostics.Function_implementation_name_must_be_0,Zx.declarationNameToString(t.name))}n=t.name||t;y?un(n,Zx.Diagnostics.Constructor_implementation_is_missing):Zx.hasModifier(t,128)?un(n,Zx.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):un(n,Zx.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}function Ih(e){if(I){var t=e.localSymbol;if((t||(t=vi(e)).exportSymbol)&&Zx.getDeclarationOfKind(t,e.kind)===e){for(var r=0,n=0,i=0,a=0,o=t.declarations;a<o.length;a++){var s=g(p=o[a]),c=Ph(p,513);1&c?512&c?i|=s:r|=s:n|=s}var u=r&n,l=i&(r|n);if(u||l)for(var _=0,d=t.declarations;_<d.length;_++){var p,s=g(p=d[_]),f=Zx.getNameOfDeclaration(p);s&l?un(f,Zx.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Zx.declarationNameToString(f)):s&u&&un(f,Zx.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Zx.declarationNameToString(f))}}}function g(e){var t=e;switch(t.kind){case 246:case 247:case 322:case 315:case 316:return 2;case 249:return Zx.isAmbientModule(t)||0!==Zx.getModuleInstanceState(t)?5:4;case 245:case 248:case 284:return 3;case 290:return 7;case 259:if(!Zx.isEntityNameExpression(t.expression))return 1;t=t.expression;case 253:case 256:case 255:var r=0,n=Qn(vi(t));return Zx.forEach(n.declarations,function(e){r|=g(e)}),r;case 242:case 191:case 244:case 258:case 75:return 1;default:return Zx.Debug.failBadSyntaxKind(t)}}}function Oh(e,t,r,n){e=Mh(e,t);return e&&Rh(e,t,r,n)}function Mh(e,t){if(!fa(e)){var r=e;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(Wa(e,Yc(!1)))return r.promisedTypeOfPromise=Ac(e)[0];e=pa(e,"then");if(!fa(e)){e=e?Js(e,0):Zx.emptyArray;if(0!==e.length){e=Dp(gu(Zx.map(e,my)),2097152);if(!fa(e)){e=Js(e,0);if(0!==e.length)return r.promisedTypeOfPromise=gu(Zx.map(e,my),2);t&&un(t,Zx.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else t&&un(t,Zx.Diagnostics.A_promise_must_have_a_then_method)}}}function Lh(e,t,r,n){return Rh(e,t,r,n)||Ae}function Rh(e,t,r,n){return fa(e)?e:e.awaitedTypeOfType||(e.awaitedTypeOfType=jp(e,t?function(e){return Bh(e,t,r,n)}:Bh))}function Bh(e,t,r,n){var i=e;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;var a=Mh(e);if(a){if(e.id===a.id||0<=Qr.lastIndexOf(a.id))return void(t&&un(t,Zx.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Qr.push(e.id);var o=Rh(a,t,r,n);return Qr.pop(),o?i.awaitedTypeOfType=o:void 0}if(o=e,!((o=pa(o,"then"))&&0<Js(Dp(o,2097152),0).length))return i.awaitedTypeOfType=e;if(t){if(!r)return Zx.Debug.fail();un(t,r,n)}}function jh(e){var t=sc(Gm(e));if(!(1&t.flags)){var r,n=Vm(e);switch(e.parent.kind){case 245:var i=gu([qa(vi(e.parent)),We]);break;case 156:i=We,r=Zx.chainDiagnosticMessages(void 0,Zx.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 159:i=We,r=Zx.chainDiagnosticMessages(void 0,Zx.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 161:case 163:case 164:i=gu([ru(Bb(e.parent)),We]);break;default:return Zx.Debug.fail()}a_(t,i,e,n,function(){return r})}}function Jh(e){var t;e&&(t=Zx.getFirstIdentifier(e),e=2097152|(75===e.kind?788968:1920),(e=Nn(t,t.escapedText,e,void 0,void 0,!0))&&2097152&e.flags&&ki(e)&&!ex(Qn(e))&&!Zn(e)&&ei(e))}function zh(e){e=Uh(e);e&&Zx.isEntityName(e)&&Jh(e)}function Uh(e){if(e)switch(e.kind){case 179:case 178:return Vh(e.types);case 180:return Vh([e.trueType,e.falseType]);case 182:return Uh(e.type);case 169:return e.typeName}}function Vh(e){for(var t,r=0,n=e;r<n.length;r++){for(var i=n[r];182===i.kind;)i=i.type;if(137!==i.kind&&(Q||100!==i.kind&&146!==i.kind)){var a=Uh(i);if(!a)return;if(t){if(!Zx.isIdentifier(t)||!Zx.isIdentifier(a)||t.escapedText!==a.escapedText)return}else t=a}}return t}function Kh(e){var t=Zx.getEffectiveTypeAnnotationNode(e);return Zx.isRestParameter(e)?Zx.getRestParameterElementType(t):t}function qh(e){if(e.decorators&&Zx.nodeCanBeDecorated(e,e.parent,e.parent.parent)){G.experimentalDecorators||un(e,Zx.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(Sx(t,8),156===e.kind&&Sx(t,32),G.emitDecoratorMetadata)switch(Sx(t,16),e.kind){case 245:var r=Zx.getFirstConstructorWithBody(e);if(r)for(var n=0,i=r.parameters;n<i.length;n++)zh(Kh(i[n]));break;case 163:case 164:r=163===e.kind?164:163,r=Zx.getDeclarationOfKind(vi(e),r);zh(La(e)||r&&La(r));break;case 161:for(var a=0,o=e.parameters;a<o.length;a++)zh(Kh(o[a]));zh(Zx.getEffectiveReturnTypeNode(e));break;case 159:zh(Zx.getEffectiveTypeAnnotationNode(e));break;case 156:zh(Kh(e));for(var s=0,c=e.parent.parameters;s<c.length;s++)zh(Kh(c[s]))}Zx.forEach(e.decorators,jh)}}function Wh(e){switch(e.kind){case 75:return e;case 194:return e.name;default:return}}function Hh(t){qh(t),yh(t);var e,r,n=Zx.getFunctionFlags(t);t.name&&154===t.name.kind&&ag(t.name),Fo(t)||(i=vi(t),e=t.localSymbol||i,r=Zx.find(e.declarations,function(e){return e.kind===t.kind&&!(131072&e.flags)}),t===r&&wh(e),i.parent&&Zx.getDeclarationOfKind(i,t.kind)===t&&wh(i));var i=160===t.kind?void 0:t.body;Db(i),Fy(t,cc(t)),I&&!Zx.getEffectiveReturnTypeNode(t)&&(Zx.nodeIsMissing(i)&&!Fh(t)&&Pd(t,ke),1&n&&Zx.nodeIsPresent(i)&&sc(tc(t))),!Zx.isInJSFile(t)||(i=Zx.getJSDocTypeTag(t))&&i.typeExpression&&!Gf(gl(i.typeExpression),t)&&un(i,Zx.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function Gh(e){var t,r;I&&(t=Zx.getSourceFileOfNode(e),(r=Dr.get(t.path))||(r=[],Dr.set(t.path,r)),r.push(e))}function Qh(e,t){for(var r,n,i,a=0,o=e;a<o.length;a++){var c=o[a];switch(c.kind){case 245:case 214:!function(e){for(var t=0,r=c.members;t<r.length;t++){var n=r[t];switch(n.kind){case 161:case 159:case 163:case 164:if(164===n.kind&&32768&n.symbol.flags)break;var i=vi(n);i.isReferenced||!(Zx.hasModifier(n,8)||Zx.isNamedDeclaration(n)&&Zx.isPrivateIdentifier(n.name))||8388608&n.flags||e(n,0,Zx.createDiagnosticForNode(n.name,Zx.Diagnostics._0_is_declared_but_its_value_is_never_read,Qi(i)));break;case 162:for(var a=0,o=n.parameters;a<o.length;a++){var s=o[a];!s.symbol.isReferenced&&Zx.hasModifier(s,8)&&e(s,0,Zx.createDiagnosticForNode(s.name,Zx.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,Zx.symbolName(s.symbol)))}break;case 167:case 222:break;default:Zx.Debug.fail()}}}(t),Zh(c,t);break;case 290:case 249:case 223:case 251:case 230:case 231:case 232:rv(c,t);break;case 162:case 201:case 244:case 202:case 161:case 163:case 164:c.body&&rv(c,t),Zh(c,t);break;case 160:case 165:case 166:case 170:case 171:case 247:case 246:Zh(c,t);break;case 181:n=t,i=void 0,$h(i=(r=c).typeParameter)&&n(r,1,Zx.createDiagnosticForNode(r,Zx.Diagnostics._0_is_declared_but_its_value_is_never_read,Zx.idText(i.name)));break;default:Zx.Debug.assertNever(c,"Node should not have been registered for unused identifiers check")}}}function Xh(e,t,r){var n=Zx.getNameOfDeclaration(e)||e,i=Pb(e)?Zx.Diagnostics._0_is_declared_but_never_used:Zx.Diagnostics._0_is_declared_but_its_value_is_never_read;r(e,0,Zx.createDiagnosticForNode(n,i,t))}function Yh(e){return Zx.isIdentifier(e)&&95===Zx.idText(e).charCodeAt(0)}function Zh(e,t){if(Zx.last(vi(e).declarations)===e)for(var e=Zx.getEffectiveTypeParameterDeclarations(e),r=new Zx.NodeSet,n=0,i=e;n<i.length;n++){var a,o,s,c,u,l=i[n];$h(l)&&(a=Zx.idText(l.name),181!==(o=l.parent).kind&&o.typeParameters.every($h)?r.tryAdd(o)&&(s=Zx.isJSDocTemplateTag(o)?Zx.rangeOfNode(o):Zx.rangeOfTypeParameters(o.typeParameters),c=(u=1===o.typeParameters.length)?Zx.Diagnostics._0_is_declared_but_its_value_is_never_read:Zx.Diagnostics.All_type_parameters_are_unused,u=u?a:void 0,t(l,1,Zx.createFileDiagnostic(Zx.getSourceFileOfNode(o),s.pos,s.end-s.pos,c,u))):t(l,1,Zx.createDiagnosticForNode(l,Zx.Diagnostics._0_is_declared_but_its_value_is_never_read,a)))}}function $h(e){return!(262144&hi(e.symbol).isReferenced||Yh(e.name))}function ev(e,t,r,n){var i=String(n(t)),n=e.get(i);n?n[1].push(r):e.set(i,[t,[r]])}function tv(e){return Zx.tryCast(Zx.getRootDeclaration(e),Zx.isParameter)}function rv(e,o){var s=Zx.createMap(),c=Zx.createMap(),u=Zx.createMap();e.locals.forEach(function(e){if(262144&e.flags?3&e.flags&&!(3&e.isReferenced):!e.isReferenced&&!e.exportSymbol)for(var t=0,r=e.declarations;t<r.length;t++){var n,i,a=r[t];n=a,(Zx.isBindingElement(n)&&Yh(n.name)?Zx.findAncestor(n.parent,function(e){return!(Zx.isArrayBindingPattern(e)||Zx.isVariableDeclaration(e)||Zx.isVariableDeclarationList(e))&&(!!Zx.isForOfStatement(e)||"quit")}):Zx.isAmbientModule(n)||(Zx.isVariableDeclaration(n)&&Zx.isForInOrOfStatement(n.parent.parent)||iv(n))&&Yh(n.name))||(iv(a)?ev(s,255===(i=a).kind?i:(256===i.kind?i:i.parent).parent,a,uD):Zx.isBindingElement(a)&&Zx.isObjectBindingPattern(a.parent)?a!==Zx.last(a.parent.elements)&&Zx.last(a.parent.elements).dotDotDotToken||ev(c,a.parent,a,uD):Zx.isVariableDeclaration(a)?ev(u,a.parent,a,uD):(n=e.valueDeclaration&&tv(e.valueDeclaration),i=e.valueDeclaration&&Zx.getNameOfDeclaration(e.valueDeclaration),n&&i?Zx.isParameterPropertyDeclaration(n,n.parent)||Zx.parameterIsThisKeyword(n)||Yh(i)||o(n,1,Zx.createDiagnosticForNode(i,Zx.Diagnostics._0_is_declared_but_its_value_is_never_read,Zx.symbolName(e))):Xh(a,Zx.symbolName(e),o)))}}),s.forEach(function(e){var t=e[0],r=e[1],e=t.parent;if((t.name?1:0)+(t.namedBindings?256===t.namedBindings.kind?1:t.namedBindings.elements.length:0)===r.length)o(e,0,1===r.length?Zx.createDiagnosticForNode(e,Zx.Diagnostics._0_is_declared_but_its_value_is_never_read,Zx.idText(Zx.first(r).name)):Zx.createDiagnosticForNode(e,Zx.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var n=0,i=r;n<i.length;n++){var a=i[n];Xh(a,Zx.idText(a.name),o)}}),c.forEach(function(e){var t=e[0],e=e[1],r=tv(t.parent)?1:0;if(t.elements.length===e.length)1===e.length&&242===t.parent.kind&&243===t.parent.parent.kind?ev(u,t.parent.parent,t.parent,uD):o(t,r,1===e.length?Zx.createDiagnosticForNode(t,Zx.Diagnostics._0_is_declared_but_its_value_is_never_read,nv(Zx.first(e).name)):Zx.createDiagnosticForNode(t,Zx.Diagnostics.All_destructured_elements_are_unused));else for(var n=0,i=e;n<i.length;n++){var a=i[n];o(a,r,Zx.createDiagnosticForNode(a,Zx.Diagnostics._0_is_declared_but_its_value_is_never_read,nv(a.name)))}}),u.forEach(function(e){var t=e[0],e=e[1];if(t.declarations.length===e.length)o(t,0,1===e.length?Zx.createDiagnosticForNode(Zx.first(e).name,Zx.Diagnostics._0_is_declared_but_its_value_is_never_read,nv(Zx.first(e).name)):Zx.createDiagnosticForNode(225===t.parent.kind?t.parent:t,Zx.Diagnostics.All_variables_are_unused));else for(var r=0,n=e;r<n.length;r++){var i=n[r];o(i,0,Zx.createDiagnosticForNode(i,Zx.Diagnostics._0_is_declared_but_its_value_is_never_read,nv(i.name)))}})}function nv(e){switch(e.kind){case 75:return Zx.idText(e);case 190:case 189:return nv(Zx.cast(Zx.first(e.elements),Zx.isBindingElement).name);default:return Zx.Debug.assertNever(e)}}function iv(e){return 255===e.kind||258===e.kind||256===e.kind}function av(e){var t;223===e.kind&&Qx(e),Zx.isFunctionOrModuleBlock(e)?(t=kr,Zx.forEach(e.statements,Db),kr=t):Zx.forEach(e.statements,Db),e.locals&&Gh(e)}function ov(e,t,r){if(t&&t.escapedText===r&&159!==e.kind&&158!==e.kind&&161!==e.kind&&160!==e.kind&&163!==e.kind&&164!==e.kind&&!(8388608&e.flags)){e=Zx.getRootDeclaration(e);return 156===e.kind&&Zx.nodeIsMissing(e.parent.body)?void 0:1}}function sv(t){Zx.findAncestor(t,function(e){return!!(4&sx(e))&&(75!==t.kind?un(Zx.getNameOfDeclaration(t),Zx.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):un(t,Zx.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)})}function cv(t){Zx.findAncestor(t,function(e){return!!(8&sx(e))&&(75!==t.kind?un(Zx.getNameOfDeclaration(t),Zx.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):un(t,Zx.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)})}function uv(e){67108864&sx(Zx.getEnclosingBlockScopeContainer(e))&&un(e,Zx.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,"WeakMap")}function lv(e,t){x>=Zx.ModuleKind.ES2015||G.noEmit||(ov(e,t,"require")||ov(e,t,"exports"))&&(Zx.isModuleDeclaration(e)&&1!==Zx.getModuleInstanceState(e)||290===(e=da(e)).kind&&Zx.isExternalOrCommonJsModule(e)&&un(t,Zx.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Zx.declarationNameToString(t),Zx.declarationNameToString(t)))}function _v(e,t){4<=M||G.noEmit||!ov(e,t,"Promise")||Zx.isModuleDeclaration(e)&&1!==Zx.getModuleInstanceState(e)||290===(e=da(e)).kind&&Zx.isExternalOrCommonJsModule(e)&&2048&e.flags&&un(t,Zx.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Zx.declarationNameToString(t),Zx.declarationNameToString(t))}function dv(e){return e===Ee?ke:e===Ft?At:e}function pv(t){var e,r,n,i,a,o,s;qh(t),Zx.isBindingElement(t)||Db(t.type),t.name&&(154===t.name.kind&&(ag(t.name),t.initializer&&Yy(t.initializer)),191===t.kind&&(189===t.parent.kind&&M<99&&Sx(t,4),t.propertyName&&154===t.propertyName.kind&&ag(t.propertyName),r=ga(e=t.parent.parent),n=t.propertyName||t.name,r&&!Zx.isBindingPattern(n)&&(!ko(n=Su(n))||(i=Bs(r,Po(n)))&&(tm(i,void 0,!1),wg(e,!!e.initializer&&102===e.initializer.kind,r,i)))),Zx.isBindingPattern(t.name)&&(190===t.name.kind&&M<2&&G.downlevelIteration&&Sx(t,512),Zx.forEach(t.name.elements,Db)),t.initializer&&156===Zx.getRootDeclaration(t).kind&&Zx.nodeIsMissing(Zx.getContainingFunction(t).body)?un(t,Zx.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation):Zx.isBindingPattern(t.name)?(i=t.initializer&&231!==t.parent.parent.kind,a=0===t.name.elements.length,(i||a)&&(o=Pa(t),i&&(i=Yy(t.initializer),Q&&a?zg(i,t):o_(i,Pa(t),t,t.initializer)),a&&(Zx.isArrayBindingPattern(t.name)?Tv(65,o,we,t):Q&&zg(o,t)))):(o=dv(qa(a=vi(t))),t===a.valueDeclaration?((s=Zx.getEffectiveInitializer(t))&&(Zx.isInJSFile(t)&&Zx.isObjectLiteralExpression(s)&&(0===s.properties.length||Zx.isPrototypeAccess(t.name))&&Zx.hasEntries(a.exports)||231===t.parent.parent.kind||o_(Yy(s),o,t,s,void 0)),1<a.declarations.length&&Zx.some(a.declarations,function(e){return e!==t&&Zx.isVariableLike(e)&&!gv(e,t)})&&un(t.name,Zx.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,Zx.declarationNameToString(t.name))):(s=dv(Pa(t)),o===Ae||s===Ae||Xl(o,s)||67108864&a.flags||fv(a.valueDeclaration,o,t,s),t.initializer&&o_(Yy(t.initializer),s,t,t.initializer,void 0),gv(t,a.valueDeclaration)||un(t.name,Zx.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,Zx.declarationNameToString(t.name))),159!==t.kind&&158!==t.kind&&(Ih(t),242!==t.kind&&191!==t.kind||function(e){if(0==(3&Zx.getCombinedNodeFlags(e))&&!Zx.isParameterDeclaration(e)&&(242!==e.kind||e.initializer)){var t=vi(e);if(1&t.flags){if(!Zx.isIdentifier(e.name))return Zx.Debug.fail();var r=Nn(e,e.name.escapedText,3,void 0,void 0,!1);r&&r!==t&&2&r.flags&&3&Fg(r)&&((t=225===(t=Zx.getAncestor(r.valueDeclaration,243)).parent.kind&&t.parent.parent?t.parent.parent:void 0)&&(223===t.kind&&Zx.isFunctionLike(t.parent)||250===t.kind||249===t.kind||290===t.kind)||(r=Qi(r),un(e,Zx.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,r,r)))}}}(t),lv(t,t.name),_v(t,t.name),!G.noEmit&&M<99&&ov(t,t.name,"WeakMap")&&Gr.push(t))))}function fv(e,t,r,n){var i=Zx.getNameOfDeclaration(r),a=159===r.kind||158===r.kind?Zx.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:Zx.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,r=Zx.declarationNameToString(i),n=un(i,a,r,Yi(t),Yi(n));e&&Zx.addRelatedInfo(n,Zx.createDiagnosticForNode(e,Zx.Diagnostics._0_was_also_declared_here,r))}function gv(e,t){if(156===e.kind&&242===t.kind||242===e.kind&&156===t.kind)return 1;if(Zx.hasQuestionToken(e)===Zx.hasQuestionToken(t))return Zx.getSelectedModifierFlags(e,504)===Zx.getSelectedModifierFlags(t,504)}function mv(e){return function(e){if(231!==e.parent.parent.kind&&232!==e.parent.parent.kind)if(8388608&e.flags)Vx(e);else if(!e.initializer){if(Zx.isBindingPattern(e.name)&&!Zx.isBindingPattern(e.parent))return Gx(e,Zx.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(Zx.isVarConst(e))return Gx(e,Zx.Diagnostics.const_declarations_must_be_initialized)}if(e.exclamationToken&&(225!==e.parent.parent.kind||!e.type||e.initializer||8388608&e.flags))return Gx(e.exclamationToken,Zx.Diagnostics.Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation);var t=Zx.getEmitModuleKind(G);t<Zx.ModuleKind.ES2015&&t!==Zx.ModuleKind.System&&!G.noEmit&&!(8388608&e.parent.parent.flags)&&Zx.hasModifier(e.parent.parent,1)&&!function e(t){if(75===t.kind){if("__esModule"===Zx.idText(t))return Gx(t,Zx.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(!Zx.isOmittedExpression(i))return e(i.name)}return!1}(e.name),(Zx.isLet(e)||Zx.isVarConst(e))&&function e(t){if(75===t.kind){if(115===t.originalKeywordKind)return Gx(t,Zx.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];Zx.isOmittedExpression(i)||e(i.name)}return!1}(e.name)}(e),pv(e)}function yv(e){return function(e){if(e.dotDotDotToken){var t=e.parent.elements;e!==Zx.last(t)?Gx(e,Zx.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern):(kx(t,Zx.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName?Gx(e.name,Zx.Diagnostics.A_rest_element_cannot_have_a_property_name):e.initializer&&Hx(e,e.initializer.pos-1,1,Zx.Diagnostics.A_rest_element_cannot_have_an_initializer))}}(e),pv(e)}function hv(e){Cx(e)||Kx(e.declarationList)||function(e){if(!function e(t){switch(t.kind){case 227:case 228:case 229:case 236:case 230:case 231:case 232:return!1;case 238:return e(t.parent)}return!0}(e.parent))Zx.isLet(e.declarationList)?Gx(e,Zx.Diagnostics.let_declarations_can_only_be_declared_inside_a_block):Zx.isVarConst(e.declarationList)&&Gx(e,Zx.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}(e),Zx.forEach(e.declarationList.declarations,Db)}function vv(a,e,t){var o,s;!Q||(o=Zx.isIdentifier(a)?a:Zx.isPropertyAccessExpression(a)?a.name:void 0)&&(dd(t)||0===Js(t,0).length||(s=Rb(o))&&(Zx.forEachChild(e,function e(t){if(Zx.isIdentifier(t)){var r=Rb(t);if(r&&r===s){if(Zx.isIdentifier(a))return!0;for(var n=o.parent,i=t.parent;n&&i;){if(Zx.isIdentifier(n)&&Zx.isIdentifier(i)||104===n.kind&&104===i.kind)return Rb(n)===Rb(i);if(!Zx.isPropertyAccessExpression(n)||!Zx.isPropertyAccessExpression(i))return!1;if(Rb(n.name)!==Rb(i.name))return!1;i=i.expression,n=n.expression}}}return Zx.forEachChild(t,e)})||un(a,Zx.Diagnostics.This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead)))}function bv(e,t){return 16384&e.flags&&un(t,Zx.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),e}function xv(e,t){return bv(ph(e,t),e)}function Dv(e){Bx(e);var t,r,n,i=Lg(ph(e.expression));243===e.initializer.kind?((n=e.initializer.declarations[0])&&Zx.isBindingPattern(n.name)&&un(n.name,Zx.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Sv(e)):(r=ph(t=e.initializer),192===t.kind||193===t.kind?un(t,Zx.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):t_(131072&(n=Nu(Eu(n=i))).flags?Re:n,r)?Ly(t,Zx.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,Zx.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):un(t,Zx.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)),i!==He&&Jy(i,126091264)||un(e.expression,Zx.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,Yi(i)),Db(e.statement),e.locals&&Gh(e)}function Sv(e){e=e.initializer;1<=e.declarations.length&&mv(e.declarations[0])}function Cv(e){return Tv(e.awaitModifier?15:13,Og(e.expression),we,e.expression)}function Tv(e,t,r,n){return fa(t)?t:kv(e,t,r,n,!0)||ke}function kv(e,t,r,n,i){var a=0!=(2&e);if(t!==He){var o=2<=M,s=!o&&G.downlevelIteration;if(o||s||a){var c=Pv(t,e,o?n:void 0);if(i&&(!c||(u=8&e?Zx.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&e?Zx.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&e?Zx.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&e?Zx.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)&&a_(r,c.nextType,n,u)),c||o)return c&&c.yieldType}var i=t,r=!1,u=!1;if(4&e)if(1048576&i.flags?(o=t.types,(c=Zx.filter(o,function(e){return!(132&e.flags)}))!==o&&(i=gu(c,2))):132&i.flags&&(i=He),u=i!==t,u&&(M<1&&n&&(un(n,Zx.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),r=!0),131072&i.flags))return Re;if(!Q_(i))return n&&!r&&(r=Ev(e,0,t,void 0),r=(s=4&e&&!u?s?[Zx.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:r?[Zx.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[Zx.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:s?[Zx.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:r?[Zx.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[Zx.Diagnostics.Type_0_is_not_an_array_type,!0])[0],dn(n,s[1]&&!!Oh(i),r,Yi(i))),u?Re:void 0;i=Ks(i,1);return u&&i?132&i.flags?Re:gu([i,Re],2):i}Bv(n,t,a)}function Ev(e,t,r,n){if(!fa(r)){n=Pv(r,e,n);return n&&n[gD(t)]}}function Nv(e,t,r){if(void 0===e&&(e=He),void 0===t&&(t=He),void 0===r&&(r=Pe),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=Cc([e,t,r]),i=fr.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},fr.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function Av(e){for(var t,r,n,i=0,a=e;i<a.length;i++){var o=a[i];if(void 0!==o&&o!==gr){if(o===mr)return mr;t=Zx.append(t,o.yieldType),r=Zx.append(r,o.returnType),n=Zx.append(n,o.nextType)}}return t||r||n?Nv(t&&gu(t),r&&gu(r),n&&xu(n)):gr}function Fv(e,t,r){return e[t]=r}function Pv(e,t,r){if(fa(e))return mr;if(!(1048576&e.flags)){var n=Iv(e,t,r);return n===gr?void(r&&Bv(r,e,!!(2&t))):n}var i,a=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",n=e[a];if(n)return n===gr?void 0:n;for(var o=0,s=e.types;o<s.length;o++){var c=Iv(s[o],t,r);c===gr?r&&(Bv(r,e,!!(2&t)),r=void 0):i=Zx.append(i,c)}n=i?Av(i):gr;return Fv(e,a,n),n===gr?void 0:n}function wv(e,t){if(e===gr)return gr;if(e===mr)return mr;var r=e.yieldType,n=e.returnType,e=e.nextType;return Nv(Rh(r,t)||ke,Rh(n,t)||ke,e)}function Iv(e,t,r){if(fa(e))return mr;var n;if(2&t&&(n=Ov(e,vr)||Lv(e,vr)))return n;if(1&t&&(n=Ov(e,br)||Lv(e,br))){if(!(2&t))return n;if(n!==gr)return Fv(e,"iterationTypesOfAsyncIterable",wv(n,r))}if(2&t&&(n=Rv(e,vr,r))!==gr)return n;if(1&t&&(n=Rv(e,br,r))!==gr)return 2&t?Fv(e,"iterationTypesOfAsyncIterable",n?wv(n,r):gr):n;return gr}function Ov(e,t){return e[t.iterableCacheKey]}function Mv(e,t){t=Ov(e,t)||Rv(e,t,void 0);return t===gr?hr:t}function Lv(e,t){var r;if(Wa(e,r=t.getGlobalIterableType(!1))||Wa(e,r=t.getGlobalIterableIteratorType(!1))){var n=Ac(e)[0],i=Mv(r,t),a=i.returnType,o=i.nextType;return Fv(e,t.iterableCacheKey,Nv(n,a,o))}if(Wa(e,t.getGlobalGeneratorType(!1))){i=Ac(e),n=i[0],a=i[1],o=i[2];return Fv(e,t.iterableCacheKey,Nv(n,a,o))}}function Rv(e,t,r){var n=Bs(e,Zx.getPropertyNameForKnownSymbolName(t.iteratorSymbolName)),n=!n||16777216&n.flags?void 0:qa(n);if(fa(n))return Fv(e,t.iterableCacheKey,mr);n=n?Js(n,0):void 0;if(!Zx.some(n))return Fv(e,t.iterableCacheKey,gr);r=null!==(r=jv(gu(Zx.map(n,sc),2),t,r))&&void 0!==r?r:gr;return Fv(e,t.iterableCacheKey,r)}function Bv(e,t,r){r=r?Zx.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:Zx.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;dn(e,!!Oh(t),r,Yi(t))}function jv(e,t,r){if(fa(e))return mr;r=Jv(e,t)||function(e,t){var r=t.getGlobalIterableIteratorType(!1);if(Wa(e,r)){var n=Ac(e)[0],i=Jv(r,t)||Wv(r,t,void 0),a=i===gr?hr:i,o=a.returnType,i=a.nextType;return Fv(e,t.iteratorCacheKey,Nv(n,o,i))}if(Wa(e,t.getGlobalIteratorType(!1))||Wa(e,t.getGlobalGeneratorType(!1))){a=Ac(e),n=a[0],o=a[1],i=a[2];return Fv(e,t.iteratorCacheKey,Nv(n,o,i))}}(e,t)||Wv(e,t,r);return r===gr?void 0:r}function Jv(e,t){return e[t.iteratorCacheKey]}function zv(e,t){e=pa(e,"done")||Je;return t_(0===t?Je:Ue,e)}function Uv(e){return zv(e,0)}function Vv(e){return zv(e,1)}function Kv(e){if(fa(e))return mr;var t=e.iterationTypesOfIteratorResult;if(t)return t;if(Wa(e,(Kt=Kt||Gc("IteratorYieldResult",1,!1))||st))return Fv(e,"iterationTypesOfIteratorResult",Nv(Ac(e)[0],void 0,void 0));if(Wa(e,(qt=qt||Gc("IteratorReturnResult",1,!1))||st))return Fv(e,"iterationTypesOfIteratorResult",Nv(void 0,Ac(e)[0],void 0));var r=Bp(e,Uv),t=r!==He?pa(r,"value"):void 0,r=Bp(e,Vv),r=r!==He?pa(r,"value"):void 0;return Fv(e,"iterationTypesOfIteratorResult",t||r?Nv(t,r||We,void 0):gr)}function qv(e,t,r,n){e=Bs(e,r);if(e||"next"===r){e=!e||"next"===r&&16777216&e.flags?void 0:"next"===r?qa(e):Dp(qa(e),2097152);if(fa(e))return"next"===r?mr:yr;var i,a,e=e?Js(e,0):Zx.emptyArray;if(0===e.length)return n&&un(n,"next"===r?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic,r),"next"===r?mr:void 0;for(var o,s,c,u=0,l=e;u<l.length;u++){var _=l[u];"throw"!==r&&Zx.some(_.parameters)&&(i=Zx.append(i,cy(_,0))),a=Zx.append(a,sc(_))}"throw"!==r&&(e=i?gu(i):Pe,"next"===r?o=e:"return"===r&&(d=t.resolveIterationType(e,n)||ke,s=Zx.append(s,d)));var d=a?gu(a,2):He,d=Kv(t.resolveIterationType(d,n)||ke);return s=d===gr?(n&&un(n,t.mustHaveAValueDiagnostic,r),c=ke,Zx.append(s,ke)):(c=d.yieldType,Zx.append(s,d.returnType)),Nv(c,gu(s),o)}}function Wv(e,t,r){r=Av([qv(e,t,"next",r),qv(e,t,"return",r),qv(e,t,"throw",r)]);return Fv(e,t.iteratorCacheKey,r)}function Hv(e,t,r){if(!fa(t)){r=Gv(t,r);return r&&r[gD(e)]}}function Gv(e,t){if(fa(e))return mr;var r=t?vr:br;return Pv(e,t?2:1,void 0)||jv(e,r,void 0)}function Qv(e){Qx(e)||function(e){for(var t=e;t;){if(Zx.isFunctionLike(t))return Gx(e,Zx.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 238:if(e.label&&t.label.escapedText===e.label.escapedText)return 233!==e.kind||Zx.isIterationStatement(t.statement,!0)||Gx(e,Zx.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 237:if(234===e.kind&&!e.label)return;break;default:if(Zx.isIterationStatement(t,!1)&&!e.label)return}t=t.parent}if(e.label){var r=234===e.kind?Zx.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:Zx.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Gx(e,r)}r=234===e.kind?Zx.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:Zx.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement,Gx(e,r)}(e)}function Xv(e,t){var r=!!(2&t);return!!(1&t)?null!==(t=Hv(1,e,r))&&void 0!==t?t:Ae:r?null!==(r=Rh(e))&&void 0!==r?r:Ae:e}function Yv(e,t){e=Xv(t,Zx.getFunctionFlags(e));return e&&jy(e,16387)}function Zv(e){var t,r,n,i,a,o;Qx(e)||void 0===e.expression&&(t=e,r=Zx.Diagnostics.Line_break_not_permitted_here,qx(o=Zx.getSourceFileOfNode(t))||(t=Zx.getSpanOfTokenAtPosition(o,t.pos),Xr.add(Zx.createFileDiagnostic(o,Zx.textSpanEnd(t),0,r,n,i,a)))),e.expression&&ph(e.expression)}function $v(r){var e,n=hc(r.symbol,1),i=hc(r.symbol,0),a=Ks(r,0),o=Ks(r,1);if(a||o){Zx.forEach(_s(r),function(e){var t=qa(e);_(e,t,r,i,a,0),_(e,t,r,n,o,1)});var t=r.symbol.valueDeclaration;if(1&Zx.getObjectFlags(r)&&Zx.isClassLike(t))for(var s=0,c=t.members;s<c.length;s++){var u,l=c[s];!Zx.hasModifier(l,32)&&Fo(l)&&(_(u=vi(l),l=qa(u),r,i,a,0),_(u,l,r,n,o,1))}}function _(t,e,r,n,i,a){var o,s,c;i&&!Zx.isKnownSymbol(t)&&((s=(o=t.valueDeclaration)&&Zx.getNameOfDeclaration(o))&&Zx.isPrivateIdentifier(s)||(1!==a||(s?rg(s):ig(t.escapedName)))&&(o&&s&&(209===o.kind||154===s.kind||t.parent===r.symbol)?c=o:n?c=n:2&Zx.getObjectFlags(r)&&(c=Zx.forEach(ao(r),function(e){return ds(e,t.escapedName)&&Ks(e,a)})?void 0:r.symbol.declarations[0]),c&&!t_(e,i)&&un(c,0===a?Zx.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:Zx.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2,Qi(t),Yi(e),Yi(i))))}a&&o&&!(e=n||i)&&2&Zx.getObjectFlags(r)&&(e=Zx.forEach(ao(r),function(e){return Ks(e,0)&&Ks(e,1)})?void 0:r.symbol.declarations[0]),e&&!t_(o,a)&&un(e,Zx.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,Yi(o),Yi(a))}function eb(e,t){switch(e.escapedText){case"any":case"unknown":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":un(e,t,e.escapedText)}}function tb(e){if(e)for(var t=!1,r=0;r<e.length;r++){var n=e[r];if(fh(n),I){n.default?(t=!0,a=n.default,o=e,s=r,function e(t){if(169===t.kind){var r=Uc(t);if(262144&r.flags)for(var n=s;n<o.length;n++)r.symbol===vi(o[n])&&un(t,Zx.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}Zx.forEachChild(t,e)}(a)):t&&un(n,Zx.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var i=0;i<r;i++)e[i].symbol===n.symbol&&un(n.name,Zx.Diagnostics.Duplicate_identifier_0,Zx.declarationNameToString(n.name))}}var a,o,s}function rb(e){if(1!==e.declarations.length){var t=Dn(e);if(!t.typeParametersChecked){t.typeParametersChecked=!0;t=(t=e,Zx.filter(t.declarations,function(e){return 245===e.kind||246===e.kind}));if(!(t.length<=1))if(!function(e,t){for(var r=Zx.length(t),n=$s(t),i=0,a=e;i<a.length;i++){var o=a[i],s=Zx.getEffectiveTypeParameterDeclarations(o),c=s.length;if(c<n||r<c)return!1;for(var u=0;u<c;u++){var l=s[u],_=t[u];if(l.name.escapedText!==_.symbol.escapedName)return!1;var d=Zx.getEffectiveConstraintOfTypeParameter(l),p=d&&gl(d),d=ms(_);if(p&&d&&!Xl(p,d))return!1;l=l.default&&gl(l.default),_=ks(_);if(l&&_&&!Xl(l,_))return!1}}return!0}(t,mo(e).localTypeParameters))for(var r=Qi(e),n=0,i=t;n<i.length;n++)un(i[n].name,Zx.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,r)}}}function nb(e){s=e,u=Zx.getSourceFileOfNode(s),function(e){var t=!1,r=!1;if(!Cx(e)&&e.heritageClauses)for(var n=0,i=e.heritageClauses;n<i.length;n++){var a=i[n];if(90===a.token){if(t)return Wx(a,Zx.Diagnostics.extends_clause_already_seen);if(r)return Wx(a,Zx.Diagnostics.extends_clause_must_precede_implements_clause);if(1<a.types.length)return Wx(a.types[1],Zx.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(Zx.Debug.assert(113===a.token),r)return Wx(a,Zx.Diagnostics.implements_clause_already_seen);r=!0}wx(a)}}(s)||Ex(s.typeParameters,u),qh(e),e.name&&(eb(e.name,Zx.Diagnostics.Class_name_cannot_be_0),lv(e,e.name),_v(e,e.name),8388608&e.flags||(l=e.name,1===M&&"Object"===l.escapedText&&x<Zx.ModuleKind.ES2015&&un(l,Zx.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,Zx.ModuleKind[x]))),tb(Zx.getEffectiveTypeParameterDeclarations(e)),Ih(e);var t=vi(e),r=mo(t),n=Lo(r),i=qa(t);rb(t),function(e){for(var t=Zx.createUnderscoreEscapedMap(),r=Zx.createUnderscoreEscapedMap(),n=Zx.createUnderscoreEscapedMap(),i=0,a=e.members;i<a.length;i++){var o=a[i];if(162===o.kind)for(var s=0,c=o.parameters;s<c.length;s++){var u=c[s];Zx.isParameterPropertyDeclaration(u,o)&&!Zx.isBindingPattern(u.name)&&f(t,u.name,u.name.escapedText,3)}else{var l=Zx.hasModifier(o,32),_=o.name;if(!_)return;var d=Zx.isPrivateIdentifier(_)?n:l?r:t,p=_&&Zx.getPropertyNameForPropertyNameNode(_);if(p)switch(o.kind){case 163:f(d,_,p,1);break;case 164:f(d,_,p,2);break;case 159:f(d,_,p,3);break;case 161:f(d,_,p,8)}}}function f(e,t,r,n){var i=e.get(r);i?8&i?8!==n&&un(t,Zx.Diagnostics.Duplicate_identifier_0,Zx.getTextOfNode(t)):i&n?un(t,Zx.Diagnostics.Duplicate_identifier_0,Zx.getTextOfNode(t)):e.set(r,i|n):e.set(r,n)}}(e),8388608&e.flags||function(e){for(var t=0,r=e.members;t<r.length;t++){var n=r[t],i=n.name;if(Zx.hasModifier(n,32)&&i){var a=Zx.getPropertyNameForPropertyNameNode(i);switch(a){case"name":case"length":case"caller":case"arguments":case"prototype":un(i,Zx.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,a,oa(vi(e)))}}}}(e);var a=Zx.getEffectiveBaseTypeNode(e);if(a){Zx.forEach(a.typeArguments,Db),M<2&&Sx(a.parent,1);var o=Zx.getClassExtendsHeritageElement(e);o&&o!==a&&ph(o.expression);var s=ao(r);if(s.length&&I){var c=s[0],u=io(r),l=Ns(u);if(t=a,!(s=Js(o=l,1)).length||(s=s[0].declaration)&&Zx.hasModifier(s,8)&&(s=Zx.getClassLikeDeclarationOfSymbol(o.symbol),Ob(t,s)||un(t,Zx.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,ri(o.symbol))),Db(a.expression),Zx.some(a.typeArguments)){Zx.forEach(a.typeArguments,Db);for(var _=0,d=ro(l,a.typeArguments,a);_<d.length;_++)if(!Th(a,d[_].typeParameters))break}a_(n,h=Lo(c,r.thisType),void 0)?a_(i,Ql(l),e.name||e,Zx.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):ib(e,n,h,Zx.Diagnostics.Class_0_incorrectly_extends_base_class_1),8650752&u.flags&&!$a(i)&&un(e.name||e,Zx.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any),l.symbol&&32&l.symbol.flags||8650752&u.flags||(p=no(l,a.typeArguments,a),Zx.forEach(p,function(e){return!Qm(e.declaration)&&!Xl(sc(e),c)})&&un(a.expression,Zx.Diagnostics.Base_constructors_must_all_have_the_same_return_type)),function(e,t){var r=fs(t);e:for(var n=0,i=r;n<i.length;n++){var a=i[n],o=ab(a);if(!(4194304&o.flags)){var s=ds(e,o.escapedName);if(s){var c=ab(s),u=Zx.getDeclarationModifierFlagsFromSymbol(o);if(Zx.Debug.assert(!!c,"derived should point to something, even if it is the base class' declaration."),c===o){var l=Zx.getClassLikeDeclarationOfSymbol(e.symbol);if(128&u&&(!l||!Zx.hasModifier(l,128))){for(var _=0,d=ao(e);_<d.length;_++){var p=d[_];if(p!==t){p=ds(p,o.escapedName),p=p&&ab(p);if(p&&p!==o)continue e}}214===l.kind?un(l,Zx.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Qi(a),Yi(t)):un(l,Zx.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Yi(e),Qi(a),Yi(t))}}else{var f=Zx.getDeclarationModifierFlagsFromSymbol(c);if(!(8&u||8&f)){var g,m=void 0,s=98308&o.flags,l=98308&c.flags;if(s&&l)!G.useDefineForClassFields||128&u&&!(o.valueDeclaration&&Zx.isPropertyDeclaration(o.valueDeclaration)&&o.valueDeclaration.initializer)||o.valueDeclaration&&246===o.valueDeclaration.parent.kind||c.valueDeclaration&&Zx.isBinaryExpression(c.valueDeclaration)||(a=4==s&&4!=l,(l=4!=s&&4==l)||a?(g=l?Zx.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:Zx.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor,un(Zx.getNameOfDeclaration(c.valueDeclaration)||c.valueDeclaration,g,Qi(o),Yi(t),Yi(e))):!(g=Zx.find(c.declarations,function(e){return 159===e.kind&&!e.initializer}))||33554432&c.flags||128&u||128&f||c.declarations.some(function(e){return!!(8388608&e.flags)})||(u=Ei(Zx.getClassLikeDeclarationOfSymbol(e.symbol)),f=g.name,!g.exclamationToken&&u&&Zx.isIdentifier(f)&&Q&&sb(f,e,u)||(u=Zx.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,un(Zx.getNameOfDeclaration(c.valueDeclaration)||c.valueDeclaration,u,Qi(o),Yi(t)))));else{if(Pg(o)){if(Pg(c)||4&c.flags)continue;Zx.Debug.assert(!!(98304&c.flags)),m=Zx.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else m=98304&o.flags?Zx.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Zx.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;un(Zx.getNameOfDeclaration(c.valueDeclaration)||c.valueDeclaration,m,Yi(t),Qi(o),Yi(e))}}}}}}}(r,c)}}var p=Zx.getEffectiveImplementsTypeNodes(e);if(p)for(var f=0,g=p;f<g.length;f++){var m,y,h,v=g[f];Zx.isEntityNameExpression(v.expression)||un(v.expression,Zx.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Eh(v),!I||(m=Is(gl(v)))!==Ae&&(oo(m)?(y=m.symbol&&32&m.symbol.flags?Zx.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:Zx.Diagnostics.Class_0_incorrectly_implements_interface_1,a_(n,h=Lo(m,r.thisType),void 0)||ib(e,n,h,y)):un(v,Zx.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members))}I&&($v(r),vh(e),function(e){if(Q&&S&&!(8388608&e.flags))for(var t=Ei(e),r=0,n=e.members;r<n.length;r++){var i,a,o=n[r];2&Zx.getModifierFlags(o)||ob(o)&&(i=o.name,(Zx.isIdentifier(i)||Zx.isPrivateIdentifier(i))&&(3&(a=qa(vi(o))).flags||32768&dd(a)||t&&sb(i,a,t)||un(o.name,Zx.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Zx.declarationNameToString(i))))}}(e))}function ib(e,i,a,t){for(var o=!1,r=function(e){if(Zx.hasStaticModifier(e))return"continue";var t,r,n=e.name&&Rb(e.name)||Rb(e);n&&(t=Bs(i,n.escapedName),r=Bs(a,n.escapedName),t&&r&&(a_(qa(t),qa(r),e.name||e,void 0,function(){return Zx.chainDiagnosticMessages(void 0,Zx.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Qi(n),Yi(i),Yi(a))})||(o=!0)))},n=0,s=e.members;n<s.length;n++)r(s[n]);o||a_(i,a,e.name||e,t)}function ab(e){return 1&Zx.getCheckFlags(e)?e.target:e}function ob(e){return 159===e.kind&&!Zx.hasModifier(e,160)&&!e.exclamationToken&&!e.initializer}function sb(e,t,r){e=Zx.createPropertyAccess(Zx.createThis(),e);return(e.expression.parent=e).parent=r,e.flowNode=r.returnFlowNode,!(32768&dd(af(e,t,md(t))))}function cb(e){if(Cx(e)||function(e){var t=!1;if(e.heritageClauses)for(var r=0,n=e.heritageClauses;r<n.length;r++){var i=n[r];if(90!==i.token)return Zx.Debug.assert(113===i.token),Wx(i,Zx.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(t)return Wx(i,Zx.Diagnostics.extends_clause_already_seen);t=!0,wx(i)}}(e),tb(e.typeParameters),I){eb(e.name,Zx.Diagnostics.Interface_name_cannot_be_0),Ih(e);var t=vi(e);if(rb(t),e===Zx.getDeclarationOfKind(t,246)){var r=mo(t),n=Lo(r);if(function(t,e){var r=ao(t);if(r.length<2)return 1;var n=Zx.createUnderscoreEscapedMap();Zx.forEach(To(t).declaredProperties,function(e){n.set(e.escapedName,{prop:e,containingType:t})});for(var i=!0,a=0,o=r;a<o.length;a++)for(var s=o[a],c=0,u=fs(Lo(s,t.thisType));c<u.length;c++){var l,_,d=u[c],p=n.get(d.escapedName);p?p.containingType===t||z_(p.prop,d)||(i=!1,l=Yi(p.containingType),_=Yi(s),p=Zx.chainDiagnosticMessages(void 0,Zx.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Qi(d),l,_),p=Zx.chainDiagnosticMessages(p,Zx.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,Yi(t),l,_),Xr.add(Zx.createDiagnosticForNodeFromMessageChain(e,p))):n.set(d.escapedName,{prop:d,containingType:s})}return i}(r,e.name)){for(var i=0,a=ao(r);i<a.length;i++)a_(n,Lo(a[i],r.thisType),e.name,Zx.Diagnostics.Interface_0_incorrectly_extends_interface_1);$v(r)}}hh(e)}Zx.forEach(Zx.getInterfaceBaseTypeNodes(e),function(e){Zx.isEntityNameExpression(e.expression)||un(e.expression,Zx.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Eh(e)}),Zx.forEach(e.members,Db),I&&(vh(e),Gh(e))}function ub(e){var t=Sn(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;Zx.isComputedNonLiteralName(e.name)?un(e.name,Zx.Diagnostics.Computed_property_names_are_not_allowed_in_enums):ig(r=Zx.getTextOfPropertyName(e.name))&&!ng(r)&&un(e.name,Zx.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}if(e.initializer)return function(c){var e=lo(vi(c.parent)),t=Zx.isEnumConst(c.parent),r=c.initializer,n=1!==e||uo(c)?function e(t){switch(t.kind){case 207: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 209: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 Xx(t),+t.text;case 200:return e(t.expression);case 75:var a=t;return ng(a.escapedText)?+a.escapedText:Zx.nodeIsMissing(t)?0:u(t,vi(c.parent),a.escapedText);case 195:case 194:var o=t;if(lb(o)){var s=lh(o.expression);if(s.symbol&&384&s.symbol.flags){var a=void 0;return a=194===o.kind?o.name.escapedText:Zx.escapeLeadingUnderscores(Zx.cast(o.argumentExpression,Zx.isLiteralExpression).text),u(t,s.symbol,a)}}}return}(r):void 0;if(void 0!==n)t&&"number"==typeof n&&!isFinite(n)&&un(r,isNaN(n)?Zx.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:Zx.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(1===e)return un(r,Zx.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;t?un(r,Zx.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values):8388608&c.parent.flags?un(r,Zx.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Jy(t=ph(r),296)?a_(t,mo(vi(c.parent)),r,void 0):un(r,Zx.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,Yi(t))}return n;function u(e,t,r){t=t.exports.get(r);if(t){r=t.valueDeclaration;if(r!==c)return kn(r,c)?cx(r):(un(e,Zx.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);un(e,Zx.Diagnostics.Property_0_is_used_before_being_assigned,Qi(t))}}}(e);if(8388608&e.parent.flags&&!Zx.isEnumConst(e.parent)&&0===lo(vi(e.parent)))return;return void 0===t?void un(e.name,Zx.Diagnostics.Enum_member_must_have_initializer):t}(a,r),r="number"==typeof(Sn(a).enumMemberValue=o)?o+1:void 0}}function lb(e){return 75===e.kind||194===e.kind&&lb(e.expression)||195===e.kind&&lb(e.expression)&&Zx.isStringLiteralLike(e.argumentExpression)}function _b(e){Zx.isPrivateIdentifier(e.name)&&un(e,Zx.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function db(e){if(I){var t=Zx.isGlobalScopeAugmentation(e),r=8388608&e.flags;t&&!r&&un(e.name,Zx.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var n=Zx.isAmbientModule(e);if(hb(e,n?Zx.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:Zx.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module))return;Cx(e)||r||10!==e.name.kind||Gx(e.name,Zx.Diagnostics.Only_ambient_modules_can_use_quoted_names),Zx.isIdentifier(e.name)&&(lv(e,e.name),_v(e,e.name)),Ih(e);var i=vi(e);if(512&i.flags&&!r&&1<i.declarations.length&&_D(e,!!G.preserveConstEnums||!!G.isolatedModules)&&((r=function(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];if((245===n.kind||244===n.kind&&Zx.nodeIsPresent(n.body))&&!(8388608&n.flags))return n}}(i))&&(Zx.getSourceFileOfNode(e)!==Zx.getSourceFileOfNode(r)?un(e.name,Zx.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):e.pos<r.pos&&un(e.name,Zx.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged)),(r=Zx.getDeclarationOfKind(i,245))&&(i=e,r=r,i=Zx.getEnclosingBlockScopeContainer(i),r=Zx.getEnclosingBlockScopeContainer(r),Cn(i)?Cn(r):!Cn(r)&&i===r)&&(Sn(e).flags|=32768)),n)if(Zx.isExternalModuleAugmentation(e)){if((t||33554432&vi(e).flags)&&e.body)for(var a=0,o=e.body.statements;a<o.length;a++)!function e(t,r){switch(t.kind){case 225:for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];e(a,r)}break;case 259:case 260:Wx(t,Zx.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 253:case 254:Wx(t,Zx.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 191:case 242:var o=t.name;if(Zx.isBindingPattern(o)){for(var s=0,c=o.elements;s<c.length;s++){var u=c[s];e(u,r)}break}case 245:case 248:case 244:case 246:case 249:case 247:if(r)return;var o=vi(t);o&&(!(33554432&o.flags)||o.parent&&Zx.isExternalModuleAugmentation(o.parent.declarations[0]))}}(o[a],t)}else Cn(e.parent)?t?un(e.name,Zx.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Zx.isExternalModuleNameRelative(Zx.getTextOfIdentifierOrLiteral(e.name))&&un(e.name,Zx.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):un(e.name,t?Zx.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:Zx.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}e.body&&(Db(e.body),Zx.isGlobalScopeAugmentation(e)||Gh(e))}function pb(e){var t=Zx.getExternalModuleName(e);if(t&&!Zx.nodeIsMissing(t))if(Zx.isStringLiteral(t)){var r=250===e.parent.kind&&Zx.isAmbientModule(e.parent.parent);if(290===e.parent.kind||r){if(!r||!Zx.isExternalModuleNameRelative(t.text)||na(e))return 1;un(e,Zx.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name)}else un(t,260===e.kind?Zx.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:Zx.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module)}else un(t,Zx.Diagnostics.String_literal_expected)}function fb(e){var t,r=vi(e),n=Qn(r);67108864&r.flags||n===Ce||(t=(1160127&(r=hi(r.exportSymbol||r)).flags?111551:0)|(788968&r.flags?788968:0)|(1920&r.flags?1920:0),n.flags&t&&un(e,263===e.kind?Zx.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:Zx.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,Qi(r)),!G.isolatedModules||263!==e.kind||e.parent.parent.isTypeOnly||111551&n.flags||8388608&e.flags||un(e,Zx.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type))}function gb(e){lv(e,e.name),_v(e,e.name),fb(e)}function mb(e){var t;hb(e,Zx.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)||(!Cx(e)&&Zx.hasModifiers(e)&&Wx(e,Zx.Diagnostics.An_import_declaration_cannot_have_modifiers),!pb(e)||(t=e.importClause)&&!function(e){if(e.isTypeOnly&&e.name&&e.namedBindings)return Gx(e,Zx.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);return!1}(t)&&(t.name&&gb(t),t.namedBindings&&(256===t.namedBindings.kind?gb(t.namedBindings):ai(e,e.moduleSpecifier)&&Zx.forEach(t.namedBindings.elements,gb))))}function yb(e){var t,r,n;hb(e,Zx.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)||(!Cx(e)&&Zx.hasModifiers(e)&&Wx(e,Zx.Diagnostics.An_export_declaration_cannot_have_modifiers),e.moduleSpecifier&&e.exportClause&&Zx.isNamedExports(e.exportClause)&&Zx.length(e.exportClause.elements)&&0===M&&Sx(e,1048576),(t=(r=e).isTypeOnly&&261!==(null===(t=r.exportClause)||void 0===t?void 0:t.kind))&&Gx(r,Zx.Diagnostics.Only_named_exports_may_use_export_type),e.moduleSpecifier&&!pb(e)||(e.exportClause&&!Zx.isNamespaceExport(e.exportClause)?(Zx.forEach(e.exportClause.elements,bb),n=!(r=250===e.parent.kind&&Zx.isAmbientModule(e.parent.parent))&&250===e.parent.kind&&!e.moduleSpecifier&&8388608&e.flags,290===e.parent.kind||r||n||un(e,Zx.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)):((n=ai(e,e.moduleSpecifier))&&_i(n)?un(e.moduleSpecifier,Zx.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Qi(n)):e.exportClause&&fb(e.exportClause),x!==Zx.ModuleKind.System&&x<Zx.ModuleKind.ES2015&&Sx(e,65536))))}function hb(e,t){var r=290===e.parent.kind||250===e.parent.kind||249===e.parent.kind;return r||Wx(e,t),!r}function vb(e){for(var t,r=0,n=e.statements;r<n.length;r++){var i=n[r];Zx.isImportDeclaration(i)&&i.importClause&&!i.importClause.isTypeOnly&&(t=i.importClause,Zx.forEachImportClauseDeclaration(t,function(e){return!!vi(e).isReferenced}))&&!tx(i.importClause,!0)&&(t=i.importClause,!Zx.forEachImportClauseDeclaration(t,function(e){return!!Dn(vi(e)).constEnumReferenced}))&&un(i,Zx.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is_set_to_error)}}function bb(e){var t,r;fb(e),Zx.getEmitDeclarations(G)&&ca(e.propertyName||e.name,!0),e.parent.parent.moduleSpecifier||((r=Nn(t=e.propertyName||e.name,t.escapedText,2998271,void 0,void 0,!0))&&(r===ue||r===le||Cn(da(r.declarations[0])))?un(t,Zx.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Zx.idText(t)):($n(e),(!(r=r&&(2097152&r.flags?Qn(r):r))||r===Ce||111551&r.flags)&&Yy(e.propertyName||e.name)))}function xb(e){var t,r=vi(e),n=Dn(r);n.exportsChecked||((t=r.exports.get("export="))&&(e=r,Zx.forEachEntry(e.exports,function(e,t){return"export="!==t}))&&(na(t=Mn(t)||t.valueDeclaration)||Zx.isInJSFile(t)||un(t,Zx.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)),(r=gi(r))&&r.forEach(function(e,t){var r=e.declarations,n=e.flags;if("__export"!==t&&!(1984&n)){e=Zx.countWhere(r,oD);if(!(524288&n&&e<=2)&&1<e)for(var i=0,a=r;i<a.length;i++){var o=a[i];dD(o)&&Xr.add(Zx.createDiagnosticForNode(o,Zx.Diagnostics.Cannot_redeclare_exported_variable_0,Zx.unescapeLeadingUnderscores(t)))}}}),n.exportsChecked=!0)}function Db(e){var t;e&&(t=H,l=0,function(e){Zx.isInJSFile(e)&&Zx.forEach(e.jsDoc,function(e){e=e.tags;return Zx.forEach(e,Db)});var t=e.kind;if(f)switch(t){case 249:case 245:case 246:case 244:f.throwIfCancellationRequested()}switch(225<=t&&t<=241&&e.flowNode&&!rf(e.flowNode)&&_n(!1===G.allowUnreachableCode,e,Zx.Diagnostics.Unreachable_code_detected),t){case 155:return fh(e);case 156:return gh(e);case 159:return bh(e);case 158:return function(e){Zx.isPrivateIdentifier(e.name)&&un(e,Zx.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),bh(e)}(e);case 170:case 171:case 165:case 166:case 167:return yh(e);case 161:case 160:return function(e){zx(e)||Ox(e.name),Zx.isPrivateIdentifier(e.name)&&un(e,Zx.Diagnostics.A_method_cannot_be_named_with_a_private_identifier),Hh(e),Zx.hasModifier(e,128)&&161===e.kind&&e.body&&un(e,Zx.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Zx.declarationNameToString(e.name))}(e);case 162:return xh(e);case 163:case 164:return Dh(e);case 169:return Eh(e);case 168:return mh(e);case 172:return function(e){Kc(e)}(e);case 173:return function(e){Zx.forEach(e.members,Db),I&&($v(Yu(e)),vh(e),hh(e))}(e);case 174:return function(e){Db(e.elementType)}(e);case 175:return function(e){for(var t=e.elementTypes,r=!1,n=0;n<t.length;n++){var i=t[n];if(177===i.kind){if(n!==t.length-1){Gx(i,Zx.Diagnostics.A_rest_element_must_be_last_in_a_tuple_type);break}q_(gl(i.type))||un(i,Zx.Diagnostics.A_rest_element_type_must_be_an_array_type)}else if(176===i.kind)r=!0;else if(r){Gx(i,Zx.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}Zx.forEach(e.elementTypes,Db)}(e);case 178:case 179:return function(e){Zx.forEach(e.types,Db)}(e);case 182:case 176:case 177:return Db(e.type);case 183:return function(e){fl(e)}(e);case 184:return Ah(e);case 180:return function(e){Zx.forEachChild(e,Db)}(e);case 181:return function(e){Zx.findAncestor(e,function(e){return e.parent&&180===e.parent.kind&&e.parent.extendsType===e})||Gx(e,Zx.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Db(e.typeParameter),Gh(e)}(e);case 188:return function(e){Db(e.argument),gl(e)}(e);case 307:return function(e){var t,r,n=Zx.getEffectiveJSDocHost(e);n&&(Zx.isClassDeclaration(n)||Zx.isClassExpression(n))?(r=Zx.getJSDocTags(n).filter(Zx.isJSDocAugmentsTag),Zx.Debug.assert(0<r.length),1<r.length&&un(r[1],Zx.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag),t=Wh(e.class.expression),!(r=Zx.getClassExtendsHeritageElement(n))||(r=Wh(r.expression))&&t.escapedText!==r.escapedText&&un(t,Zx.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,Zx.idText(e.tagName),Zx.idText(t),Zx.idText(r))):un(n,Zx.Diagnostics.JSDoc_0_is_not_attached_to_a_class,Zx.idText(e.tagName))}(e);case 308:return function(e){var t=Zx.getEffectiveJSDocHost(e);t&&(Zx.isClassDeclaration(t)||Zx.isClassExpression(t))||un(t,Zx.Diagnostics.JSDoc_0_is_not_attached_to_a_class,Zx.idText(e.tagName))}(e);case 322:case 315:case 316:return function(e){e.typeExpression||un(e.name,Zx.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),e.name&&eb(e.name,Zx.Diagnostics.Type_alias_name_cannot_be_0),Db(e.typeExpression)}(e);case 321:return function(e){Db(e.constraint);for(var t=0,r=e.typeParameters;t<r.length;t++)Db(r[t])}(e);case 320:return function(e){Db(e.typeExpression)}(e);case 317:return function(e){var t,r;Db(e.typeExpression),Zx.getParameterSymbolFromJSDoc(e)||(t=Zx.getHostSignatureFromJSDoc(e))&&(-1<(r=Zx.getJSDocTags(t).filter(Zx.isJSDocParameterTag).indexOf(e))&&r<t.parameters.length&&Zx.isBindingPattern(t.parameters[r].name)||(nc(t)?Zx.findLast(Zx.getJSDocTags(t),Zx.isJSDocParameterTag)===e&&e.typeExpression&&e.typeExpression.type&&!q_(gl(e.typeExpression.type))&&un(e.name,Zx.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,Zx.idText(153===e.name.kind?e.name.right:e.name)):Zx.isQualifiedName(e.name)?un(e.name,Zx.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Zx.entityNameToString(e.name),Zx.entityNameToString(e.name.left)):un(e.name,Zx.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Zx.idText(e.name))))}(e);case 323:return function(e){Db(e.typeExpression)}(e);case 300:!function(e){!I||e.type||Zx.isJSDocConstructSignature(e)||Pd(e,ke),yh(e)}(e);case 298:case 297:case 295:case 296:case 304:return Sb(e),Zx.forEachChild(e,Db);case 301:return function(e){Sb(e),Db(e.type);var t=e.parent;if(Zx.isParameter(t)&&Zx.isJSDocFunctionType(t.parent))return Zx.last(t.parent.parameters)!==t&&un(e,Zx.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);Zx.isJSDocTypeExpression(t)||un(e,Zx.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var r=e.parent.parent;if(!Zx.isJSDocParameterTag(r))return un(e,Zx.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);(t=Zx.getParameterSymbolFromJSDoc(r))&&((r=Zx.getHostSignatureFromJSDoc(r))&&Zx.last(r.parameters).symbol===t||un(e,Zx.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list))}(e);case 294:return Db(e.type);case 185:return function(e){Db(e.objectType),Db(e.indexType),Nh(Uu(e),e)}(e);case 186:return function(e){Db(e.typeParameter),Db(e.type),e.type||Pd(e,ke),a_(ts(Vu(e)),et,Zx.getEffectiveConstraintOfTypeParameter(e.typeParameter))}(e);case 244:return function(e){I&&(Hh(e),Mx(e),lv(e,e.name),_v(e,e.name))}(e);case 223:case 250:return av(e);case 225:return hv(e);case 226:return function(e){Qx(e),ph(e.expression)}(e);case 227:return function(e){Qx(e);var t=xv(e.expression);vv(e.expression,e.thenStatement,t),Db(e.thenStatement),224===e.thenStatement.kind&&un(e.thenStatement,Zx.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Db(e.elseStatement)}(e);case 228:return function(e){Qx(e),Db(e.statement),xv(e.expression)}(e);case 229:return function(e){Qx(e),xv(e.expression),Db(e.statement)}(e);case 230:return function(e){Qx(e)||e.initializer&&243===e.initializer.kind&&Kx(e.initializer),e.initializer&&(243===e.initializer.kind?Zx.forEach(e.initializer.declarations,mv):ph(e.initializer)),e.condition&&xv(e.condition),e.incrementor&&ph(e.incrementor),Db(e.statement),e.locals&&Gh(e)}(e);case 231:return Dv(e);case 232:return function(e){var t,r,n;Bx(e),e.awaitModifier?2==(6&Zx.getFunctionFlags(Zx.getContainingFunction(e)))&&M<99&&Sx(e,32768):G.downlevelIteration&&M<2&&Sx(e,256),243===e.initializer.kind?Sv(e):(t=e.initializer,r=Cv(e),192===t.kind||193===t.kind?Wy(t,r||Ae):(n=ph(t),Ly(t,Zx.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,Zx.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),r&&o_(r,n,t,e.expression))),Db(e.statement),e.locals&&Gh(e)}(e);case 233:case 234:return Qv(e);case 235:return function(e){var t,r,n,i,a;Qx(e)||((t=Zx.getContainingFunction(e))?(r=sc(tc(t)),n=Zx.getFunctionFlags(t),Q||e.expression||131072&r.flags?(a=e.expression?Yy(e.expression):we,164===t.kind?e.expression&&un(e,Zx.Diagnostics.Setters_cannot_return_a_value):162===t.kind?e.expression&&!o_(a,r,e,e.expression)&&un(e,Zx.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class):cc(t)&&(i=null!==(i=Xv(r,n))&&void 0!==i?i:r,a=2&n?Lh(a,e,Zx.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):a,i&&o_(a,i,e,e.expression))):162!==t.kind&&G.noImplicitReturns&&!Yv(t,r)&&un(e,Zx.Diagnostics.Not_all_code_paths_return_a_value)):Wx(e,Zx.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body))}(e);case 236:return function(e){Qx(e)||32768&e.flags&&Wx(e,Zx.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),ph(e.expression);var t=Zx.getSourceFileOfNode(e);qx(t)||Hx(t,t=Zx.getSpanOfTokenAtPosition(t,e.pos).start,e.statement.pos-t,Zx.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}(e);case 237:return function(e){var i;Qx(e);var a=!1,o=ph(e.expression),s=td(o);Zx.forEach(e.caseBlock.clauses,function(e){var t,r,n;278!==e.kind||a||(void 0===i?i=e:(Gx(e,Zx.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),a=!0)),I&&277===e.kind&&(r=td(t=ph(e.expression)),n=o,r&&s||(t=r?rd(t):t,n=rd(o)),Hy(n,t)||f_(t,n,e.expression,void 0)),Zx.forEach(e.statements,Db),G.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&rf(e.fallthroughFlowNode)&&un(e,Zx.Diagnostics.Fallthrough_case_in_switch)}),e.caseBlock.locals&&Gh(e.caseBlock)}(e);case 238:return function(t){Qx(t)||Zx.findAncestor(t.parent,function(e){return Zx.isFunctionLike(e)?"quit":238===e.kind&&e.label.escapedText===t.label.escapedText&&(Gx(t.label,Zx.Diagnostics.Duplicate_label_0,Zx.getTextOfNode(t.label)),!0)}),Db(t.statement)}(e);case 239:return Zv(e);case 240:return function(e){Qx(e),av(e.tryBlock);var r,t=e.catchClause;t&&(t.variableDeclaration&&(t.variableDeclaration.type?Wx(t.variableDeclaration.type,Zx.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation):t.variableDeclaration.initializer?Wx(t.variableDeclaration.initializer,Zx.Diagnostics.Catch_clause_variable_cannot_have_an_initializer):(r=t.block.locals)&&Zx.forEachKey(t.locals,function(e){var t=r.get(e);t&&0!=(2&t.flags)&&Gx(t.valueDeclaration,Zx.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,e)})),av(t.block)),e.finallyBlock&&av(e.finallyBlock)}(e);case 242:return mv(e);case 191:return yv(e);case 245:return function(e){e.name||Zx.hasModifier(e,512)||Wx(e,Zx.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),nb(e),Zx.forEach(e.members,Db),Gh(e)}(e);case 246:return cb(e);case 247:return function(e){Cx(e),eb(e.name,Zx.Diagnostics.Type_alias_name_cannot_be_0),Ih(e),tb(e.typeParameters),Db(e.type),Gh(e)}(e);case 248:return function(e){var t,r,n;I&&(Cx(e),eb(e.name,Zx.Diagnostics.Enum_name_cannot_be_0),lv(e,e.name),_v(e,e.name),Ih(e),e.members.forEach(_b),ub(e),t=vi(e),e===Zx.getDeclarationOfKind(t,e.kind)&&(1<t.declarations.length&&(r=Zx.isEnumConst(e),Zx.forEach(t.declarations,function(e){Zx.isEnumDeclaration(e)&&Zx.isEnumConst(e)!==r&&un(Zx.getNameOfDeclaration(e),Zx.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})),n=!1,Zx.forEach(t.declarations,function(e){if(248!==e.kind)return!1;if(!e.members.length)return!1;e=e.members[0];e.initializer||(n?un(e.name,Zx.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):n=!0)})))}(e);case 249:return db(e);case 254:return mb(e);case 253:return function(e){var t,r;hb(e,Zx.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)||(Cx(e),(Zx.isInternalModuleImportEqualsDeclaration(e)||pb(e))&&(gb(e),Zx.hasModifier(e,1)&&$n(e),265!==e.moduleReference.kind?(t=Qn(vi(e)))!==Ce&&(111551&t.flags&&(1920&ni(r=Zx.getFirstIdentifier(e.moduleReference),112575).flags||un(r,Zx.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Zx.declarationNameToString(r))),788968&t.flags&&eb(e.name,Zx.Diagnostics.Import_name_cannot_be_0)):x>=Zx.ModuleKind.ES2015&&!(8388608&e.flags)&&Gx(e,Zx.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 260:return yb(e);case 259:return function(e){var t,r,n;hb(e,Zx.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)||(249!==(t=(290===e.parent.kind?e:e.parent).parent).kind||Zx.isAmbientModule(t)?(!Cx(e)&&Zx.hasModifiers(e)&&Wx(e,Zx.Diagnostics.An_export_assignment_cannot_have_modifiers),75===e.expression.kind?((n=ni(r=e.expression,67108863,!0,!0,e))&&(pf(n,r),((n=2097152&n.flags?Qn(n):n)===Ce||111551&n.flags)&&Yy(e.expression)),Zx.getEmitDeclarations(G)&&ca(e.expression,!0)):Yy(e.expression),xb(t),8388608&e.flags&&!Zx.isEntityNameExpression(e.expression)&&Gx(e.expression,Zx.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!e.isExportEquals||8388608&e.flags||(x>=Zx.ModuleKind.ES2015?Gx(e,Zx.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):x===Zx.ModuleKind.System&&Gx(e,Zx.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))):e.isExportEquals?un(e,Zx.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):un(e,Zx.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module))}(e);case 224:case 241:return Qx(e);case 264:(function(e){qh(e)})(e)}}(H=e),H=t)}function Sb(e){Zx.isInJSFile(e)||Gx(e,Zx.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Cb(e){var t,r=Sn(Zx.getSourceFileOfNode(e));1&r.flags||(r.deferredNodes=r.deferredNodes||Zx.createMap(),t=""+uD(e),r.deferredNodes.set(t,e))}function Tb(e){var t,r,n=H;switch(l=0,(H=e).kind){case 196:case 197:case 198:case 157:case 268:cm(e);break;case 201:case 202:case 161:case 160:!function(e){Zx.Debug.assert(161!==e.kind||Zx.isObjectLiteralMethod(e));var t,r=Zx.getFunctionFlags(e),n=cc(e);Fy(e,n),e.body&&(Zx.getEffectiveReturnTypeNode(e)||sc(tc(e)),223===e.body.kind?Db(e.body):(t=ph(e.body),(n=n&&Xv(n,r))&&o_(2==(3&r)?Lh(t,e.body,Zx.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 163:case 164:Dh(e);break;case 214:r=e,Zx.forEach(r.members,Db),Gh(r);break;case 267:kg(t=e),cm(t);break;case 266:kg((t=e).openingElement),_g(t.closingElement.tagName)?yg(t.closingElement):ph(t.closingElement.tagName),pg(t)}H=n}function kb(e){var t;Zx.performance.mark("beforeCheck"),1&(e=Sn(t=e)).flags||Zx.skipTypeChecking(t,G,b)||(function(n){8388608&n.flags&&function(){for(var e=0,t=n.statements;e<t.length;e++){var r=t[e];if((Zx.isDeclaration(r)||225===r.kind)&&function(e){if(246===e.kind||247===e.kind||254===e.kind||253===e.kind||260===e.kind||259===e.kind||252===e.kind||Zx.hasModifier(e,515))return!1;return Wx(e,Zx.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}(r))return}}()}(t),Zx.clear(Wr),Zx.clear(Hr),Zx.clear(Gr),Zx.forEach(t.statements,Db),Db(t.endOfFileToken),function(e){(e=Sn(e)).deferredNodes&&e.deferredNodes.forEach(Tb)}(t),Zx.isExternalOrCommonJsModule(t)&&Gh(t),t.isDeclarationFile||!G.noUnusedLocals&&!G.noUnusedParameters||Qh(Nb(t),function(e,t,r){!Zx.containsParseError(e)&&Eb(t,!!(8388608&e.flags))&&Xr.add(r)}),2===G.importsNotUsedAsValues&&!t.isDeclarationFile&&Zx.isExternalModule(t)&&vb(t),Zx.isExternalOrCommonJsModule(t)&&xb(t),Wr.length&&(Zx.forEach(Wr,sv),Zx.clear(Wr)),Hr.length&&(Zx.forEach(Hr,cv),Zx.clear(Hr)),Gr.length&&(Zx.forEach(Gr,uv),Zx.clear(Gr)),e.flags|=1),Zx.performance.mark("afterCheck"),Zx.performance.measure("Check","beforeCheck","afterCheck")}function Eb(e,t){if(!t)switch(e){case 0:return G.noUnusedLocals;case 1:return G.noUnusedParameters;default:return Zx.Debug.assertNever(e)}}function Nb(e){return Dr.get(e.path)||Zx.emptyArray}function Ab(e,t){try{return f=t,function(e){if(Fb(),e){var t=Xr.getGlobalDiagnostics(),r=t.length;kb(e);var n=Xr.getDiagnostics(e.fileName),e=Xr.getGlobalDiagnostics();if(e===t)return 0===r&&0<e.length?Zx.concatenate(e,n):n;e=Zx.relativeComplement(t,e,Zx.compareDiagnostics);return Zx.concatenate(e,n)}return Zx.forEach(b.getSourceFiles(),kb),Xr.getDiagnostics()}(e)}finally{f=void 0}}function Fb(){if(!I)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function Pb(e){switch(e.kind){case 155:case 245:case 246:case 247:case 248:return!0;case 255:return e.isTypeOnly;case 258:case 263:return e.parent.parent.isTypeOnly;default:return!1}}function wb(e){for(;153===e.parent.kind;)e=e.parent;return 169===e.parent.kind}function Ib(e,t){for(var r;(e=Zx.getContainingClass(e))&&!(r=t(e)););return r}function Ob(e,t){return Ib(e,function(e){return e===t})}function Mb(e){return void 0!==function(e){for(;153===e.parent.kind;)e=e.parent;return 253===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:259===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function Lb(e){if(Zx.isDeclarationName(e))return vi(e.parent);if(Zx.isInJSFile(e)&&194===e.parent.kind&&e.parent===e.parent.parent.left&&!Zx.isPrivateIdentifier(e)){var t=function(e){switch(Zx.getAssignmentDeclarationKind(e.parent.parent)){case 1:case 3:return vi(e.parent);case 4:case 2:case 5:return vi(e.parent.parent)}}(e);if(t)return t}if(259===e.parent.kind&&Zx.isEntityNameExpression(e)){t=ni(e,2998271,!0);if(t&&t!==Ce)return t}else if(!Zx.isPropertyAccessExpression(e)&&!Zx.isPrivateIdentifier(e)&&Mb(e)){var r=Zx.getAncestor(e,253);return Zx.Debug.assert(void 0!==r),ti(e,!0)}if(!Zx.isPropertyAccessExpression(e)&&!Zx.isPrivateIdentifier(e)){r=function(e){for(var t=e.parent;Zx.isQualifiedName(t);)t=(e=t).parent;if(t&&188===t.kind&&t.qualifier===e)return t}(e);if(r){gl(r);r=Sn(e).resolvedSymbol;return r===Ce?void 0:r}}for(;Zx.isRightSideOfQualifiedNameOrPropertyAccess(e);)e=e.parent;if(function(e){for(;194===e.parent.kind;)e=e.parent;return 216===e.parent.kind}(e)){var n=0;216===e.parent.kind?(n=788968,Zx.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent)&&(n|=111551)):n=1920,n|=2097152;var i=Zx.isEntityNameExpression(e)?ni(e,n):void 0;if(i)return i}if(317===e.parent.kind)return Zx.getParameterSymbolFromJSDoc(e.parent);if(155===e.parent.kind&&321===e.parent.parent.kind){Zx.Debug.assert(!Zx.isInJSFile(e));i=Zx.getTypeParameterFromJsDoc(e.parent);return i&&i.symbol}if(Zx.isExpressionNode(e)){if(Zx.nodeIsMissing(e))return;if(75===e.kind){if(Zx.isJSXTagName(e)&&_g(e)){var a=yg(e.parent);return a===Ce?void 0:a}return ni(e,111551,!1,!0)}if(194===e.kind||153===e.kind){a=Sn(e);return a.resolvedSymbol?a.resolvedSymbol:((194===e.kind?Ug:Vg)(e),a.resolvedSymbol)}}else if(wb(e))return ni(e,n=169===e.parent.kind?788968:1920,!1,!0);return 168===e.parent.kind?ni(e,1):void 0}function Rb(e,t){if(290===e.kind)return Zx.isExternalModule(e)?hi(e.symbol):void 0;var r=e.parent,n=r.parent;if(!(16777216&e.flags)){if(pD(e)){var i=vi(r);return Zx.isImportOrExportSpecifier(e.parent)&&e.parent.propertyName===e?sg(i):i}if(Zx.isLiteralComputedPropertyDeclarationName(e))return vi(r.parent);if(75===e.kind){if(Mb(e))return Lb(e);if(191===r.kind&&189===n.kind&&e===r.propertyName){i=Bs(Bb(n),e.escapedText);if(i)return i}}switch(e.kind){case 75:case 76:case 194:case 153:return Lb(e);case 104:var a=Zx.getThisContainer(e,!1);if(Zx.isFunctionLike(a)){a=tc(a);if(a.thisParameter)return a.thisParameter}if(Zx.isInExpressionContext(e))return ph(e).symbol;case 183:return fl(e).symbol;case 102:return ph(e).symbol;case 129:var o=e.parent;return o&&162===o.kind?o.parent.symbol:void 0;case 10:case 14:if(Zx.isExternalModuleImportEqualsDeclaration(e.parent.parent)&&Zx.getExternalModuleImportEqualsDeclarationExpression(e.parent.parent)===e||(254===e.parent.kind||260===e.parent.kind)&&e.parent.moduleSpecifier===e||Zx.isInJSFile(e)&&Zx.isRequireCall(e.parent,!1)||Zx.isImportCall(e.parent)||Zx.isLiteralTypeNode(e.parent)&&Zx.isLiteralImportTypeNode(e.parent.parent)&&e.parent.parent.argument===e.parent)return ai(e,e,t);if(Zx.isCallExpression(r)&&Zx.isBindableObjectDefinePropertyCall(r)&&r.arguments[1]===e)return vi(r);case 8:o=Zx.isElementAccessExpression(r)?r.argumentExpression===e?lh(r.expression):void 0:Zx.isLiteralTypeNode(r)&&Zx.isIndexedAccessTypeNode(n)?gl(n.objectType):void 0;return o&&Bs(o,Zx.escapeLeadingUnderscores(e.text));case 84:case 94:case 38:case 80:return vi(e.parent);case 188:return Zx.isLiteralImportTypeNode(e)?Rb(e.argument.literal,t):void 0;case 89:return Zx.isExportAssignment(e.parent)?Zx.Debug.checkDefined(e.parent.symbol):void 0;default:return}}}function Bb(e){if(16777216&e.flags)return Ae;var t,r=Zx.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(e),n=r&&so(vi(r.class));if(Zx.isPartOfTypeNode(e)){var i=gl(e);return n?Lo(i,n.thisType):i}if(Zx.isExpressionNode(e))return Jb(e);if(n&&!r.isImplements){r=Zx.firstOrUndefined(ao(n));return r?Lo(r,n.thisType):Ae}if(Pb(e))return mo(t=vi(e));if(n=e,75===n.kind&&Pb(n.parent)&&n.parent.name===n)return(t=Rb(e))?mo(t):Ae;if(Zx.isDeclaration(e))return qa(t=vi(e));if(pD(e))return(t=Rb(e))?qa(t):Ae;if(Zx.isBindingPattern(e))return Ca(e.parent,!0)||Ae;if(Mb(e)&&(t=Rb(e))){e=mo(t);return e!==Ae?e:qa(t)}return Ae}function jb(e){if(Zx.Debug.assert(193===e.kind||192===e.kind),232===e.parent.kind)return Wy(e,Cv(e.parent)||Ae);if(209===e.parent.kind)return Wy(e,lh(e.parent.right)||Ae);if(281===e.parent.kind){var t=Zx.cast(e.parent.parent,Zx.isObjectLiteralExpression);return Ky(t,jb(t)||Ae,Zx.indexOfNode(t.properties,e.parent))}var r=Zx.cast(e.parent,Zx.isArrayLiteralExpression),n=jb(r)||Ae,t=Tv(65,n,we,e.parent)||Ae;return qy(r,n,r.elements.indexOf(e),t)}function Jb(e){return Zx.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent),ll(lh(e))}function zb(e){e=Ns(e);var t=Zx.createSymbolTable(fs(e)),e=Js(e,0).length?bt:Js(e,1).length?xt:void 0;return e&&Zx.forEach(fs(e),function(e){t.has(e.escapedName)||t.set(e.escapedName,e)}),Oi(t)}function Ub(e){return Zx.typeHasCallOrConstructSignatures(e,fe)}function Vb(t){if(6&Zx.getCheckFlags(t))return Zx.mapDefined(Dn(t).containingType.types,function(e){return Bs(e,t.escapedName)});if(33554432&t.flags){var e=t.leftSpread,r=t.rightSpread,n=t.syntheticOrigin;return e?[e,r]:n?[n]:Zx.singleElementArray(function(e){var t,r=e;for(;r=Dn(r).target;)t=r;return t}(t))}}function Kb(e){if(!Zx.isGeneratedIdentifier(e)){e=Zx.getParseTreeNode(e,Zx.isIdentifier);if(e)return!(194===e.parent.kind&&e.parent.name===e)&&yx(e)===de}return!1}function qb(e){var t=ai(e.parent,e);if(!t||Zx.isShorthandAmbientModuleSymbol(t))return!0;var r=_i(t),e=Dn(t=ui(t));return void 0===e.exportsSomeValue&&(e.exportsSomeValue=r?!!(111551&t.flags):Zx.forEachEntry(gi(t),function(e){return(e=Gn(e))&&!!(111551&e.flags)})),e.exportsSomeValue}function Wb(e,t){var r=Zx.getParseTreeNode(e,Zx.isIdentifier);if(r){e=yx(r,(n=r,Zx.isModuleOrEnumDeclaration(n.parent)&&n===n.parent.name));if(e){if(1048576&e.flags){var n=hi(e.exportSymbol);if(!t&&944&n.flags&&!(3&n.flags))return;e=n}var i=bi(e);if(i){if(512&i.flags&&290===i.valueDeclaration.kind){e=i.valueDeclaration;return e!==Zx.getSourceFileOfNode(r)?void 0:e}return Zx.findAncestor(r.parent,function(e){return Zx.isModuleOrEnumDeclaration(e)&&vi(e)===i})}}}}function Hb(e){e=Zx.getParseTreeNode(e,Zx.isIdentifier);if(e){e=yx(e);if(Hn(e,111551)&&!Zn(e))return Mn(e)}}function Gb(e){if(418&e.flags&&!Zx.isSourceFile(e.valueDeclaration)){var t,r,n=Dn(e);return void 0===n.isDeclarationWithCollidingName&&(t=Zx.getEnclosingBlockScopeContainer(e.valueDeclaration),(Zx.isStatementWithLocals(t)||(i=e,Zx.isBindingElement(i.valueDeclaration)&&280===Zx.walkUpBindingElementsAndPatterns(i.valueDeclaration).parent.kind))&&(r=Sn(e.valueDeclaration),Nn(t.parent,e.escapedName,111551,void 0,void 0,!1)?n.isDeclarationWithCollidingName=!0:262144&r.flags?(i=524288&r.flags,e=Zx.isIterationStatement(t,!1),r=223===t.kind&&Zx.isIterationStatement(t.parent,!1),n.isDeclarationWithCollidingName=!(Zx.isBlockScopedContainerTopLevel(t)||i&&(e||r))):n.isDeclarationWithCollidingName=!1)),n.isDeclarationWithCollidingName}var i;return!1}function Qb(e){if(!Zx.isGeneratedIdentifier(e)){e=Zx.getParseTreeNode(e,Zx.isIdentifier);if(e){e=yx(e);if(e&&Gb(e))return e.valueDeclaration}}}function Xb(e){e=Zx.getParseTreeNode(e,Zx.isDeclaration);if(e){e=vi(e);if(e)return Gb(e)}return!1}function Yb(e){switch(e.kind){case 253:return $b(vi(e)||Ce);case 255:case 256:case 258:case 263:var t=vi(e)||Ce;return $b(t)&&!Zn(t);case 260:t=e.exportClause;return!!t&&(Zx.isNamespaceExport(t)||Zx.some(t.elements,Yb));case 259:return!e.expression||75!==e.expression.kind||$b(vi(e)||Ce)}return!1}function Zb(e){e=Zx.getParseTreeNode(e,Zx.isImportEqualsDeclaration);return!(void 0===e||290!==e.parent.kind||!Zx.isInternalModuleImportEqualsDeclaration(e))&&($b(vi(e))&&e.moduleReference&&!Zx.nodeIsMissing(e.moduleReference))}function $b(e){e=Qn(e);return e===Ce||!!(111551&e.flags)&&(G.preserveConstEnums||!ex(e))}function ex(e){return Vy(e)||e.constEnumOnlyModule}function tx(e,t){if(Ln(e)){var r=vi(e);if(r&&Dn(r).referenced)return!0;r=Dn(r).target;if(r&&1&Zx.getModifierFlags(e)&&111551&r.flags&&(G.preserveConstEnums||!ex(r)))return!0}return!!t&&!!Zx.forEachChild(e,function(e){return tx(e,t)})}function rx(e){if(Zx.nodeIsPresent(e.body)){if(Zx.isGetAccessor(e)||Zx.isSetAccessor(e))return!1;var t=ic(vi(e));return 1<t.length||1===t.length&&t[0].declaration!==e}return!1}function nx(e){return!(!Q||Xs(e)||Zx.isJSDocParameterTag(e)||!e.initializer||Zx.hasModifier(e,92))}function ix(e){return Q&&Xs(e)&&!e.initializer&&Zx.hasModifier(e,92)}function ax(e){e=Zx.getParseTreeNode(e,Zx.isFunctionDeclaration);if(!e)return!1;e=vi(e);return!!(e&&16&e.flags)&&!!Zx.forEachEntry(fi(e),function(e){return 111551&e.flags&&e.valueDeclaration&&Zx.isPropertyAccessExpression(e.valueDeclaration)})}function ox(e){e=Zx.getParseTreeNode(e,Zx.isFunctionDeclaration);if(!e)return Zx.emptyArray;e=vi(e);return e&&fs(qa(e))||Zx.emptyArray}function sx(e){return Sn(e).flags||0}function cx(e){return ub(e.parent),Sn(e).enumMemberValue}function ux(e){switch(e.kind){case 284:case 194:case 195:return!0}return!1}function lx(e){if(284===e.kind)return cx(e);e=Sn(e).resolvedSymbol;if(e&&8&e.flags){e=e.valueDeclaration;if(Zx.isEnumConst(e.parent))return cx(e)}}function _x(e){return 524288&e.flags&&0<Js(e,0).length}function dx(e,t){var r=Zx.getParseTreeNode(e,Zx.isEntityName);if(!r)return Zx.TypeReferenceSerializationKind.Unknown;if(t&&!(t=Zx.getParseTreeNode(t)))return Zx.TypeReferenceSerializationKind.Unknown;e=ni(r,111551,!0,!1,t),r=ni(r,788968,!0,!1,t);if(e&&e===r){t=Zc(!1);if(t&&e===t)return Zx.TypeReferenceSerializationKind.Promise;e=qa(e);if(e&&eo(e))return Zx.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!r)return Zx.TypeReferenceSerializationKind.Unknown;r=mo(r);return r===Ae?Zx.TypeReferenceSerializationKind.Unknown:3&r.flags?Zx.TypeReferenceSerializationKind.ObjectType:Jy(r,245760)?Zx.TypeReferenceSerializationKind.VoidNullableOrNeverType:Jy(r,528)?Zx.TypeReferenceSerializationKind.BooleanType:Jy(r,296)?Zx.TypeReferenceSerializationKind.NumberLikeType:Jy(r,2112)?Zx.TypeReferenceSerializationKind.BigIntLikeType:Jy(r,132)?Zx.TypeReferenceSerializationKind.StringLikeType:sd(r)?Zx.TypeReferenceSerializationKind.ArrayLikeType:Jy(r,12288)?Zx.TypeReferenceSerializationKind.ESSymbolType:_x(r)?Zx.TypeReferenceSerializationKind.TypeWithCallSignature:q_(r)?Zx.TypeReferenceSerializationKind.ArrayLikeType:Zx.TypeReferenceSerializationKind.ObjectType}function px(e,t,r,n,i){var a=Zx.getParseTreeNode(e,Zx.isVariableLikeOrAccessor);if(!a)return Zx.createToken(125);e=vi(a),a=!e||133120&e.flags?Ae:nd(qa(e));return 8192&a.flags&&a.symbol===e&&(r|=1048576),i&&(a=md(a)),C.typeToTypeNode(a,t,1024|r,n)}function fx(e,t,r,n){e=Zx.getParseTreeNode(e,Zx.isFunctionLike);if(!e)return Zx.createToken(125);e=tc(e);return C.typeToTypeNode(sc(e),t,1024|r,n)}function gx(e,t,r,n){e=Zx.getParseTreeNode(e,Zx.isExpression);if(!e)return Zx.createToken(125);e=Ad(Jb(e));return C.typeToTypeNode(e,t,1024|r,n)}function mx(e){return ce.has(Zx.escapeLeadingUnderscores(e))}function yx(e,t){var r=Sn(e).resolvedSymbol;if(r)return r;r=e;return t&&(t=e.parent,Zx.isDeclaration(t)&&e===t.name&&(r=da(t))),Nn(r,e.escapedText,3257279,void 0,void 0,!0)}function hx(e){if(!Zx.isGeneratedIdentifier(e)){e=Zx.getParseTreeNode(e,Zx.isIdentifier);if(e){e=yx(e);if(e)return Ti(e).valueDeclaration}}}function vx(e){return!!(Zx.isDeclarationReadonly(e)||Zx.isVariableDeclaration(e)&&Zx.isVarConst(e))&&_l(qa(vi(e)))}function bx(e,t){var r=qa(vi(e));return e=e,t=t,(1024&(r=r).flags?C.symbolToExpression(r.symbol,111551,e,void 0,t):r===Ue?Zx.createTrue():r===Je&&Zx.createFalse())||Zx.createLiteral(r.value)}function xx(e){return e?(cn(e),Zx.getSourceFileOfNode(e).localJsxFactory||ar):ar}function Dx(e){e=249===e.kind?Zx.tryCast(e.name,Zx.isStringLiteral):Zx.getExternalModuleName(e),e=oi(e,e,void 0);if(e)return Zx.getDeclarationOfKind(e,290)}function Sx(e,t){if((s&t)!==t&&G.importHelpers){var r=Zx.getSourceFileOfNode(e);if(Zx.isEffectiveExternalModule(r,G)&&!(8388608&e.flags)){var n=function(e,t){c=c||(si(e,Zx.externalHelpersModuleNameText,Zx.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||Ce);return c}(r,e);if(n!==Ce)for(var i,a=t&~s,o=1;o<=1048576;o<<=1)a&o&&(i=function(e){switch(e){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__spreadArrays";case 4096:return"__await";case 8192:return"__asyncGenerator";case 16384:return"__asyncDelegator";case 32768:return"__asyncValues";case 65536:return"__exportStar";case 131072:return"__makeTemplateObject";case 262144:return"__classPrivateFieldGet";case 524288:return"__classPrivateFieldSet";case 1048576:return"__createBinding";default:return Zx.Debug.fail("Unrecognized helper")}}(o),Tn(n.exports,Zx.escapeLeadingUnderscores(i),111551)||un(e,Zx.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,Zx.externalHelpersModuleNameText,i));s|=t}}}function Cx(e){return function(e){if(!e.decorators)return!1;{if(!Zx.nodeCanBeDecorated(e,e.parent,e.parent.parent))return 161!==e.kind||Zx.nodeIsPresent(e.body)?Wx(e,Zx.Diagnostics.Decorators_are_not_valid_here):Wx(e,Zx.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(163===e.kind||164===e.kind){var t=Zx.getAllAccessorDeclarations(e.parent.members,e);if(t.firstAccessor.decorators&&e===t.secondAccessor)return Wx(e,Zx.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}return!1}(e)||function(e){var t,r,n,i,a=function(e){return!!e.modifiers&&(function(e){switch(e.kind){case 163:case 164:case 162:case 159:case 158:case 161:case 160:case 167:case 249:case 254:case 253:case 260:case 259:case 201:case 202:case 156:return!1;default:if(250===e.parent.kind||290===e.parent.kind)return!1;switch(e.kind){case 244:return Tx(e,126);case 245:return Tx(e,122);case 246:case 225:case 247:return!0;case 248:return Tx(e,81);default:return Zx.Debug.fail(),!1}}}(e)?Wx(e,Zx.Diagnostics.Modifiers_cannot_appear_here):void 0)}(e);if(void 0!==a)return a;for(var o=0,s=0,c=e.modifiers;s<c.length;s++){var u=c[s];if(138!==u.kind){if(158===e.kind||160===e.kind)return Gx(u,Zx.Diagnostics._0_modifier_cannot_appear_on_a_type_member,Zx.tokenToString(u.kind));if(167===e.kind)return Gx(u,Zx.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,Zx.tokenToString(u.kind))}switch(u.kind){case 81:if(248!==e.kind)return Gx(e,Zx.Diagnostics.A_class_member_cannot_have_the_0_keyword,Zx.tokenToString(81));break;case 119:case 118:case 117:var l=ra(Zx.modifierToFlag(u.kind));if(28&o)return Gx(u,Zx.Diagnostics.Accessibility_modifier_already_seen);if(32&o)return Gx(u,Zx.Diagnostics._0_modifier_must_precede_1_modifier,l,"static");if(64&o)return Gx(u,Zx.Diagnostics._0_modifier_must_precede_1_modifier,l,"readonly");if(256&o)return Gx(u,Zx.Diagnostics._0_modifier_must_precede_1_modifier,l,"async");if(250===e.parent.kind||290===e.parent.kind)return Gx(u,Zx.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,l);if(128&o)return 117===u.kind?Gx(u,Zx.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,l,"abstract"):Gx(u,Zx.Diagnostics._0_modifier_must_precede_1_modifier,l,"abstract");if(Zx.isPrivateIdentifierPropertyDeclaration(e))return Gx(u,Zx.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);o|=Zx.modifierToFlag(u.kind);break;case 120:if(32&o)return Gx(u,Zx.Diagnostics._0_modifier_already_seen,"static");if(64&o)return Gx(u,Zx.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&o)return Gx(u,Zx.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(250===e.parent.kind||290===e.parent.kind)return Gx(u,Zx.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(156===e.kind)return Gx(u,Zx.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&o)return Gx(u,Zx.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Zx.isPrivateIdentifierPropertyDeclaration(e))return Gx(u,Zx.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"static");o|=32,t=u;break;case 138:if(64&o)return Gx(u,Zx.Diagnostics._0_modifier_already_seen,"readonly");if(159!==e.kind&&158!==e.kind&&167!==e.kind&&156!==e.kind)return Gx(u,Zx.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);o|=64,i=u;break;case 89:if(1&o)return Gx(u,Zx.Diagnostics._0_modifier_already_seen,"export");if(2&o)return Gx(u,Zx.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&o)return Gx(u,Zx.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&o)return Gx(u,Zx.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(Zx.isClassLike(e.parent))return Gx(u,Zx.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"export");if(156===e.kind)return Gx(u,Zx.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");o|=1;break;case 84:l=(290===e.parent.kind?e:e.parent).parent;if(249===l.kind&&!Zx.isAmbientModule(l))return Gx(u,Zx.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);o|=512;break;case 130:if(2&o)return Gx(u,Zx.Diagnostics._0_modifier_already_seen,"declare");if(256&o)return Gx(u,Zx.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(Zx.isClassLike(e.parent)&&!Zx.isPropertyDeclaration(e))return Gx(u,Zx.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"declare");if(156===e.kind)return Gx(u,Zx.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(8388608&e.parent.flags&&250===e.parent.kind)return Gx(u,Zx.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(Zx.isPrivateIdentifierPropertyDeclaration(e))return Gx(u,Zx.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");o|=2,r=u;break;case 122:if(128&o)return Gx(u,Zx.Diagnostics._0_modifier_already_seen,"abstract");if(245!==e.kind){if(161!==e.kind&&159!==e.kind&&163!==e.kind&&164!==e.kind)return Gx(u,Zx.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(245!==e.parent.kind||!Zx.hasModifier(e.parent,128))return Gx(u,Zx.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&o)return Gx(u,Zx.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&o)return Gx(u,Zx.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract")}if(Zx.isNamedDeclaration(e)&&76===e.name.kind)return Gx(u,Zx.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");o|=128;break;case 126:if(256&o)return Gx(u,Zx.Diagnostics._0_modifier_already_seen,"async");if(2&o||8388608&e.parent.flags)return Gx(u,Zx.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(156===e.kind)return Gx(u,Zx.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");o|=256,n=u}}{if(162===e.kind)return 32&o?Gx(t,Zx.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&o?Gx(t,Zx.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):256&o?Gx(n,Zx.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!!(64&o)&&Gx(i,Zx.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly");if((254===e.kind||253===e.kind)&&2&o)return Gx(r,Zx.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare");if(156===e.kind&&92&o&&Zx.isBindingPattern(e.name))return Gx(e,Zx.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern);if(156===e.kind&&92&o&&e.dotDotDotToken)return Gx(e,Zx.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter)}if(256&o)return function(e,t){switch(e.kind){case 161:case 244:case 201:case 202:return!1}return Gx(t,Zx.Diagnostics._0_modifier_cannot_be_used_here,"async")}(e,n);return!1}(e)}function Tx(e,t){return 1<e.modifiers.length||e.modifiers[0].kind!==t}function kx(e,t){return void 0===t&&(t=Zx.Diagnostics.Trailing_comma_not_allowed),!(!e||!e.hasTrailingComma)&&Hx(e[0],e.end-",".length,",".length,t)}function Ex(e,t){if(e&&0===e.length){var r=e.pos-"<".length;return Hx(t,r,Zx.skipTrivia(t.text,e.end)+">".length-r,Zx.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function Nx(e){if(3<=M){var t=e.body&&Zx.isBlock(e.body)&&Zx.findUseStrictPrologue(e.body.statements);if(t){e=(e=e.parameters,Zx.filter(e,function(e){return!!e.initializer||Zx.isBindingPattern(e.name)||Zx.isRestParameter(e)}));if(Zx.length(e)){Zx.forEach(e,function(e){Zx.addRelatedInfo(un(e,Zx.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),Zx.createDiagnosticForNode(t,Zx.Diagnostics.use_strict_directive_used_here))});e=e.map(function(e,t){return 0===t?Zx.createDiagnosticForNode(e,Zx.Diagnostics.Non_simple_parameter_declared_here):Zx.createDiagnosticForNode(e,Zx.Diagnostics.and_here)});return Zx.addRelatedInfo.apply(void 0,__spreadArrays([un(t,Zx.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],e)),!0}}}return!1}function Ax(e){var t=Zx.getSourceFileOfNode(e);return Cx(e)||Ex(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 Gx(i.dotDotDotToken,Zx.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(8388608&i.flags||kx(e,Zx.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),i.questionToken)return Gx(i.questionToken,Zx.Diagnostics.A_rest_parameter_cannot_be_optional);if(i.initializer)return Gx(i.name,Zx.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(i.questionToken){if(t=!0,i.initializer)return Gx(i.name,Zx.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!i.initializer)return Gx(i.name,Zx.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}(e.parameters)||function(e,t){if(!Zx.isArrowFunction(e))return!1;var r=e.equalsGreaterThanToken,e=Zx.getLineAndCharacterOfPosition(t,r.pos).line,t=Zx.getLineAndCharacterOfPosition(t,r.end).line;return e!==t&&Gx(r,Zx.Diagnostics.Line_terminator_not_permitted_before_arrow)}(e,t)||Zx.isFunctionLikeDeclaration(e)&&Nx(e)}function Fx(e,t){return kx(t)||function(e,t){if(t&&0===t.length){var r=Zx.getSourceFileOfNode(e),e=t.pos-"<".length;return Hx(r,e,Zx.skipTrivia(r.text,t.end)+">".length-e,Zx.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(e,t)}function Px(e){return function(e){if(e)for(var t=0,r=e;t<r.length;t++){var n=r[t];if(215===n.kind)return Hx(n,n.pos,0,Zx.Diagnostics.Argument_expression_expected)}return}(e)}function wx(e){var t=e.types;if(kx(t))return 1;if(t&&0===t.length){var r=Zx.tokenToString(e.token);return Hx(e,t.pos,0,Zx.Diagnostics._0_list_cannot_be_empty,r)}return Zx.some(t,Ix)}function Ix(e){return Fx(e,e.typeArguments)}function Ox(e){return 154===e.kind&&(209===e.expression.kind&&27===e.expression.operatorToken.kind&&Gx(e.expression,Zx.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name))}function Mx(e){return e.asteriskToken&&(Zx.Debug.assert(244===e.kind||201===e.kind||161===e.kind),8388608&e.flags?Gx(e.asteriskToken,Zx.Diagnostics.Generators_are_not_allowed_in_an_ambient_context):!e.body&&Gx(e.asteriskToken,Zx.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator))}function Lx(e,t){return e&&Gx(e,t)}function Rx(e,t){return e&&Gx(e,t)}function Bx(e){if(Qx(e))return 1;if(232===e.kind&&e.awaitModifier&&0==(32768&e.flags)){if(qx(Zx.getSourceFileOfNode(e)))return;var t=Zx.createDiagnosticForNode(e.awaitModifier,Zx.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator),r=Zx.getContainingFunction(e);return r&&162!==r.kind&&(Zx.Debug.assert(0==(2&Zx.getFunctionFlags(r)),"Enclosing function should never be an async function."),n=Zx.createDiagnosticForNode(r,Zx.Diagnostics.Did_you_mean_to_mark_this_function_as_async),Zx.addRelatedInfo(t,n)),Xr.add(t),1}if(243===e.initializer.kind){r=e.initializer;if(!Kx(r)){var n=r.declarations;if(!n.length)return;if(1<n.length){t=231===e.kind?Zx.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:Zx.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Wx(r.declarations[1],t)}n=n[0];if(n.initializer){var t=231===e.kind?Zx.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:Zx.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Gx(n.name,t)}if(n.type)return Gx(n,t=231===e.kind?Zx.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:Zx.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}}function jx(e){if(e.parameters.length===(163===e.kind?1:2))return Zx.getThisParameter(e)}function Jx(e,t){if(r=e,Zx.isDynamicName(r)&&!Eo(r))return Gx(e,t);var r}function zx(e){if(Ax(e))return 1;if(161===e.kind){if(193===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||126!==Zx.first(e.modifiers).kind))return Wx(e,Zx.Diagnostics.Modifiers_cannot_appear_here);if(Lx(e.questionToken,Zx.Diagnostics.An_object_member_cannot_be_declared_optional))return 1;if(Rx(e.exclamationToken,Zx.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return 1;if(void 0===e.body)return Hx(e,e.end-1,";".length,Zx.Diagnostics._0_expected,"{")}if(Mx(e))return 1}return Zx.isClassLike(e.parent)?8388608&e.flags?Jx(e.name,Zx.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):161===e.kind&&!e.body&&Jx(e.name,Zx.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):246===e.parent.kind?Jx(e.name,Zx.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type):173===e.parent.kind&&Jx(e.name,Zx.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 Ux(e){return Zx.isStringOrNumericLiteralLike(e)||207===e.kind&&40===e.operator&&8===e.operand.kind}function Vx(e){var t=e.initializer;if(t){var r=!(Ux(t)||(r=t,(Zx.isPropertyAccessExpression(r)||Zx.isElementAccessExpression(r)&&Ux(r.argumentExpression))&&Zx.isEntityNameExpression(r.expression)&&1024&Yy(r).flags)||106===t.kind||91===t.kind||(9===(n=t).kind||207===n.kind&&40===n.operator&&9===n.operand.kind)),n=Zx.isDeclarationReadonly(e)||Zx.isVariableDeclaration(e)&&Zx.isVarConst(e);return!n||e.type?Gx(t,Zx.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts):r?Gx(t,Zx.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference):(!n||r)&&Gx(t,Zx.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function Kx(e){var t=e.declarations;return kx(e.declarations)||!e.declarations.length&&Hx(e,t.pos,t.end-t.pos,Zx.Diagnostics.Variable_declaration_list_cannot_be_empty)}function qx(e){return 0<e.parseDiagnostics.length}function Wx(e,t,r,n,i){var a=Zx.getSourceFileOfNode(e);if(qx(a))return!1;e=Zx.getSpanOfTokenAtPosition(a,e.pos);return Xr.add(Zx.createFileDiagnostic(a,e.start,e.length,t,r,n,i)),!0}function Hx(e,t,r,n,i,a,o){e=Zx.getSourceFileOfNode(e);return!qx(e)&&(Xr.add(Zx.createFileDiagnostic(e,t,r,n,i,a,o)),!0)}function Gx(e,t,r,n,i){return!qx(Zx.getSourceFileOfNode(e))&&(Xr.add(Zx.createDiagnosticForNode(e,t,r,n,i)),!0)}function Qx(e){if(8388608&e.flags){if(!Sn(e).hasReportedStatementInAmbientContext&&(Zx.isFunctionLike(e.parent)||Zx.isAccessor(e.parent)))return Sn(e).hasReportedStatementInAmbientContext=Wx(e,Zx.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(223===e.parent.kind||250===e.parent.kind||290===e.parent.kind){var t=Sn(e.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=Wx(e,Zx.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}}function Xx(e){if(32&e.numericLiteralFlags){var t=void 0;if(1<=M?t=Zx.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:Zx.isChildOfNodeWithKind(e,187)?t=Zx.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:Zx.isChildOfNodeWithKind(e,284)&&(t=Zx.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),t){var r=Zx.isPrefixUnaryExpression(e.parent)&&40===e.parent.operator,n=(r?"-":"")+"0o"+e.text;return Gx(r?e.parent:e,t,n)}}16&(n=e).numericLiteralFlags||n.text.length<=15||-1!==n.text.indexOf(".")||((e=+Zx.getTextOfNode(n))<=Math.pow(2,53)-1&&e<1+e||ln(!1,Zx.createDiagnosticForNode(n,Zx.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers)))}function Yx(e,t,r,n){if(1048576&t.flags&&2621440&e.flags){e=fs(e);if(e){e=mp(e,t);if(e)return E_(t,Zx.map(e,function(e){return[function(){return qa(e)},e.escapedName]}),r,void 0,n)}}}},(e=aD=aD||{}).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",Zx.signatureHasRestParameter=mD,Zx.signatureHasLiteralTypes=yD}(ts=ts||{}),function(y){function l(e){e=y.createNode(e,-1,-1);return e.flags|=8,e}function _(e,t){return e!==t&&(fr(e,t),cr(e,t),y.aggregateTransformFlags(e)),e}function d(e,t){if(e&&e!==y.emptyArray){if(y.isNodeArray(e))return e}else e=[];return e.pos=-1,e.end=-1,e.hasTrailingComma=t,e}function r(e){if(void 0===e)return e;var t,r=l(e.kind);for(t in r.flags|=e.flags,fr(r,e),e)!r.hasOwnProperty(t)&&e.hasOwnProperty(t)&&(r[t]=e[t]);return r}function e(e,t){if("number"==typeof e)return n(e+"");if("object"==typeof e&&"base10Value"in e)return i(y.pseudoBigIntToString(e)+"n");if("boolean"==typeof e)return(e?p:f)();if(y.isString(e)){var r=a(e);return t&&(r.singleQuote=!0),r}return r=e,(e=a(y.getTextOfIdentifierOrLiteral(r))).textSourceNode=r,e}function n(e,t){void 0===t&&(t=0);var r=l(8);return r.text=e,r.numericLiteralFlags=t,r}function i(e){var t=l(9);return t.text=e,t}function a(e){var t=l(10);return t.text=e,t}function o(e,t){var r=l(75);return r.escapedText=y.escapeLeadingUnderscores(e),r.originalKeywordKind=e?y.stringToToken(e):0,r.autoGenerateFlags=0,r.autoGenerateId=0,t&&(r.typeArguments=d(t)),r}y.updateNode=_,y.createNodeArray=d,y.getSynthesizedClone=r,y.createLiteral=e,y.createNumericLiteral=n,y.createBigIntLiteral=i,y.createStringLiteral=a,y.createRegularExpressionLiteral=function(e){var t=l(13);return t.text=e,t},y.createIdentifier=o,y.updateIdentifier=function(e,t){return e.typeArguments!==t?_(o(y.idText(e),t),e):e};var s,c=0;function t(e){e=o(e);return e.autoGenerateFlags=19,e.autoGenerateId=c,c++,e}function u(e){return l(e)}function p(){return l(106)}function f(){return l(91)}function g(e){return u(e)}function m(e,t){var r=l(153);return r.left=e,r.right=nr(t),r}function h(e){var t=l(154);return t.expression=(e=e,y.isCommaSequence(e)?me(e):e),t}function v(e,t,r){var n=l(155);return n.name=nr(e),n.constraint=t,n.default=r,n}function b(e,t,r,n,i,a,o){var s=l(156);return s.decorators=ar(e),s.modifiers=ar(t),s.dotDotDotToken=r,s.name=nr(n),s.questionToken=i,s.type=a,s.initializer=o?y.parenthesizeExpressionForList(o):void 0,s}function x(e){var t=l(157);return t.expression=y.parenthesizeForAccess(e),t}function D(e,t,r,n,i){var a=l(158);return a.modifiers=ar(e),a.name=nr(t),a.questionToken=r,a.type=n,a.initializer=i,a}function S(e,t,r,n,i,a){var o=l(159);return o.decorators=ar(e),o.modifiers=ar(t),o.name=nr(r),o.questionToken=void 0!==n&&57===n.kind?n:void 0,o.exclamationToken=void 0!==n&&53===n.kind?n:void 0,o.type=i,o.initializer=a,o}function C(e,t,r,n,i){r=w(160,e,t,r);return r.name=nr(n),r.questionToken=i,r}function T(e,t,r,n,i,a,o,s,c){var u=l(161);return u.decorators=ar(e),u.modifiers=ar(t),u.asteriskToken=r,u.name=nr(n),u.questionToken=i,u.typeParameters=ar(a),u.parameters=d(o),u.type=s,u.body=c,u}function k(e,t,r){return e=o(e),r=r,le(ie(e,nr(t)),void 0,r)}function E(e,t,r){return!!r&&(e.push(Wt(t,r)),!0)}function N(e,t,r,n){var i=l(162);return i.decorators=ar(e),i.modifiers=ar(t),i.typeParameters=void 0,i.parameters=d(r),i.type=void 0,i.body=n,i}function A(e,t,r,n,i,a){var o=l(163);return o.decorators=ar(e),o.modifiers=ar(t),o.name=nr(r),o.typeParameters=void 0,o.parameters=d(n),o.type=i,o.body=a,o}function F(e,t,r,n,i){var a=l(164);return a.decorators=ar(e),a.modifiers=ar(t),a.name=nr(r),a.typeParameters=void 0,a.parameters=d(n),a.body=i,a}function P(e,t,r,n){var i=l(167);return i.decorators=ar(e),i.modifiers=ar(t),i.parameters=d(r),i.type=n,i}function w(e,t,r,n,i){e=l(e);return e.typeParameters=ar(t),e.parameters=ar(r),e.type=n,e.typeArguments=ar(i),e}function I(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?_(w(e.kind,t,r,n),e):e}function O(e,t,r){var n=l(168);return n.assertsModifier=e,n.parameterName=nr(t),n.type=r,n}function M(e,t,r,n){return e.assertsModifier!==t||e.parameterName!==r||e.type!==n?_(O(t,r,n),e):e}function L(e,t){var r=l(169);return r.typeName=nr(e),r.typeArguments=t&&y.parenthesizeTypeParameters(t),r}function R(e){var t=l(172);return t.exprName=e,t}function B(e){var t=l(173);return t.members=d(e),t}function j(e){var t=l(174);return t.elementType=y.parenthesizeArrayTypeMember(e),t}function J(e){var t=l(175);return t.elementTypes=d(e),t}function z(e){var t=l(176);return t.type=y.parenthesizeArrayTypeMember(e),t}function U(e){var t=l(177);return t.type=e,t}function V(e,t){e=l(e);return e.types=y.parenthesizeElementTypeMembers(t),e}function K(e,t){return e.types!==t?_(V(e.kind,t),e):e}function q(e,t,r,n){var i=l(180);return i.checkType=y.parenthesizeConditionalTypeMember(e),i.extendsType=y.parenthesizeConditionalTypeMember(t),i.trueType=r,i.falseType=n,i}function W(e){var t=l(181);return t.typeParameter=e,t}function H(e,t,r,n){var i=l(188);return i.argument=e,i.qualifier=t,i.typeArguments=y.parenthesizeTypeParameters(r),i.isTypeOf=n,i}function G(e){var t=l(182);return t.type=e,t}function Q(e,t){var r=l(184);return r.operator="number"==typeof e?e:134,r.type=y.parenthesizeElementTypeMember("number"==typeof e?t:e),r}function X(e,t){var r=l(185);return r.objectType=y.parenthesizeElementTypeMember(e),r.indexType=t,r}function Y(e,t,r,n){var i=l(186);return i.readonlyToken=e,i.typeParameter=t,i.questionToken=r,i.type=n,i}function Z(e){var t=l(187);return t.literal=e,t}function $(e){var t=l(189);return t.elements=d(e),t}function ee(e){var t=l(190);return t.elements=d(e),t}function te(e,t,r,n){var i=l(191);return i.dotDotDotToken=e,i.propertyName=nr(t),i.name=nr(r),i.initializer=n,i}function re(e,t){var r=l(192);return r.elements=y.parenthesizeListElements(d(e)),t&&(r.multiLine=!0),r}function ne(e,t){var r=l(193);return r.properties=d(e),t&&(r.multiLine=!0),r}function ie(e,t){var r=l(194);return r.expression=y.parenthesizeForAccess(e),r.name=nr(t),ur(r,131072),r}function ae(e,t,r){var n=l(194);return n.flags|=32,n.expression=y.parenthesizeForAccess(e),n.questionDotToken=t,n.name=nr(r),ur(n,131072),n}function oe(e,t,r,n){return y.Debug.assert(!!(32&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==t||e.questionDotToken!==r||e.name!==n?_(ur(ae(t,r,n),y.getEmitFlags(e)),e):e}function se(e,t){var r=l(195);return r.expression=y.parenthesizeForAccess(e),r.argumentExpression=ir(t),r}function ce(e,t,r){var n=l(195);return n.flags|=32,n.expression=y.parenthesizeForAccess(e),n.questionDotToken=t,n.argumentExpression=ir(r),n}function ue(e,t,r,n){return y.Debug.assert(!!(32&e.flags),"Cannot update an ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==t||e.questionDotToken!==r||e.argumentExpression!==n?_(ce(t,r,n),e):e}function le(e,t,r){var n=l(196);return n.expression=y.parenthesizeForAccess(e),n.typeArguments=ar(t),n.arguments=y.parenthesizeListElements(d(r)),n}function _e(e,t,r,n){var i=l(196);return i.flags|=32,i.expression=y.parenthesizeForAccess(e),i.questionDotToken=t,i.typeArguments=ar(r),i.arguments=y.parenthesizeListElements(d(n)),i}function de(e,t,r,n,i){return y.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?_(_e(t,r,n,i),e):e}function pe(e,t,r){var n=l(197);return n.expression=y.parenthesizeForNew(e),n.typeArguments=ar(t),n.arguments=r?y.parenthesizeListElements(d(r)):void 0,n}function fe(e,t,r){var n=l(198);return n.tag=y.parenthesizeForAccess(e),r?(n.typeArguments=ar(t),n.template=r):(n.typeArguments=void 0,n.template=t),n}function ge(e,t){var r=l(199);return r.type=e,r.expression=y.parenthesizePrefixOperand(t),r}function me(e){var t=l(200);return t.expression=e,t}function ye(e,t,r,n,i,a,o){var s=l(201);return s.modifiers=ar(e),s.asteriskToken=t,s.name=nr(r),s.typeParameters=ar(n),s.parameters=d(i),s.type=a,s.body=o,s}function he(e,t,r,n,i,a){var o=l(202);return o.modifiers=ar(e),o.typeParameters=ar(t),o.parameters=d(r),o.type=n,o.equalsGreaterThanToken=i||l(38),o.body=y.parenthesizeConciseBody(a),o}function ve(e){var t=l(203);return t.expression=y.parenthesizePrefixOperand(e),t}function be(e){var t=l(204);return t.expression=y.parenthesizePrefixOperand(e),t}function xe(e){var t=l(205);return t.expression=y.parenthesizePrefixOperand(e),t}function De(e){var t=l(206);return t.expression=y.parenthesizePrefixOperand(e),t}function Se(e,t){var r=l(207);return r.operator=e,r.operand=y.parenthesizePrefixOperand(t),r}function Ce(e,t){var r=l(208);return r.operand=y.parenthesizePostfixOperand(e),r.operator=t,r}function Te(e,t,r){var n=l(209),t="number"==typeof(i=t)?u(i):i,i=t.kind;return n.left=y.parenthesizeBinaryOperand(i,e,!0,void 0),n.operatorToken=t,n.right=y.parenthesizeBinaryOperand(i,r,!1,n.left),n}function ke(e,t,r,n,i){var a=l(210);return a.condition=y.parenthesizeForConditionalHead(e),a.questionToken=i?t:l(57),a.whenTrue=y.parenthesizeSubexpressionOfConditionalExpression(i?r:t),a.colonToken=i?n:l(58),a.whenFalse=y.parenthesizeSubexpressionOfConditionalExpression(i||r),a}function Ee(e,t){var r=l(211);return r.head=e,r.templateSpans=d(t),r}y.createTempVariable=function(e,t){var r=o("");return r.autoGenerateFlags=1,r.autoGenerateId=c,c++,e&&e(r),t&&(r.autoGenerateFlags|=8),r},y.createLoopVariable=function(){var e=o("");return e.autoGenerateFlags=2,e.autoGenerateId=c,c++,e},y.createUniqueName=function(e){return(e=o(e)).autoGenerateFlags=3,e.autoGenerateId=c,c++,e},y.createOptimisticUniqueName=t,y.createFileLevelUniqueName=function(e){return(e=t(e)).autoGenerateFlags|=32,e},y.getGeneratedNameForNode=function(e,t){var r=o(e&&y.isIdentifier(e)?y.idText(e):"");return r.autoGenerateFlags=4|t,r.autoGenerateId=c,r.original=e,c++,r},y.createPrivateIdentifier=function(e){"#"!==e[0]&&y.Debug.fail("First character of private identifier must be #: "+e);var t=l(76);return t.escapedText=y.escapeLeadingUnderscores(e),t},y.createToken=u,y.createSuper=function(){return l(102)},y.createThis=function(){return l(104)},y.createNull=function(){return l(100)},y.createTrue=p,y.createFalse=f,y.createModifier=g,y.createModifiersFromModifierFlags=function(e){var t=[];return 1&e&&t.push(l(89)),2&e&&t.push(l(130)),512&e&&t.push(l(84)),2048&e&&t.push(l(81)),4&e&&t.push(l(119)),8&e&&t.push(l(117)),16&e&&t.push(l(118)),128&e&&t.push(l(122)),32&e&&t.push(l(120)),64&e&&t.push(l(138)),256&e&&t.push(l(126)),t},y.createQualifiedName=m,y.updateQualifiedName=function(e,t,r){return e.left!==t||e.right!==r?_(m(t,r),e):e},y.createComputedPropertyName=h,y.updateComputedPropertyName=function(e,t){return e.expression!==t?_(h(t),e):e},y.createTypeParameterDeclaration=v,y.updateTypeParameterDeclaration=function(e,t,r,n){return e.name!==t||e.constraint!==r||e.default!==n?_(v(t,r,n),e):e},y.createParameter=b,y.updateParameter=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?_(b(t,r,n,i,a,o,s),e):e},y.createDecorator=x,y.updateDecorator=function(e,t){return e.expression!==t?_(x(t),e):e},y.createPropertySignature=D,y.updatePropertySignature=function(e,t,r,n,i,a){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i||e.initializer!==a?_(D(t,r,n,i,a),e):e},y.createProperty=S,y.updateProperty=function(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.questionToken!==(void 0!==i&&57===i.kind?i:void 0)||e.exclamationToken!==(void 0!==i&&53===i.kind?i:void 0)||e.type!==a||e.initializer!==o?_(S(t,r,n,i,a,o),e):e},y.createMethodSignature=C,y.updateMethodSignature=function(e,t,r,n,i,a){return e.typeParameters!==t||e.parameters!==r||e.type!==n||e.name!==i||e.questionToken!==a?_(C(t,r,n,i,a),e):e},y.createMethod=T,y.createObjectDefinePropertyCall=function(e,t,r){return k("Object","defineProperty",[e,ir(t),r])},y.createPropertyDescriptor=function(e,t){var r=[];E(r,"enumerable",ir(e.enumerable)),E(r,"configurable",ir(e.configurable));var n=E(r,"writable",ir(e.writable)),n=E(r,"value",e.value)||n,i=E(r,"get",e.get),i=E(r,"set",e.set)||i;return y.Debug.assert(!(n&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),ne(r,!t)},y.updateMethod=function(e,t,r,n,i,a,o,s,c,u){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.questionToken!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?_(T(t,r,n,i,a,o,s,c,u),e):e},y.createConstructor=N,y.updateConstructor=function(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.parameters!==n||e.body!==i?_(N(t,r,n,i),e):e},y.createGetAccessor=A,y.updateGetAccessor=function(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?_(A(t,r,n,i,a,o),e):e},y.createSetAccessor=F,y.updateSetAccessor=function(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.body!==a?_(F(t,r,n,i,a),e):e},y.createCallSignature=function(e,t,r){return w(165,e,t,r)},y.updateCallSignature=I,y.createConstructSignature=function(e,t,r){return w(166,e,t,r)},y.updateConstructSignature=I,y.createIndexSignature=P,y.updateIndexSignature=function(e,t,r,n,i){return e.parameters!==n||e.type!==i||e.decorators!==t||e.modifiers!==r?_(P(t,r,n,i),e):e},y.createSignatureDeclaration=w,y.createKeywordTypeNode=l,y.createTypePredicateNode=function(e,t){return O(void 0,e,t)},y.createTypePredicateNodeWithModifier=O,y.updateTypePredicateNode=function(e,t,r){return M(e,e.assertsModifier,t,r)},y.updateTypePredicateNodeWithModifier=M,y.createTypeReferenceNode=L,y.updateTypeReferenceNode=function(e,t,r){return e.typeName!==t||e.typeArguments!==r?_(L(t,r),e):e},y.createFunctionTypeNode=function(e,t,r){return w(170,e,t,r)},y.updateFunctionTypeNode=I,y.createConstructorTypeNode=function(e,t,r){return w(171,e,t,r)},y.updateConstructorTypeNode=I,y.createTypeQueryNode=R,y.updateTypeQueryNode=function(e,t){return e.exprName!==t?_(R(t),e):e},y.createTypeLiteralNode=B,y.updateTypeLiteralNode=function(e,t){return e.members!==t?_(B(t),e):e},y.createArrayTypeNode=j,y.updateArrayTypeNode=function(e,t){return e.elementType!==t?_(j(t),e):e},y.createTupleTypeNode=J,y.updateTupleTypeNode=function(e,t){return e.elementTypes!==t?_(J(t),e):e},y.createOptionalTypeNode=z,y.updateOptionalTypeNode=function(e,t){return e.type!==t?_(z(t),e):e},y.createRestTypeNode=U,y.updateRestTypeNode=function(e,t){return e.type!==t?_(U(t),e):e},y.createUnionTypeNode=function(e){return V(178,e)},y.updateUnionTypeNode=K,y.createIntersectionTypeNode=function(e){return V(179,e)},y.updateIntersectionTypeNode=K,y.createUnionOrIntersectionTypeNode=V,y.createConditionalTypeNode=q,y.updateConditionalTypeNode=function(e,t,r,n,i){return e.checkType!==t||e.extendsType!==r||e.trueType!==n||e.falseType!==i?_(q(t,r,n,i),e):e},y.createInferTypeNode=W,y.updateInferTypeNode=function(e,t){return e.typeParameter!==t?_(W(t),e):e},y.createImportTypeNode=H,y.updateImportTypeNode=function(e,t,r,n,i){return e.argument!==t||e.qualifier!==r||e.typeArguments!==n||e.isTypeOf!==i?_(H(t,r,n,i),e):e},y.createParenthesizedType=G,y.updateParenthesizedType=function(e,t){return e.type!==t?_(G(t),e):e},y.createThisTypeNode=function(){return l(183)},y.createTypeOperatorNode=Q,y.updateTypeOperatorNode=function(e,t){return e.type!==t?_(Q(e.operator,t),e):e},y.createIndexedAccessTypeNode=X,y.updateIndexedAccessTypeNode=function(e,t,r){return e.objectType!==t||e.indexType!==r?_(X(t,r),e):e},y.createMappedTypeNode=Y,y.updateMappedTypeNode=function(e,t,r,n,i){return e.readonlyToken!==t||e.typeParameter!==r||e.questionToken!==n||e.type!==i?_(Y(t,r,n,i),e):e},y.createLiteralTypeNode=Z,y.updateLiteralTypeNode=function(e,t){return e.literal!==t?_(Z(t),e):e},y.createObjectBindingPattern=$,y.updateObjectBindingPattern=function(e,t){return e.elements!==t?_($(t),e):e},y.createArrayBindingPattern=ee,y.updateArrayBindingPattern=function(e,t){return e.elements!==t?_(ee(t),e):e},y.createBindingElement=te,y.updateBindingElement=function(e,t,r,n,i){return e.propertyName!==r||e.dotDotDotToken!==t||e.name!==n||e.initializer!==i?_(te(t,r,n,i),e):e},y.createArrayLiteral=re,y.updateArrayLiteral=function(e,t){return e.elements!==t?_(re(t,e.multiLine),e):e},y.createObjectLiteral=ne,y.updateObjectLiteral=function(e,t){return e.properties!==t?_(ne(t,e.multiLine),e):e},y.createPropertyAccess=ie,y.updatePropertyAccess=function(e,t,r){return y.isPropertyAccessChain(e)?oe(e,t,e.questionDotToken,y.cast(r,y.isIdentifier)):e.expression!==t||e.name!==r?_(ur(ie(t,r),y.getEmitFlags(e)),e):e},y.createPropertyAccessChain=ae,y.updatePropertyAccessChain=oe,y.createElementAccess=se,y.updateElementAccess=function(e,t,r){return y.isOptionalChain(e)?ue(e,t,e.questionDotToken,r):e.expression!==t||e.argumentExpression!==r?_(se(t,r),e):e},y.createElementAccessChain=ce,y.updateElementAccessChain=ue,y.createCall=le,y.updateCall=function(e,t,r,n){return y.isOptionalChain(e)?de(e,t,e.questionDotToken,r,n):e.expression!==t||e.typeArguments!==r||e.arguments!==n?_(le(t,r,n),e):e},y.createCallChain=_e,y.updateCallChain=de,y.createNew=pe,y.updateNew=function(e,t,r,n){return e.expression!==t||e.typeArguments!==r||e.arguments!==n?_(pe(t,r,n),e):e},y.createTaggedTemplate=fe,y.updateTaggedTemplate=function(e,t,r,n){return e.tag!==t||(n?e.typeArguments!==r||e.template!==n:void 0!==e.typeArguments||e.template!==r)?_(fe(t,r,n),e):e},y.createTypeAssertion=ge,y.updateTypeAssertion=function(e,t,r){return e.type!==t||e.expression!==r?_(ge(t,r),e):e},y.createParen=me,y.updateParen=function(e,t){return e.expression!==t?_(me(t),e):e},y.createFunctionExpression=ye,y.updateFunctionExpression=function(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?_(ye(t,r,n,i,a,o,s),e):e},y.createArrowFunction=he,y.updateArrowFunction=function(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?_(he(t,r,n,i,a,o),e):e},y.createDelete=ve,y.updateDelete=function(e,t){return e.expression!==t?_(ve(t),e):e},y.createTypeOf=be,y.updateTypeOf=function(e,t){return e.expression!==t?_(be(t),e):e},y.createVoid=xe,y.updateVoid=function(e,t){return e.expression!==t?_(xe(t),e):e},y.createAwait=De,y.updateAwait=function(e,t){return e.expression!==t?_(De(t),e):e},y.createPrefix=Se,y.updatePrefix=function(e,t){return e.operand!==t?_(Se(e.operator,t),e):e},y.createPostfix=Ce,y.updatePostfix=function(e,t){return e.operand!==t?_(Ce(t,e.operator),e):e},y.createBinary=Te,y.updateBinary=function(e,t,r,n){return e.left!==t||e.right!==r?_(Te(t,n||e.operatorToken,r),e):e},y.createConditional=ke,y.updateConditional=function(e,t,r,n,i,a){return e.condition!==t||e.questionToken!==r||e.whenTrue!==n||e.colonToken!==i||e.whenFalse!==a?_(ke(t,r,n,i,a),e):e},y.createTemplateExpression=Ee,y.updateTemplateExpression=function(e,t,r){return e.head!==t||e.templateSpans!==r?_(Ee(t,r),e):e};var Ne,Ae,Fe={};function Pe(e,t,r){var n=l(e);if(n.text=t,void 0===r||t===r)n.rawText=r;else{e=function(e,t){switch(s=s||y.createScanner(99,!1,0),e){case 14:s.setText("`"+t+"`");break;case 15:s.setText("`"+t+"${");break;case 16:s.setText("}"+t+"${");break;case 17:s.setText("}"+t+"`")}var r;if(23===(e=s.scan())&&(e=s.reScanTemplateToken(!1)),s.isUnterminated())return s.setText(void 0),Fe;switch(e){case 14:case 15:case 16:case 17:r=s.getTokenValue()}return 1!==s.scan()?(s.setText(void 0),Fe):(s.setText(void 0),r)}(e,r);if("object"==typeof e)return y.Debug.fail("Invalid raw text");y.Debug.assert(t===e,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'."),n.rawText=r}return n}function we(e,t){var r=e&&41===e.kind?e:void 0;t=e&&41!==e.kind?e:t;e=l(212);return e.asteriskToken=r,e.expression=t&&y.parenthesizeExpressionForList(t),e}function Ie(e){var t=l(213);return t.expression=y.parenthesizeExpressionForList(e),t}function Oe(e,t,r,n,i){var a=l(214);return a.decorators=void 0,a.modifiers=ar(e),a.name=nr(t),a.typeParameters=ar(r),a.heritageClauses=ar(n),a.members=d(i),a}function Me(e,t){var r=l(216);return r.expression=y.parenthesizeForAccess(t),r.typeArguments=ar(e),r}function Le(e,t){var r=l(217);return r.expression=e,r.type=t,r}function Re(e){var t=l(218);return t.expression=y.parenthesizeForAccess(e),t}function Be(e){var t=l(218);return t.flags|=32,t.expression=y.parenthesizeForAccess(e),t}function je(e,t){return y.Debug.assert(!!(32&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==t?_(Be(t),e):e}function Je(e,t){var r=l(219);return r.keywordToken=e,r.name=t,r}function ze(e,t){var r=l(221);return r.expression=e,r.literal=t,r}function Ue(e,t){var r=l(223);return r.statements=d(e),t&&(r.multiLine=t),r}function Ve(e,t){var r=l(225);return r.decorators=void 0,r.modifiers=ar(e),r.declarationList=y.isArray(t)?ut(t):t,r}function Ke(){return l(224)}function qe(e){var t=l(226);return t.expression=y.parenthesizeExpressionForExpressionStatement(e),t}function We(e,t){return e.expression!==t?_(qe(t),e):e}function He(e,t,r){var n=l(227);return n.expression=e,n.thenStatement=or(t),n.elseStatement=or(r),n}function Ge(e,t){var r=l(228);return r.statement=or(e),r.expression=t,r}function Qe(e,t){var r=l(229);return r.expression=e,r.statement=or(t),r}function Xe(e,t,r,n){var i=l(230);return i.initializer=e,i.condition=t,i.incrementor=r,i.statement=or(n),i}function Ye(e,t,r){var n=l(231);return n.initializer=e,n.expression=t,n.statement=or(r),n}function Ze(e,t,r,n){var i=l(232);return i.awaitModifier=e,i.initializer=t,i.expression=y.isCommaSequence(r)?me(r):r,i.statement=or(n),i}function $e(e){var t=l(233);return t.label=nr(e),t}function et(e){var t=l(234);return t.label=nr(e),t}function tt(e){var t=l(235);return t.expression=e,t}function rt(e,t){var r=l(236);return r.expression=e,r.statement=or(t),r}function nt(e,t){var r=l(237);return r.expression=y.parenthesizeExpressionForList(e),r.caseBlock=t,r}function it(e,t){var r=l(238);return r.label=nr(e),r.statement=or(t),r}function at(e){var t=l(239);return t.expression=e,t}function ot(e,t,r){var n=l(240);return n.tryBlock=e,n.catchClause=t,n.finallyBlock=r,n}function st(e,t,r){var n=l(242);return n.name=nr(e),n.type=t,n.initializer=void 0!==r?y.parenthesizeExpressionForList(r):void 0,n}function ct(e,t,r,n){var i=l(242);return i.name=nr(e),i.type=r,i.initializer=void 0!==n?y.parenthesizeExpressionForList(n):void 0,i.exclamationToken=t,i}function ut(e,t){void 0===t&&(t=0);var r=l(243);return r.flags|=3&t,r.declarations=d(e),r}function lt(e,t,r,n,i,a,o,s){var c=l(244);return c.decorators=ar(e),c.modifiers=ar(t),c.asteriskToken=r,c.name=nr(n),c.typeParameters=ar(i),c.parameters=d(a),c.type=o,c.body=s,c}function _t(e,t,r,n,i,a){var o=l(245);return o.decorators=ar(e),o.modifiers=ar(t),o.name=nr(r),o.typeParameters=ar(n),o.heritageClauses=ar(i),o.members=d(a),o}function dt(e,t,r,n,i,a){var o=l(246);return o.decorators=ar(e),o.modifiers=ar(t),o.name=nr(r),o.typeParameters=ar(n),o.heritageClauses=ar(i),o.members=d(a),o}function pt(e,t,r,n,i){var a=l(247);return a.decorators=ar(e),a.modifiers=ar(t),a.name=nr(r),a.typeParameters=ar(n),a.type=i,a}function ft(e,t,r,n){var i=l(248);return i.decorators=ar(e),i.modifiers=ar(t),i.name=nr(r),i.members=d(n),i}function gt(e,t,r,n,i){void 0===i&&(i=0);var a=l(249);return a.flags|=1044&i,a.decorators=ar(e),a.modifiers=ar(t),a.name=r,a.body=n,a}function mt(e){var t=l(250);return t.statements=d(e),t}function yt(e){var t=l(251);return t.clauses=d(e),t}function ht(e){var t=l(252);return t.name=nr(e),t}function vt(e,t,r,n){var i=l(253);return i.decorators=ar(e),i.modifiers=ar(t),i.name=nr(r),i.moduleReference=n,i}function bt(e,t,r,n){var i=l(254);return i.decorators=ar(e),i.modifiers=ar(t),i.importClause=r,i.moduleSpecifier=n,i}function xt(e,t,r){void 0===r&&(r=!1);var n=l(255);return n.name=e,n.namedBindings=t,n.isTypeOnly=r,n}function Dt(e){var t=l(256);return t.name=e,t}function St(e){var t=l(262);return t.name=e,t}function Ct(e){var t=l(257);return t.elements=d(e),t}function Tt(e,t){var r=l(258);return r.propertyName=e,r.name=t,r}function kt(e,t,r,n){var i=l(259);return i.decorators=ar(e),i.modifiers=ar(t),i.isExportEquals=r,i.expression=r?y.parenthesizeBinaryOperand(62,n,!1,void 0):y.parenthesizeDefaultExpression(n),i}function Et(e,t,r,n,i){void 0===i&&(i=!1);var a=l(260);return a.decorators=ar(e),a.modifiers=ar(t),a.isTypeOnly=i,a.exportClause=r,a.moduleSpecifier=n,a}function Nt(e){var t=l(261);return t.elements=d(e),t}function At(e,t){var r=l(263);return r.propertyName=nr(e),r.name=nr(t),r}function Ft(e){var t=l(265);return t.expression=e,t}function Pt(e,t){e=l(e);return e.tagName=o(t),e}function wt(e,t,r){var n=l(266);return n.openingElement=e,n.children=d(t),n.closingElement=r,n}function It(e,t,r){var n=l(267);return n.tagName=e,n.typeArguments=ar(t),n.attributes=r,n}function Ot(e,t,r){var n=l(268);return n.tagName=e,n.typeArguments=ar(t),n.attributes=r,n}function Mt(e){var t=l(269);return t.tagName=e,t}function Lt(e,t,r){var n=l(270);return n.openingFragment=e,n.children=d(t),n.closingFragment=r,n}function Rt(e,t){var r=l(11);return r.text=e,r.containsOnlyTriviaWhiteSpaces=!!t,r}function Bt(e,t){var r=l(273);return r.name=e,r.initializer=t,r}function jt(e){var t=l(274);return t.properties=d(e),t}function Jt(e){var t=l(275);return t.expression=e,t}function zt(e,t){var r=l(276);return r.dotDotDotToken=e,r.expression=t,r}function Ut(e,t){var r=l(277);return r.expression=y.parenthesizeExpressionForList(e),r.statements=d(t),r}function Vt(e){var t=l(278);return t.statements=d(e),t}function Kt(e,t){var r=l(279);return r.token=e,r.types=d(t),r}function qt(e,t){var r=l(280);return r.variableDeclaration=y.isString(e)?st(e):e,r.block=t,r}function Wt(e,t){var r=l(281);return r.name=nr(e),r.questionToken=void 0,r.initializer=y.parenthesizeExpressionForList(t),r}function Ht(e,t){var r=l(282);return r.name=nr(e),r.objectAssignmentInitializer=void 0!==t?y.parenthesizeExpressionForList(t):void 0,r}function Gt(e){var t=l(283);return t.expression=y.parenthesizeExpressionForList(e),t}function Qt(e,t){var r=l(284);return r.name=nr(e),r.initializer=t&&y.parenthesizeExpressionForList(t),r}function Xt(e,t){var r=l(326);return r.expression=e,r.original=t,cr(r,t),r}function Yt(e){if(y.nodeIsSynthesized(e)&&!y.isParseTreeNode(e)&&!e.original&&!e.emitNode&&!e.id){if(327===e.kind)return e.elements;if(y.isBinaryExpression(e)&&27===e.operatorToken.kind)return[e.left,e.right]}return e}function Zt(e){var t=l(327);return t.elements=d(y.sameFlatMap(e,Yt)),t}function $t(e,t){var r=l(330);return r.expression=e,r.thisArg=t,r}function er(e,t){void 0===t&&(t=y.emptyArray);var r=y.createNode(291);return r.prepends=t,r.sourceFiles=e,r}function tr(){return Ne=Ne||y.arrayToMap([y.valuesHelper,y.readHelper,y.spreadHelper,y.spreadArraysHelper,y.restHelper,y.decorateHelper,y.metadataHelper,y.paramHelper,y.awaiterHelper,y.assignHelper,y.awaitHelper,y.asyncGeneratorHelper,y.asyncDelegator,y.asyncValues,y.extendsHelper,y.templateObjectHelper,y.generatorHelper,y.importStarHelper,y.importDefaultHelper,y.classPrivateFieldGetHelper,y.classPrivateFieldSetHelper,y.createBindingHelper,y.setModuleDefaultHelper],function(e){return e.name})}function rr(e,t){var r=y.createNode(function(e){switch(e){case"prologue":return 285;case"prepend":return 286;case"internal":return 288;case"text":return 287;case"emitHelpers":case"no-default-lib":case"reference":case"type":case"lib":return y.Debug.fail("BundleFileSectionKind: "+e+" not yet mapped to SyntaxKind");default:return y.Debug.assertNever(e)}}(e.kind),e.pos,e.end);return r.parent=t,r.data=e.data,r}function nr(e){return y.isString(e)?o(e):e}function ir(e){return"string"==typeof e?a(e):"number"==typeof e?n(""+e):"boolean"==typeof e?(e?p:f)():e}function ar(e){return e?d(e):void 0}function or(e){return e&&y.isNotEmittedStatement(e)?cr(fr(Ke(),e),e):e}function sr(e){if(!e.emitNode){if(y.isParseTreeNode(e)){if(290===e.kind)return e.emitNode={annotatedNodes:[e]};sr(y.getSourceFileOfNode(y.getParseTreeNode(y.getSourceFileOfNode(e)))).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function cr(e,t){return t&&(e.pos=t.pos,e.end=t.end),e}function ur(e,t){return sr(e).flags=t,e}function lr(e){e=e.emitNode;return e&&e.leadingComments}function _r(e,t){return sr(e).leadingComments=t,e}function dr(e){e=e.emitNode;return e&&e.trailingComments}function pr(e,t){return sr(e).trailingComments=t,e}function fr(e,t){return!(e.original=t)||(t=t.emitNode)&&(e.emitNode=function(e,t){var r=e.flags,n=e.leadingComments,i=e.trailingComments,a=e.commentRange,o=e.sourceMapRange,s=e.tokenSourceMapRanges,c=e.constantValue,u=e.helpers,e=e.startsOnNewLine;t=t||{};n&&(t.leadingComments=y.addRange(n.slice(),t.leadingComments));i&&(t.trailingComments=y.addRange(i.slice(),t.trailingComments));r&&(t.flags=r);a&&(t.commentRange=a);o&&(t.sourceMapRange=o);s&&(t.tokenSourceMapRanges=function(e,t){t=t||[];for(var r in e)t[r]=e[r];return t}(s,t.tokenSourceMapRanges));void 0!==c&&(t.constantValue=c);u&&(t.helpers=y.addRange(t.helpers,u));void 0!==e&&(t.startsOnNewLine=e);return t}(t,e.emitNode)),e}y.createTemplateHead=function(e,t){return(t=Pe(15,e,t)).text=e,t},y.createTemplateMiddle=function(e,t){return(t=Pe(16,e,t)).text=e,t},y.createTemplateTail=function(e,t){return(t=Pe(17,e,t)).text=e,t},y.createNoSubstitutionTemplateLiteral=function(e,t){return Pe(14,e,t)},y.createYield=we,y.updateYield=function(e,t,r){return e.expression!==r||e.asteriskToken!==t?_(we(t,r),e):e},y.createSpread=Ie,y.updateSpread=function(e,t){return e.expression!==t?_(Ie(t),e):e},y.createClassExpression=Oe,y.updateClassExpression=function(e,t,r,n,i,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==n||e.heritageClauses!==i||e.members!==a?_(Oe(t,r,n,i,a),e):e},y.createOmittedExpression=function(){return l(215)},y.createExpressionWithTypeArguments=Me,y.updateExpressionWithTypeArguments=function(e,t,r){return e.typeArguments!==t||e.expression!==r?_(Me(t,r),e):e},y.createAsExpression=Le,y.updateAsExpression=function(e,t,r){return e.expression!==t||e.type!==r?_(Le(t,r),e):e},y.createNonNullExpression=Re,y.updateNonNullExpression=function(e,t){return y.isNonNullChain(e)?je(e,t):e.expression!==t?_(Re(t),e):e},y.createNonNullChain=Be,y.updateNonNullChain=je,y.createMetaProperty=Je,y.updateMetaProperty=function(e,t){return e.name!==t?_(Je(e.keywordToken,t),e):e},y.createTemplateSpan=ze,y.updateTemplateSpan=function(e,t,r){return e.expression!==t||e.literal!==r?_(ze(t,r),e):e},y.createSemicolonClassElement=function(){return l(222)},y.createBlock=Ue,y.updateBlock=function(e,t){return e.statements!==t?_(Ue(t,e.multiLine),e):e},y.createVariableStatement=Ve,y.updateVariableStatement=function(e,t,r){return e.modifiers!==t||e.declarationList!==r?_(Ve(t,r),e):e},y.createEmptyStatement=Ke,y.createExpressionStatement=qe,y.updateExpressionStatement=We,y.createStatement=qe,y.updateStatement=We,y.createIf=He,y.updateIf=function(e,t,r,n){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==n?_(He(t,r,n),e):e},y.createDo=Ge,y.updateDo=function(e,t,r){return e.statement!==t||e.expression!==r?_(Ge(t,r),e):e},y.createWhile=Qe,y.updateWhile=function(e,t,r){return e.expression!==t||e.statement!==r?_(Qe(t,r),e):e},y.createFor=Xe,y.updateFor=function(e,t,r,n,i){return e.initializer!==t||e.condition!==r||e.incrementor!==n||e.statement!==i?_(Xe(t,r,n,i),e):e},y.createForIn=Ye,y.updateForIn=function(e,t,r,n){return e.initializer!==t||e.expression!==r||e.statement!==n?_(Ye(t,r,n),e):e},y.createForOf=Ze,y.updateForOf=function(e,t,r,n,i){return e.awaitModifier!==t||e.initializer!==r||e.expression!==n||e.statement!==i?_(Ze(t,r,n,i),e):e},y.createContinue=$e,y.updateContinue=function(e,t){return e.label!==t?_($e(t),e):e},y.createBreak=et,y.updateBreak=function(e,t){return e.label!==t?_(et(t),e):e},y.createReturn=tt,y.updateReturn=function(e,t){return e.expression!==t?_(tt(t),e):e},y.createWith=rt,y.updateWith=function(e,t,r){return e.expression!==t||e.statement!==r?_(rt(t,r),e):e},y.createSwitch=nt,y.updateSwitch=function(e,t,r){return e.expression!==t||e.caseBlock!==r?_(nt(t,r),e):e},y.createLabel=it,y.updateLabel=function(e,t,r){return e.label!==t||e.statement!==r?_(it(t,r),e):e},y.createThrow=at,y.updateThrow=function(e,t){return e.expression!==t?_(at(t),e):e},y.createTry=ot,y.updateTry=function(e,t,r,n){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==n?_(ot(t,r,n),e):e},y.createDebuggerStatement=function(){return l(241)},y.createVariableDeclaration=st,y.updateVariableDeclaration=function(e,t,r,n){return e.name!==t||e.type!==r||e.initializer!==n?_(st(t,r,n),e):e},y.createTypeScriptVariableDeclaration=ct,y.updateTypeScriptVariableDeclaration=function(e,t,r,n,i){return e.name!==t||e.type!==n||e.initializer!==i||e.exclamationToken!==r?_(ct(t,r,n,i),e):e},y.createVariableDeclarationList=ut,y.updateVariableDeclarationList=function(e,t){return e.declarations!==t?_(ut(t,e.flags),e):e},y.createFunctionDeclaration=lt,y.updateFunctionDeclaration=function(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?_(lt(t,r,n,i,a,o,s,c),e):e},y.updateFunctionLikeBody=function(e,t){switch(e.kind){case 244:return lt(e.decorators,e.modifiers,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,t);case 161:return T(e.decorators,e.modifiers,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,t);case 163:return A(e.decorators,e.modifiers,e.name,e.parameters,e.type,t);case 164:return F(e.decorators,e.modifiers,e.name,e.parameters,t);case 162:return N(e.decorators,e.modifiers,e.parameters,t);case 201:return ye(e.modifiers,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,t);case 202:return he(e.modifiers,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,t)}},y.createClassDeclaration=_t,y.updateClassDeclaration=function(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?_(_t(t,r,n,i,a,o),e):e},y.createInterfaceDeclaration=dt,y.updateInterfaceDeclaration=function(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?_(dt(t,r,n,i,a,o),e):e},y.createTypeAliasDeclaration=pt,y.updateTypeAliasDeclaration=function(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.type!==a?_(pt(t,r,n,i,a),e):e},y.createEnumDeclaration=ft,y.updateEnumDeclaration=function(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.members!==i?_(ft(t,r,n,i),e):e},y.createModuleDeclaration=gt,y.updateModuleDeclaration=function(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.body!==i?_(gt(t,r,n,i,e.flags),e):e},y.createModuleBlock=mt,y.updateModuleBlock=function(e,t){return e.statements!==t?_(mt(t),e):e},y.createCaseBlock=yt,y.updateCaseBlock=function(e,t){return e.clauses!==t?_(yt(t),e):e},y.createNamespaceExportDeclaration=ht,y.updateNamespaceExportDeclaration=function(e,t){return e.name!==t?_(ht(t),e):e},y.createImportEqualsDeclaration=vt,y.updateImportEqualsDeclaration=function(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.moduleReference!==i?_(vt(t,r,n,i),e):e},y.createImportDeclaration=bt,y.updateImportDeclaration=function(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.importClause!==n||e.moduleSpecifier!==i?_(bt(t,r,n,i),e):e},y.createImportClause=xt,y.updateImportClause=function(e,t,r,n){return e.name!==t||e.namedBindings!==r||e.isTypeOnly!==n?_(xt(t,r,n),e):e},y.createNamespaceImport=Dt,y.createNamespaceExport=St,y.updateNamespaceImport=function(e,t){return e.name!==t?_(Dt(t),e):e},y.updateNamespaceExport=function(e,t){return e.name!==t?_(St(t),e):e},y.createNamedImports=Ct,y.updateNamedImports=function(e,t){return e.elements!==t?_(Ct(t),e):e},y.createImportSpecifier=Tt,y.updateImportSpecifier=function(e,t,r){return e.propertyName!==t||e.name!==r?_(Tt(t,r),e):e},y.createExportAssignment=kt,y.updateExportAssignment=function(e,t,r,n){return e.decorators!==t||e.modifiers!==r||e.expression!==n?_(kt(t,r,e.isExportEquals,n),e):e},y.createExportDeclaration=Et,y.updateExportDeclaration=function(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.isTypeOnly!==a||e.exportClause!==n||e.moduleSpecifier!==i?_(Et(t,r,n,i,a),e):e},y.createEmptyExports=function(){return Et(void 0,void 0,Nt([]),void 0)},y.createNamedExports=Nt,y.updateNamedExports=function(e,t){return e.elements!==t?_(Nt(t),e):e},y.createExportSpecifier=At,y.updateExportSpecifier=function(e,t,r){return e.propertyName!==t||e.name!==r?_(At(t,r),e):e},y.createExternalModuleReference=Ft,y.updateExternalModuleReference=function(e,t){return e.expression!==t?_(Ft(t),e):e},y.createJSDocTypeExpression=function(e){var t=l(294);return t.type=e,t},y.createJSDocTypeTag=function(e,t){var r=Pt(320,"type");return r.typeExpression=e,r.comment=t,r},y.createJSDocReturnTag=function(e,t){var r=Pt(318,"returns");return r.typeExpression=e,r.comment=t,r},y.createJSDocThisTag=function(e){var t=Pt(319,"this");return t.typeExpression=e,t},y.createJSDocParamTag=function(e,t,r,n){var i=Pt(317,"param");return i.typeExpression=r,i.name=e,i.isBracketed=t,i.comment=n,i},y.createJSDocClassTag=function(){return Pt(310,"class")},y.createJSDocComment=function(e,t){var r=l(303);return r.comment=e,r.tags=t,r},y.createJsxElement=wt,y.updateJsxElement=function(e,t,r,n){return e.openingElement!==t||e.children!==r||e.closingElement!==n?_(wt(t,r,n),e):e},y.createJsxSelfClosingElement=It,y.updateJsxSelfClosingElement=function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?_(It(t,r,n),e):e},y.createJsxOpeningElement=Ot,y.updateJsxOpeningElement=function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?_(Ot(t,r,n),e):e},y.createJsxClosingElement=Mt,y.updateJsxClosingElement=function(e,t){return e.tagName!==t?_(Mt(t),e):e},y.createJsxFragment=Lt,y.createJsxText=Rt,y.updateJsxText=function(e,t,r){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==r?_(Rt(t,r),e):e},y.createJsxOpeningFragment=function(){return l(271)},y.createJsxJsxClosingFragment=function(){return l(272)},y.updateJsxFragment=function(e,t,r,n){return e.openingFragment!==t||e.children!==r||e.closingFragment!==n?_(Lt(t,r,n),e):e},y.createJsxAttribute=Bt,y.updateJsxAttribute=function(e,t,r){return e.name!==t||e.initializer!==r?_(Bt(t,r),e):e},y.createJsxAttributes=jt,y.updateJsxAttributes=function(e,t){return e.properties!==t?_(jt(t),e):e},y.createJsxSpreadAttribute=Jt,y.updateJsxSpreadAttribute=function(e,t){return e.expression!==t?_(Jt(t),e):e},y.createJsxExpression=zt,y.updateJsxExpression=function(e,t){return e.expression!==t?_(zt(e.dotDotDotToken,t),e):e},y.createCaseClause=Ut,y.updateCaseClause=function(e,t,r){return e.expression!==t||e.statements!==r?_(Ut(t,r),e):e},y.createDefaultClause=Vt,y.updateDefaultClause=function(e,t){return e.statements!==t?_(Vt(t),e):e},y.createHeritageClause=Kt,y.updateHeritageClause=function(e,t){return e.types!==t?_(Kt(e.token,t),e):e},y.createCatchClause=qt,y.updateCatchClause=function(e,t,r){return e.variableDeclaration!==t||e.block!==r?_(qt(t,r),e):e},y.createPropertyAssignment=Wt,y.updatePropertyAssignment=function(e,t,r){return e.name!==t||e.initializer!==r?_(Wt(t,r),e):e},y.createShorthandPropertyAssignment=Ht,y.updateShorthandPropertyAssignment=function(e,t,r){return e.name!==t||e.objectAssignmentInitializer!==r?_(Ht(t,r),e):e},y.createSpreadAssignment=Gt,y.updateSpreadAssignment=function(e,t){return e.expression!==t?_(Gt(t),e):e},y.createEnumMember=Qt,y.updateEnumMember=function(e,t,r){return e.name!==t||e.initializer!==r?_(Qt(t,r),e):e},y.updateSourceFileNode=function(e,t,r,n,i,a,o){if(e.statements!==t||void 0!==r&&e.isDeclarationFile!==r||void 0!==n&&e.referencedFiles!==n||void 0!==i&&e.typeReferenceDirectives!==i||void 0!==o&&e.libReferenceDirectives!==o||void 0!==a&&e.hasNoDefaultLib!==a){var s=l(290);return s.flags|=e.flags,s.statements=d(t),s.endOfFileToken=e.endOfFileToken,s.fileName=e.fileName,s.path=e.path,s.text=e.text,s.isDeclarationFile=void 0===r?e.isDeclarationFile:r,s.referencedFiles=void 0===n?e.referencedFiles:n,s.typeReferenceDirectives=void 0===i?e.typeReferenceDirectives:i,s.hasNoDefaultLib=void 0===a?e.hasNoDefaultLib:a,s.libReferenceDirectives=void 0===o?e.libReferenceDirectives:o,void 0!==e.amdDependencies&&(s.amdDependencies=e.amdDependencies),void 0!==e.moduleName&&(s.moduleName=e.moduleName),void 0!==e.languageVariant&&(s.languageVariant=e.languageVariant),void 0!==e.renamedDependencies&&(s.renamedDependencies=e.renamedDependencies),void 0!==e.languageVersion&&(s.languageVersion=e.languageVersion),void 0!==e.scriptKind&&(s.scriptKind=e.scriptKind),void 0!==e.externalModuleIndicator&&(s.externalModuleIndicator=e.externalModuleIndicator),void 0!==e.commonJsModuleIndicator&&(s.commonJsModuleIndicator=e.commonJsModuleIndicator),void 0!==e.identifiers&&(s.identifiers=e.identifiers),void 0!==e.nodeCount&&(s.nodeCount=e.nodeCount),void 0!==e.identifierCount&&(s.identifierCount=e.identifierCount),void 0!==e.symbolCount&&(s.symbolCount=e.symbolCount),void 0!==e.parseDiagnostics&&(s.parseDiagnostics=e.parseDiagnostics),void 0!==e.bindDiagnostics&&(s.bindDiagnostics=e.bindDiagnostics),void 0!==e.bindSuggestionDiagnostics&&(s.bindSuggestionDiagnostics=e.bindSuggestionDiagnostics),void 0!==e.lineMap&&(s.lineMap=e.lineMap),void 0!==e.classifiableNames&&(s.classifiableNames=e.classifiableNames),void 0!==e.resolvedModules&&(s.resolvedModules=e.resolvedModules),void 0!==e.resolvedTypeReferenceDirectiveNames&&(s.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames),void 0!==e.imports&&(s.imports=e.imports),void 0!==e.moduleAugmentations&&(s.moduleAugmentations=e.moduleAugmentations),void 0!==e.pragmas&&(s.pragmas=e.pragmas),void 0!==e.localJsxFactory&&(s.localJsxFactory=e.localJsxFactory),void 0!==e.localJsxNamespace&&(s.localJsxNamespace=e.localJsxNamespace),_(s,e)}return e},y.getMutableClone=function(e){var t=r(e);return t.pos=e.pos,t.end=e.end,t.parent=e.parent,t},y.createNotEmittedStatement=function(e){var t=l(325);return t.original=e,cr(t,e),t},y.createEndOfDeclarationMarker=function(e){var t=l(329);return t.emitNode={},t.original=e,t},y.createMergeDeclarationMarker=function(e){var t=l(328);return t.emitNode={},t.original=e,t},y.createPartiallyEmittedExpression=Xt,y.updatePartiallyEmittedExpression=function(e,t){return e.expression!==t?_(Xt(t,e.original),e):e},y.createCommaList=Zt,y.updateCommaList=function(e,t){return e.elements!==t?_(Zt(t),e):e},y.createSyntheticReferenceExpression=$t,y.updateSyntheticReferenceExpression=function(e,t,r){return e.expression!==t||e.thisArg!==r?_($t(t,r),e):e},y.createBundle=er,y.createUnparsedSourceFile=function(e,t,r){var n,i,a,o=((n=y.createNode(292)).prologues=y.emptyArray,n.referencedFiles=y.emptyArray,n.libReferenceDirectives=y.emptyArray,n.getLineAndCharacterOfPosition=function(e){return y.getLineAndCharacterOfPosition(n,e)},n);if(y.isString(e))o.fileName="",o.text=e,o.sourceMapPath=t,o.sourceMapText=r;else if(y.Debug.assert("js"===t||"dts"===t),o.fileName=("js"===t?e.javascriptPath:e.declarationPath)||"",o.sourceMapPath="js"===t?e.javascriptMapPath:e.declarationMapPath,Object.defineProperties(o,{text:{get:function(){return"js"===t?e.javascriptText:e.declarationText}},sourceMapText:{get:function(){return"js"===t?e.javascriptMapText:e.declarationMapText}}}),e.buildInfo&&e.buildInfo.bundle&&(o.oldFileOfCurrentEmit=e.oldFileOfCurrentEmit,y.Debug.assert(void 0===r||"boolean"==typeof r),i=r,a="js"===t?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,o.oldFileOfCurrentEmit))return function(e,t){var r,n;y.Debug.assert(!!e.oldFileOfCurrentEmit);for(var i=0,a=t.sections;i<a.length;i++){var o=a[i];switch(o.kind){case"internal":case"text":(r=r||[]).push(rr(o,e));break;case"no-default-lib":case"reference":case"type":case"lib":(n=n||[]).push(function(e,t){var r=y.createNode(289,e.pos,e.end);return r.parent=t,r.data=e.data,r.section=e,r}(o,e));break;case"prologue":case"emitHelpers":case"prepend":break;default:y.Debug.assertNever(o)}}e.texts=r||y.emptyArray,e.helpers=y.map(t.sources&&t.sources.helpers,function(e){return tr().get(e)}),e.syntheticReferences=n}(o,y.Debug.checkDefined(a)),o;return y.Debug.assert(!o.oldFileOfCurrentEmit),function(e,t,r){for(var n,i,a,o,s,c,u=0,l=t?t.sections:y.emptyArray;u<l.length;u++){var _=l[u];switch(_.kind){case"prologue":(n=n||[]).push(rr(_,e));break;case"emitHelpers":(i=i||[]).push(tr().get(_.data));break;case"no-default-lib":e.hasNoDefaultLib=!0;break;case"reference":(a=a||[]).push({pos:-1,end:-1,fileName:_.data});break;case"type":(o=o||[]).push(_.data);break;case"lib":(s=s||[]).push({pos:-1,end:-1,fileName:_.data});break;case"prepend":for(var d=rr(_,e),p=void 0,f=0,g=_.texts;f<g.length;f++){var m=g[f];r&&"internal"===m.kind||(p=p||[]).push(rr(m,e))}d.texts=p||y.emptyArray,(c=c||[]).push(d);break;case"internal":if(r){c=c||[];break}case"text":(c=c||[]).push(rr(_,e));break;default:y.Debug.assertNever(_)}}e.prologues=n||y.emptyArray,e.helpers=i,e.referencedFiles=a||y.emptyArray,e.typeReferenceDirectives=o,e.libReferenceDirectives=s||y.emptyArray,e.texts=c||[rr({kind:"text",pos:0,end:e.text.length},e)]}(o,a,i),o},y.createInputFiles=function(r,e,t,n,i,a,o,s,c,u,l){var _,d,p,f,g=y.createNode(293);return y.isString(r)?(g.javascriptText=r,g.javascriptMapPath=t,g.javascriptMapText=n,g.declarationText=e,g.declarationMapPath=i,g.declarationMapText=a,g.javascriptPath=o,g.declarationPath=s,g.buildInfoPath=c,g.buildInfo=u,g.oldFileOfCurrentEmit=l):(_=y.createMap(),d=function(e){if(void 0!==e){var t=_.get(e);return void 0===t&&(t=r(e),_.set(e,void 0!==t&&t)),!1!==t?t:void 0}},p=function(e){var t=d(e);return void 0!==t?t:"/* Input file "+e+" was missing */\r\n"},g.javascriptPath=e,g.javascriptMapPath=t,g.declarationPath=y.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(y.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&&y.getBuildInfo(e)),f||void 0;var e}}})),g},y.updateBundle=function(e,t,r){return void 0===r&&(r=y.emptyArray),e.sourceFiles!==t||e.prepends!==r?er(t,r):e},y.createImmediatelyInvokedFunctionExpression=function(e,t,r){return le(ye(void 0,void 0,void 0,void 0,t?[t]:[],void 0,Ue(e,!0)),void 0,r?[r]:[])},y.createImmediatelyInvokedArrowFunction=function(e,t,r){return le(he(void 0,void 0,t?[t]:[],void 0,void 0,Ue(e,!0)),void 0,r?[r]:[])},y.createComma=function(e,t){return Te(e,27,t)},y.createLessThan=function(e,t){return Te(e,29,t)},y.createAssignment=function(e,t){return Te(e,62,t)},y.createStrictEquality=function(e,t){return Te(e,36,t)},y.createStrictInequality=function(e,t){return Te(e,37,t)},y.createAdd=function(e,t){return Te(e,39,t)},y.createSubtract=function(e,t){return Te(e,40,t)},y.createPostfixIncrement=function(e){return Ce(e,45)},y.createLogicalAnd=function(e,t){return Te(e,55,t)},y.createLogicalOr=function(e,t){return Te(e,56,t)},y.createNullishCoalesce=function(e,t){return Te(e,60,t)},y.createLogicalNot=function(e){return Se(53,e)},y.createVoidZero=function(){return xe(e(0))},y.createExportDefault=function(e){return kt(void 0,void 0,!1,e)},y.createExternalModuleExport=function(e){return Et(void 0,void 0,Nt([At(void 0,e)]))},y.disposeEmitNodes=function(e){if(e=(e=(e=y.getSourceFileOfNode(y.getParseTreeNode(e)))&&e.emitNode)&&e.annotatedNodes)for(var t=0,r=e;t<r.length;t++)r[t].emitNode=void 0},y.getOrCreateEmitNode=sr,y.removeAllComments=function(e){var t=sr(e);return t.flags|=1536,t.leadingComments=void 0,t.trailingComments=void 0,e},y.setTextRange=cr,y.setEmitFlags=ur,y.addEmitFlags=function(e,t){var r=sr(e);return r.flags=r.flags|t,e},y.getSourceMapRange=function(e){var t=e.emitNode;return t&&t.sourceMapRange||e},y.setSourceMapRange=function(e,t){return sr(e).sourceMapRange=t,e},y.createSourceMapSource=function(e,t,r){return new(Ae=Ae||y.objectAllocator.getSourceMapSourceConstructor())(e,t,r)},y.getTokenSourceMapRange=function(e,t){return(e=(e=e.emitNode)&&e.tokenSourceMapRanges)&&e[t]},y.setTokenSourceMapRange=function(e,t,r){var n=sr(e);return(n.tokenSourceMapRanges||(n.tokenSourceMapRanges=[]))[t]=r,e},y.getStartsOnNewLine=function(e){return(e=e.emitNode)&&e.startsOnNewLine},y.setStartsOnNewLine=function(e,t){return sr(e).startsOnNewLine=t,e},y.getCommentRange=function(e){var t=e.emitNode;return t&&t.commentRange||e},y.setCommentRange=function(e,t){return sr(e).commentRange=t,e},y.getSyntheticLeadingComments=lr,y.setSyntheticLeadingComments=_r,y.addSyntheticLeadingComment=function(e,t,r,n){return _r(e,y.append(lr(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:n,text:r}))},y.getSyntheticTrailingComments=dr,y.setSyntheticTrailingComments=pr,y.addSyntheticTrailingComment=function(e,t,r,n){return pr(e,y.append(dr(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:n,text:r}))},y.moveSyntheticComments=function(e,t){return _r(e,lr(t)),pr(e,dr(t)),(t=sr(t)).leadingComments=void 0,t.trailingComments=void 0,e},y.ignoreSourceNewlines=function(e){return sr(e).flags|=134217728,e},y.getConstantValue=function(e){return(e=e.emitNode)&&e.constantValue},y.setConstantValue=function(e,t){return sr(e).constantValue=t,e},y.addEmitHelper=function(e,t){var r=sr(e);return r.helpers=y.append(r.helpers,t),e},y.addEmitHelpers=function(e,t){if(y.some(t))for(var r=sr(e),n=0,i=t;n<i.length;n++){var a=i[n];r.helpers=y.appendIfUnique(r.helpers,a)}return e},y.removeEmitHelper=function(e,t){if(e=e.emitNode){e=e.helpers;if(e)return y.orderedRemoveItem(e,t)}return!1},y.getEmitHelpers=function(e){return(e=e.emitNode)&&e.helpers},y.moveEmitHelpers=function(e,t,r){var n=(e=e.emitNode)&&e.helpers;if(y.some(n)){for(var i=sr(t),a=0,o=0;o<n.length;o++){var s=n[o];r(s)?(a++,i.helpers=y.appendIfUnique(i.helpers,s)):0<a&&(n[o-a]=s)}0<a&&(n.length-=a)}},y.compareEmitHelpers=function(e,t){return e===t||e.priority===t.priority?0:void 0===e.priority?1:void 0===t.priority?-1:y.compareValues(e.priority,t.priority)},y.setOriginalNode=fr}(ts=ts||{}),function(_){function s(e,t,r){if(_.isComputedPropertyName(t))return _.setTextRange(_.createElementAccess(e,t.expression),r);t=_.setTextRange(_.isIdentifier(t)||_.isPrivateIdentifier(t)?_.createPropertyAccess(e,t):_.createElementAccess(e,t),t);return _.getOrCreateEmitNode(t).flags|=64,t}function u(e,t){e=_.createIdentifier(e||"React");return e.flags&=-9,e.parent=_.getParseTreeNode(t),e}function d(e,t,r){return e?function e(t,r){if(_.isQualifiedName(t)){var n=e(t.left,r),i=_.createIdentifier(_.idText(t.right));return i.escapedText=t.right.escapedText,_.createPropertyAccess(n,i)}return u(_.idText(t),r)}(e,r):_.createPropertyAccess(u(t,r),"createElement")}function p(e){return _.setEmitFlags(_.createIdentifier(e),4098)}function c(e,t){var r=_.skipParentheses(e);switch(r.kind){case 75:return t;case 104:case 8:case 9:case 10:return;case 192:return 0===r.elements.length?void 0:1;case 193:return 0<r.properties.length;default:return 1}}function l(e){return _.isIdentifier(e)?_.createLiteral(e):_.isComputedPropertyName(e)?_.getMutableClone(e.expression):_.getMutableClone(e)}function i(e,t,r){return a(e,t,r,8192)}function a(e,t,r,n){void 0===n&&(n=0);var i=_.getNameOfDeclaration(e);if(i&&_.isIdentifier(i)&&!_.isGeneratedIdentifier(i)){var a=_.getMutableClone(i);return n|=_.getEmitFlags(i),r||(n|=48),t||(n|=1536),n&&_.setEmitFlags(a,n),a}return _.getGeneratedNameForNode(e)}function o(e,t,r,n){e=_.createPropertyAccess(e,_.nodeIsSynthesized(t)?t:_.getSynthesizedClone(t));_.setTextRange(e,t);t=0;return n||(t|=48),r||(t|=1536),t&&_.setEmitFlags(e,t),e}function f(e){return _.isStringLiteral(e.expression)&&"use strict"===e.expression.text}function g(e,t,r){_.Debug.assert(0===e.length,"Prologue directives should be at the first statement in the target statements array");for(var n=!1,i=0,a=t.length;i<a;){var o=t[i];if(!_.isPrologueDirective(o))break;f(o)&&(n=!0),e.push(o),i++}return r&&!n&&e.push(T(_.createStatement(_.createLiteral("use strict")))),i}function m(e,t,r,n,i){void 0===i&&(i=_.returnTrue);for(var a=t.length;void 0!==r&&r<a;){var o=t[r];if(!(1048576&_.getEmitFlags(o)&&i(o)))break;_.append(e,n?_.visitNode(o,n,_.isStatement):o),r++}return r}function t(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];if(!_.isPrologueDirective(n))break;if(f(n))return n}}function y(e){if(e=_.skipPartiallyEmittedExpressions(e),_.isLiteralKind(e.kind))return e.kind;if(209!==e.kind||39!==e.operatorToken.kind)return 0;if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;var t=y(e.left),t=_.isLiteralKind(t)&&t===y(e.right)?t:0;return e.cachedLiteralKind=t}function h(e){var t=_.skipPartiallyEmittedExpressions(e);return _.isLeftHandSideExpression(t)&&(197!==t.kind||t.arguments)?e:_.setTextRange(_.createParen(e),e)}function v(e){var t=_.skipPartiallyEmittedExpressions(e),t=_.getExpressionPrecedence(t);return _.getOperatorPrecedence(209,27)<t?e:_.setTextRange(_.createParen(e),e)}function r(e){return 180===e.kind?_.createParenthesizedType(e):e}function n(e){switch(e.kind){case 178:case 179:case 170:case 171:return _.createParenthesizedType(e)}return r(e)}function b(e,t){for(;;){switch(e.kind){case 208:e=e.operand;continue;case 209:e=e.left;continue;case 210:e=e.condition;continue;case 198:e=e.tag;continue;case 196:if(t)return e;case 217:case 195:case 194:case 218:case 326:e=e.expression;continue}return e}}function x(e){return 209===e.kind&&27===e.operatorToken.kind||327===e.kind}var e;function D(e,t){switch(void 0===t&&(t=15),e.kind){case 200:return 0!=(1&t);case 199:case 217:return 0!=(2&t);case 218:return 0!=(4&t);case 326:return 0!=(8&t)}return!1}function S(e,t){for(void 0===t&&(t=15);D(e,t);)e=e.expression;return e}function C(e,t,r){return void 0===r&&(r=15),e&&D(e,r)&&(!(200===(r=e).kind&&_.nodeIsSynthesized(r)&&_.nodeIsSynthesized(_.getSourceMapRange(r))&&_.nodeIsSynthesized(_.getCommentRange(r)))||_.some(_.getSyntheticLeadingComments(r))||_.some(_.getSyntheticTrailingComments(r)))?function(e,t){switch(e.kind){case 200:return _.updateParen(e,t);case 199:return _.updateTypeAssertion(e,e.type,t);case 217:return _.updateAsExpression(e,t,e.type);case 218:return _.updateNonNullExpression(e,t);case 326:return _.updatePartiallyEmittedExpression(e,t)}}(e,C(e.expression,t)):t}function T(e){return _.setStartsOnNewLine(e,!0)}function k(e){e=_.getOriginalNode(e,_.isSourceFile),e=e&&e.emitNode;return e&&e.externalHelpersModuleName}function E(e,t,r,n){if(t.importHelpers&&_.isEffectiveExternalModule(e,t)){var i=k(e);if(i)return i;var i=_.getEmitModuleKind(t),a=(r||t.esModuleInterop&&n)&&i!==_.ModuleKind.System&&i<_.ModuleKind.ES2015;if(!a){i=_.getEmitHelpers(e);if(i)for(var o=0,s=i;o<s.length;o++)if(!s[o].scoped){a=!0;break}}if(a){e=_.getOriginalNode(e,_.isSourceFile),e=_.getOrCreateEmitNode(e);return e.externalHelpersModuleName||(e.externalHelpersModuleName=_.createUniqueName(_.externalHelpersModuleNameText))}}}function N(e,t,r){if(e)return e.moduleName?_.createLiteral(e.moduleName):e.isDeclarationFile||!r.out&&!r.outFile?void 0:_.createLiteral(_.getExternalModuleNameFromPath(t,e.fileName))}function A(e){if(_.isDeclarationBindingElement(e))return e.name;if(!_.isObjectLiteralElementLike(e))return _.isAssignmentExpression(e,!0)?A(e.left):_.isSpreadElement(e)?A(e.expression):e;switch(e.kind){case 281:return A(e.initializer);case 282:return e.name;case 283:return A(e.expression)}}function F(e){switch(e.kind){case 191:if(e.propertyName){var t=e.propertyName;return _.isPrivateIdentifier(t)?_.Debug.failBadSyntaxKind(t):_.isComputedPropertyName(t)&&P(t.expression)?t.expression:t}break;case 281:if(e.name){t=e.name;return _.isPrivateIdentifier(t)?_.Debug.failBadSyntaxKind(t):_.isComputedPropertyName(t)&&P(t.expression)?t.expression:t}break;case 283:return e.name&&_.isPrivateIdentifier(e.name)?_.Debug.failBadSyntaxKind(e.name):e.name}var r=A(e);if(r&&_.isPropertyName(r))return r}function P(e){e=e.kind;return 10===e||8===e}function w(e){if(_.isBindingElement(e)){if(e.dotDotDotToken)return _.Debug.assertNode(e.name,_.isIdentifier),_.setOriginalNode(_.setTextRange(_.createSpread(e.name),e),e);var t=R(e.name);return e.initializer?_.setOriginalNode(_.setTextRange(_.createAssignment(t,e.initializer),e),e):t}return _.Debug.assertNode(e,_.isExpression),e}function I(e){if(_.isBindingElement(e)){if(e.dotDotDotToken)return _.Debug.assertNode(e.name,_.isIdentifier),_.setOriginalNode(_.setTextRange(_.createSpreadAssignment(e.name),e),e);if(e.propertyName){var t=R(e.name);return _.setOriginalNode(_.setTextRange(_.createPropertyAssignment(e.propertyName,e.initializer?_.createAssignment(t,e.initializer):t),e),e)}return _.Debug.assertNode(e.name,_.isIdentifier),_.setOriginalNode(_.setTextRange(_.createShorthandPropertyAssignment(e.name,e.initializer),e),e)}return _.Debug.assertNode(e,_.isObjectLiteralElementLike),e}function O(e){switch(e.kind){case 190:case 192:return L(e);case 189:case 193:return M(e)}}function M(e){return _.isObjectBindingPattern(e)?_.setOriginalNode(_.setTextRange(_.createObjectLiteral(_.map(e.elements,I)),e),e):(_.Debug.assertNode(e,_.isObjectLiteralExpression),e)}function L(e){return _.isArrayBindingPattern(e)?_.setOriginalNode(_.setTextRange(_.createArrayLiteral(_.map(e.elements,w)),e),e):(_.Debug.assertNode(e,_.isArrayLiteralExpression),e)}function R(e){return _.isBindingPattern(e)?O(e):(_.Debug.assertNode(e,_.isExpression),e)}_.nullTransformationContext={enableEmitNotification:_.noop,enableSubstitution:_.noop,endLexicalEnvironment:_.returnUndefined,getCompilerOptions:function(){return{}},getEmitHost:_.notImplemented,getEmitResolver:_.notImplemented,setLexicalEnvironmentFlags:_.noop,getLexicalEnvironmentFlags:function(){return 0},hoistFunctionDeclaration:_.noop,hoistVariableDeclaration:_.noop,addInitializationStatement:_.noop,isEmitNotificationEnabled:_.notImplemented,isSubstitutionEnabled:_.notImplemented,onEmitNode:_.noop,onSubstituteNode:_.notImplemented,readEmitHelpers:_.notImplemented,requestEmitHelper:_.noop,resumeLexicalEnvironment:_.noop,startLexicalEnvironment:_.noop,suspendLexicalEnvironment:_.noop,addDiagnostic:_.noop},_.createTypeCheck=function(e,t){return"undefined"===t?_.createStrictEquality(e,_.createVoidZero()):_.createStrictEquality(_.createTypeOf(e),_.createLiteral(t))},_.createMemberAccessForPropertyName=s,_.createFunctionCall=function(e,t,r,n){return _.setTextRange(_.createCall(_.createPropertyAccess(e,"call"),void 0,__spreadArrays([t],r)),n)},_.createFunctionApply=function(e,t,r,n){return _.setTextRange(_.createCall(_.createPropertyAccess(e,"apply"),void 0,[t,r]),n)},_.createArraySlice=function(e,t){var r=[];return void 0!==t&&r.push("number"==typeof t?_.createLiteral(t):t),_.createCall(_.createPropertyAccess(e,"slice"),void 0,r)},_.createArrayConcat=function(e,t){return _.createCall(_.createPropertyAccess(e,"concat"),void 0,t)},_.createMathPow=function(e,t,r){return _.setTextRange(_.createCall(_.createPropertyAccess(_.createIdentifier("Math"),"pow"),void 0,[e,t]),r)},_.createExpressionForJsxElement=function(e,t,r,n,i,a,o){var s=[r];if(n&&s.push(n),i&&0<i.length)if(n||s.push(_.createNull()),1<i.length)for(var c=0,u=i;c<u.length;c++){var l=u[c];T(l),s.push(l)}else s.push(i[0]);return _.setTextRange(_.createCall(d(e,t,a),void 0,s),o)},_.createExpressionForJsxFragment=function(e,t,r,n,i){var a=[_.createPropertyAccess(u(t,n),"Fragment")];if(a.push(_.createNull()),r&&0<r.length)if(1<r.length)for(var o=0,s=r;o<s.length;o++){var c=s[o];T(c),a.push(c)}else a.push(r[0]);return _.setTextRange(_.createCall(d(e,t,n),void 0,a),i)},_.getUnscopedHelperName=p,_.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            };'},_.createValuesHelper=function(e,t,r){return e.requestEmitHelper(_.valuesHelper),_.setTextRange(_.createCall(p("__values"),void 0,[t]),r)},_.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            };'},_.createReadHelper=function(e,t,r,n){return e.requestEmitHelper(_.readHelper),_.setTextRange(_.createCall(p("__read"),void 0,void 0!==r?[t,_.createLiteral(r)]:[t]),n)},_.spreadHelper={name:"typescript:spread",importName:"__spread",scoped:!1,dependencies:[_.readHelper],text:"\n            var __spread = (this && this.__spread) || function () {\n                for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n                return ar;\n            };"},_.createSpreadHelper=function(e,t,r){return e.requestEmitHelper(_.spreadHelper),_.setTextRange(_.createCall(p("__spread"),void 0,t),r)},_.spreadArraysHelper={name:"typescript:spreadArrays",importName:"__spreadArrays",scoped:!1,text:"\n            var __spreadArrays = (this && this.__spreadArrays) || function () {\n                for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n                for (var r = Array(s), k = 0, i = 0; i < il; i++)\n                    for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n                        r[k] = a[j];\n                return r;\n            };"},_.createSpreadArraysHelper=function(e,t,r){return e.requestEmitHelper(_.spreadArraysHelper),_.setTextRange(_.createCall(p("__spreadArrays"),void 0,t),r)},_.createForOfBindingStatement=function(e,t){if(_.isVariableDeclarationList(e)){var r=_.first(e.declarations),r=_.updateVariableDeclaration(r,r.name,void 0,t);return _.setTextRange(_.createVariableStatement(void 0,_.updateVariableDeclarationList(e,[r])),e)}return t=_.setTextRange(_.createAssignment(e,t),e),_.setTextRange(_.createStatement(t),e)},_.insertLeadingStatement=function(e,t){return _.isBlock(e)?_.updateBlock(e,_.setTextRange(_.createNodeArray(__spreadArrays([t],e.statements)),e.statements)):_.createBlock(_.createNodeArray([e,t]),!0)},_.restoreEnclosingLabel=function e(t,r,n){if(!r)return t;t=_.updateLabel(r,r.label,238===r.statement.kind?e(t,r.statement):t);return n&&n(r),t},_.createCallBinding=function(e,t,r,n){void 0===n&&(n=!1);var i,a,o=S(e,15);if(_.isSuperProperty(o))i=_.createThis(),a=o;else if(102===o.kind)i=_.createThis(),a=r<2?_.setTextRange(_.createIdentifier("_super"),o):o;else if(4096&_.getEmitFlags(o))i=_.createVoidZero(),a=h(o);else switch(o.kind){case 194:c(o.expression,n)?(i=_.createTempVariable(t),a=_.createPropertyAccess(_.setTextRange(_.createAssignment(i,o.expression),o.expression),o.name),_.setTextRange(a,o)):(i=o.expression,a=o);break;case 195:c(o.expression,n)?(i=_.createTempVariable(t),a=_.createElementAccess(_.setTextRange(_.createAssignment(i,o.expression),o.expression),o.argumentExpression),_.setTextRange(a,o)):(i=o.expression,a=o);break;default:i=_.createVoidZero(),a=h(e)}return{target:a,thisArg:i}},_.inlineExpressions=function(e){return 10<e.length?_.createCommaList(e):_.reduceLeft(e,_.createComma)},_.createExpressionFromEntityName=function e(t){if(_.isQualifiedName(t)){var r=e(t.left),n=_.getMutableClone(t.right);return _.setTextRange(_.createPropertyAccess(r,n),t)}return _.getMutableClone(t)},_.createExpressionForPropertyName=l,_.createExpressionForObjectLiteralElementLike=function(e,t,r){switch(t.name&&_.isPrivateIdentifier(t.name)&&_.Debug.failBadSyntaxKind(t.name,"Private identifiers are not allowed in object literals."),t.kind){case 163:case 164:return function(e,t,r,n){var i=_.getAllAccessorDeclarations(e,t),a=i.firstAccessor,o=i.getAccessor,e=i.setAccessor;if(t!==a)return;i=[];o&&(s=_.createFunctionExpression(o.modifiers,void 0,void 0,void 0,o.parameters,void 0,o.body),_.setTextRange(s,o),_.setOriginalNode(s,o),s=_.createPropertyAssignment("get",s),i.push(s));{var s;e&&(s=_.createFunctionExpression(e.modifiers,void 0,void 0,void 0,e.parameters,void 0,e.body),_.setTextRange(s,e),_.setOriginalNode(s,e),s=_.createPropertyAssignment("set",s),i.push(s))}i.push(_.createPropertyAssignment("enumerable",o||e?_.createFalse():_.createTrue())),i.push(_.createPropertyAssignment("configurable",_.createTrue()));a=_.setTextRange(_.createCall(_.createPropertyAccess(_.createIdentifier("Object"),"defineProperty"),void 0,[r,l(t.name),_.createObjectLiteral(i,n)]),a);return _.aggregateTransformFlags(a)}(e.properties,t,r,!!e.multiLine);case 281:return a=t,o=r,_.aggregateTransformFlags(_.setOriginalNode(_.setTextRange(_.createAssignment(s(o,a.name,a.name),a.initializer),a),a));case 282:return n=t,i=r,_.aggregateTransformFlags(_.setOriginalNode(_.setTextRange(_.createAssignment(s(i,n.name,n.name),_.getSynthesizedClone(n.name)),n),n));case 161:return i=t,n=r,_.aggregateTransformFlags(_.setOriginalNode(_.setTextRange(_.createAssignment(s(n,i.name,i.name),_.setOriginalNode(_.setTextRange(_.createFunctionExpression(i.modifiers,i.asteriskToken,void 0,void 0,i.parameters,void 0,i.body),i),i)),i),i))}var n,i,a,o},_.getInternalName=function(e,t,r){return a(e,t,r,49152)},_.isInternalName=function(e){return 0!=(32768&_.getEmitFlags(e))},_.getLocalName=function(e,t,r){return a(e,t,r,16384)},_.isLocalName=function(e){return 0!=(16384&_.getEmitFlags(e))},_.getExportName=i,_.isExportName=function(e){return 0!=(8192&_.getEmitFlags(e))},_.getDeclarationName=function(e,t,r){return a(e,t,r)},_.getExternalModuleOrNamespaceExportName=function(e,t,r,n){return e&&_.hasModifier(t,1)?o(e,a(t),r,n):i(t,r,n)},_.getNamespaceMemberName=o,_.convertToFunctionBody=function(e,t){return _.isBlock(e)?e:_.setTextRange(_.createBlock([_.setTextRange(_.createReturn(e),e)],t),e)},_.convertFunctionDeclarationToExpression=function(e){if(!e.body)return _.Debug.fail();var t=_.createFunctionExpression(e.modifiers,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);return _.setOriginalNode(t,e),_.setTextRange(t,e),_.getStartsOnNewLine(e)&&_.setStartsOnNewLine(t,!0),_.aggregateTransformFlags(t),t},_.addPrologue=function(e,t,r,n){return m(e,t,g(e,t,r),n)},_.addStandardPrologue=g,_.addCustomPrologue=m,_.findUseStrictPrologue=t,_.startsWithUseStrict=function(e){return void 0!==(e=_.firstOrUndefined(e))&&_.isPrologueDirective(e)&&f(e)},_.ensureUseStrict=function(e){return t(e)?e:_.setTextRange(_.createNodeArray(__spreadArrays([T(_.createStatement(_.createLiteral("use strict")))],e)),e)},_.parenthesizeBinaryOperand=function(e,t,r,n){return 200!==_.skipPartiallyEmittedExpressions(t).kind&&function(e,t,r,n){var i=_.getOperatorPrecedence(209,e),a=_.getOperatorAssociativity(209,e),o=_.skipPartiallyEmittedExpressions(t);if(!r&&202===t.kind&&3<i)return!0;var s=_.getExpressionPrecedence(o);switch(_.compareValues(s,i)){case-1:return r||1!==a||212!==t.kind?!0:!1;case 1:return!1;case 0:if(r)return 1===a;if(_.isBinaryExpression(o)&&o.operatorToken.kind===e){if(function(e){return 41===e||51===e||50===e||52===e}(e))return!1;if(39===e){var c=n?y(n):0;if(_.isLiteralKind(c)&&c===y(o))return!1}}return 0===_.getExpressionAssociativity(o)}}(e,t,r,n)?_.createParen(t):t},_.parenthesizeForConditionalHead=function(e){var t=_.getOperatorPrecedence(210,57),r=_.skipPartiallyEmittedExpressions(e),r=_.getExpressionPrecedence(r);return 1!==_.compareValues(r,t)?_.createParen(e):e},_.parenthesizeSubexpressionOfConditionalExpression=function(e){return x(_.skipPartiallyEmittedExpressions(e))?_.createParen(e):e},_.parenthesizeDefaultExpression=function(e){var t=_.skipPartiallyEmittedExpressions(e),r=x(t);if(!r)switch(b(t,!1).kind){case 214:case 201:r=!0}return r?_.createParen(e):e},_.parenthesizeForNew=function(e){var t=b(e,!0);switch(t.kind){case 196:return _.createParen(e);case 197:return t.arguments?e:_.createParen(e)}return h(e)},_.parenthesizeForAccess=h,_.parenthesizePostfixOperand=function(e){return _.isLeftHandSideExpression(e)?e:_.setTextRange(_.createParen(e),e)},_.parenthesizePrefixOperand=function(e){return _.isUnaryExpression(e)?e:_.setTextRange(_.createParen(e),e)},_.parenthesizeListElements=function(e){for(var t,r=0;r<e.length;r++){var n=v(e[r]);void 0===t&&n===e[r]||(void 0===t&&(t=e.slice(0,r)),t.push(n))}return void 0!==t?_.setTextRange(_.createNodeArray(t,e.hasTrailingComma),e):e},_.parenthesizeExpressionForList=v,_.parenthesizeExpressionForExpressionStatement=function(e){var t=_.skipPartiallyEmittedExpressions(e);if(_.isCallExpression(t)){var r=t.expression,n=_.skipPartiallyEmittedExpressions(r).kind;if(201===n||202===n){n=_.getMutableClone(t);return n.expression=_.setTextRange(_.createParen(r),r),C(e,n,8)}}return 193===(t=b(t,!1).kind)||201===t?_.setTextRange(_.createParen(e),e):e},_.parenthesizeConditionalTypeMember=r,_.parenthesizeElementTypeMember=n,_.parenthesizeArrayTypeMember=function(e){switch(e.kind){case 172:case 184:case 181:return _.createParenthesizedType(e)}return n(e)},_.parenthesizeElementTypeMembers=function(e){return _.createNodeArray(_.sameMap(e,n))},_.parenthesizeTypeParameters=function(e){if(_.some(e)){for(var t=[],r=0;r<e.length;++r){var n=e[r];t.push(0===r&&_.isFunctionOrConstructorTypeNode(n)&&n.typeParameters?_.createParenthesizedType(n):n)}return _.createNodeArray(t)}},_.getLeftmostExpression=b,_.parenthesizeConciseBody=function(e){return _.isBlock(e)||!x(e)&&193!==b(e,!1).kind?e:_.setTextRange(_.createParen(e),e)},_.isCommaSequence=x,(e=_.OuterExpressionKinds||(_.OuterExpressionKinds={}))[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",_.isOuterExpression=D,_.skipOuterExpressions=S,_.skipAssertions=function(e){return S(e,6)},_.recreateOuterExpressions=C,_.startOnNewLine=T,_.getExternalHelpersModuleName=k,_.hasRecordedExternalHelpers=function(e){return!(!(e=(e=_.getOriginalNode(e,_.isSourceFile))&&e.emitNode)||!e.externalHelpersModuleName&&!e.externalHelpers)},_.createExternalHelpersImportDeclarationIfNeeded=function(t,e,r,n,i){if(e.importHelpers&&_.isEffectiveExternalModule(t,e)){var a=void 0,o=_.getEmitModuleKind(e);if(o>=_.ModuleKind.ES2015&&o<=_.ModuleKind.ESNext){o=_.getEmitHelpers(t);if(o){for(var s=[],c=0,u=o;c<u.length;c++){var l=u[c];l.scoped||(l=l.importName)&&_.pushIfUnique(s,l)}_.some(s)&&(s.sort(_.compareStringsCaseSensitive),a=_.createNamedImports(_.map(s,function(e){return _.isFileLevelUniqueName(t,e)?_.createImportSpecifier(void 0,_.createIdentifier(e)):_.createImportSpecifier(_.createIdentifier(e),p(e))})),o=_.getOriginalNode(t,_.isSourceFile),_.getOrCreateEmitNode(o).externalHelpers=!0)}}else{i=E(t,e,r,n||i);i&&(a=_.createNamespaceImport(i))}if(a){a=_.createImportDeclaration(void 0,void 0,_.createImportClause(void 0,a),_.createLiteral(_.externalHelpersModuleNameText));return _.addEmitFlags(a,67108864),a}}},_.getOrCreateExternalHelpersModuleNameIfNeeded=E,_.getLocalNameForExternalImport=function(e,t){var r=_.getNamespaceDeclarationNode(e);return!r||_.isDefaultImport(e)?254===e.kind&&e.importClause||260===e.kind&&e.moduleSpecifier?_.getGeneratedNameForNode(e):void 0:(r=r.name,_.isGeneratedIdentifier(r)?r:_.createIdentifier(_.getSourceTextOfNodeFromSourceFile(t,r)||_.idText(r)))},_.getExternalModuleNameLiteral=function(e,t,r,n,i){var a=_.getExternalModuleName(e);if(10===a.kind)return e=e,r=r,i=i,N(n.getExternalModuleFileFromDeclaration(e),r,i)||function(e,t){e=t.renamedDependencies&&t.renamedDependencies.get(e.text);return e&&_.createLiteral(e)}(a,t)||_.getSynthesizedClone(a)},_.tryGetModuleNameFromFile=N,_.getInitializerOfBindingOrAssignmentElement=function e(t){if(_.isDeclarationBindingElement(t))return t.initializer;if(_.isPropertyAssignment(t)){var r=t.initializer;return _.isAssignmentExpression(r,!0)?r.right:void 0}return _.isShorthandPropertyAssignment(t)?t.objectAssignmentInitializer:_.isAssignmentExpression(t,!0)?t.right:_.isSpreadElement(t)?e(t.expression):void 0},_.getTargetOfBindingOrAssignmentElement=A,_.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 156:case 191:return e.dotDotDotToken;case 213:case 283:return e}},_.getPropertyNameOfBindingOrAssignmentElement=function(e){var t=F(e);return _.Debug.assert(!!t||_.isSpreadAssignment(e),"Invalid property name for binding element."),t},_.tryGetPropertyNameOfBindingOrAssignmentElement=F,_.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 189:case 190:case 192:return e.elements;case 193:return e.properties}},_.convertToArrayAssignmentElement=w,_.convertToObjectAssignmentElement=I,_.convertToAssignmentPattern=O,_.convertToObjectAssignmentPattern=M,_.convertToArrayAssignmentPattern=L,_.convertToAssignmentElementTarget=R}(ts=ts||{}),function(p){var o=p.or(p.isTypeNode,p.isTypeParameterDeclaration);function s(e,t,r,n){if(void 0===e||void 0===t)return e;p.aggregateTransformFlags(e);t=t(e);return t===e?e:void 0!==t?(t=p.isArray(t)?(n||function(e){return p.Debug.assert(e.length<=1,"Too many nodes written to output."),p.singleOrUndefined(e)})(t):t,p.Debug.assertNode(t,r),p.aggregateTransformFlags(t),t):void 0}function c(e,t,r,n,i){if(void 0===e||void 0===t)return e;var a,o=e.length;(void 0===n||n<0)&&(n=0),(void 0===i||o-n<i)&&(i=o-n),(0<n||i<o)&&(a=p.createNodeArray([],e.hasTrailingComma&&n+i===o));for(var s=0;s<i;s++){var c=e[s+n];p.aggregateTransformFlags(c);var u=void 0!==c?t(c):void 0;if((void 0!==a||void 0===u||u!==c)&&(void 0===a&&(a=p.createNodeArray(e.slice(0,s),e.hasTrailingComma),p.setTextRange(a,e)),u))if(p.isArray(u))for(var l=0,_=u;l<_.length;l++){var d=_[l];p.Debug.assertNode(d,r),p.aggregateTransformFlags(d),a.push(d)}else p.Debug.assertNode(u,r),p.aggregateTransformFlags(u),a.push(u)}return a||e}function u(e,t,r,n,i){return r.startLexicalEnvironment(),e=c(e,t,p.isStatement,n),i&&(e=p.ensureUseStrict(e)),p.mergeLexicalEnvironment(e,r.endLexicalEnvironment())}function l(e,t,r,n){var i;return void 0===n&&(n=c),r.startLexicalEnvironment(),e&&(r.setLexicalEnvironmentFlags(1,!0),i=n(e,t,p.isParameterDeclaration),2&r.getLexicalEnvironmentFlags()&&2<=p.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:p.isBindingPattern(e.name)?function(e,t){return t.addInitializationStatement(p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(e.name,e.type,e.initializer?p.createConditional(p.createStrictEquality(p.getGeneratedNameForNode(e),p.createVoidZero()),e.initializer,p.getGeneratedNameForNode(e)):p.getGeneratedNameForNode(e))]))),p.updateParameter(e,e.decorators,e.modifiers,e.dotDotDotToken,p.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}(e,t):e.initializer?function(e,t,r,n){return n.addInitializationStatement(p.createIf(p.createTypeCheck(p.getSynthesizedClone(t),"undefined"),p.setEmitFlags(p.setTextRange(p.createBlock([p.createExpressionStatement(p.setEmitFlags(p.setTextRange(p.createAssignment(p.setEmitFlags(p.getMutableClone(t),48),p.setEmitFlags(r,1584|p.getEmitFlags(r))),e),1536))]),e),1953))),p.updateParameter(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 p.setTextRange(p.createNodeArray(r,e.hasTrailingComma),e);return e}(i,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),i}function _(e,t,r){r.resumeLexicalEnvironment();e=s(e,t,p.isConciseBody),t=r.endLexicalEnvironment();if(p.some(t)){r=p.convertToFunctionBody(e),t=p.mergeLexicalEnvironment(r.statements,t);return p.updateBlock(r,t)}return e}p.visitNode=s,p.visitNodes=c,p.visitLexicalEnvironment=u,p.visitParameterList=l,p.visitFunctionBody=_,p.visitEachChild=function(e,t,r,n,i){if(void 0===n&&(n=c),void 0!==e){var a=e.kind;if(0<a&&a<=152||183===a)return e;switch(a){case 75:return p.updateIdentifier(e,n(e.typeArguments,t,o));case 153:return p.updateQualifiedName(e,s(e.left,t,p.isEntityName),s(e.right,t,p.isIdentifier));case 154:return p.updateComputedPropertyName(e,s(e.expression,t,p.isExpression));case 155:return p.updateTypeParameterDeclaration(e,s(e.name,t,p.isIdentifier),s(e.constraint,t,p.isTypeNode),s(e.default,t,p.isTypeNode));case 156:return p.updateParameter(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.dotDotDotToken,i,p.isToken),s(e.name,t,p.isBindingName),s(e.questionToken,i,p.isToken),s(e.type,t,p.isTypeNode),s(e.initializer,t,p.isExpression));case 157:return p.updateDecorator(e,s(e.expression,t,p.isExpression));case 158:return p.updatePropertySignature(e,n(e.modifiers,t,p.isToken),s(e.name,t,p.isPropertyName),s(e.questionToken,i,p.isToken),s(e.type,t,p.isTypeNode),s(e.initializer,t,p.isExpression));case 159:return p.updateProperty(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.name,t,p.isPropertyName),s(e.questionToken||e.exclamationToken,i,p.isToken),s(e.type,t,p.isTypeNode),s(e.initializer,t,p.isExpression));case 160:return p.updateMethodSignature(e,n(e.typeParameters,t,p.isTypeParameterDeclaration),n(e.parameters,t,p.isParameterDeclaration),s(e.type,t,p.isTypeNode),s(e.name,t,p.isPropertyName),s(e.questionToken,i,p.isToken));case 161:return p.updateMethod(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.asteriskToken,i,p.isToken),s(e.name,t,p.isPropertyName),s(e.questionToken,i,p.isToken),n(e.typeParameters,t,p.isTypeParameterDeclaration),l(e.parameters,t,r,n),s(e.type,t,p.isTypeNode),_(e.body,t,r));case 162:return p.updateConstructor(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),l(e.parameters,t,r,n),_(e.body,t,r));case 163:return p.updateGetAccessor(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.name,t,p.isPropertyName),l(e.parameters,t,r,n),s(e.type,t,p.isTypeNode),_(e.body,t,r));case 164:return p.updateSetAccessor(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.name,t,p.isPropertyName),l(e.parameters,t,r,n),_(e.body,t,r));case 165:return p.updateCallSignature(e,n(e.typeParameters,t,p.isTypeParameterDeclaration),n(e.parameters,t,p.isParameterDeclaration),s(e.type,t,p.isTypeNode));case 166:return p.updateConstructSignature(e,n(e.typeParameters,t,p.isTypeParameterDeclaration),n(e.parameters,t,p.isParameterDeclaration),s(e.type,t,p.isTypeNode));case 167:return p.updateIndexSignature(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),n(e.parameters,t,p.isParameterDeclaration),s(e.type,t,p.isTypeNode));case 168:return p.updateTypePredicateNodeWithModifier(e,s(e.assertsModifier,t),s(e.parameterName,t),s(e.type,t,p.isTypeNode));case 169:return p.updateTypeReferenceNode(e,s(e.typeName,t,p.isEntityName),n(e.typeArguments,t,p.isTypeNode));case 170:return p.updateFunctionTypeNode(e,n(e.typeParameters,t,p.isTypeParameterDeclaration),n(e.parameters,t,p.isParameterDeclaration),s(e.type,t,p.isTypeNode));case 171:return p.updateConstructorTypeNode(e,n(e.typeParameters,t,p.isTypeParameterDeclaration),n(e.parameters,t,p.isParameterDeclaration),s(e.type,t,p.isTypeNode));case 172:return p.updateTypeQueryNode(e,s(e.exprName,t,p.isEntityName));case 173:return p.updateTypeLiteralNode(e,n(e.members,t,p.isTypeElement));case 174:return p.updateArrayTypeNode(e,s(e.elementType,t,p.isTypeNode));case 175:return p.updateTupleTypeNode(e,n(e.elementTypes,t,p.isTypeNode));case 176:return p.updateOptionalTypeNode(e,s(e.type,t,p.isTypeNode));case 177:return p.updateRestTypeNode(e,s(e.type,t,p.isTypeNode));case 178:return p.updateUnionTypeNode(e,n(e.types,t,p.isTypeNode));case 179:return p.updateIntersectionTypeNode(e,n(e.types,t,p.isTypeNode));case 180:return p.updateConditionalTypeNode(e,s(e.checkType,t,p.isTypeNode),s(e.extendsType,t,p.isTypeNode),s(e.trueType,t,p.isTypeNode),s(e.falseType,t,p.isTypeNode));case 181:return p.updateInferTypeNode(e,s(e.typeParameter,t,p.isTypeParameterDeclaration));case 188:return p.updateImportTypeNode(e,s(e.argument,t,p.isTypeNode),s(e.qualifier,t,p.isEntityName),c(e.typeArguments,t,p.isTypeNode),e.isTypeOf);case 182:return p.updateParenthesizedType(e,s(e.type,t,p.isTypeNode));case 184:return p.updateTypeOperatorNode(e,s(e.type,t,p.isTypeNode));case 185:return p.updateIndexedAccessTypeNode(e,s(e.objectType,t,p.isTypeNode),s(e.indexType,t,p.isTypeNode));case 186:return p.updateMappedTypeNode(e,s(e.readonlyToken,i,p.isToken),s(e.typeParameter,t,p.isTypeParameterDeclaration),s(e.questionToken,i,p.isToken),s(e.type,t,p.isTypeNode));case 187:return p.updateLiteralTypeNode(e,s(e.literal,t,p.isExpression));case 189:return p.updateObjectBindingPattern(e,n(e.elements,t,p.isBindingElement));case 190:return p.updateArrayBindingPattern(e,n(e.elements,t,p.isArrayBindingElement));case 191:return p.updateBindingElement(e,s(e.dotDotDotToken,i,p.isToken),s(e.propertyName,t,p.isPropertyName),s(e.name,t,p.isBindingName),s(e.initializer,t,p.isExpression));case 192:return p.updateArrayLiteral(e,n(e.elements,t,p.isExpression));case 193:return p.updateObjectLiteral(e,n(e.properties,t,p.isObjectLiteralElementLike));case 194:return 32&e.flags?p.updatePropertyAccessChain(e,s(e.expression,t,p.isExpression),s(e.questionDotToken,i,p.isToken),s(e.name,t,p.isIdentifier)):p.updatePropertyAccess(e,s(e.expression,t,p.isExpression),s(e.name,t,p.isIdentifierOrPrivateIdentifier));case 195:return 32&e.flags?p.updateElementAccessChain(e,s(e.expression,t,p.isExpression),s(e.questionDotToken,i,p.isToken),s(e.argumentExpression,t,p.isExpression)):p.updateElementAccess(e,s(e.expression,t,p.isExpression),s(e.argumentExpression,t,p.isExpression));case 196:return 32&e.flags?p.updateCallChain(e,s(e.expression,t,p.isExpression),s(e.questionDotToken,i,p.isToken),n(e.typeArguments,t,p.isTypeNode),n(e.arguments,t,p.isExpression)):p.updateCall(e,s(e.expression,t,p.isExpression),n(e.typeArguments,t,p.isTypeNode),n(e.arguments,t,p.isExpression));case 197:return p.updateNew(e,s(e.expression,t,p.isExpression),n(e.typeArguments,t,p.isTypeNode),n(e.arguments,t,p.isExpression));case 198:return p.updateTaggedTemplate(e,s(e.tag,t,p.isExpression),c(e.typeArguments,t,p.isExpression),s(e.template,t,p.isTemplateLiteral));case 199:return p.updateTypeAssertion(e,s(e.type,t,p.isTypeNode),s(e.expression,t,p.isExpression));case 200:return p.updateParen(e,s(e.expression,t,p.isExpression));case 201:return p.updateFunctionExpression(e,n(e.modifiers,t,p.isModifier),s(e.asteriskToken,i,p.isToken),s(e.name,t,p.isIdentifier),n(e.typeParameters,t,p.isTypeParameterDeclaration),l(e.parameters,t,r,n),s(e.type,t,p.isTypeNode),_(e.body,t,r));case 202:return p.updateArrowFunction(e,n(e.modifiers,t,p.isModifier),n(e.typeParameters,t,p.isTypeParameterDeclaration),l(e.parameters,t,r,n),s(e.type,t,p.isTypeNode),s(e.equalsGreaterThanToken,i,p.isToken),_(e.body,t,r));case 203:return p.updateDelete(e,s(e.expression,t,p.isExpression));case 204:return p.updateTypeOf(e,s(e.expression,t,p.isExpression));case 205:return p.updateVoid(e,s(e.expression,t,p.isExpression));case 206:return p.updateAwait(e,s(e.expression,t,p.isExpression));case 207:return p.updatePrefix(e,s(e.operand,t,p.isExpression));case 208:return p.updatePostfix(e,s(e.operand,t,p.isExpression));case 209:return p.updateBinary(e,s(e.left,t,p.isExpression),s(e.right,t,p.isExpression),s(e.operatorToken,i,p.isToken));case 210:return p.updateConditional(e,s(e.condition,t,p.isExpression),s(e.questionToken,i,p.isToken),s(e.whenTrue,t,p.isExpression),s(e.colonToken,i,p.isToken),s(e.whenFalse,t,p.isExpression));case 211:return p.updateTemplateExpression(e,s(e.head,t,p.isTemplateHead),n(e.templateSpans,t,p.isTemplateSpan));case 212:return p.updateYield(e,s(e.asteriskToken,i,p.isToken),s(e.expression,t,p.isExpression));case 213:return p.updateSpread(e,s(e.expression,t,p.isExpression));case 214:return p.updateClassExpression(e,n(e.modifiers,t,p.isModifier),s(e.name,t,p.isIdentifier),n(e.typeParameters,t,p.isTypeParameterDeclaration),n(e.heritageClauses,t,p.isHeritageClause),n(e.members,t,p.isClassElement));case 216:return p.updateExpressionWithTypeArguments(e,n(e.typeArguments,t,p.isTypeNode),s(e.expression,t,p.isExpression));case 217:return p.updateAsExpression(e,s(e.expression,t,p.isExpression),s(e.type,t,p.isTypeNode));case 218:return p.updateNonNullExpression(e,s(e.expression,t,p.isExpression));case 219:return p.updateMetaProperty(e,s(e.name,t,p.isIdentifier));case 221:return p.updateTemplateSpan(e,s(e.expression,t,p.isExpression),s(e.literal,t,p.isTemplateMiddleOrTemplateTail));case 223:return p.updateBlock(e,n(e.statements,t,p.isStatement));case 225:return p.updateVariableStatement(e,n(e.modifiers,t,p.isModifier),s(e.declarationList,t,p.isVariableDeclarationList));case 226:return p.updateExpressionStatement(e,s(e.expression,t,p.isExpression));case 227:return p.updateIf(e,s(e.expression,t,p.isExpression),s(e.thenStatement,t,p.isStatement,p.liftToBlock),s(e.elseStatement,t,p.isStatement,p.liftToBlock));case 228:return p.updateDo(e,s(e.statement,t,p.isStatement,p.liftToBlock),s(e.expression,t,p.isExpression));case 229:return p.updateWhile(e,s(e.expression,t,p.isExpression),s(e.statement,t,p.isStatement,p.liftToBlock));case 230:return p.updateFor(e,s(e.initializer,t,p.isForInitializer),s(e.condition,t,p.isExpression),s(e.incrementor,t,p.isExpression),s(e.statement,t,p.isStatement,p.liftToBlock));case 231:return p.updateForIn(e,s(e.initializer,t,p.isForInitializer),s(e.expression,t,p.isExpression),s(e.statement,t,p.isStatement,p.liftToBlock));case 232:return p.updateForOf(e,s(e.awaitModifier,i,p.isToken),s(e.initializer,t,p.isForInitializer),s(e.expression,t,p.isExpression),s(e.statement,t,p.isStatement,p.liftToBlock));case 233:return p.updateContinue(e,s(e.label,t,p.isIdentifier));case 234:return p.updateBreak(e,s(e.label,t,p.isIdentifier));case 235:return p.updateReturn(e,s(e.expression,t,p.isExpression));case 236:return p.updateWith(e,s(e.expression,t,p.isExpression),s(e.statement,t,p.isStatement,p.liftToBlock));case 237:return p.updateSwitch(e,s(e.expression,t,p.isExpression),s(e.caseBlock,t,p.isCaseBlock));case 238:return p.updateLabel(e,s(e.label,t,p.isIdentifier),s(e.statement,t,p.isStatement,p.liftToBlock));case 239:return p.updateThrow(e,s(e.expression,t,p.isExpression));case 240:return p.updateTry(e,s(e.tryBlock,t,p.isBlock),s(e.catchClause,t,p.isCatchClause),s(e.finallyBlock,t,p.isBlock));case 242:return p.updateTypeScriptVariableDeclaration(e,s(e.name,t,p.isBindingName),s(e.exclamationToken,i,p.isToken),s(e.type,t,p.isTypeNode),s(e.initializer,t,p.isExpression));case 243:return p.updateVariableDeclarationList(e,n(e.declarations,t,p.isVariableDeclaration));case 244:return p.updateFunctionDeclaration(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.asteriskToken,i,p.isToken),s(e.name,t,p.isIdentifier),n(e.typeParameters,t,p.isTypeParameterDeclaration),l(e.parameters,t,r,n),s(e.type,t,p.isTypeNode),_(e.body,t,r));case 245:return p.updateClassDeclaration(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.name,t,p.isIdentifier),n(e.typeParameters,t,p.isTypeParameterDeclaration),n(e.heritageClauses,t,p.isHeritageClause),n(e.members,t,p.isClassElement));case 246:return p.updateInterfaceDeclaration(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.name,t,p.isIdentifier),n(e.typeParameters,t,p.isTypeParameterDeclaration),n(e.heritageClauses,t,p.isHeritageClause),n(e.members,t,p.isTypeElement));case 247:return p.updateTypeAliasDeclaration(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.name,t,p.isIdentifier),n(e.typeParameters,t,p.isTypeParameterDeclaration),s(e.type,t,p.isTypeNode));case 248:return p.updateEnumDeclaration(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.name,t,p.isIdentifier),n(e.members,t,p.isEnumMember));case 249:return p.updateModuleDeclaration(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.name,t,p.isIdentifier),s(e.body,t,p.isModuleBody));case 250:return p.updateModuleBlock(e,n(e.statements,t,p.isStatement));case 251:return p.updateCaseBlock(e,n(e.clauses,t,p.isCaseOrDefaultClause));case 252:return p.updateNamespaceExportDeclaration(e,s(e.name,t,p.isIdentifier));case 253:return p.updateImportEqualsDeclaration(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.name,t,p.isIdentifier),s(e.moduleReference,t,p.isModuleReference));case 254:return p.updateImportDeclaration(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.importClause,t,p.isImportClause),s(e.moduleSpecifier,t,p.isExpression));case 255:return p.updateImportClause(e,s(e.name,t,p.isIdentifier),s(e.namedBindings,t,p.isNamedImportBindings),e.isTypeOnly);case 256:return p.updateNamespaceImport(e,s(e.name,t,p.isIdentifier));case 262:return p.updateNamespaceExport(e,s(e.name,t,p.isIdentifier));case 257:return p.updateNamedImports(e,n(e.elements,t,p.isImportSpecifier));case 258:return p.updateImportSpecifier(e,s(e.propertyName,t,p.isIdentifier),s(e.name,t,p.isIdentifier));case 259:return p.updateExportAssignment(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.expression,t,p.isExpression));case 260:return p.updateExportDeclaration(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.exportClause,t,p.isNamedExportBindings),s(e.moduleSpecifier,t,p.isExpression),e.isTypeOnly);case 261:return p.updateNamedExports(e,n(e.elements,t,p.isExportSpecifier));case 263:return p.updateExportSpecifier(e,s(e.propertyName,t,p.isIdentifier),s(e.name,t,p.isIdentifier));case 265:return p.updateExternalModuleReference(e,s(e.expression,t,p.isExpression));case 266:return p.updateJsxElement(e,s(e.openingElement,t,p.isJsxOpeningElement),n(e.children,t,p.isJsxChild),s(e.closingElement,t,p.isJsxClosingElement));case 267:return p.updateJsxSelfClosingElement(e,s(e.tagName,t,p.isJsxTagNameExpression),n(e.typeArguments,t,p.isTypeNode),s(e.attributes,t,p.isJsxAttributes));case 268:return p.updateJsxOpeningElement(e,s(e.tagName,t,p.isJsxTagNameExpression),n(e.typeArguments,t,p.isTypeNode),s(e.attributes,t,p.isJsxAttributes));case 269:return p.updateJsxClosingElement(e,s(e.tagName,t,p.isJsxTagNameExpression));case 270:return p.updateJsxFragment(e,s(e.openingFragment,t,p.isJsxOpeningFragment),n(e.children,t,p.isJsxChild),s(e.closingFragment,t,p.isJsxClosingFragment));case 273:return p.updateJsxAttribute(e,s(e.name,t,p.isIdentifier),s(e.initializer,t,p.isStringLiteralOrJsxExpression));case 274:return p.updateJsxAttributes(e,n(e.properties,t,p.isJsxAttributeLike));case 275:return p.updateJsxSpreadAttribute(e,s(e.expression,t,p.isExpression));case 276:return p.updateJsxExpression(e,s(e.expression,t,p.isExpression));case 277:return p.updateCaseClause(e,s(e.expression,t,p.isExpression),n(e.statements,t,p.isStatement));case 278:return p.updateDefaultClause(e,n(e.statements,t,p.isStatement));case 279:return p.updateHeritageClause(e,n(e.types,t,p.isExpressionWithTypeArguments));case 280:return p.updateCatchClause(e,s(e.variableDeclaration,t,p.isVariableDeclaration),s(e.block,t,p.isBlock));case 281:return p.updatePropertyAssignment(e,s(e.name,t,p.isPropertyName),s(e.initializer,t,p.isExpression));case 282:return p.updateShorthandPropertyAssignment(e,s(e.name,t,p.isIdentifier),s(e.objectAssignmentInitializer,t,p.isExpression));case 283:return p.updateSpreadAssignment(e,s(e.expression,t,p.isExpression));case 284:return p.updateEnumMember(e,s(e.name,t,p.isPropertyName),s(e.initializer,t,p.isExpression));case 290:return p.updateSourceFileNode(e,u(e.statements,t,r));case 326:return p.updatePartiallyEmittedExpression(e,s(e.expression,t,p.isExpression));case 327:return p.updateCommaList(e,n(e.elements,t,p.isExpression));default:return e}}}}(ts=ts||{}),function(f){function s(e,t,r){return e?t(r,e):r}function c(e,t,r){return e?t(r,e):r}function r(e,t,r,n){if(void 0===e)return t;var i=n?c:f.reduceLeft,a=n||r,n=e.kind;if(0<n&&n<=152)return t;if(168<=n&&n<=187)return t;var o=t;switch(e.kind){case 222:case 224:case 215:case 241:case 325:break;case 153:o=s(e.left,r,o),o=s(e.right,r,o);break;case 154:o=s(e.expression,r,o);break;case 156:o=i(e.decorators,a,o),o=i(e.modifiers,a,o),o=s(e.name,r,o),o=s(e.type,r,o),o=s(e.initializer,r,o);break;case 157:o=s(e.expression,r,o);break;case 158:o=i(e.modifiers,a,o),o=s(e.name,r,o),o=s(e.questionToken,r,o),o=s(e.type,r,o),o=s(e.initializer,r,o);break;case 159:o=i(e.decorators,a,o),o=i(e.modifiers,a,o),o=s(e.name,r,o),o=s(e.type,r,o),o=s(e.initializer,r,o);break;case 161:o=i(e.decorators,a,o),o=i(e.modifiers,a,o),o=s(e.name,r,o),o=i(e.typeParameters,a,o),o=i(e.parameters,a,o),o=s(e.type,r,o),o=s(e.body,r,o);break;case 162:o=i(e.modifiers,a,o),o=i(e.parameters,a,o),o=s(e.body,r,o);break;case 163:o=i(e.decorators,a,o),o=i(e.modifiers,a,o),o=s(e.name,r,o),o=i(e.parameters,a,o),o=s(e.type,r,o),o=s(e.body,r,o);break;case 164:o=i(e.decorators,a,o),o=i(e.modifiers,a,o),o=s(e.name,r,o),o=i(e.parameters,a,o),o=s(e.body,r,o);break;case 189:case 190:o=i(e.elements,a,o);break;case 191:o=s(e.propertyName,r,o),o=s(e.name,r,o),o=s(e.initializer,r,o);break;case 192:o=i(e.elements,a,o);break;case 193:o=i(e.properties,a,o);break;case 194:o=s(e.expression,r,o),o=s(e.name,r,o);break;case 195:o=s(e.expression,r,o),o=s(e.argumentExpression,r,o);break;case 196:case 197:o=s(e.expression,r,o),o=i(e.typeArguments,a,o),o=i(e.arguments,a,o);break;case 198:o=s(e.tag,r,o),o=i(e.typeArguments,a,o),o=s(e.template,r,o);break;case 199:o=s(e.type,r,o),o=s(e.expression,r,o);break;case 201:o=i(e.modifiers,a,o),o=s(e.name,r,o),o=i(e.typeParameters,a,o),o=i(e.parameters,a,o),o=s(e.type,r,o),o=s(e.body,r,o);break;case 202:o=i(e.modifiers,a,o),o=i(e.typeParameters,a,o),o=i(e.parameters,a,o),o=s(e.type,r,o),o=s(e.body,r,o);break;case 200:case 203:case 204:case 205:case 206:case 212:case 213:case 218:o=s(e.expression,r,o);break;case 207:case 208:o=s(e.operand,r,o);break;case 209:o=s(e.left,r,o),o=s(e.right,r,o);break;case 210:o=s(e.condition,r,o),o=s(e.whenTrue,r,o),o=s(e.whenFalse,r,o);break;case 211:o=s(e.head,r,o),o=i(e.templateSpans,a,o);break;case 214:o=i(e.modifiers,a,o),o=s(e.name,r,o),o=i(e.typeParameters,a,o),o=i(e.heritageClauses,a,o),o=i(e.members,a,o);break;case 216:o=s(e.expression,r,o),o=i(e.typeArguments,a,o);break;case 217:o=s(e.expression,r,o),o=s(e.type,r,o);break;case 221:o=s(e.expression,r,o),o=s(e.literal,r,o);break;case 223:o=i(e.statements,a,o);break;case 225:o=i(e.modifiers,a,o),o=s(e.declarationList,r,o);break;case 226:o=s(e.expression,r,o);break;case 227:o=s(e.expression,r,o),o=s(e.thenStatement,r,o),o=s(e.elseStatement,r,o);break;case 228:o=s(e.statement,r,o),o=s(e.expression,r,o);break;case 229:case 236:o=s(e.expression,r,o),o=s(e.statement,r,o);break;case 230:o=s(e.initializer,r,o),o=s(e.condition,r,o),o=s(e.incrementor,r,o),o=s(e.statement,r,o);break;case 231:case 232:o=s(e.initializer,r,o),o=s(e.expression,r,o),o=s(e.statement,r,o);break;case 235:case 239:o=s(e.expression,r,o);break;case 237:o=s(e.expression,r,o),o=s(e.caseBlock,r,o);break;case 238:o=s(e.label,r,o),o=s(e.statement,r,o);break;case 240:o=s(e.tryBlock,r,o),o=s(e.catchClause,r,o),o=s(e.finallyBlock,r,o);break;case 242:o=s(e.name,r,o),o=s(e.type,r,o),o=s(e.initializer,r,o);break;case 243:o=i(e.declarations,a,o);break;case 244:o=i(e.decorators,a,o),o=i(e.modifiers,a,o),o=s(e.name,r,o),o=i(e.typeParameters,a,o),o=i(e.parameters,a,o),o=s(e.type,r,o),o=s(e.body,r,o);break;case 245:o=i(e.decorators,a,o),o=i(e.modifiers,a,o),o=s(e.name,r,o),o=i(e.typeParameters,a,o),o=i(e.heritageClauses,a,o),o=i(e.members,a,o);break;case 248:o=i(e.decorators,a,o),o=i(e.modifiers,a,o),o=s(e.name,r,o),o=i(e.members,a,o);break;case 249:o=i(e.decorators,a,o),o=i(e.modifiers,a,o),o=s(e.name,r,o),o=s(e.body,r,o);break;case 250:o=i(e.statements,a,o);break;case 251:o=i(e.clauses,a,o);break;case 253:o=i(e.decorators,a,o),o=i(e.modifiers,a,o),o=s(e.name,r,o),o=s(e.moduleReference,r,o);break;case 254:o=i(e.decorators,a,o),o=i(e.modifiers,a,o),o=s(e.importClause,r,o),o=s(e.moduleSpecifier,r,o);break;case 255:o=s(e.name,r,o),o=s(e.namedBindings,r,o);break;case 256:case 262:o=s(e.name,r,o);break;case 257:case 261:o=i(e.elements,a,o);break;case 258:case 263:o=s(e.propertyName,r,o),o=s(e.name,r,o);break;case 259:o=f.reduceLeft(e.decorators,r,o),o=f.reduceLeft(e.modifiers,r,o),o=s(e.expression,r,o);break;case 260:o=f.reduceLeft(e.decorators,r,o),o=f.reduceLeft(e.modifiers,r,o),o=s(e.exportClause,r,o),o=s(e.moduleSpecifier,r,o);break;case 265:o=s(e.expression,r,o);break;case 266:o=s(e.openingElement,r,o),o=f.reduceLeft(e.children,r,o),o=s(e.closingElement,r,o);break;case 270:o=s(e.openingFragment,r,o),o=f.reduceLeft(e.children,r,o),o=s(e.closingFragment,r,o);break;case 267:case 268:o=s(e.tagName,r,o),o=i(e.typeArguments,r,o),o=s(e.attributes,r,o);break;case 274:o=i(e.properties,a,o);break;case 269:o=s(e.tagName,r,o);break;case 273:o=s(e.name,r,o),o=s(e.initializer,r,o);break;case 275:case 276:o=s(e.expression,r,o);break;case 277:o=s(e.expression,r,o);case 278:o=i(e.statements,a,o);break;case 279:o=i(e.types,a,o);break;case 280:o=s(e.variableDeclaration,r,o),o=s(e.block,r,o);break;case 281:o=s(e.name,r,o),o=s(e.initializer,r,o);break;case 282:o=s(e.name,r,o),o=s(e.objectAssignmentInitializer,r,o);break;case 283:o=s(e.expression,r,o);break;case 284:o=s(e.name,r,o),o=s(e.initializer,r,o);break;case 290:o=i(e.statements,a,o);break;case 326:o=s(e.expression,r,o);break;case 327:o=i(e.elements,a,o)}return o}function g(e,t,r){for(var n=r;n<e.length&&t(e[n]);)n++;return n}function o(e){if(void 0===e)return 0;if(536870912&e.transformFlags)return e.transformFlags&~f.getTransformFlagsSubtreeExclusions(e.kind);var t=function(e){if(f.hasModifier(e,2)||f.isTypeNode(e)&&216!==e.kind)return 0;return r(e,0,n,i)}(e);return f.computeTransformFlagsForNode(e,t)}function n(e,t){return e|o(t)}function i(e,t){return e|function(e){if(void 0===e)return 0;for(var t=0,r=0,n=0,i=e;n<i.length;n++){var a=i[n];t|=o(a),r|=-536870913&a.transformFlags}return e.transformFlags=536870912|r,t}(t)}f.reduceEachChild=r,f.mergeLexicalEnvironment=function(e,t){if(!f.some(t))return e;var r=g(e,f.isPrologueDirective,0),n=g(e,f.isHoistedFunction,r),i=g(e,f.isHoistedVariableStatement,n),a=g(t,f.isPrologueDirective,0),o=g(t,f.isHoistedFunction,a),s=g(t,f.isHoistedVariableStatement,o),c=g(t,f.isCustomPrologue,s);f.Debug.assert(c===t.length,"Expected declarations to be valid standard or custom prologues");var u=f.isNodeArray(e)?e.slice():e;if(s<c&&u.splice.apply(u,__spreadArrays([i,0],t.slice(s,c))),o<s&&u.splice.apply(u,__spreadArrays([n,0],t.slice(o,s))),a<o&&u.splice.apply(u,__spreadArrays([r,0],t.slice(a,o))),0<a)if(0===r)u.splice.apply(u,__spreadArrays([0,0],t.slice(0,a)));else{for(var l=f.createMap(),_=0;_<r;_++){var d=e[_];l.set(d.expression.text,!0)}for(_=a-1;0<=_;_--){var p=t[_];l.has(p.expression.text)||u.unshift(p)}}return f.isNodeArray(e)?f.setTextRange(f.createNodeArray(u,e.hasTrailingComma),e):e},f.liftToBlock=function(e){return f.Debug.assert(f.every(e,f.isStatement),"Cannot lift nodes to a Block."),f.singleOrUndefined(e)||f.createBlock(e)},f.aggregateTransformFlags=function(e){return o(e),e}}(ts=ts||{}),function(L){L.createSourceMapGenerator=function(n,e,t,i,r){var a,o,y=(r=r.extendedDiagnostics?L.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):L.performance.nullTimer).enter,h=r.exit,s=[],c=[],u=L.createMap(),l=[],_="",d=0,p=0,f=0,g=0,m=0,v=0,b=!1,x=0,D=0,S=0,C=0,T=0,k=0,E=!1,N=!1,A=!1;return{getSources:function(){return s},addSource:F,setSourceContent:P,addName:w,addMapping:I,appendSourceMap:function(e,t,r,n,i,a){L.Debug.assert(x<=e,"generatedLine cannot backtrack"),L.Debug.assert(0<=t,"generatedCharacter cannot be negative"),y();for(var o,s=[],c=R(r.mappings),u=c.next();!u.done;u=c.next()){var l,_,d,p,f,g,m=u.value;if(a&&(m.generatedLine>a.line||m.generatedLine===a.line&&m.generatedCharacter>a.character))break;i&&(m.generatedLine<i.line||i.line===m.generatedLine&&m.generatedCharacter<i.character)||((p=d=_=l=void 0)!==m.sourceIndex&&(void 0===(l=s[m.sourceIndex])&&(g=r.sources[m.sourceIndex],f=r.sourceRoot?L.combinePaths(r.sourceRoot,g):g,g=L.combinePaths(L.getDirectoryPath(n),f),s[m.sourceIndex]=l=F(g),r.sourcesContent&&"string"==typeof r.sourcesContent[m.sourceIndex]&&P(l,r.sourcesContent[m.sourceIndex])),_=m.sourceLine,d=m.sourceCharacter,r.names&&void 0!==m.nameIndex&&void 0===(p=(o=o||[])[m.nameIndex])&&(o[m.nameIndex]=p=w(r.names[m.nameIndex]))),f=m.generatedLine-(i?i.line:0),g=f+e,m=i&&i.line===m.generatedLine?m.generatedCharacter-i.character:m.generatedCharacter,I(g,0==f?m+t:m,l,_,d,p))}h()},toJSON:M,toString:function(){return JSON.stringify(M())}};function F(e){y();var t=L.getRelativePathToDirectoryOrUrl(i,e,n.getCurrentDirectory(),n.getCanonicalFileName,!0),r=u.get(t);return void 0===r&&(r=c.length,c.push(t),s.push(e),u.set(t,r)),h(),r}function P(e,t){if(y(),null!==t){for(a=a||[];a.length<e;)a.push(null);a[e]=t}h()}function w(e){y();var t=(o=o||L.createMap()).get(e);return void 0===t&&(t=l.length,l.push(e),o.set(e,t)),h(),t}function I(e,t,r,n,i,a){var o,s,c;L.Debug.assert(x<=e,"generatedLine cannot backtrack"),L.Debug.assert(0<=t,"generatedCharacter cannot be negative"),L.Debug.assert(void 0===r||0<=r,"sourceIndex cannot be negative"),L.Debug.assert(void 0===n||0<=n,"sourceLine cannot be negative"),L.Debug.assert(void 0===i||0<=i,"sourceCharacter cannot be negative"),y(),E&&x===e&&D===t&&(s=n,c=i,void 0===(o=r)||void 0===s||void 0===c||S!==o||!(s<C||C===s&&c<T))||(O(),x=e,D=t,E=!(A=N=!1)),void 0!==r&&void 0!==n&&void 0!==i&&(S=r,C=n,T=i,N=!0,void 0!==a&&(k=a,A=!0)),h()}function O(){if(E&&(!b||d!==x||p!==D||f!==S||g!==C||m!==T||v!==k)){if(y(),d<x)for(;_+=";",d++,p=0,d<x;);else L.Debug.assertEqual(d,x,"generatedLine cannot backtrack"),b&&(_+=",");_+=B(D-p),p=D,N&&(_+=B(S-f),f=S,_+=B(C-g),g=C,_+=B(T-m),m=T,A&&(_+=B(k-v),v=k)),b=!0,h()}}function M(){return O(),{version:3,file:e,sourceRoot:t,sources:c,names:l,mappings:_,sourcesContent:a}}};var i=/^\/\/[@#] source[M]appingURL=(.+)\s*$/,a=/^\s*(\/\/[@#] .*)?$/;function t(e){return"string"==typeof e||null===e}function r(e){return null!==e&&"object"==typeof e&&3===e.version&&"string"==typeof e.file&&"string"==typeof e.mappings&&L.isArray(e.sources)&&L.every(e.sources,L.isString)&&(void 0===e.sourceRoot||null===e.sourceRoot||"string"==typeof e.sourceRoot)&&(void 0===e.sourcesContent||null===e.sourcesContent||L.isArray(e.sourcesContent)&&L.every(e.sourcesContent,t))&&(void 0===e.names||null===e.names||L.isArray(e.names)&&L.every(e.names,L.isString))}function R(i){var t,r=!1,a=0,n=0,o=0,s=0,c=0,u=0,l=0;return{get pos(){return a},get error(){return t},get state(){return _(!0,!0)},next:function(){for(;!r&&a<i.length;){var e=i.charCodeAt(a);if(59!==e){if(44!==e){var t=!1,e=!1;if(o+=y(),g())return d();if(o<0)return f("Invalid generatedCharacter found");if(!m()){if(t=!0,s+=y(),g())return d();if(s<0)return f("Invalid sourceIndex found");if(m())return f("Unsupported Format: No entries after sourceIndex");if(c+=y(),g())return d();if(c<0)return f("Invalid sourceLine found");if(m())return f("Unsupported Format: No entries after sourceLine");if(u+=y(),g())return d();if(u<0)return f("Invalid sourceCharacter found");if(!m()){if(e=!0,l+=y(),g())return d();if(l<0)return f("Invalid nameIndex found");if(!m())return f("Unsupported Error Format: Entries after nameIndex")}}return{value:_(t,e),done:r}}a++}else n++,o=0,a++}return d()}};function _(e,t){return{generatedLine:n,generatedCharacter:o,sourceIndex:e?s:void 0,sourceLine:e?c:void 0,sourceCharacter:e?u:void 0,nameIndex:t?l:void 0}}function d(){return{value:void 0,done:r=!0}}function p(e){void 0===t&&(t=e)}function f(e){return p(e),d()}function g(){return void 0!==t}function m(){return a===i.length||44===i.charCodeAt(a)||59===i.charCodeAt(a)}function y(){for(var e=!0,t=0,r=0;e;a++){if(a>=i.length)return p("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var n=65<=(n=i.charCodeAt(a))&&n<=90?n-65:97<=n&&n<=122?n-97+26:48<=n&&n<=57?n-48+52:43===n?62:47===n?63:-1;if(-1==n)return p("Invalid character in VLQ"),-1;e=0!=(32&n),r|=(31&n)<<t,t+=5}return 0==(1&r)?r>>=1:r=-(r>>=1),r}}function p(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function B(e){e<0?e=1+(-e<<1):e<<=1;var t="";do{var r=31&e;0<(e>>=5)&&(r|=32),t+=String.fromCharCode(0<=(r=r)&&r<26?65+r:26<=r&&r<52?97+r-26:52<=r&&r<62?48+r-52:62===r?43:63===r?47:L.Debug.fail(r+": not a base64 value"))}while(0<e);return t}function f(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function g(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function m(e,t){return L.Debug.assert(e.sourceIndex===t.sourceIndex),L.compareValues(e.sourcePosition,t.sourcePosition)}function y(e,t){return L.compareValues(e.generatedPosition,t.generatedPosition)}function h(e){return e.sourcePosition}function v(e){return e.generatedPosition}L.getLineInfo=function(t,r){return{getLineCount:function(){return r.length},getLineText:function(e){return t.substring(r[e],r[e+1])}}},L.tryGetSourceMappingURL=function(e){for(var t=e.getLineCount()-1;0<=t;t--){var r=e.getLineText(t),n=i.exec(r);if(n)return n[1];if(!r.match(a))break}},L.isRawSourceMap=r,L.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(r(t))return t}catch(e){}},L.decodeMappings=R,L.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},L.isSourceMapping=p,L.createDocumentPositionMapper=function(i,a,e){var r,o,s,e=L.getDirectoryPath(e),t=a.sourceRoot?L.getNormalizedAbsolutePath(a.sourceRoot,e):e,c=L.getNormalizedAbsolutePath(a.file,e),u=i.getSourceFileLike(c),l=a.sources.map(function(e){return L.getNormalizedAbsolutePath(e,t)}),_=L.createMapFromEntries(l.map(function(e,t){return[i.getCanonicalFileName(e),t]}));return{getSourcePosition:function(e){var t=function(){if(void 0===o){for(var e=[],t=0,r=d();t<r.length;t++){var n=r[t];e.push(n)}o=L.sortAndDeduplicate(e,y,g)}return o}();if(!L.some(t))return e;var r=L.binarySearchKey(t,e.pos,v,L.compareValues);r<0&&(r=~r);r=t[r];return void 0!==r&&f(r)?{fileName:l[r.sourceIndex],pos:r.sourcePosition}:e},getGeneratedPosition:function(e){var t=_.get(i.getCanonicalFileName(e.fileName));if(void 0===t)return e;var r=function(e){if(void 0===s){for(var t=[],r=0,n=d();r<n.length;r++){var i,a=n[r];f(a)&&((i=t[a.sourceIndex])||(t[a.sourceIndex]=i=[]),i.push(a))}s=t.map(function(e){return L.sortAndDeduplicate(e,m,g)})}return s[e]}(t);if(!L.some(r))return e;var n=L.binarySearchKey(r,e.pos,h,L.compareValues);n<0&&(n=~n);n=r[n];return void 0!==n&&n.sourceIndex===t?{fileName:c,pos:n.generatedPosition}:e}};function n(e){var t,r,n=void 0!==u?L.getPositionOfLineAndCharacter(u,e.generatedLine,e.generatedCharacter,!0):-1;return p(e)&&(r=i.getSourceFileLike(l[e.sourceIndex]),t=a.sources[e.sourceIndex],r=void 0!==r?L.getPositionOfLineAndCharacter(r,e.sourceLine,e.sourceCharacter,!0):-1),{generatedPosition:n,source:t,sourceIndex:e.sourceIndex,sourcePosition:r,nameIndex:e.nameIndex}}function d(){var e,t;return void 0===r&&(e=R(a.mappings),t=L.arrayFrom(e,n),r=void 0!==e.error?(i.log&&i.log("Encountered error while decoding sourcemap: "+e.error),L.emptyArray):t),r}},L.identitySourceMapConsumer={getSourcePosition:L.identity,getGeneratedPosition:L.identity}}(ts=ts||{}),function(S){function C(e){return(e=S.getOriginalNode(e))?S.getNodeId(e):0}function a(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function T(e){if(S.getNamespaceDeclarationNode(e))return!0;var t=e.importClause&&e.importClause.namedBindings;if(!t)return!1;if(!S.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)&&S.isDefaultImport(e)}function k(e){return!T(e)&&(S.isDefaultImport(e)||!!e.importClause&&S.isNamedImports(e.importClause.namedBindings)&&(!!(e=e.importClause.namedBindings)&&(!!S.isNamedImports(e)&&S.some(e.elements,a))))}function E(e,t,r){var n=e[t];return n?n.push(r):e[t]=n=[r],n}function t(e){return S.isStringLiteralLike(e)||8===e.kind||S.isKeyword(e.kind)||S.isIdentifier(e)}S.getOriginalNodeId=C,S.chainBundle=function(t){return function(e){return(290===e.kind?t:function(e){return S.createBundle(S.map(e.sourceFiles,t),e.prepends)})(e)}},S.getExportNeedsImportStarHelper=function(e){return!!S.getNamespaceDeclarationNode(e)},S.getImportNeedsImportStarHelper=T,S.getImportNeedsImportDefaultHelper=k,S.collectExternalModuleInfo=function(e,t,r){for(var n,i=[],a=S.createMultiMap(),o=[],s=S.createMap(),c=!1,u=!1,l=!1,_=!1,d=0,p=e.statements;d<p.length;d++){var f=p[d];switch(f.kind){case 254:i.push(f),!l&&T(f)&&(l=!0),!_&&k(f)&&(_=!0);break;case 253:265===f.moduleReference.kind&&i.push(f);break;case 260:if(f.moduleSpecifier)f.exportClause?i.push(f):(i.push(f),u=!0);else for(var g=0,m=S.cast(f.exportClause,S.isNamedExports).elements;g<m.length;g++){var y,h=m[g];s.get(S.idText(h.name))||(y=h.propertyName||h.name,a.add(S.idText(y),h),(x=t.getReferencedImportDeclaration(y)||t.getReferencedValueDeclaration(y))&&E(o,C(x),h.name),s.set(S.idText(h.name),!0),D=S.append(D,h.name))}break;case 259:f.isExportEquals&&!n&&(n=f);break;case 225:if(S.hasModifier(f,1))for(var v=0,b=f.declarationList.declarations;v<b.length;v++)var x,D=function e(t,r,n){if(S.isBindingPattern(t.name))for(var i=0,a=t.name.elements;i<a.length;i++){var o=a[i];S.isOmittedExpression(o)||(n=e(o,r,n))}else{var s;S.isGeneratedIdentifier(t.name)||(s=S.idText(t.name),r.get(s)||(r.set(s,!0),n=S.append(n,t.name)))}return n}(x=b[v],s,D);break;case 244:S.hasModifier(f,1)&&(S.hasModifier(f,512)?c||(E(o,C(f),S.getDeclarationName(f)),c=!0):(y=f.name,s.get(S.idText(y))||(E(o,C(f),y),s.set(S.idText(y),!0),D=S.append(D,y))));break;case 245:S.hasModifier(f,1)&&(S.hasModifier(f,512)?c||(E(o,C(f),S.getDeclarationName(f)),c=!0):(y=f.name)&&!s.get(S.idText(y))&&(E(o,C(f),y),s.set(S.idText(y),!0),D=S.append(D,y)))}}return(r=S.createExternalHelpersImportDeclarationIfNeeded(e,r,u,l,_))&&i.unshift(r),{externalImports:i,exportSpecifiers:a,exportEquals:n,hasExportStarsToExportValues:u,exportedBindings:o,exportedNames:D,externalHelpersImportDeclaration:r}},S.isSimpleCopiableExpression=t,S.isSimpleInlineableExpression=function(e){return!S.isIdentifier(e)&&t(e)||S.isWellKnownSymbolSyntactically(e)},S.isCompoundAssignment=function(e){return 63<=e&&e<=74},S.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 63:return 39;case 64:return 40;case 65:return 41;case 66:return 42;case 67:return 43;case 68:return 44;case 69:return 47;case 70:return 48;case 71:return 49;case 72:return 50;case 73:return 51;case 74:return 52}},S.addPrologueDirectivesAndInitialSuperCall=function(e,t,r){if(e.body){var n=e.body.statements,e=S.addPrologue(t,n,!1,r);if(e===n.length)return e;var i=S.findIndex(n,function(e){return S.isExpressionStatement(e)&&S.isSuperCall(e.expression)},e);if(-1<i){for(var a=e;a<=i;a++)t.push(S.visitNode(n[a],r,S.isStatement));return i+1}return e}return 0},S.helperString=function(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]}},S.getProperties=function(e,n,i){return S.filter(e.members,function(e){return t=e,r=n,e=i,S.isPropertyDeclaration(t)&&(!!t.initializer||!r)&&S.hasStaticModifier(t)===e;var t,r})},S.isInitializedProperty=function(e){return 159===e.kind&&void 0!==e.initializer}}(ts=ts||{}),function(h){var e;function v(e,t){e=h.getTargetOfBindingOrAssignmentElement(e);return h.isBindingOrAssignmentPattern(e)?function(e,t){for(var e=h.getElementsOfBindingOrAssignmentPattern(e),r=0,n=e;r<n.length;r++)if(v(n[r],t))return 1;return}(e,t):h.isIdentifier(e)&&e.escapedText===t}function b(e){var t=h.tryGetPropertyNameOfBindingOrAssignmentElement(e);if(t&&h.isComputedPropertyName(t)&&!h.isLiteralExpression(t.expression))return!0;e=h.getTargetOfBindingOrAssignmentElement(e);return!!e&&h.isBindingOrAssignmentPattern(e)&&(e=e,!!h.forEach(h.getElementsOfBindingOrAssignmentPattern(e),b))}function x(e,t,r,n,i){var a;i||(r=(o=h.visitNode(h.getInitializerOfBindingOrAssignmentElement(t),e.visitor,h.isExpression))?r?(a=o,i=D(e,i=r,!0,n),h.createConditional(h.createTypeCheck(i,"undefined"),a,i)):o:r||h.createVoidZero());var o=h.getTargetOfBindingOrAssignmentElement(t);h.isObjectBindingOrAssignmentPattern(o)?function(e,t,r,n,i){var a,o,s=h.getElementsOfBindingOrAssignmentPattern(r),c=s.length;1!==c&&(t=!h.isDeclarationBindingElement(t)||0!==c,n=D(e,n,t,i));for(var u=0;u<c;u++){var l,_,d=s[u];h.getRestIndicatorOfBindingOrAssignmentElement(d)?u===c-1&&(a&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(a),n,i,r),a=void 0),_=function(e,t,r,n,i){e.requestEmitHelper(h.restHelper);for(var a=[],o=0,s=0;s<r.length-1;s++){var c,u=h.getPropertyNameOfBindingOrAssignmentElement(r[s]);u&&(h.isComputedPropertyName(u)?(c=n[o],o++,a.push(h.createConditional(h.createTypeCheck(c,"symbol"),c,h.createAdd(c,h.createLiteral(""))))):a.push(h.createLiteral(u)))}return h.createCall(h.getUnscopedHelperName("__rest"),void 0,[t,h.setTextRange(h.createArrayLiteral(a),i)])}(e.context,n,s,o,r),x(e,d,_,d)):(l=h.getPropertyNameOfBindingOrAssignmentElement(d),!(1<=e.level)||24576&d.transformFlags||24576&h.getTargetOfBindingOrAssignmentElement(d).transformFlags||h.isComputedPropertyName(l)?(a&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(a),n,i,r),a=void 0),_=function(e,t,r){{if(h.isComputedPropertyName(r)){var n=D(e,h.visitNode(r.expression,e.visitor),!1,r);return h.createElementAccess(t,n)}if(h.isStringOrNumericLiteralLike(r))return(n=h.getSynthesizedClone(r)).text=n.text,h.createElementAccess(t,n);r=h.createIdentifier(h.idText(r));return h.createPropertyAccess(t,r)}}(e,n,l),h.isComputedPropertyName(l)&&(o=h.append(o,_.argumentExpression)),x(e,d,_,d)):a=h.append(a,h.visitNode(d,e.visitor)))}a&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(a),n,i,r)}(e,t,o,r,n):h.isArrayBindingOrAssignmentPattern(o)?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.createReadHelper(e.context,n,0<c&&h.getRestIndicatorOfBindingOrAssignmentElement(s[c-1])?void 0:c,i),!1,i):(1!==c&&(e.level<1||0===c)||h.every(s,h.isOmittedExpression))&&(t=!h.isDeclarationBindingElement(t)||0!==c,n=D(e,n,t,i));for(var u=0;u<c;u++){var l,_,d=s[u];1<=e.level?a=16384&d.transformFlags?(l=h.createTempVariable(void 0),e.hoistTempVariables&&e.context.hoistVariableDeclaration(l),o=h.append(o,[l,d]),h.append(a,e.createArrayBindingOrAssignmentElement(l))):h.append(a,d):h.isOmittedExpression(d)||(h.getRestIndicatorOfBindingOrAssignmentElement(d)?u===c-1&&(_=h.createArraySlice(n,u),x(e,d,_,d)):(_=h.createElementAccess(n,u),x(e,d,_,d)))}if(a&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(a),n,i,r),o)for(var p=0,f=o;p<f.length;p++){var g=f[p],m=g[0],d=g[1];x(e,d,m,d)}}(e,t,o,r,n):e.emitBindingOrAssignment(o,r,n,t)}function D(e,t,r,n){if(h.isIdentifier(t)&&r)return t;r=h.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(r),e.emitExpression(h.setTextRange(h.createAssignment(r,t),n))):e.emitBindingOrAssignment(r,t,n,void 0),r}function S(e){return h.Debug.assertEachNode(e,h.isArrayBindingElement),h.createArrayBindingPattern(e)}function l(e){return h.createArrayLiteral(h.map(e,h.convertToArrayAssignmentElement))}function C(e){return h.Debug.assertEachNode(e,h.isBindingElement),h.createObjectBindingPattern(e)}function _(e){return h.createObjectLiteral(h.map(e,h.convertToObjectAssignmentElement))}function T(e){return h.createBindingElement(void 0,void 0,e)}function d(e){return e}(e=h.FlattenLevel||(h.FlattenLevel={}))[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",h.flattenDestructuringAssignment=function(e,i,t,r,n,a){var o,s,c=e;if(h.isDestructuringAssignment(e))for(o=e.right;h.isEmptyArrayLiteral(e.left)||h.isEmptyObjectLiteral(e.left);){if(!h.isDestructuringAssignment(o))return h.visitNode(o,i,h.isExpression);c=e=o,o=e.right}if(t={context:t,level:r,downlevelIteration:!!t.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:u,emitBindingOrAssignment:function(e,t,r,n){h.Debug.assertNode(e,a?h.isIdentifier:h.isExpression);r=a?a(e,t,r):h.setTextRange(h.createAssignment(h.visitNode(e,i,h.isExpression),t),r);r.original=n,u(r)},createArrayBindingOrAssignmentPattern:l,createObjectBindingOrAssignmentPattern:_,createArrayBindingOrAssignmentElement:d,visitor:i},o&&(o=h.visitNode(o,i,h.isExpression),h.isIdentifier(o)&&v(e,o.escapedText)||b(e)?o=D(t,o,!1,c):n?o=D(t,o,!0,c):h.nodeIsSynthesized(e)&&(c=o)),x(t,e,o,c,h.isDestructuringAssignment(e)),o&&n){if(!h.some(s))return o;s.push(o)}return h.aggregateTransformFlags(h.inlineExpressions(s))||h.createOmittedExpression();function u(e){h.aggregateTransformFlags(e),s=h.append(s,e)}},h.flattenDestructuringBinding=function(e,t,r,n,i,a,o){void 0===a&&(a=!1);var s,c=[],u=[],n={context:r,level:n,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:a,emitExpression:function(e){s=h.append(s,e)},emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:S,createObjectBindingOrAssignmentPattern:C,createArrayBindingOrAssignmentElement:T,visitor:t};!h.isVariableDeclaration(e)||(t=h.getInitializerOfBindingOrAssignmentElement(e))&&(h.isIdentifier(t)&&v(e,t.escapedText)||b(e))&&(t=D(n,t,!1,t),e=h.updateVariableDeclaration(e,e.name,e.type,t)),x(n,e,i,e,o),s&&(o=h.createTempVariable(void 0),a?y(o,g=h.inlineExpressions(s),s=void 0,void 0):(r.hoistVariableDeclaration(o),(r=h.last(c)).pendingExpressions=h.append(r.pendingExpressions,h.createAssignment(o,r.value)),h.addRange(r.pendingExpressions,s),r.value=o));for(var l=0,_=c;l<_.length;l++){var d=_[l],p=d.pendingExpressions,f=d.name,g=d.value,m=d.location,d=d.original,p=h.createVariableDeclaration(f,void 0,p?h.inlineExpressions(h.append(p,g)):g);p.original=d,h.setTextRange(p,m),h.aggregateTransformFlags(p),u.push(p)}return u;function y(e,t,r,n){h.Debug.assertNode(e,h.isBindingName),s&&(t=h.inlineExpressions(h.append(s,t)),s=void 0),c.push({pendingExpressions:s,name:e,value:t,location:r,original:n})}},h.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            };'}}(ts=ts||{}),function(f){var g,e;function m(e){return e.templateFlags?f.createIdentifier("undefined"):f.createLiteral(e.text)}function y(e,t){var r=e.rawText;return void 0===r&&(r=f.getSourceTextOfNodeFromSourceFile(t,e),t=14===e.kind||17===e.kind,r=r.substring(1,r.length-(t?1:2))),r=r.replace(/\r\n?/g,"\n"),f.setTextRange(f.createLiteral(r),e)}(e=g=f.ProcessLevel||(f.ProcessLevel={}))[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",f.processTaggedTemplateExpression=function(e,t,r,n,i,a){var o=f.visitNode(t.tag,r,f.isExpression),s=[void 0],c=[],u=[],l=t.template;if(a===g.LiftRestriction&&!f.hasInvalidEscape(l))return t;if(f.isNoSubstitutionTemplateLiteral(l))c.push(m(l)),u.push(y(l,n));else{c.push(m(l.head)),u.push(y(l.head,n));for(var _=0,d=l.templateSpans;_<d.length;_++){var p=d[_];c.push(m(p.literal)),u.push(y(p.literal,n)),s.push(f.visitNode(p.expression,r,f.isExpression))}}return t=e,l=f.createArrayLiteral(c),e=f.createArrayLiteral(u),t.requestEmitHelper(f.templateObjectHelper),e=f.createCall(f.getUnscopedHelperName("__makeTemplateObject"),void 0,[l,e]),f.isExternalModule(n)?(i(i=f.createUniqueName("templateObject")),s[0]=f.createLogicalOr(i,f.createAssignment(i,e))):s[0]=e,f.createCall(o,void 0,s)},f.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            };'}}(ts=ts||{}),function(Re){var e;function Be(e,t,r,n,i,a){var o=[];return o.push(Re.createArrayLiteral(t,!0)),o.push(r),n&&(o.push(n),i&&o.push(i)),e.requestEmitHelper(Re.decorateHelper),Re.setTextRange(Re.createCall(Re.getUnscopedHelperName("__decorate"),void 0,o),a)}function je(e,t,r){return e.requestEmitHelper(Re.metadataHelper),Re.createCall(Re.getUnscopedHelperName("__metadata"),void 0,[Re.createLiteral(t),r])}(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",Re.transformTypeScript=function(u){var c,l,_,d,o,p,s,f,g,a,m=u.startLexicalEnvironment,y=u.resumeLexicalEnvironment,h=u.endLexicalEnvironment,v=u.hoistVariableDeclaration,b=u.getEmitResolver(),x=u.getCompilerOptions(),D=Re.getStrictOptionValue(x,"strictNullChecks"),S=Re.getEmitScriptTarget(x),C=Re.getEmitModuleKind(x),T=u.onEmitNode,r=u.onSubstituteNode;return u.onEmitNode=function(e,t,r){var n=a,i=c;Re.isSourceFile(t)&&(c=t);2&f&&function(e){return 249===Re.getOriginalNode(e).kind}(t)&&(a|=2);8&f&&function(e){return 248===Re.getOriginalNode(e).kind}(t)&&(a|=8);T(e,t,r),a=n,c=i},u.onSubstituteNode=function(e,t){{if(t=r(e,t),1===e)return function(e){switch(e.kind){case 75:return function(e){return function(e){if(1&f&&33554432&b.getNodeCheckFlags(e)){var t=b.getReferencedValueDeclaration(e);if(t){t=g[t.id];if(t){t=Re.getSynthesizedClone(t);return Re.setSourceMapRange(t,e),Re.setCommentRange(t,e),t}}}return}(e)||Me(e)||e}(e);case 194:case 195:return Le(e)}return e}(t);if(Re.isShorthandPropertyAssignment(t))return function(e){if(2&f){var t=e.name,r=Me(t);if(r){if(e.objectAssignmentInitializer){var n=Re.createAssignment(r,e.objectAssignmentInitializer);return Re.setTextRange(Re.createPropertyAssignment(t,n),e)}return Re.setTextRange(Re.createPropertyAssignment(t,r),e)}}return e}(t)}return t},u.enableSubstitution(194),u.enableSubstitution(195),function(e){return(291!==e.kind?t:function(e){return Re.createBundle(e.sourceFiles.map(t),Re.mapDefined(e.prepends,function(e){return 293===e.kind?Re.createUnparsedSourceFile(e,"js"):e}))})(e)};function t(e){if(e.isDeclarationFile)return e;e=k(c=e,M);return Re.addEmitHelpers(e,u.readEmitHelpers()),c=void 0,e}function k(e,t){var r=d,n=o,i=p,a=s;!function(e){switch(e.kind){case 290:case 251:case 250:case 223:d=e,p=o=void 0;break;case 245:case 244:if(Re.hasModifier(e,2))break;e.name?me(e):Re.Debug.assert(245===e.kind||Re.hasModifier(e,512)),Re.isClassDeclaration(e)&&(o=e)}}(e);e=t(e);return d!==r&&(p=i),d=r,o=n,s=a,e}function E(e){return k(e,n)}function n(e){return 1&e.transformFlags?O(e):e}function i(e){return k(e,N)}function N(e){switch(e.kind){case 254:case 253:case 259:case 260:return function(e){if(Re.getParseTreeNode(e)!==e)return 1&e.transformFlags?Re.visitEachChild(e,E,u):e;switch(e.kind){case 254:return function(e){if(!e.importClause)return e;if(e.importClause.isTypeOnly)return;var t=Re.visitNode(e.importClause,be,Re.isImportClause);return t||1===x.importsNotUsedAsValues||2===x.importsNotUsedAsValues?Re.updateImportDeclaration(e,void 0,void 0,t,e.moduleSpecifier):void 0}(e);case 253:return Te(e);case 259:return function(e){return b.isValueAliasDeclaration(e)?Re.visitEachChild(e,E,u):void 0}(e);case 260:return function(e){if(e.isTypeOnly)return;if(!e.exportClause||Re.isNamespaceExport(e.exportClause))return e;if(!b.isValueAliasDeclaration(e))return;var t=Re.visitNode(e.exportClause,Se,Re.isNamedExportBindings);return t?Re.updateExportDeclaration(e,void 0,void 0,t,e.moduleSpecifier,e.isTypeOnly):void 0}(e);default:Re.Debug.fail("Unhandled ellided statement")}}(e);default:return n(e)}}function A(e){return k(e,F)}function F(e){if(260!==e.kind&&254!==e.kind&&255!==e.kind&&(253!==e.kind||265!==e.moduleReference.kind))return 1&e.transformFlags||Re.hasModifier(e,1)?O(e):e}function P(e){return k(e,w)}function w(e){switch(e.kind){case 162:return le(e);case 159:return ue(e);case 167:case 163:case 164:case 161:return n(e);case 222:return e;default:return Re.Debug.failBadSyntaxKind(e)}}function I(e){if(!(2270&Re.modifierToFlag(e.kind)||l&&89===e.kind))return e}function O(e){if(Re.isStatement(e)&&Re.hasModifier(e,2))return Re.createNotEmittedStatement(e);switch(e.kind){case 89:case 84:return l?void 0:e;case 119:case 117:case 118:case 122:case 81:case 130:case 138:case 174:case 175:case 176:case 177:case 173:case 168:case 155:case 125:case 148:case 128:case 143:case 140:case 137:case 110:case 144:case 171:case 170:case 172:case 169:case 178:case 179:case 180:case 182:case 183:case 184:case 185:case 186:case 187:case 167:case 157:case 247:return;case 159:return ue(e);case 252:return;case 162:return le(e);case 246:return Re.createNotEmittedStatement(e);case 245:return function(e){if(!(B(e)||l&&Re.hasModifier(e,1)))return Re.visitEachChild(e,E,u);var t=Re.getProperties(e,!0,!0),r=function(e,t){var r=0;Re.some(t)&&(r|=1);t=Re.getEffectiveBaseTypeNode(e);t&&100!==Re.skipOuterExpressions(t.expression).kind&&(r|=64);!function(e){if(e.decorators&&0<e.decorators.length)return!0;e=Re.getFirstConstructorWithBody(e);if(e)return Re.forEach(e.parameters,L);return!1}(e)||(r|=2);Re.childIsDecorated(e)&&(r|=4);ke(e)?r|=8:!function(e){return Ee(e)&&Re.hasModifier(e,512)}(e)?Ne(e)&&(r|=16):r|=32;S<=1&&7&r&&(r|=128);return r}(e,t);128&r&&u.startLexicalEnvironment();var n=e.name||(5&r?Re.getGeneratedNameForNode(e):void 0),i=2&r?function(e,t){var r=Re.moveRangePastDecorators(e),n=function(e){if(16777216&b.getNodeCheckFlags(e)){0==(1&f)&&(f|=1,u.enableSubstitution(75),g=[]);var t=Re.createUniqueName(e.name&&!Re.isGeneratedIdentifier(e.name)?Re.idText(e.name):"default");return g[Re.getOriginalNodeId(e)]=t,v(t),t}}(e),i=Re.getLocalName(e,!1,!0),a=Re.visitNodes(e.heritageClauses,E,Re.isHeritageClause),o=j(e),o=Re.createClassExpression(void 0,t,void 0,a,o);Re.aggregateTransformFlags(o),Re.setOriginalNode(o,e),Re.setTextRange(o,r);o=Re.createVariableStatement(void 0,Re.createVariableDeclarationList([Re.createVariableDeclaration(i,void 0,n?Re.createAssignment(n,o):o)],1));return Re.setOriginalNode(o,e),Re.setTextRange(o,r),Re.setCommentRange(o,e),o}(e,n):function(e,t,r){var n=128&r?void 0:Re.visitNodes(e.modifiers,I,Re.isModifier),n=Re.createClassDeclaration(void 0,n,t,void 0,Re.visitNodes(e.heritageClauses,E,Re.isHeritageClause),j(e)),t=Re.getEmitFlags(e);1&r&&(t|=32);return Re.aggregateTransformFlags(n),Re.setTextRange(n,e),Re.setOriginalNode(n,e),Re.setEmitFlags(n,t),n}(e,n,r),a=[i];q(a,e,!1),q(a,e,!0),function(e,t){var r=function(e){var t=function(e){var t=e.decorators,e=U(Re.getFirstConstructorWithBody(e));return t||e?{decorators:t,parameters:e}:void 0}(e),r=K(e,e,t);if(!r)return;var n=g&&g[Re.getOriginalNodeId(e)],t=Re.getLocalName(e,!1,!0),r=Be(u,r,t),r=Re.createAssignment(t,n?Re.createAssignment(n,r):r);return Re.setEmitFlags(r,1536),Re.setSourceMapRange(r,Re.moveRangePastDecorators(e)),r}(t);r&&e.push(Re.setOriginalNode(Re.createExpressionStatement(r),t))}(a,e),128&r&&(t=Re.createTokenRange(Re.skipTrivia(c.text,e.members.end),19),n=Re.getInternalName(e),(n=Re.createPartiallyEmittedExpression(n)).end=t.end,Re.setEmitFlags(n,1536),(n=Re.createReturn(n)).pos=t.pos,Re.setEmitFlags(n,1920),a.push(n),Re.insertStatementsAfterStandardPrologue(a,u.endLexicalEnvironment()),n=Re.createImmediatelyInvokedArrowFunction(a),Re.setEmitFlags(n,33554432),n=Re.createVariableStatement(void 0,Re.createVariableDeclarationList([Re.createVariableDeclaration(Re.getLocalName(e,!1,!1),void 0,n)])),Re.setOriginalNode(n,e),Re.setCommentRange(n,e),Re.setSourceMapRange(n,Re.moveRangePastDecorators(e)),Re.startOnNewLine(n),a=[n]);8&r?Fe(a,e):(128&r||2&r)&&(32&r?a.push(Re.createExportDefault(Re.getLocalName(e,!1,!0))):16&r&&a.push(Re.createExternalModuleExport(Re.getLocalName(e,!1,!0))));1<a.length&&(a.push(Re.createEndOfDeclarationMarker(e)),Re.setEmitFlags(i,4194304|Re.getEmitFlags(i)));return Re.singleOrMany(a)}(e);case 214:return function(e){if(!B(e))return Re.visitEachChild(e,E,u);var t=Re.createClassExpression(void 0,e.name,void 0,Re.visitNodes(e.heritageClauses,E,Re.isHeritageClause),j(e));return Re.aggregateTransformFlags(t),Re.setOriginalNode(t,e),Re.setTextRange(t,e),t}(e);case 279:return 113!==(s=e).token?Re.visitEachChild(s,E,u):void 0;case 216:return s=e,Re.updateExpressionWithTypeArguments(s,void 0,Re.visitNode(s.expression,E,Re.isLeftHandSideExpression));case 161:return function(e){if(!ce(e))return;var t=Re.updateMethod(e,void 0,Re.visitNodes(e.modifiers,I,Re.isModifier),e.asteriskToken,se(e),void 0,void 0,Re.visitParameterList(e.parameters,E,u),void 0,Re.visitFunctionBody(e.body,E,u));t!==e&&(Re.setCommentRange(t,e),Re.setSourceMapRange(t,Re.moveRangePastDecorators(e)));return t}(e);case 163:return function(e){if(!de(e))return;var t=Re.updateGetAccessor(e,void 0,Re.visitNodes(e.modifiers,I,Re.isModifier),se(e),Re.visitParameterList(e.parameters,E,u),void 0,Re.visitFunctionBody(e.body,E,u)||Re.createBlock([]));t!==e&&(Re.setCommentRange(t,e),Re.setSourceMapRange(t,Re.moveRangePastDecorators(e)));return t}(e);case 164:return function(e){if(!de(e))return;var t=Re.updateSetAccessor(e,void 0,Re.visitNodes(e.modifiers,I,Re.isModifier),se(e),Re.visitParameterList(e.parameters,E,u),Re.visitFunctionBody(e.body,E,u)||Re.createBlock([]));t!==e&&(Re.setCommentRange(t,e),Re.setSourceMapRange(t,Re.moveRangePastDecorators(e)));return t}(e);case 244:return function(e){if(!ce(e))return Re.createNotEmittedStatement(e);var t=Re.updateFunctionDeclaration(e,void 0,Re.visitNodes(e.modifiers,I,Re.isModifier),e.asteriskToken,e.name,void 0,Re.visitParameterList(e.parameters,E,u),void 0,Re.visitFunctionBody(e.body,E,u)||Re.createBlock([]));if(ke(e)){var r=[t];return Fe(r,e),r}return t}(e);case 201:return ce(o=e)?Re.updateFunctionExpression(o,Re.visitNodes(o.modifiers,I,Re.isModifier),o.asteriskToken,o.name,void 0,Re.visitParameterList(o.parameters,E,u),void 0,Re.visitFunctionBody(o.body,E,u)||Re.createBlock([])):Re.createOmittedExpression();case 202:return a=e,Re.updateArrowFunction(a,Re.visitNodes(a.modifiers,I,Re.isModifier),void 0,Re.visitParameterList(a.parameters,E,u),void 0,a.equalsGreaterThanToken,Re.visitFunctionBody(a.body,E,u));case 156:return function(e){if(Re.parameterIsThisKeyword(e))return;var t=Re.updateParameter(e,void 0,void 0,e.dotDotDotToken,Re.visitNode(e.name,E,Re.isBindingName),void 0,void 0,Re.visitNode(e.initializer,E,Re.isExpression));t!==e&&(Re.setCommentRange(t,e),Re.setTextRange(t,Re.moveRangePastModifiers(e)),Re.setSourceMapRange(t,Re.moveRangePastModifiers(e)),Re.setEmitFlags(t.name,32));return t}(e);case 200:return function(e){var t=Re.skipOuterExpressions(e.expression,-7);if(Re.isAssertionExpression(t)){t=Re.visitNode(e.expression,E,Re.isExpression);return Re.length(Re.getLeadingCommentRangesOfNode(t,c))?Re.updateParen(e,t):Re.createPartiallyEmittedExpression(t,e)}return Re.visitEachChild(e,E,u)}(e);case 199:case 217:return o=e,a=Re.visitNode(o.expression,E,Re.isExpression),Re.createPartiallyEmittedExpression(a,o);case 196:return i=e,Re.updateCall(i,Re.visitNode(i.expression,E,Re.isExpression),void 0,Re.visitNodes(i.arguments,E,Re.isExpression));case 197:return i=e,Re.updateNew(i,Re.visitNode(i.expression,E,Re.isExpression),void 0,Re.visitNodes(i.arguments,E,Re.isExpression));case 198:return n=e,Re.updateTaggedTemplate(n,Re.visitNode(n.tag,E,Re.isExpression),void 0,Re.visitNode(n.template,E,Re.isExpression));case 218:return r=e,n=Re.visitNode(r.expression,E,Re.isLeftHandSideExpression),Re.createPartiallyEmittedExpression(n,r);case 248:return function(e){if(!function(e){return!Re.isEnumConst(e)||x.preserveConstEnums||x.isolatedModules}(e))return Re.createNotEmittedStatement(e);var t=[],r=2,n=he(t,e);n&&(C===Re.ModuleKind.System&&d===c||(r|=512));var i=Ie(e),a=Oe(e),o=Re.hasModifier(e,1)?Re.getExternalModuleOrNamespaceExportName(_,e,!1,!0):Re.getLocalName(e,!1,!0),s=Re.createLogicalOr(o,Re.createAssignment(o,Re.createObjectLiteral()));ge(e)&&(o=Re.getLocalName(e,!1,!0),s=Re.createAssignment(o,s));s=Re.createExpressionStatement(Re.createCall(Re.createFunctionExpression(void 0,void 0,void 0,void 0,[Re.createParameter(void 0,void 0,void 0,i)],void 0,function(e,t){var r=_;_=t;var n=[];m();t=Re.map(e.members,fe);return Re.insertStatementsAfterStandardPrologue(n,h()),Re.addRange(n,t),_=r,Re.createBlock(Re.setTextRange(Re.createNodeArray(n),e.members),!0)}(e,a)),void 0,[s]));Re.setOriginalNode(s,e),n&&(Re.setSyntheticLeadingComments(s,void 0),Re.setSyntheticTrailingComments(s,void 0));return Re.setTextRange(s,e),Re.addEmitFlags(s,r),t.push(s),t.push(Re.createEndOfDeclarationMarker(e)),t}(e);case 225:return function(e){{if(!ke(e))return Re.visitEachChild(e,E,u);var t=Re.getInitializedVariables(e.declarationList);if(0!==t.length)return Re.setTextRange(Re.createExpressionStatement(Re.inlineExpressions(Re.map(t,pe))),e)}}(e);case 242:return r=e,Re.updateTypeScriptVariableDeclaration(r,Re.visitNode(r.name,E,Re.isBindingName),void 0,void 0,Re.visitNode(r.initializer,E,Re.isExpression));case 249:return ve(e);case 253:return Te(e);case 267:return t=e,Re.updateJsxSelfClosingElement(t,Re.visitNode(t.tagName,E,Re.isJsxTagNameExpression),void 0,Re.visitNode(t.attributes,E,Re.isJsxAttributes));case 268:return t=e,Re.updateJsxOpeningElement(t,Re.visitNode(t.tagName,E,Re.isJsxTagNameExpression),void 0,Re.visitNode(t.attributes,E,Re.isJsxAttributes));default:return Re.visitEachChild(e,E,u)}var t,r,n,i,a,o,s}function M(e){var t=Re.getStrictOptionValue(x,"alwaysStrict")&&!(Re.isExternalModule(e)&&C>=Re.ModuleKind.ES2015)&&!Re.isJsonSourceFile(e);return Re.updateSourceFileNode(e,Re.visitLexicalEnvironment(e.statements,i,u,0,t))}function L(e){return void 0!==e.decorators&&0<e.decorators.length}function R(e){return!!(2048&e.transformFlags)}function B(e){return Re.some(e.decorators)||Re.some(e.typeParameters)||Re.some(e.heritageClauses,R)||Re.some(e.members,R)}function j(e){var t=[],r=Re.getFirstConstructorWithBody(e),n=r&&Re.filter(r.parameters,function(e){return Re.isParameterPropertyDeclaration(e,r)});if(n)for(var i=0,a=n;i<a.length;i++){var o=a[i];Re.isIdentifier(o.name)&&t.push(Re.setOriginalNode(Re.aggregateTransformFlags(Re.createProperty(void 0,void 0,o.name,void 0,void 0,void 0)),o))}return Re.addRange(t,Re.visitNodes(e.members,P,Re.isClassElement)),Re.setTextRange(Re.createNodeArray(t),e.members)}function J(t,e){return Re.filter(t.members,e?function(e){return z(e,!0,t)}:function(e){return z(e,!1,t)})}function z(e,t,r){return Re.nodeOrChildIsDecorated(e,r)&&t===Re.hasModifier(e,32)}function U(e){var t;if(e)for(var r=e.parameters,e=0<r.length&&Re.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 163:case 164:return function(e,t){if(!t.body)return;var r=Re.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 161: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 159:return function(e){e=e.decorators;return e?{decorators:e}:void 0}(t);default:return}}function K(e,t,r){if(r){var n=[];return Re.addRange(n,Re.map(r.decorators,W)),Re.addRange(n,Re.flatMap(r.parameters,H)),function(e,t,r){x.emitDecoratorMetadata&&(G(e)&&r.push(je(u,"design:type",Y(e))),X(e)&&r.push(je(u,"design:paramtypes",Z(e,t))),Q(e)&&r.push(je(u,"design:returntype",$(e))))}(e,t,n),n}}function q(e,t,r){Re.addRange(e,Re.map(function(e,t){for(var r,t=J(e,t),n=0,i=t;n<i.length;n++){var a=i[n],a=function(e,t){var r=V(e,t),n=K(t,e,r);if(!n)return;var i=function(e,t){return Re.hasModifier(t,32)?Re.getDeclarationName(e):function(e){return Re.createPropertyAccess(Re.getDeclarationName(e),"prototype")}(e)}(e,t),r=oe(t,!0),e=0<S?159===t.kind?Re.createVoidZero():Re.createNull():void 0,t=Be(u,n,i,r,e,Re.moveRangePastDecorators(t));return Re.setEmitFlags(t,1536),t}(e,a);a&&(r?r.push(a):r=[a])}return r}(t,r),Ae))}function W(e){return Re.visitNode(e.expression,E,Re.isExpression)}function H(e,t){var r,n,i,a;if(e){r=[];for(var o=0,s=e;o<s.length;o++){var c=s[o],c=(n=u,i=W(c),a=t,c=c.expression,n.requestEmitHelper(Re.paramHelper),Re.setTextRange(Re.createCall(Re.getUnscopedHelperName("__param"),void 0,[Re.createLiteral(a),i]),c));Re.setEmitFlags(c,1536),r.push(c)}}return r}function G(e){e=e.kind;return 161===e||163===e||164===e||159===e}function Q(e){return 161===e.kind}function X(e){switch(e.kind){case 245:case 214:return void 0!==Re.getFirstConstructorWithBody(e);case 161:case 163:case 164:return 1}}function Y(e){switch(e.kind){case 159:case 156:return ee(e.type);case 164:case 163:return ee((t=e,(t=b.getAllAccessorDeclarations(t)).setAccessor&&Re.getSetAccessorTypeAnnotationNode(t.setAccessor)||t.getAccessor&&Re.getEffectiveReturnTypeNode(t.getAccessor)));case 245:case 214:case 161:return Re.createIdentifier("Function");default:return Re.createVoidZero()}var t}function Z(e,t){var e=Re.isClassLike(e)?Re.getFirstConstructorWithBody(e):Re.isFunctionLike(e)&&Re.nodeIsPresent(e.body)?e:void 0,r=[];if(e)for(var n=function(e,t){if(t&&163===e.kind){t=Re.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&&Re.isIdentifier(o.name)&&"this"===o.name.escapedText||(o.dotDotDotToken?r.push(ee(Re.getRestParameterElementType(o.type))):r.push(Y(o)))}return Re.createArrayLiteral(r)}function $(e){return Re.isFunctionLike(e)&&e.type?ee(e.type):Re.isAsyncFunction(e)?Re.createIdentifier("Promise"):Re.createVoidZero()}function ee(e){if(void 0===e)return Re.createIdentifier("Object");switch(e.kind){case 110:case 146:case 100:case 137:return Re.createVoidZero();case 182:return ee(e.type);case 170:case 171:return Re.createIdentifier("Function");case 174:case 175:return Re.createIdentifier("Array");case 168:case 128:return Re.createIdentifier("Boolean");case 143:return Re.createIdentifier("String");case 141:return Re.createIdentifier("Object");case 187:switch(e.literal.kind){case 10:return Re.createIdentifier("String");case 207:case 8:return Re.createIdentifier("Number");case 9:return ae();case 106:case 91:return Re.createIdentifier("Boolean");default:return Re.Debug.failBadSyntaxKind(e.literal)}case 140:return Re.createIdentifier("Number");case 151:return ae();case 144:return S<2?ie():Re.createIdentifier("Symbol");case 169:return function(e){var t=b.getTypeReferenceSerializationKind(e.typeName,o||d);switch(t){case Re.TypeReferenceSerializationKind.Unknown:if(Re.findAncestor(e,function(e){return e.parent&&Re.isConditionalTypeNode(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e)}))return Re.createIdentifier("Object");var r=function e(t){if(75===t.kind){var r=ne(t);return re(r,r)}if(75===t.left.kind)return re(ne(t.left),ne(t));var n=e(t.left);var r=Re.createTempVariable(v);return Re.createLogicalAnd(Re.createLogicalAnd(n.left,Re.createStrictInequality(Re.createAssignment(r,n.right),Re.createVoidZero())),Re.createPropertyAccess(r,t.right))}(e.typeName),n=Re.createTempVariable(v);return Re.createConditional(Re.createTypeCheck(Re.createAssignment(n,r),"function"),n,Re.createIdentifier("Object"));case Re.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return ne(e.typeName);case Re.TypeReferenceSerializationKind.VoidNullableOrNeverType:return Re.createVoidZero();case Re.TypeReferenceSerializationKind.BigIntLikeType:return ae();case Re.TypeReferenceSerializationKind.BooleanType:return Re.createIdentifier("Boolean");case Re.TypeReferenceSerializationKind.NumberLikeType:return Re.createIdentifier("Number");case Re.TypeReferenceSerializationKind.StringLikeType:return Re.createIdentifier("String");case Re.TypeReferenceSerializationKind.ArrayLikeType:return Re.createIdentifier("Array");case Re.TypeReferenceSerializationKind.ESSymbolType:return S<2?ie():Re.createIdentifier("Symbol");case Re.TypeReferenceSerializationKind.TypeWithCallSignature:return Re.createIdentifier("Function");case Re.TypeReferenceSerializationKind.Promise:return Re.createIdentifier("Promise");case Re.TypeReferenceSerializationKind.ObjectType:return Re.createIdentifier("Object");default:return Re.Debug.assertNever(t)}}(e);case 179:case 178:return te(e.types);case 180:return te([e.trueType,e.falseType]);case 184:if(138===e.operator)return ee(e.type);break;case 172:case 185:case 186:case 173:case 125:case 148:case 183:case 188:break;case 295:case 296:case 300:case 301:case 302:break;case 297:case 298:case 299:return ee(e.type);default:return Re.Debug.failBadSyntaxKind(e)}return Re.createIdentifier("Object")}function te(e){for(var t,r=0,n=e;r<n.length;r++){for(var i=n[r];182===i.kind;)i=i.type;if(137!==i.kind&&(D||100!==i.kind&&146!==i.kind)){var a=ee(i);if(Re.isIdentifier(a)&&"Object"===a.escapedText)return a;if(t){if(!Re.isIdentifier(t)||!Re.isIdentifier(a)||t.escapedText!==a.escapedText)return Re.createIdentifier("Object")}else t=a}}return t||Re.createVoidZero()}function re(e,t){return Re.createLogicalAnd(Re.createStrictInequality(Re.createTypeOf(e),Re.createLiteral("undefined")),t)}function ne(e){switch(e.kind){case 75:var t=Re.getMutableClone(e);return t.flags&=-9,t.original=void 0,t.parent=Re.getParseTreeNode(d),t;case 153:return t=e,Re.createPropertyAccess(ne(t.left),t.right)}}function ie(){return Re.createConditional(Re.createTypeCheck(Re.createIdentifier("Symbol"),"function"),Re.createIdentifier("Symbol"),Re.createIdentifier("Object"))}function ae(){return S<99?Re.createConditional(Re.createTypeCheck(Re.createIdentifier("BigInt"),"function"),Re.createIdentifier("BigInt"),Re.createIdentifier("Object")):Re.createIdentifier("BigInt")}function oe(e,t){e=e.name;return Re.isPrivateIdentifier(e)?Re.createIdentifier(""):Re.isComputedPropertyName(e)?t&&!Re.isSimpleInlineableExpression(e.expression)?Re.getGeneratedNameForNode(e):e.expression:Re.isIdentifier(e)?Re.createLiteral(Re.idText(e)):Re.getSynthesizedClone(e)}function se(e){var t=e.name;if(Re.isComputedPropertyName(t)&&(!Re.hasStaticModifier(e)&&s||Re.some(e.decorators))){var r=Re.visitNode(t.expression,E,Re.isExpression),e=Re.skipPartiallyEmittedExpressions(r);if(!Re.isSimpleInlineableExpression(e)){e=Re.getGeneratedNameForNode(t);return v(e),Re.updateComputedPropertyName(t,Re.createAssignment(e,r))}}return Re.visitNode(t,E,Re.isPropertyName)}function ce(e){return!Re.nodeIsMissing(e.body)}function ue(e){if(!(8388608&e.flags)){var t=Re.updateProperty(e,void 0,Re.visitNodes(e.modifiers,E,Re.isModifier),se(e),void 0,void 0,Re.visitNode(e.initializer,E));return t!==e&&(Re.setCommentRange(t,e),Re.setSourceMapRange(t,Re.moveRangePastDecorators(e))),t}}function le(e){if(ce(e))return Re.updateConstructor(e,void 0,void 0,Re.visitParameterList(e.parameters,E,u),function(e,t){var r=t&&Re.filter(t.parameters,function(e){return Re.isParameterPropertyDeclaration(e,t)});if(!Re.some(r))return Re.visitFunctionBody(e,E,u);var n=[],i=0;y(),i=Re.addPrologueDirectivesAndInitialSuperCall(t,n,E),Re.addRange(n,Re.map(r,_e)),Re.addRange(n,Re.visitNodes(e.statements,E,Re.isStatement,i)),n=Re.mergeLexicalEnvironment(n,h());n=Re.createBlock(Re.setTextRange(Re.createNodeArray(n),e.statements),!0);return Re.setTextRange(n,e),Re.setOriginalNode(n,e),n}(e.body,e))}function _e(e){var t=e.name;if(Re.isIdentifier(t)){var r=Re.getMutableClone(t);Re.setEmitFlags(r,1584);t=Re.getMutableClone(t);return Re.setEmitFlags(t,1536),Re.startOnNewLine(Re.removeAllComments(Re.setTextRange(Re.setOriginalNode(Re.createExpressionStatement(Re.createAssignment(Re.setTextRange(Re.createPropertyAccess(Re.createThis(),r),e.name),t)),e),Re.moveRangePos(e,-1))))}}function de(e){return!Re.nodeIsMissing(e.body)||!Re.hasModifier(e,128)}function pe(e){var t=e.name;return Re.isBindingPattern(t)?Re.flattenDestructuringAssignment(e,E,u,0,!1,Pe):Re.setTextRange(Re.createAssignment(we(t),Re.visitNode(e.initializer,E,Re.isExpression)),e)}function fe(e){var t,r=oe(e,!1),t=(n=e,void 0!==(t=b.getConstantValue(n))?Re.createLiteral(t):(0==(8&f)&&(f|=8,u.enableSubstitution(75)),n.initializer?Re.visitNode(n.initializer,E,Re.isExpression):Re.createVoidZero())),n=Re.createAssignment(Re.createElementAccess(_,r),t),r=10===t.kind?n:Re.createAssignment(Re.createElementAccess(_,n),r);return Re.setTextRange(Re.createExpressionStatement(Re.setTextRange(r,e)),e)}function ge(e){return ke(e)||Ee(e)&&C!==Re.ModuleKind.ES2015&&C!==Re.ModuleKind.ES2020&&C!==Re.ModuleKind.ESNext&&C!==Re.ModuleKind.System}function me(e){p=p||Re.createUnderscoreEscapedMap();var t=ye(e);p.has(t)||p.set(t,e)}function ye(e){return Re.Debug.assertNode(e.name,Re.isIdentifier),e.name.escapedText}function he(e,t){var r=Re.createVariableStatement(Re.visitNodes(t.modifiers,I,Re.isModifier),Re.createVariableDeclarationList([Re.createVariableDeclaration(Re.getLocalName(t,!1,!0))],290===d.kind?0:1));if(Re.setOriginalNode(r,t),me(t),function(e){if(p){var t=ye(e);return p.get(t)===e}return 1}(t))return 248===t.kind?Re.setSourceMapRange(r.declarationList,t):Re.setSourceMapRange(r,t),Re.setCommentRange(r,t),Re.addEmitFlags(r,4195328),e.push(r),!0;r=Re.createMergeDeclarationMarker(r);return Re.setEmitFlags(r,4195840),e.push(r),!1}function ve(e){if(s=e,(s=Re.getParseTreeNode(s,Re.isModuleDeclaration))&&!Re.isInstantiatedModule(s,!!x.preserveConstEnums||!!x.isolatedModules))return Re.createNotEmittedStatement(e);Re.Debug.assertNode(e.name,Re.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&f)&&(f|=2,u.enableSubstitution(75),u.enableSubstitution(282),u.enableEmitNotification(249));var t=[],r=2,n=he(t,e);n&&(C===Re.ModuleKind.System&&d===c||(r|=512));var i=Ie(e),a=Oe(e),o=Re.hasModifier(e,1)?Re.getExternalModuleOrNamespaceExportName(_,e,!1,!0):Re.getLocalName(e,!1,!0),s=Re.createLogicalOr(o,Re.createAssignment(o,Re.createObjectLiteral()));ge(e)&&(o=Re.getLocalName(e,!1,!0),s=Re.createAssignment(o,s));s=Re.createExpressionStatement(Re.createCall(Re.createFunctionExpression(void 0,void 0,void 0,void 0,[Re.createParameter(void 0,void 0,void 0,i)],void 0,function(e,t){var r=_,n=l,i=p;_=t,l=e,p=void 0;var a,o=[];m(),e.body&&(250===e.body.kind?(k(e.body,function(e){return Re.addRange(o,Re.visitNodes(e.statements,A,Re.isStatement))}),s=e.body.statements,a=e.body):((t=ve(e.body))&&(Re.isArray(t)?Re.addRange(o,t):o.push(t)),t=function e(t){if(249===t.body.kind){var r=e(t.body);return r||t.body}}(e).body,s=Re.moveRangePos(t.statements,-1)));Re.insertStatementsAfterStandardPrologue(o,h()),_=r,l=n,p=i;var s=Re.createBlock(Re.setTextRange(Re.createNodeArray(o),s),!0);Re.setTextRange(s,a),e.body&&250===e.body.kind||Re.setEmitFlags(s,1536|Re.getEmitFlags(s));return s}(e,a)),void 0,[s]));return Re.setOriginalNode(s,e),n&&(Re.setSyntheticLeadingComments(s,void 0),Re.setSyntheticTrailingComments(s,void 0)),Re.setTextRange(s,e),Re.addEmitFlags(s,r),t.push(s),t.push(Re.createEndOfDeclarationMarker(e)),t}function be(e){if(!e.isTypeOnly){var t=b.isReferencedAliasDeclaration(e)?e.name:void 0,r=Re.visitNode(e.namedBindings,xe,Re.isNamedImportBindings);return t||r?Re.updateImportClause(e,t,r,!1):void 0}}function xe(e){if(256===e.kind)return b.isReferencedAliasDeclaration(e)?e:void 0;var t=Re.visitNodes(e.elements,De,Re.isImportSpecifier);return Re.some(t)?Re.updateNamedImports(e,t):void 0}function De(e){return b.isReferencedAliasDeclaration(e)?e:void 0}function Se(e){return Re.isNamespaceExport(e)?(t=e,Re.updateNamespaceExport(t,Re.visitNode(t.name,E,Re.isIdentifier))):(t=e,e=Re.visitNodes(t.elements,Ce,Re.isExportSpecifier),Re.some(e)?Re.updateNamedExports(t,e):void 0);var t}function Ce(e){return b.isValueAliasDeclaration(e)?e:void 0}function Te(e){if(Re.isExternalModuleImportEqualsDeclaration(e)){var t=b.isReferencedAliasDeclaration(e);return t||1!==x.importsNotUsedAsValues?t?Re.visitEachChild(e,E,u):void 0:Re.setOriginalNode(Re.setTextRange(Re.createImportDeclaration(void 0,void 0,void 0,e.moduleReference.expression),e),e)}if(r=e,b.isReferencedAliasDeclaration(r)||!Re.isExternalModule(c)&&b.isTopLevelValueImportEqualsWithEntityName(r)){var r,n=Re.createExpressionFromEntityName(e.moduleReference);return Re.setEmitFlags(n,3584),Ne(e)||!ke(e)?Re.setOriginalNode(Re.setTextRange(Re.createVariableStatement(Re.visitNodes(e.modifiers,I,Re.isModifier),Re.createVariableDeclarationList([Re.setOriginalNode(Re.createVariableDeclaration(e.name,void 0,n),e)])),e),e):Re.setOriginalNode((t=e.name,r=n,n=e,Re.setTextRange(Re.createExpressionStatement(Re.createAssignment(Re.getNamespaceMemberName(_,t,!1,!0),r)),n)),e)}}function ke(e){return void 0!==l&&Re.hasModifier(e,1)}function Ee(e){return void 0===l&&Re.hasModifier(e,1)}function Ne(e){return Ee(e)&&!Re.hasModifier(e,512)}function Ae(e){return Re.createExpressionStatement(e)}function Fe(e,t){var r=Re.createAssignment(Re.getExternalModuleOrNamespaceExportName(_,t,!1,!0),Re.getLocalName(t));Re.setSourceMapRange(r,Re.createRange((t.name||t).pos,t.end));r=Re.createExpressionStatement(r);Re.setSourceMapRange(r,Re.createRange(-1,t.end)),e.push(r)}function Pe(e,t,r){return Re.setTextRange(Re.createAssignment(we(e),t),r)}function we(e){return Re.getNamespaceMemberName(_,e,!1,!0)}function Ie(e){var t=Re.getGeneratedNameForNode(e);return Re.setSourceMapRange(t,e.name),t}function Oe(e){return Re.getGeneratedNameForNode(e)}function Me(e){if(f&a&&!Re.isGeneratedIdentifier(e)&&!Re.isLocalName(e)){var t=b.getReferencedExportContainer(e,!1);if(t&&290!==t.kind)if(2&a&&249===t.kind||8&a&&248===t.kind)return Re.setTextRange(Re.createPropertyAccess(Re.getGeneratedNameForNode(t),e),e)}}function Le(e){var t=function(e){if(x.isolatedModules)return;return Re.isPropertyAccessExpression(e)||Re.isElementAccessExpression(e)?b.getConstantValue(e):void 0}(e);if(void 0===t)return e;Re.setConstantValue(e,t);t=Re.createLiteral(t);return x.removeComments||(e=Re.getOriginalNode(e,Re.isAccessExpression),e=Re.isPropertyAccessExpression(e)?Re.declarationNameToString(e.name):Re.getTextOfNode(e.argumentExpression),Re.addSyntheticTrailingComment(t,3," "+e+" ")),t}},Re.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            };'},Re.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            };'},Re.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            };"}}(ts=ts||{}),function(O){var e;function M(e,t,r){return e.requestEmitHelper(O.classPrivateFieldGetHelper),O.createCall(O.getUnscopedHelperName("__classPrivateFieldGet"),void 0,[t,r])}function L(e,t,r,n){return e.requestEmitHelper(O.classPrivateFieldSetHelper),O.createCall(O.getUnscopedHelperName("__classPrivateFieldSet"),void 0,[t,r,n])}(e={})[e.ClassAliases=1]="ClassAliases",(e={})[e.InstanceField=0]="InstanceField",O.transformClassFields=function(s){var o,c,u,l,_=s.hoistVariableDeclaration,d=s.endLexicalEnvironment,p=s.resumeLexicalEnvironment,f=s.getEmitResolver(),e=s.getCompilerOptions(),n=O.getEmitScriptTarget(e),g=n<99,r=s.onSubstituteNode;s.onSubstituteNode=function(e,t){return t=r(e,t),1!==e?t:function(e){if(75===e.kind)return function(e){return function(e){if(1&o&&33554432&f.getNodeCheckFlags(e)){var t=f.getReferencedValueDeclaration(e);if(t){t=c[t.id];if(t){t=O.getSynthesizedClone(t);return O.setSourceMapRange(t,e),O.setCommentRange(t,e),t}}}return}(e)||e}(e);return e}(t)};var m,i=[];return O.chainBundle(function(e){var t=s.getCompilerOptions();if(e.isDeclarationFile||t.useDefineForClassFields&&99===t.target)return e;e=O.visitEachChild(e,y,s);return O.addEmitHelpers(e,s.readEmitHelpers()),e});function y(e){if(!(4194304&e.transformFlags))return e;switch(e.kind){case 214:case 245:return function(e){var t=u;u=void 0,g&&(i.push(m),m=void 0);e=(O.isClassDeclaration(e)?function(e){if(!O.forEach(e.members,T))return O.visitEachChild(e,y,s);var t=O.getEffectiveBaseTypeNode(e),r=!(!t||100===O.skipOuterExpressions(t.expression).kind),t=[O.updateClassDeclaration(e,void 0,e.modifiers,e.name,void 0,O.visitNodes(e.heritageClauses,y,O.isHeritageClause),k(e,r))];O.some(u)&&t.push(O.createExpressionStatement(O.inlineExpressions(u)));r=O.getProperties(e,!0,!0);O.some(r)&&N(t,r,O.getInternalName(e));return t}:function(e){if(!O.forEach(e.members,T))return O.visitEachChild(e,y,s);var t=O.isClassDeclaration(O.getOriginalNode(e)),r=O.getProperties(e,!0,!0),n=O.getEffectiveBaseTypeNode(e),i=!(!n||100===O.skipOuterExpressions(n.expression).kind),a=O.updateClassExpression(e,e.modifiers,e.name,void 0,O.visitNodes(e.heritageClauses,y,O.isHeritageClause),k(e,i));if(O.some(r)||O.some(u)){if(t)return O.Debug.assertIsDefined(l,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),l&&u&&O.some(u)&&l.push(O.createExpressionStatement(O.inlineExpressions(u))),l&&O.some(r)&&N(l,r,O.getInternalName(e)),a;n=[],i=16777216&f.getNodeCheckFlags(e),t=O.createTempVariable(_,!!i);return i&&(0==(1&o)&&(o|=1,s.enableSubstitution(75),c=[]),(i=O.getSynthesizedClone(t)).autoGenerateFlags&=-9,c[O.getOriginalNodeId(e)]=i),O.setEmitFlags(a,65536|O.getEmitFlags(a)),n.push(O.startOnNewLine(O.createAssignment(t,a))),O.addRange(n,O.map(u,O.startOnNewLine)),O.addRange(n,function(e,t){for(var r=[],n=0,i=e;n<i.length;n++){var a=i[n],o=A(a,t);o&&(O.startOnNewLine(o),O.setSourceMapRange(o,O.moveRangePastModifiers(a)),O.setCommentRange(o,a),O.setOriginalNode(o,a),r.push(o))}return r}(r,t)),n.push(O.startOnNewLine(t)),O.inlineExpressions(n)}return a})(e);g&&(m=i.pop());return u=t,e}(e);case 159:return b(e);case 225:return function(e){var t=l;l=[];e=O.visitEachChild(e,y,s),e=O.some(l)?__spreadArrays([e],l):e;return l=t,e}(e);case 154:return v(e);case 194:return function(e){if(g&&O.isPrivateIdentifier(e.name)){var t=F(e.name);if(t)return O.setOriginalNode(x(t,e.expression),e)}return O.visitEachChild(e,y,s)}(e);case 207:return function(e){if(g&&O.isPrivateIdentifierPropertyAccessExpression(e.operand)){var t=45===e.operator?39:46===e.operator?40:void 0,r=void 0;if(t&&(r=F(e.operand.name))){var n=S(O.visitNode(e.operand.expression,y,O.isExpression)),i=n.readExpression,a=n.initializeExpression,n=O.createPrefix(39,x(r,i));return O.setOriginalNode(C(r,a||i,O.createBinary(n,t,O.createLiteral(1)),62),e)}}return O.visitEachChild(e,y,s)}(e);case 208:return D(e,!1);case 196:return function(e){if(g&&O.isPrivateIdentifierPropertyAccessExpression(e.expression)){var t=O.createCallBinding(e.expression,_,n),r=t.thisArg,t=t.target;return O.updateCall(e,O.createPropertyAccess(O.visitNode(t,y),"call"),void 0,__spreadArrays([O.visitNode(r,y,O.isExpression)],O.visitNodes(e.arguments,y,O.isExpression)))}return O.visitEachChild(e,y,s)}(e);case 209:return function(e){if(g){if(O.isDestructuringAssignment(e)){var t=u;u=void 0,e=O.updateBinary(e,O.visitNode(e.left,a),O.visitNode(e.right,y),e.operatorToken);var r=O.some(u)?O.inlineExpressions(O.compact(__spreadArrays(u,[e]))):e;return u=t,r}if(O.isAssignmentExpression(e)&&O.isPrivateIdentifierPropertyAccessExpression(e.left)){r=F(e.left.name);if(r)return O.setOriginalNode(C(r,e.left.expression,e.right,e.operatorToken.kind),e)}}return O.visitEachChild(e,y,s)}(e);case 76:return t=e,g?O.setOriginalNode(O.createIdentifier(""),t):t;case 226:return function(e){if(O.isPostfixUnaryExpression(e.expression))return O.updateExpressionStatement(e,D(e.expression,!0));return O.visitEachChild(e,y,s)}(e);case 230:return function(e){if(e.incrementor&&O.isPostfixUnaryExpression(e.incrementor))return O.updateFor(e,O.visitNode(e.initializer,y,O.isForInitializer),O.visitNode(e.condition,y,O.isExpression),D(e.incrementor,!0),O.visitNode(e.statement,y,O.isStatement));return O.visitEachChild(e,y,s)}(e);case 198:return function(e){if(g&&O.isPrivateIdentifierPropertyAccessExpression(e.tag)){var t=O.createCallBinding(e.tag,_,n),r=t.thisArg,t=t.target;return O.updateTaggedTemplate(e,O.createCall(O.createPropertyAccess(O.visitNode(t,y),"bind"),void 0,[O.visitNode(r,y,O.isExpression)]),O.visitNode(e.template,y,O.isTemplateLiteral))}return O.visitEachChild(e,y,s)}(e)}var t;return O.visitEachChild(e,y,s)}function a(e){switch(e.kind){case 193:case 192:return t=e,O.isArrayLiteralExpression(t)?O.updateArrayLiteral(t,O.visitNodes(t.elements,w,O.isExpression)):O.updateObjectLiteral(t,O.visitNodes(t.properties,I,O.isObjectLiteralElementLike));default:return y(e)}var t}function h(e){switch(e.kind){case 162:return;case 163:case 164:case 161:return O.visitEachChild(e,h,s);case 159:return b(e);case 154:return v(e);case 222:return e;default:return y(e)}}function v(e){var t,r=O.visitEachChild(e,y,s);return O.some(u)&&((t=u).push(e.expression),u=[],r=O.updateComputedPropertyName(r,O.inlineExpressions(t))),r}function b(e){if(O.Debug.assert(!O.some(e.decorators)),!g&&O.isPrivateIdentifier(e.name))return O.updateProperty(e,void 0,O.visitNodes(e.modifiers,y,O.isModifier),e.name,void 0,void 0,void 0);e=function(e,t){if(O.isComputedPropertyName(e)){var r=O.visitNode(e.expression,y,O.isExpression),n=O.skipPartiallyEmittedExpressions(r),i=O.isSimpleInlineableExpression(n);if(O.isAssignmentExpression(n)&&O.isGeneratedIdentifier(n.left)||i||!t)return i||O.isIdentifier(n)?void 0:r;e=O.getGeneratedNameForNode(e);return _(e),O.createAssignment(e,r)}}(e.name,!!e.initializer||!!s.getCompilerOptions().useDefineForClassFields);e&&!O.isSimpleInlineableExpression(e)&&(u=u||[]).push(e)}function x(e,t){return t=O.visitNode(t,y,O.isExpression),0!==e.placement?O.Debug.fail("Unexpected private identifier placement"):M(s,O.nodeIsSynthesized(t)?t:O.getSynthesizedClone(t),e.weakMapName)}function D(e,t){if(g&&O.isPrivateIdentifierPropertyAccessExpression(e.operand)){var r=45===e.operator?39:46===e.operator?40:void 0,n=void 0;if(r&&(n=F(e.operand.name))){var i=S(O.visitNode(e.operand.expression,y,O.isExpression)),a=i.readExpression,o=i.initializeExpression,i=O.createPrefix(39,x(n,a)),t=t?void 0:O.createTempVariable(_);return O.setOriginalNode(O.inlineExpressions(O.compact([C(n,o||a,O.createBinary(t?O.createAssignment(t,i):i,r,O.createLiteral(1)),62),t])),e)}}return O.visitEachChild(e,y,s)}function S(e){var t=O.nodeIsSynthesized(e)?e:O.getSynthesizedClone(e);if(O.isSimpleInlineableExpression(e))return{readExpression:t,initializeExpression:void 0};e=O.createTempVariable(_);return{readExpression:e,initializeExpression:O.createAssignment(e,t)}}function C(e,t,r,n){return 0!==e.placement?O.Debug.fail("Unexpected private identifier placement"):function(e,t,r,n){{if(t=O.visitNode(t,y,O.isExpression),r=O.visitNode(r,y,O.isExpression),O.isCompoundAssignment(n)){var i=S(t),a=i.readExpression,i=i.initializeExpression;return L(s,i||a,e.weakMapName,O.createBinary(M(s,a,e.weakMapName),O.getNonAssignmentOperatorForCompoundAssignment(n),r))}return L(s,t,e.weakMapName,r)}}(e,t,r,n)}function T(e){return O.isPropertyDeclaration(e)||g&&e.name&&O.isPrivateIdentifier(e.name)}function k(e,t){if(g)for(var r=0,n=e.members;r<n.length;r++){var i=n[r];O.isPrivateIdentifierPropertyDeclaration(i)&&(a=i.name,i=i=void 0,i=O.getTextOfPropertyName(a),(i=O.createOptimisticUniqueName("_"+i.substring(1))).autoGenerateFlags|=8,_(i),(m=m||O.createUnderscoreEscapedMap()).set(a.escapedText,{placement:0,weakMapName:i}),(u=u||[]).push(O.createAssignment(i,O.createNew(O.createIdentifier("WeakMap"),void 0,[]))))}var a,o=[],t=function(e,t){var r=O.visitNode(O.getFirstConstructorWithBody(e),y,O.isConstructorDeclaration),n=e.members.filter(E);if(!O.some(n))return r;n=O.visitParameterList(r?r.parameters:void 0,y,s),t=function(e,t,r){var n=s.getCompilerOptions().useDefineForClassFields,i=O.getProperties(e,!1,!1);n||(i=O.filter(i,function(e){return!!e.initializer||O.isPrivateIdentifier(e.name)}));if(!t&&!O.some(i))return O.visitFunctionBody(void 0,y,s);p();var a=0,o=[];!t&&r&&o.push(O.createExpressionStatement(O.createCall(O.createSuper(),void 0,[O.createSpread(O.createIdentifier("arguments"))])));t&&(a=O.addPrologueDirectivesAndInitialSuperCall(t,o,y));null!=t&&t.body&&(-1===(r=O.findIndex(t.body.statements,function(e){return!O.isParameterPropertyDeclaration(O.getOriginalNode(e),t)},a))&&(r=t.body.statements.length),a<r&&(n||O.addRange(o,O.visitNodes(t.body.statements,y,O.isStatement,a,r-a)),a=r));N(o,i,O.createThis()),t&&O.addRange(o,O.visitNodes(t.body.statements,y,O.isStatement,a));return o=O.mergeLexicalEnvironment(o,d()),O.setTextRange(O.createBlock(O.setTextRange(O.createNodeArray(o),t?t.body.statements:e.members),!0),t?t.body:void 0)}(e,r,t);return t?O.startOnNewLine(O.setOriginalNode(O.setTextRange(O.createConstructor(void 0,void 0,null!=n?n:[],t),r||e),r)):void 0}(e,t);return t&&o.push(t),O.addRange(o,O.visitNodes(e.members,h,O.isClassElement)),O.setTextRange(O.createNodeArray(o),e.members)}function E(e){return!(!O.isPropertyDeclaration(e)||O.hasStaticModifier(e))&&(s.getCompilerOptions().useDefineForClassFields?n<99:O.isInitializedProperty(e)||g&&O.isPrivateIdentifierPropertyDeclaration(e))}function N(e,t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n],o=A(a,r);o&&(o=O.createExpressionStatement(o),O.setSourceMapRange(o,O.moveRangePastModifiers(a)),O.setCommentRange(o,a),O.setOriginalNode(o,a),e.push(o))}}function A(e,t){var r,n=!s.getCompilerOptions().useDefineForClassFields,i=O.isComputedPropertyName(e.name)&&!O.isSimpleInlineableExpression(e.name.expression)?O.updateComputedPropertyName(e.name,O.getGeneratedNameForNode(e.name)):e.name;if(g&&O.isPrivateIdentifier(i)){var a=F(i);if(a){if(0===a.placement)return r=t,o=O.visitNode(e.initializer,y,O.isExpression),a=a.weakMapName,O.createCall(O.createPropertyAccess(a,"set"),void 0,[r,o||O.createVoidZero()])}else O.Debug.fail("Undeclared private name for property declaration.")}if((!O.isPrivateIdentifier(i)||e.initializer)&&(!O.isPrivateIdentifier(i)||e.initializer)){var o=O.getOriginalNode(e),o=e.initializer||n?O.visitNode(e.initializer,y,O.isExpression):O.isParameterPropertyDeclaration(o,o.parent)&&O.isIdentifier(i)?i:O.createVoidZero();if(n||O.isPrivateIdentifier(i)){n=O.createMemberAccessForPropertyName(t,i,i);return O.createAssignment(n,o)}i=O.isComputedPropertyName(i)?i.expression:O.isIdentifier(i)?O.createStringLiteral(O.unescapeLeadingUnderscores(i.escapedText)):i,o=O.createPropertyDescriptor({value:o,configurable:!0,writable:!0,enumerable:!0});return O.createObjectDefinePropertyCall(t,i,o)}}function F(e){if(m&&(r=m.get(e.escapedText)))return r;for(var t=i.length-1;0<=t;--t){var r,n=i[t];if(n)if(r=n.get(e.escapedText))return r}}function P(e){var t=O.getGeneratedNameForNode(e),r=F(e.name);if(!r)return O.visitEachChild(e,y,s);var n=e.expression;return!O.isThisProperty(e)&&!O.isSuperProperty(e)&&O.isSimpleCopiableExpression(e.expression)||((n=O.createTempVariable(_)).autoGenerateFlags|=8,(u=u||[]).push(O.createBinary(n,62,e.expression))),O.createPropertyAccess(O.createParen(O.createObjectLiteral([O.createSetAccessor(void 0,void 0,"value",[O.createParameter(void 0,void 0,void 0,t,void 0,void 0,void 0)],O.createBlock([O.createExpressionStatement(C(r,n,t,62))]))])),"value")}function w(e){var t=O.getTargetOfBindingOrAssignmentElement(e);if(t&&O.isPrivateIdentifierPropertyAccessExpression(t)){t=P(t);return O.isAssignmentExpression(e)?O.updateBinary(e,t,O.visitNode(e.right,y,O.isExpression),e.operatorToken):O.isSpreadElement(e)?O.updateSpread(e,t):t}return O.visitNode(e,a)}function I(e){if(O.isPropertyAssignment(e)){var t=O.getTargetOfBindingOrAssignmentElement(e);if(t&&O.isPrivateIdentifierPropertyAccessExpression(t)){var r=O.getInitializerOfBindingOrAssignmentElement(e),t=P(t);return O.updatePropertyAssignment(e,O.visitNode(e.name,y),r?O.createAssignment(t,O.visitNode(r,y)):t)}return O.updatePropertyAssignment(e,O.visitNode(e.name,y),O.visitNode(e.initializer,a))}return O.visitNode(e,y)}},O.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",scoped:!1,text:'\n            var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {\n                if (!privateMap.has(receiver)) {\n                    throw new TypeError("attempted to get private field on non-instance");\n                }\n                return privateMap.get(receiver);\n            };'},O.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",scoped:!1,text:'\n            var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {\n                if (!privateMap.has(receiver)) {\n                    throw new TypeError("attempted to set private field on non-instance");\n                }\n                privateMap.set(receiver, value);\n                return value;\n            };'}}(ts=ts||{}),function(B){var e;function j(e,t,r){var n=0!=(4096&e.getNodeCheckFlags(t)),i=[];return r.forEach(function(e,t){var r=B.unescapeLeadingUnderscores(t),t=[];t.push(B.createPropertyAssignment("get",B.createArrowFunction(void 0,void 0,[],void 0,void 0,B.setEmitFlags(B.createPropertyAccess(B.setEmitFlags(B.createSuper(),4),r),4)))),n&&t.push(B.createPropertyAssignment("set",B.createArrowFunction(void 0,void 0,[B.createParameter(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,B.createAssignment(B.setEmitFlags(B.createPropertyAccess(B.setEmitFlags(B.createSuper(),4),r),4),B.createIdentifier("v"))))),i.push(B.createPropertyAssignment(r,B.createObjectLiteral(t)))}),B.createVariableStatement(void 0,B.createVariableDeclarationList([B.createVariableDeclaration(B.createFileLevelUniqueName("_super"),void 0,B.createCall(B.createPropertyAccess(B.createIdentifier("Object"),"create"),void 0,[B.createNull(),B.createObjectLiteral(i,!0)]))],2))}function J(e,t,r,n,i){e.requestEmitHelper(B.awaiterHelper);i=B.createFunctionExpression(void 0,B.createToken(41),void 0,void 0,[],void 0,i);return(i.emitNode||(i.emitNode={})).flags|=786432,B.createCall(B.getUnscopedHelperName("__awaiter"),void 0,[t?B.createThis():B.createVoidZero(),r?B.createIdentifier("arguments"):B.createVoidZero(),n?B.createExpressionFromEntityName(n):B.createVoidZero(),i])}(e={})[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper",(e={})[e.NonTopLevel=1]="NonTopLevel",e[e.HasLexicalThis=2]="HasLexicalThis",B.transformES2017=function(d){var p,f,g,m,y=d.resumeLexicalEnvironment,h=d.endLexicalEnvironment,i=d.hoistVariableDeclaration,v=d.getEmitResolver(),t=d.getCompilerOptions(),b=B.getEmitScriptTarget(t),a=0,x=[],o=0,s=d.onEmitNode,r=d.onSubstituteNode;return d.onEmitNode=function(e,t,r){if(1&p&&function(e){e=e.kind;return 245===e||162===e||161===e||163===e||164===e}(t)){var n=6144&v.getNodeCheckFlags(t);if(n!==a){var i=a;return a=n,s(e,t,r),void(a=i)}}else if(p&&x[B.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 194:return L(e);case 195:return R(e);case 196:return function(e){var t=e.expression;if(B.isSuperProperty(t)){t=(B.isPropertyAccessExpression(t)?L:R)(t);return B.createCall(B.createPropertyAccess(t,"call"),void 0,__spreadArrays([B.createThis()],e.arguments))}return e}(e)}return e}(t);return t},B.chainBundle(function(e){if(e.isDeclarationFile)return e;c(1,!1),c(2,!B.isEffectiveStrictModeSourceFile(e,t));e=B.visitEachChild(e,S,d);return B.addEmitHelpers(e,d.readEmitHelpers()),e});function c(e,t){o=t?o|e:o&~e}function n(e){return 0!=(o&e)}function D(){return n(2)}function u(e,t,r){var n=e&~o;if(n){c(n,!0);e=t(r);return c(n,!1),e}return t(r)}function l(e){return B.visitEachChild(e,S,d)}function S(e){if(0==(64&e.transformFlags))return e;switch(e.kind){case 126:return;case 206:return function(e){if(!n(1))return B.visitEachChild(e,S,d);return B.setOriginalNode(B.setTextRange(B.createYield(void 0,B.visitNode(e.expression,S,B.isExpression)),e),e)}(e);case 161:return u(3,C,e);case 244:return u(3,T,e);case 201:return u(3,k,e);case 202:return u(1,E,e);case 194:return g&&B.isPropertyAccessExpression(e)&&102===e.expression.kind&&g.set(e.name.escapedText,!0),B.visitEachChild(e,S,d);case 195:return g&&102===e.expression.kind&&(m=!0),B.visitEachChild(e,S,d);case 163:case 164:case 162:case 245:case 214:return u(3,l,e);default:return B.visitEachChild(e,S,d)}}function _(e){if(B.isNodeWithPossibleHoistedDeclaration(e))switch(e.kind){case 225:return function(e){if(A(e.declarationList)){var t=F(e.declarationList,!1);return t?B.createExpressionStatement(t):void 0}return B.visitEachChild(e,S,d)}(e);case 230:return n=(r=e).initializer,B.updateFor(r,A(n)?F(n,!1):B.visitNode(r.initializer,S,B.isForInitializer),B.visitNode(r.condition,S,B.isExpression),B.visitNode(r.incrementor,S,B.isExpression),B.visitNode(r.statement,_,B.isStatement,B.liftToBlock));case 231:return t=e,B.updateForIn(t,A(t.initializer)?F(t.initializer,!0):B.visitNode(t.initializer,S,B.isForInitializer),B.visitNode(t.expression,S,B.isExpression),B.visitNode(t.statement,_,B.isStatement,B.liftToBlock));case 232:return t=e,B.updateForOf(t,B.visitNode(t.awaitModifier,S,B.isToken),A(t.initializer)?F(t.initializer,!0):B.visitNode(t.initializer,S,B.isForInitializer),B.visitNode(t.expression,S,B.isExpression),B.visitNode(t.statement,_,B.isStatement,B.liftToBlock));case 280:return function(e){var r,t=B.createUnderscoreEscapedMap();{if(N(e.variableDeclaration,t),t.forEach(function(e,t){f.has(t)&&(r=r||B.cloneMap(f)).delete(t)}),r){var n=f;f=r;t=B.visitEachChild(e,_,d);return f=n,t}return B.visitEachChild(e,_,d)}}(e);case 223:case 237:case 251:case 277:case 278:case 240:case 228:case 229:case 227:case 236:case 238:return B.visitEachChild(e,_,d);default:return B.Debug.assertNever(e,"Unhandled node.")}var t,r,n;return S(e)}function C(e){return B.updateMethod(e,void 0,B.visitNodes(e.modifiers,S,B.isModifier),e.asteriskToken,e.name,void 0,void 0,B.visitParameterList(e.parameters,S,d),void 0,2&B.getFunctionFlags(e)?O(e):B.visitFunctionBody(e.body,S,d))}function T(e){return B.updateFunctionDeclaration(e,void 0,B.visitNodes(e.modifiers,S,B.isModifier),e.asteriskToken,e.name,void 0,B.visitParameterList(e.parameters,S,d),void 0,2&B.getFunctionFlags(e)?O(e):B.visitFunctionBody(e.body,S,d))}function k(e){return B.updateFunctionExpression(e,B.visitNodes(e.modifiers,S,B.isModifier),e.asteriskToken,e.name,void 0,B.visitParameterList(e.parameters,S,d),void 0,2&B.getFunctionFlags(e)?O(e):B.visitFunctionBody(e.body,S,d))}function E(e){return B.updateArrowFunction(e,B.visitNodes(e.modifiers,S,B.isModifier),void 0,B.visitParameterList(e.parameters,S,d),void 0,e.equalsGreaterThanToken,2&B.getFunctionFlags(e)?O(e):B.visitFunctionBody(e.body,S,d))}function N(e,t){e=e.name;if(B.isIdentifier(e))t.set(e.escapedText,!0);else for(var r=0,n=e.elements;r<n.length;r++){var i=n[r];B.isOmittedExpression(i)||N(i,t)}}function A(e){return e&&B.isVariableDeclarationList(e)&&!(3&e.flags)&&e.declarations.some(I)}function F(e,t){r=e,B.forEach(r.declarations,P);var r=B.getInitializedVariables(e);return 0===r.length?t?B.visitNode(B.convertToAssignmentElementTarget(e.declarations[0].name),S,B.isExpression):void 0:B.inlineExpressions(B.map(r,w))}function P(e){e=e.name;if(B.isIdentifier(e))i(e);else for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];B.isOmittedExpression(n)||P(n)}}function w(e){e=B.setSourceMapRange(B.createAssignment(B.convertToAssignmentElementTarget(e.name),e.initializer),e);return B.visitNode(e,S,B.isExpression)}function I(e){e=e.name;if(B.isIdentifier(e))return f.has(e.escapedText);for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];if(!B.isOmittedExpression(n)&&I(n))return!0}return!1}function O(e){y();var t=B.getOriginalNode(e,B.isFunctionLike).type,r=b<2?function(e){var t=e&&B.getEntityNameFromTypeNode(e);if(t&&B.isEntityName(t)){e=v.getTypeReferenceSerializationKind(t);if(e===B.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||e===B.TypeReferenceSerializationKind.Unknown)return t}return}(t):void 0,n=202===e.kind,i=0!=(8192&v.getNodeCheckFlags(e)),a=f;f=B.createUnderscoreEscapedMap();for(var o=0,s=e.parameters;o<s.length;o++)N(s[o],f);var c,u,l,_=g,t=m;return n||(g=B.createUnderscoreEscapedMap(),m=!1),l=n?(u=J(d,D(),i,r,M(e.body)),c=h(),B.some(c)?(l=B.convertToFunctionBody(u),B.updateBlock(l,B.setTextRange(B.createNodeArray(B.concatenate(c,l.statements)),l.statements))):u):(c=[],u=B.addPrologue(c,e.body.statements,!1,S),c.push(B.createReturn(J(d,D(),i,r,M(e.body,u)))),B.insertStatementsAfterStandardPrologue(c,h()),(r=2<=b&&6144&v.getNodeCheckFlags(e))&&(0==(1&p)&&(p|=1,d.enableSubstitution(196),d.enableSubstitution(194),d.enableSubstitution(195),d.enableEmitNotification(245),d.enableEmitNotification(161),d.enableEmitNotification(163),d.enableEmitNotification(164),d.enableEmitNotification(162),d.enableEmitNotification(225)),B.hasEntries(g)&&(u=j(v,e,g),x[B.getNodeId(u)]=!0,B.insertStatementsAfterStandardPrologue(c,[u]))),l=B.createBlock(c,!0),B.setTextRange(l,e.body),r&&m&&(4096&v.getNodeCheckFlags(e)?B.addEmitHelper(l,B.advancedAsyncSuperHelper):2048&v.getNodeCheckFlags(e)&&B.addEmitHelper(l,B.asyncSuperHelper)),l),f=a,n||(g=_,m=t),l}function M(e,t){return B.isBlock(e)?B.updateBlock(e,B.visitNodes(e.statements,_,B.isStatement,t)):B.convertToFunctionBody(B.visitNode(e,_,B.isConciseBody))}function L(e){return 102===e.expression.kind?B.setTextRange(B.createPropertyAccess(B.createFileLevelUniqueName("_super"),e.name),e):e}function R(e){return 102===e.expression.kind?(t=e.argumentExpression,r=e,4096&a?B.setTextRange(B.createPropertyAccess(B.createCall(B.createFileLevelUniqueName("_superIndex"),void 0,[t]),"value"),r):B.setTextRange(B.createCall(B.createFileLevelUniqueName("_superIndex"),void 0,[t]),r)):e;var t,r}},B.createSuperAccessVariableStatement=j,B.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            };'},B.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:B.helperString(__makeTemplateObject(["\n            const "," = name => super[name];"],["\n            const "," = name => super[name];"]),"_superIndex")},B.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:B.helperString(__makeTemplateObject(["\n            const "," = (function (geti, seti) {\n                const cache = Object.create(null);\n                return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n            })(name => super[name], (name, value) => super[name] = value);"],["\n            const "," = (function (geti, seti) {\n                const cache = Object.create(null);\n                return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n            })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")}}(ts=ts||{}),function(q){var e;function W(e,t){return 2<=e.getCompilerOptions().target?q.createCall(q.createPropertyAccess(q.createIdentifier("Object"),"assign"),void 0,t):(e.requestEmitHelper(q.assignHelper),q.createCall(q.getUnscopedHelperName("__assign"),void 0,t))}function H(e,t){return e.requestEmitHelper(q.awaitHelper),q.createCall(q.getUnscopedHelperName("__await"),void 0,[t])}function G(e,t,r){return e.requestEmitHelper(q.asyncValues),q.setTextRange(q.createCall(q.getUnscopedHelperName("__asyncValues"),void 0,[t]),r)}(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",q.transformES2018=function(p){var s=p.resumeLexicalEnvironment,c=p.endLexicalEnvironment,f=p.hoistVariableDeclaration,u=p.getEmitResolver(),i=p.getCompilerOptions(),l=q.getEmitScriptTarget(i),a=p.onEmitNode;p.onEmitNode=function(e,t,r){if(1&_&&function(e){e=e.kind;return 245===e||162===e||161===e||163===e||164===e}(t)){var n=6144&u.getNodeCheckFlags(t);if(n!==v){var i=v;return v=n,a(e,t,r),void(v=i)}}else if(_&&x[q.getNodeId(t)]){i=v;return v=0,a(e,t,r),void(v=i)}a(e,t,r)};var _,o,d,g,m,y,r=p.onSubstituteNode,h=!(p.onSubstituteNode=function(e,t){if(t=r(e,t),1===e&&v)return function(e){switch(e.kind){case 194:return V(e);case 195:return K(e);case 196:return function(e){var t=e.expression;if(q.isSuperProperty(t)){t=(q.isPropertyAccessExpression(t)?V:K)(t);return q.createCall(q.createPropertyAccess(t,"call"),void 0,__spreadArrays([q.createThis()],e.arguments))}return e}(e)}return e}(t);return t}),v=0,b=0,x=[];return q.chainBundle(function(e){if(e.isDeclarationFile)return e;e=function(e){var t=D(2,q.isEffectiveStrictModeSourceFile(e,i)?0:1);h=!1;var r=q.visitEachChild(e,T,p),n=q.concatenate(r.statements,g&&[q.createVariableStatement(void 0,q.createVariableDeclarationList(g))]),e=q.updateSourceFileNode(r,q.setTextRange(q.createNodeArray(n),e.statements));return S(t),e}(d=e);return q.addEmitHelpers(e,p.readEmitHelpers()),g=d=void 0,e});function D(e,t){var r=b;return b=3&(b&~e|t),r}function S(e){b=e}function C(e){g=q.append(g,q.createVariableDeclaration(e))}function T(e){return t(e,!1)}function k(e){return t(e,!0)}function n(e){if(126!==e.kind)return e}function E(e,t,r,n){if(b===(b&~r|n))return e(t);n=D(r,n),t=e(t);return S(n),t}function N(e){return q.visitEachChild(e,T,p)}function t(e,t){if(0==(32&e.transformFlags))return e;switch(e.kind){case 206:return function(e){if(2&o&&1&o)return q.setOriginalNode(q.setTextRange(q.createYield(H(p,q.visitNode(e.expression,T,q.isExpression))),e),e);return q.visitEachChild(e,T,p)}(e);case 212:return function(e){if(2&o&&1&o){if(e.asteriskToken){var t=q.visitNode(e.expression,T,q.isExpression);return q.setOriginalNode(q.setTextRange(q.createYield(H(p,q.updateYield(e,e.asteriskToken,function(e,t,r){return e.requestEmitHelper(q.asyncDelegator),q.setTextRange(q.createCall(q.getUnscopedHelperName("__asyncDelegator"),void 0,[t]),r)}(p,G(p,t,t),t)))),e),e)}return q.setOriginalNode(q.setTextRange(q.createYield(w(e.expression?q.visitNode(e.expression,T,q.isExpression):q.createVoidZero())),e),e)}return q.visitEachChild(e,T,p)}(e);case 235:return function(e){if(2&o&&1&o)return q.updateReturn(e,w(e.expression?q.visitNode(e.expression,T,q.isExpression):q.createVoidZero()));return q.visitEachChild(e,T,p)}(e);case 238:return function(e){if(2&o){var t=q.unwrapInnermostStatementOfLabel(e);return 232===t.kind&&t.awaitModifier?P(t,e):q.restoreEnclosingLabel(q.visitNode(t,T,q.isStatement,q.liftToBlock),e)}return q.visitEachChild(e,T,p)}(e);case 193:return function(e){if(16384&e.transformFlags){var t=function(e){for(var t,r=[],n=0,i=e;n<i.length;n++){var a,o=i[n];283===o.kind?(t&&(r.push(q.createObjectLiteral(t)),t=void 0),a=o.expression,r.push(q.visitNode(a,T,q.isExpression))):t=q.append(t,281===o.kind?q.createPropertyAssignment(o.name,q.visitNode(o.initializer,T,q.isExpression)):q.visitNode(o,T,q.isObjectLiteralElementLike))}t&&r.push(q.createObjectLiteral(t));return r}(e.properties);t.length&&193!==t[0].kind&&t.unshift(q.createObjectLiteral());var r=t[0];if(1<t.length){for(var n=1;n<t.length;n++)r=W(p,[r,t[n]]);return r}return W(p,t)}return q.visitEachChild(e,T,p)}(e);case 209:return function(e,t){{if(q.isDestructuringAssignment(e)&&16384&e.left.transformFlags)return q.flattenDestructuringAssignment(e,T,p,1,!t);if(27===e.operatorToken.kind)return q.updateBinary(e,q.visitNode(e.left,k,q.isExpression),q.visitNode(e.right,t?k:T,q.isExpression))}return q.visitEachChild(e,T,p)}(e,t);case 280:return function(e){if(e.variableDeclaration&&q.isBindingPattern(e.variableDeclaration.name)&&16384&e.variableDeclaration.name.transformFlags){var t=q.getGeneratedNameForNode(e.variableDeclaration.name),r=q.updateVariableDeclaration(e.variableDeclaration,e.variableDeclaration.name,void 0,t),n=q.flattenDestructuringBinding(r,T,p,1),r=q.visitNode(e.block,T,q.isBlock);return q.some(n)&&(r=q.updateBlock(r,__spreadArrays([q.createVariableStatement(void 0,n)],r.statements))),q.updateCatchClause(e,q.updateVariableDeclaration(e.variableDeclaration,t,void 0,void 0),r)}return q.visitEachChild(e,T,p)}(e);case 225:return function(e){if(q.hasModifier(e,1)){var t=h;h=!0;var r=q.visitEachChild(e,T,p);return h=t,r}return q.visitEachChild(e,T,p)}(e);case 242:return function(e){if(h){var t=h,r=A(e,!(h=!1));return h=t,r}return A(e,!1)}(e);case 228:case 229:case 231:return E(N,e,0,2);case 232:return P(e,void 0);case 230:return E(F,e,0,2);case 205:return i=e,q.visitEachChild(i,k,p);case 162:return E(I,e,2,1);case 161:return E(L,e,2,1);case 163:return E(O,e,2,1);case 164:return E(M,e,2,1);case 244:return E(R,e,2,1);case 201:return E(j,e,2,1);case 202:return E(B,e,2,0);case 156:return function(e){if(16384&e.transformFlags)return q.updateParameter(e,void 0,void 0,e.dotDotDotToken,q.getGeneratedNameForNode(e),void 0,void 0,q.visitNode(e.initializer,T,q.isExpression));return q.visitEachChild(e,T,p)}(e);case 226:return n=e,q.visitEachChild(n,k,p);case 200:return n=e,r=t,q.visitEachChild(n,r?k:T,p);case 198:return r=e,q.processTaggedTemplateExpression(p,r,T,d,C,q.ProcessLevel.LiftRestriction);case 194:return m&&q.isPropertyAccessExpression(e)&&102===e.expression.kind&&m.set(e.name.escapedText,!0),q.visitEachChild(e,T,p);case 195:return m&&102===e.expression.kind&&(y=!0),q.visitEachChild(e,T,p);case 245:case 214:return E(N,e,2,1);default:return q.visitEachChild(e,T,p)}var r,n,i}function A(e,t){return q.isBindingPattern(e.name)&&16384&e.name.transformFlags?q.flattenDestructuringBinding(e,T,p,1,void 0,t):q.visitEachChild(e,T,p)}function F(e){return q.updateFor(e,q.visitNode(e.initializer,k,q.isForInitializer),q.visitNode(e.condition,T,q.isExpression),q.visitNode(e.incrementor,T,q.isExpression),q.visitNode(e.statement,T,q.isStatement))}function P(e,t){var r=D(0,2);16384&e.initializer.transformFlags&&(e=function(e){var t=q.skipParentheses(e.initializer);if(q.isVariableDeclarationList(t)||q.isAssignmentPattern(t)){var r=void 0,n=void 0,i=q.createTempVariable(void 0),t=[q.createForOfBindingStatement(t,i)];return q.isBlock(e.statement)?(q.addRange(t,e.statement.statements),r=e.statement,n=e.statement.statements):e.statement&&(q.append(t,e.statement),r=e.statement,n=e.statement),q.updateForOf(e,e.awaitModifier,q.setTextRange(q.createVariableDeclarationList([q.setTextRange(q.createVariableDeclaration(i),e.initializer)],1),e.initializer),e.expression,q.setTextRange(q.createBlock(q.setTextRange(q.createNodeArray(t),n),!0),r))}return e}(e));t=e.awaitModifier?function(e,t,r){var n=q.visitNode(e.expression,T,q.isExpression),i=q.isIdentifier(n)?q.getGeneratedNameForNode(n):q.createTempVariable(void 0),a=q.isIdentifier(n)?q.getGeneratedNameForNode(i):q.createTempVariable(void 0),o=q.createUniqueName("e"),s=q.getGeneratedNameForNode(o),c=q.createTempVariable(void 0),u=G(p,n,e.expression),l=q.createCall(q.createPropertyAccess(i,"next"),void 0,[]),_=q.createPropertyAccess(a,"done"),d=q.createPropertyAccess(a,"value"),n=q.createFunctionCall(c,i,[]);f(o),f(c);u=2&r?q.inlineExpressions([q.createAssignment(o,q.createVoidZero()),u]):u,e=q.setEmitFlags(q.setTextRange(q.createFor(q.setEmitFlags(q.setTextRange(q.createVariableDeclarationList([q.setTextRange(q.createVariableDeclaration(i,void 0,u),e.expression),q.createVariableDeclaration(a)]),e.expression),2097152),q.createComma(q.createAssignment(a,w(l)),q.createLogicalNot(_)),void 0,function(e,t){var r,n,t=q.createForOfBindingStatement(e.initializer,t),t=[q.visitNode(t,T,q.isStatement)],e=q.visitNode(e.statement,T,q.isStatement);q.isBlock(e)?(q.addRange(t,e.statements),n=(r=e).statements):t.push(e);return q.setEmitFlags(q.setTextRange(q.createBlock(q.setTextRange(q.createNodeArray(t),n),!0),r),432)}(e,d)),e),256);return q.createTry(q.createBlock([q.restoreEnclosingLabel(e,t)]),q.createCatchClause(q.createVariableDeclaration(s),q.setEmitFlags(q.createBlock([q.createExpressionStatement(q.createAssignment(o,q.createObjectLiteral([q.createPropertyAssignment("error",s)])))]),1)),q.createBlock([q.createTry(q.createBlock([q.setEmitFlags(q.createIf(q.createLogicalAnd(q.createLogicalAnd(a,q.createLogicalNot(_)),q.createAssignment(c,q.createPropertyAccess(i,"return"))),q.createExpressionStatement(w(n))),1)]),void 0,q.setEmitFlags(q.createBlock([q.setEmitFlags(q.createIf(o,q.createThrow(q.createPropertyAccess(o,"error"))),1)]),1))]))}(e,t,r):q.restoreEnclosingLabel(q.visitEachChild(e,T,p),t);return S(r),t}function w(e){return 1&o?q.createYield(void 0,H(p,e)):q.createAwait(e)}function I(e){var t=o;o=0;e=q.updateConstructor(e,void 0,e.modifiers,q.visitParameterList(e.parameters,T,p),z(e));return o=t,e}function O(e){var t=o;o=0;e=q.updateGetAccessor(e,void 0,e.modifiers,q.visitNode(e.name,T,q.isPropertyName),q.visitParameterList(e.parameters,T,p),void 0,z(e));return o=t,e}function M(e){var t=o;o=0;e=q.updateSetAccessor(e,void 0,e.modifiers,q.visitNode(e.name,T,q.isPropertyName),q.visitParameterList(e.parameters,T,p),z(e));return o=t,e}function L(e){var t=o;o=q.getFunctionFlags(e);e=q.updateMethod(e,void 0,1&o?q.visitNodes(e.modifiers,n,q.isModifier):e.modifiers,2&o?void 0:e.asteriskToken,q.visitNode(e.name,T,q.isPropertyName),q.visitNode(void 0,T,q.isToken),void 0,q.visitParameterList(e.parameters,T,p),void 0,(2&o&&1&o?J:z)(e));return o=t,e}function R(e){var t=o;o=q.getFunctionFlags(e);e=q.updateFunctionDeclaration(e,void 0,1&o?q.visitNodes(e.modifiers,n,q.isModifier):e.modifiers,2&o?void 0:e.asteriskToken,e.name,void 0,q.visitParameterList(e.parameters,T,p),void 0,(2&o&&1&o?J:z)(e));return o=t,e}function B(e){var t=o;o=q.getFunctionFlags(e);e=q.updateArrowFunction(e,e.modifiers,void 0,q.visitParameterList(e.parameters,T,p),void 0,e.equalsGreaterThanToken,z(e));return o=t,e}function j(e){var t=o;o=q.getFunctionFlags(e);e=q.updateFunctionExpression(e,1&o?q.visitNodes(e.modifiers,n,q.isModifier):e.modifiers,2&o?void 0:e.asteriskToken,e.name,void 0,q.visitParameterList(e.parameters,T,p),void 0,(2&o&&1&o?J:z)(e));return o=t,e}function J(e){s();var t=[],r=q.addPrologue(t,e.body.statements,!1,T);U(t,e);var n=m,i=y;m=q.createUnderscoreEscapedMap(),y=!1;var a,o,a=q.createReturn((a=p,o=q.createFunctionExpression(void 0,q.createToken(41),e.name&&q.getGeneratedNameForNode(e.name),void 0,[],void 0,q.updateBlock(e.body,q.visitLexicalEnvironment(e.body.statements,T,p,r))),r=!!(1&b),a.requestEmitHelper(q.asyncGeneratorHelper),(o.emitNode||(o.emitNode={})).flags|=786432,q.createCall(q.getUnscopedHelperName("__asyncGenerator"),void 0,[r?q.createThis():q.createVoidZero(),q.createIdentifier("arguments"),o]))),r=2<=l&&6144&u.getNodeCheckFlags(e);r&&(0==(1&_)&&(_|=1,p.enableSubstitution(196),p.enableSubstitution(194),p.enableSubstitution(195),p.enableEmitNotification(245),p.enableEmitNotification(161),p.enableEmitNotification(163),p.enableEmitNotification(164),p.enableEmitNotification(162),p.enableEmitNotification(225)),o=q.createSuperAccessVariableStatement(u,e,m),x[q.getNodeId(o)]=!0,q.insertStatementsAfterStandardPrologue(t,[o])),t.push(a),q.insertStatementsAfterStandardPrologue(t,c());t=q.updateBlock(e.body,t);return r&&y&&(4096&u.getNodeCheckFlags(e)?q.addEmitHelper(t,q.advancedAsyncSuperHelper):2048&u.getNodeCheckFlags(e)&&q.addEmitHelper(t,q.asyncSuperHelper)),m=n,y=i,t}function z(e){s();var t=0,r=[],n=q.visitNode(e.body,T,q.isConciseBody);q.isBlock(n)&&(t=q.addPrologue(r,n.statements,!1,T)),q.addRange(r,U(void 0,e));var i=c();if(0<t||q.some(r)||q.some(i)){e=q.convertToFunctionBody(n,!0);return q.insertStatementsAfterStandardPrologue(r,i),q.addRange(r,e.statements.slice(t)),q.updateBlock(e,q.setTextRange(q.createNodeArray(r),e.statements))}return n}function U(e,t){for(var r=0,n=t.parameters;r<n.length;r++){var i,a=n[r];16384&a.transformFlags&&(i=q.getGeneratedNameForNode(a),i=q.flattenDestructuringBinding(a,T,p,1,i,!1,!0),q.some(i)&&(i=q.createVariableStatement(void 0,q.createVariableDeclarationList(i)),q.setEmitFlags(i,1048576),e=q.append(e,i)))}return e}function V(e){return 102===e.expression.kind?q.setTextRange(q.createPropertyAccess(q.createFileLevelUniqueName("_super"),e.name),e):e}function K(e){return 102===e.expression.kind?(t=e.argumentExpression,r=e,4096&v?q.setTextRange(q.createPropertyAccess(q.createCall(q.createIdentifier("_superIndex"),void 0,[t]),"value"),r):q.setTextRange(q.createCall(q.createIdentifier("_superIndex"),void 0,[t]),r)):e;var t,r}},q.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            };"},q.createAssignHelper=W,q.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); }"},q.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[q.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            };'},q.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[q.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            };'},q.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            };'}}(ts=ts||{}),function(n){n.transformES2019=function(t){return n.chainBundle(function(e){if(e.isDeclarationFile)return e;return n.visitEachChild(e,r,t)});function r(e){return 0==(16&e.transformFlags)?e:280!==e.kind?n.visitEachChild(e,r,t):(e=e).variableDeclaration?n.visitEachChild(e,r,t):n.updateCatchClause(e,n.createVariableDeclaration(n.createTempVariable(void 0)),n.visitNode(e.block,r,n.isBlock))}}}(ts=ts||{}),function(g){g.transformES2020=function(o){var l=o.hoistVariableDeclaration;return g.chainBundle(function(e){if(e.isDeclarationFile)return e;return g.visitEachChild(e,_,o)});function _(e){if(0==(8&e.transformFlags))return e;switch(e.kind){case 194:case 195:case 196:if(32&e.flags){var t=s(e,!1,!1);return g.Debug.assertNotNode(t,g.isSyntheticReference),t}return g.visitEachChild(e,_,o);case 209:return 60===e.operatorToken.kind?function(e){var t=g.visitNode(e.left,_,g.isExpression),r=t;f(t)&&(r=g.createTempVariable(l),t=g.createAssignment(r,t));return g.createConditional(p(t,r),r,g.visitNode(e.right,_,g.isExpression))}(e):g.visitEachChild(e,_,o);case 203:return t=e,g.isOptionalChain(g.skipParentheses(t.expression))?g.setOriginalNode(d(t.expression,!1,!0),t):g.updateDelete(t,g.visitNode(t.expression,_,g.isExpression));default:return g.visitEachChild(e,_,o)}}function d(e,t,r){switch(e.kind){case 200:return i=t,a=r,a=d((n=e).expression,i,a),g.isSyntheticReference(a)?g.createSyntheticReferenceExpression(g.updateParen(n,a.expression),a.thisArg):g.updateParen(n,a);case 194:case 195:return function(e,t,r){if(g.isOptionalChain(e))return s(e,t,r);var n,r=g.visitNode(e.expression,_,g.isExpression);return g.Debug.assertNotNode(r,g.isSyntheticReference),t&&(f(r)?(n=g.createTempVariable(l),r=g.createAssignment(n,r)):n=r),r=194===e.kind?g.updatePropertyAccess(e,r,g.visitNode(e.name,_,g.isIdentifier)):g.updateElementAccess(e,r,g.visitNode(e.argumentExpression,_,g.isExpression)),n?g.createSyntheticReferenceExpression(r,n):r}(e,t,r);case 196:return n=e,a=t,g.isOptionalChain(n)?s(n,a,!1):g.visitEachChild(n,_,o);default:return g.visitNode(e,_,g.isExpression)}var n,i,a}function s(e,t,r){var n=function(e){g.Debug.assertNotNode(e,g.isNonNullChain);for(var t=[e];!e.questionDotToken&&!g.isTaggedTemplateExpression(e);)e=g.cast(g.skipPartiallyEmittedExpressions(e.expression),g.isOptionalChain),g.Debug.assertNotNode(e,g.isNonNullChain),t.unshift(e);return{expression:e.expression,chain:t}}(e),e=n.expression,i=n.chain,n=d(e,g.isCallChain(i[0]),!1),a=g.isSyntheticReference(n)?n.thisArg:void 0,e=g.isSyntheticReference(n)?n.expression:n,n=e;f(e)&&(n=g.createTempVariable(l),e=g.createAssignment(n,e));for(var o,s=n,c=0;c<i.length;c++){var u=i[c];switch(u.kind){case 194:case 195:c===i.length-1&&t&&(f(s)?(o=g.createTempVariable(l),s=g.createAssignment(o,s)):o=s),s=194===u.kind?g.createPropertyAccess(s,g.visitNode(u.name,_,g.isIdentifier)):g.createElementAccess(s,g.visitNode(u.argumentExpression,_,g.isExpression));break;case 196:s=0===c&&a?g.createFunctionCall(s,102===a.kind?g.createThis():a,g.visitNodes(u.arguments,_,g.isExpression)):g.createCall(s,void 0,g.visitNodes(u.arguments,_,g.isExpression))}g.setOriginalNode(s,u)}n=r?g.createConditional(p(e,n,!0),g.createTrue(),g.createDelete(s)):g.createConditional(p(e,n,!0),g.createVoidZero(),s);return o?g.createSyntheticReferenceExpression(n,o):n}function p(e,t,r){return g.createBinary(g.createBinary(e,g.createToken(r?36:37),g.createNull()),g.createToken(r?56:55),g.createBinary(t,g.createToken(r?36:37),g.createVoidZero()))}function f(e){return!g.isIdentifier(e)&&104!==e.kind&&102!==e.kind}}}(ts=ts||{}),function(n){n.transformESNext=function(t){return n.chainBundle(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(g){g.transformJsx=function(c){var u,l=c.getCompilerOptions();return g.chainBundle(function(e){if(e.isDeclarationFile)return e;u=e;e=g.visitEachChild(e,t,c);return g.addEmitHelpers(e,c.readEmitHelpers()),e});function t(e){return 2&e.transformFlags?function(e){switch(e.kind){case 266:return r(e,!1);case 267:return n(e,!1);case 270:return i(e,!1);case 276:return f(e);default:return g.visitEachChild(e,t,c)}}(e):e}function _(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);g.isLineBreak(a)?(-1!==r&&-1!==n&&(t=o(t,e.substr(r,n-r+1))),r=-1):g.isWhiteSpaceSingleLine(a)||(n=i,-1===r&&(r=i))}return-1!==r?o(t,e.substr(r)):t}(e.text);return void 0===e?void 0:g.createLiteral(e)}(e);case 276:return f(e);case 266:return r(e,!0);case 267:return n(e,!0);case 270:return i(e,!0);default:return g.Debug.failBadSyntaxKind(e)}}function r(e,t){return a(e.openingElement,e.children,t,e)}function n(e,t){return a(e,void 0,t,e)}function i(e,t){return function(e,t,r,n){n=g.createExpressionForJsxFragment(c.getEmitResolver().getJsxFactoryEntity(u),l.reactNamespace,g.mapDefined(t,_),e,n);r&&g.startOnNewLine(n);return n}(e.openingFragment,e.children,t,e)}function a(e,t,r,n){var i,a=function e(t){{if(266===t.kind)return e(t.openingElement);var t=t.tagName;return g.isIdentifier(t)&&g.isIntrinsicJsxName(t.escapedText)?g.createLiteral(g.idText(t)):g.createExpressionFromEntityName(t)}}(e),o=e.attributes.properties,s=0===o.length?g.createNull():(i=g.flatten(g.spanMap(o,g.isJsxSpreadAttribute,function(e,t){return t?g.map(e,d):g.createObjectLiteral(g.map(e,p))})),g.isJsxSpreadAttribute(o[0])&&i.unshift(g.createObjectLiteral()),(s=g.singleOrUndefined(i))||g.createAssignHelper(c,i)),n=g.createExpressionForJsxElement(c.getEmitResolver().getJsxFactoryEntity(u),l.reactNamespace,a,s,g.mapDefined(t,_),e,n);return r&&g.startOnNewLine(n),n}function d(e){return g.visitNode(e.expression,t,g.isExpression)}function p(e){var t,r,t=(r=(t=e).name,t=g.idText(r),/^[A-Za-z_]\w*$/.test(t)?r:g.createLiteral(t)),e=function(e){{if(void 0===e)return g.createTrue();if(10!==e.kind)return 276===e.kind?void 0===e.expression?g.createTrue():f(e):g.Debug.failBadSyntaxKind(e);var t=g.createLiteral(function(e){var t=s(e);return t===e?void 0:t}(e.text)||e.text);return t.singleQuote=void 0!==e.singleQuote?e.singleQuote:!g.isStringDoubleQuoted(e,u),g.setTextRange(t,e)}}(e.initializer);return g.createPropertyAssignment(t,e)}function o(e,t){t=s(t);return void 0===e?t:e+" "+t}function s(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(e,t,r,n,i,a,o){if(i)return g.utf16EncodeAsString(parseInt(i,10));if(a)return g.utf16EncodeAsString(parseInt(a,16));o=m.get(o);return o?g.utf16EncodeAsString(o):e})}function f(e){return g.visitNode(e.expression,t,g.isExpression)}};var m=g.createMapFromTemplate({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830})}(ts=ts||{}),function(c){c.transformES2016=function(t){var o=t.hoistVariableDeclaration;return c.chainBundle(function(e){if(e.isDeclarationFile)return e;return c.visitEachChild(e,s,t)});function s(e){return 0==(128&e.transformFlags)?e:209!==e.kind?c.visitEachChild(e,s,t):function(e){switch(e.operatorToken.kind){case 66:return function(e){var t,r=c.visitNode(e.left,s,c.isExpression),n=c.visitNode(e.right,s,c.isExpression);{var i,a;r=c.isElementAccessExpression(r)?(a=c.createTempVariable(o),i=c.createTempVariable(o),t=c.setTextRange(c.createElementAccess(c.setTextRange(c.createAssignment(a,r.expression),r.expression),c.setTextRange(c.createAssignment(i,r.argumentExpression),r.argumentExpression)),r),c.setTextRange(c.createElementAccess(a,i),r)):c.isPropertyAccessExpression(r)?(a=c.createTempVariable(o),t=c.setTextRange(c.createPropertyAccess(c.setTextRange(c.createAssignment(a,r.expression),r.expression),r.name),r),c.setTextRange(c.createPropertyAccess(a,r.name),r)):t=r}return c.setTextRange(c.createAssignment(t,c.createMathPow(r,n,e)),e)}(e);case 42:return function(e){var t=c.visitNode(e.left,s,c.isExpression),r=c.visitNode(e.right,s,c.isExpression);return c.createMathPow(t,r,e)}(e);default:return c.visitEachChild(e,s,t)}}(e)}}}(ts=ts||{}),function(ve){var e;(e={})[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings",(e={})[e.Body=1]="Body",e[e.Initializer=2]="Initializer",(e={})[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter",(e={})[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return",(e={})[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.IterationContainer=1024]="IterationContainer",e[e.ForStatement=2048]="ForStatement",e[e.ForInOrForOfStatement=4096]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",e[e.AncestorFactsMask=16383]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=7104]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=8064]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=16286]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=16278]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=3328]="ForStatementIncludes",e[e.ForStatementExcludes=5056]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=6976]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",e[e.NewTarget=16384]="NewTarget",e[e.CapturedLexicalThis=32768]="CapturedLexicalThis",e[e.SubtreeFactsMask=-16384]="SubtreeFactsMask",e[e.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",e[e.FunctionSubtreeExcludes=49152]="FunctionSubtreeExcludes",ve.transformES2015=function(_){var u,i,l,a,p,o,d=_.startLexicalEnvironment,f=_.resumeLexicalEnvironment,g=_.endLexicalEnvironment,m=_.hoistVariableDeclaration,n=_.getCompilerOptions(),y=_.getEmitResolver(),r=_.onSubstituteNode,s=_.onEmitNode;function c(e){a=ve.append(a,ve.createVariableDeclaration(e))}return _.onEmitNode=function(e,t,r){if(1&o&&ve.isFunctionLike(t)){var n=h(16286,8&ve.getEmitFlags(t)?81:65);return s(e,t,r),void v(n,0,0)}s(e,t,r)},_.onSubstituteNode=function(e,t){if(t=r(e,t),1===e)return function(e){switch(e.kind){case 75:return function(e){if(2&o&&!ve.isInternalName(e)){var t=y.getReferencedDeclarationWithCollidingName(e);if(t&&(!ve.isClassLike(t)||!function(e,t){var r=ve.getParseTreeNode(t);if(!r||r===e||r.end<=e.pos||r.pos>=e.end)return!1;var n=ve.getEnclosingBlockScopeContainer(e);for(;r;){if(r===n||r===e)return!1;if(ve.isClassElement(r)&&r.parent===e)return!0;r=r.parent}return!1}(t,e)))return ve.setTextRange(ve.getGeneratedNameForNode(ve.getNameOfDeclaration(t)),e)}return e}(e);case 104:return function(e){if(1&o&&16&l)return ve.setTextRange(ve.createFileLevelUniqueName("_this"),e);return e}(e)}return e}(t);if(ve.isIdentifier(t))return function(e){if(2&o&&!ve.isInternalName(e)){var t=ve.getParseTreeNode(e,ve.isIdentifier);if(t&&function(e){switch(e.parent.kind){case 191:case 245:case 248:case 242:return e.parent.name===e&&y.isDeclarationWithCollidingName(e.parent)}return!1}(t))return ve.setTextRange(ve.getGeneratedNameForNode(t),e)}return e}(t);return t},ve.chainBundle(function(e){if(e.isDeclarationFile)return e;i=(u=e).text;e=function(e){var t=h(8064,64),r=[],n=[];d();var i=ve.addStandardPrologue(r,e.statements,!1);i=ve.addCustomPrologue(r,e.statements,i,x),ve.addRange(n,ve.visitNodes(e.statements,x,ve.isStatement,i)),a&&n.push(ve.createVariableStatement(void 0,ve.createVariableDeclarationList(a)));return ve.mergeLexicalEnvironment(r,g()),F(r,e),v(t,0,0),ve.updateSourceFileNode(e,ve.setTextRange(ve.createNodeArray(ve.concatenate(r,n)),e.statements))}(e);return ve.addEmitHelpers(e,_.readEmitHelpers()),a=i=u=void 0,l=0,e});function h(e,t){var r=l;return l=16383&(l&~e|t),r}function v(e,t,r){l=-16384&(l&~t|r)|e}function b(e){return 0!=(8192&l)&&235===e.kind&&!e.expression}function x(e){return 0!=(256&(t=e).transformFlags)||void 0!==p||8192&l&&(ve.isStatement(t)||223===t.kind)||ve.isIterationStatement(t,!1)&&ee(t)||0!=(33554432&ve.getEmitFlags(t))?function(e){switch(e.kind){case 120:return;case 245:return function(e){var t=ve.createVariableDeclaration(ve.getLocalName(e,!0),void 0,C(e));ve.setOriginalNode(t,e);var r=[],t=ve.createVariableStatement(void 0,ve.createVariableDeclarationList([t]));ve.setOriginalNode(t,e),ve.setTextRange(t,e),ve.startOnNewLine(t),r.push(t),ve.hasModifier(e,1)&&(n=ve.hasModifier(e,512)?ve.createExportDefault(ve.getLocalName(e)):ve.createExternalModuleExport(ve.getLocalName(e)),ve.setOriginalNode(n,t),r.push(n));var n=ve.getEmitFlags(e);0==(4194304&n)&&(r.push(ve.createEndOfDeclarationMarker(e)),ve.setEmitFlags(t,4194304|n));return ve.singleOrMany(r)}(e);case 214:return C(e);case 156:return function(e){if(!e.dotDotDotToken)return ve.isBindingPattern(e.name)?ve.setOriginalNode(ve.setTextRange(ve.createParameter(void 0,void 0,void 0,ve.getGeneratedNameForNode(e),void 0,void 0,void 0),e),e):e.initializer?ve.setOriginalNode(ve.setTextRange(ve.createParameter(void 0,void 0,void 0,e.name,void 0,void 0,void 0),e),e):e}(e);case 244:return function(e){var t=p;p=void 0;var r=h(16286,65),n=ve.visitParameterList(e.parameters,x,_),i=M(e),a=16384&l?ve.getLocalName(e):e.name;return v(r,49152,0),p=t,ve.updateFunctionDeclaration(e,void 0,ve.visitNodes(e.modifiers,x,ve.isModifier),e.asteriskToken,a,void 0,n,void 0,i)}(e);case 202:return function(e){4096&e.transformFlags&&(l|=32768);var t=p;p=void 0;var r=h(15232,66),n=ve.createFunctionExpression(void 0,void 0,void 0,void 0,ve.visitParameterList(e.parameters,x,_),void 0,M(e));ve.setTextRange(n,e),ve.setOriginalNode(n,e),ve.setEmitFlags(n,8),32768&l&&ye();return v(r,0,0),p=t,n}(e);case 201:return function(e){var t=262144&ve.getEmitFlags(e)?h(16278,69):h(16286,65),r=p;p=void 0;var n=ve.visitParameterList(e.parameters,x,_),i=M(e),a=16384&l?ve.getLocalName(e):e.name;return v(t,49152,0),p=r,ve.updateFunctionExpression(e,void 0,e.asteriskToken,a,void 0,n,void 0,i)}(e);case 242:return j(e);case 75:return function(e){if(!p)return e;if(ve.isGeneratedIdentifier(e))return e;return"arguments"===e.escapedText&&y.isArgumentsLocalBinding(e)?p.argumentsName||(p.argumentsName=ve.createUniqueName("arguments")):e}(e);case 243:return function(e){if(3&e.flags||131072&e.transformFlags){3&e.flags&&me();var t=ve.flatMap(e.declarations,1&e.flags?B:j),r=ve.createVariableDeclarationList(t);return ve.setOriginalNode(r,e),ve.setTextRange(r,e),ve.setCommentRange(r,e),131072&e.transformFlags&&(ve.isBindingPattern(e.declarations[0].name)||ve.isBindingPattern(ve.last(e.declarations).name))&&ve.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 ve.createRange(t,r)}(t)),r}return ve.visitEachChild(e,x,_)}(e);case 237:return function(e){if(void 0===p)return ve.visitEachChild(e,x,_);var t=p.allowedNonLabeledJumps;p.allowedNonLabeledJumps|=2;e=ve.visitEachChild(e,x,_);return p.allowedNonLabeledJumps=t,e}(e);case 251:return function(e){var t=h(7104,0),e=ve.visitEachChild(e,x,_);return v(t,0,0),e}(e);case 223:return function(e,t){if(t)return ve.visitEachChild(e,x,_);t=256&l?h(7104,512):h(6976,128),e=ve.visitEachChild(e,x,_);return v(t,0,0),e}(e,!1);case 234:case 233:return function(e){if(p){var t=234===e.kind?2:4;if(!(e.label&&p.labels&&p.labels.get(ve.idText(e.label))||!e.label&&p.allowedNonLabeledJumps&t)){var r=void 0,t=e.label;t?234===e.kind?(r="break-"+t.escapedText,oe(p,!0,ve.idText(t),r)):(r="continue-"+t.escapedText,oe(p,!1,ve.idText(t),r)):r=234===e.kind?(p.nonLocalJumps|=2,"break"):(p.nonLocalJumps|=4,"continue");r=ve.createLiteral(r);if(p.loopOutParameters.length){for(var n=p.loopOutParameters,i=void 0,a=0;a<n.length;a++){var o=ie(n[a],1);i=0===a?o:ve.createBinary(i,27,o)}r=ve.createBinary(i,27,r)}return ve.createReturn(r)}}return ve.visitEachChild(e,x,_)}(e);case 238:return function(e){p&&!p.labels&&(p.labels=ve.createMap());var t=ve.unwrapInnermostStatementOfLabel(e,p&&J);return ve.isIterationStatement(t,!1)?function(e,t){switch(e.kind){case 228:case 229:return V(e,t);case 230:return K(e,t);case 231:return q(e,t);case 232:return W(e,t)}}(t,e):ve.restoreEnclosingLabel(ve.visitNode(t,x,ve.isStatement,ve.liftToBlock),e,p&&z)}(e);case 228:case 229:return V(e,void 0);case 230:return K(e,void 0);case 231:return q(e,void 0);case 232:return W(e,void 0);case 226:return function(e){switch(e.expression.kind){case 200:return ve.updateExpressionStatement(e,L(e.expression,!1));case 209:return ve.updateExpressionStatement(e,R(e.expression,!1))}return ve.visitEachChild(e,x,_)}(e);case 193:return function(e){for(var t=e.properties,r=t.length,n=r,i=r,a=0;a<r;a++){var o=t[a];if(262144&o.transformFlags&&4&l&&a<i&&(i=a),154===o.name.kind){n=a;break}}if(n===r)return ve.visitEachChild(e,x,_);i<n&&(n=i);var s=ve.createTempVariable(m),c=[],u=ve.createAssignment(s,ve.setEmitFlags(ve.createObjectLiteral(ve.visitNodes(t,x,ve.isObjectLiteralElementLike,0,n),e.multiLine),65536));e.multiLine&&ve.startOnNewLine(u);return c.push(u),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 163:case 164:var c=ve.getAllAccessorDeclarations(t.properties,s);s===c.firstAccessor&&e.push(I(r,c,t,!!t.multiLine));break;case 161:e.push(function(e,t,r,n){r=ve.createAssignment(ve.createMemberAccessForPropertyName(t,ve.visitNode(e.name,x,ve.isPropertyName)),O(e,e,void 0,r));ve.setTextRange(r,e),n&&ve.startOnNewLine(r);return r}(s,r,t,t.multiLine));break;case 281:e.push(function(e,t,r){t=ve.createAssignment(ve.createMemberAccessForPropertyName(t,ve.visitNode(e.name,x,ve.isPropertyName)),ve.visitNode(e.initializer,x,ve.isExpression));ve.setTextRange(t,e),r&&ve.startOnNewLine(t);return t}(s,r,t.multiLine));break;case 282:e.push(function(e,t,r){t=ve.createAssignment(ve.createMemberAccessForPropertyName(t,ve.visitNode(e.name,x,ve.isPropertyName)),ve.getSynthesizedClone(e.name));ve.setTextRange(t,e),r&&ve.startOnNewLine(t);return t}(s,r,t.multiLine));break;default:ve.Debug.failBadSyntaxKind(t)}}}(c,e,s,n),c.push(e.multiLine?ve.startOnNewLine(ve.getMutableClone(s)):s),ve.inlineExpressions(c)}(e);case 280:return function(e){var t=h(7104,0);{var r,n;ve.Debug.assert(!!e.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e=ve.isBindingPattern(e.variableDeclaration.name)?(n=ve.createTempVariable(void 0),r=ve.createVariableDeclaration(n),ve.setTextRange(r,e.variableDeclaration),n=ve.flattenDestructuringBinding(e.variableDeclaration,x,_,0,n),n=ve.createVariableDeclarationList(n),ve.setTextRange(n,e.variableDeclaration),n=ve.createVariableStatement(void 0,n),ve.updateCatchClause(e,r,function(e,t){var r=ve.visitNodes(e.statements,x,ve.isStatement);return ve.updateBlock(e,__spreadArrays([t],r))}(e.block,n))):ve.visitEachChild(e,x,_)}return v(t,0,0),e}(e);case 282:return function(e){return ve.setTextRange(ve.createPropertyAssignment(e.name,ve.getSynthesizedClone(e.name)),e)}(e);case 154:return function(e){return ve.visitEachChild(e,x,_)}(e);case 192:return function(e){if(ve.some(e.elements,ve.isSpreadElement))return ue(e.elements,!0,!!e.multiLine,!!e.elements.hasTrailingComma);return ve.visitEachChild(e,x,_)}(e);case 196:return function(e){if(33554432&ve.getEmitFlags(e))return function(e){function t(e){return ve.isVariableStatement(e)&&!!ve.first(e.declarationList.declarations).initializer}var r=ve.cast(ve.cast(ve.skipOuterExpressions(e.expression),ve.isArrowFunction).body,ve.isBlock),n=p;p=void 0;var i=ve.visitNodes(r.statements,x,ve.isStatement);p=n;var a=ve.filter(i,t),o=ve.filter(i,function(e){return!t(e)}),s=ve.cast(ve.first(a),ve.isVariableStatement).declarationList.declarations[0],c=ve.skipOuterExpressions(s.initializer),u=ve.tryCast(c,ve.isAssignmentExpression),l=ve.cast(u?ve.skipOuterExpressions(u.right):c,ve.isCallExpression),r=ve.cast(ve.skipOuterExpressions(l.expression),ve.isFunctionExpression),_=r.body.statements,n=0,d=-1,i=[];u&&((c=ve.tryCast(_[n],ve.isExpressionStatement))&&(i.push(c),n++),i.push(_[n]),n++,i.push(ve.createExpressionStatement(ve.createAssignment(u.left,ve.cast(s.name,ve.isIdentifier)))));for(;!ve.isReturnStatement(ve.elementAt(_,d));)d--;ve.addRange(i,_,n,d),d<-1&&ve.addRange(i,_,d+1);return ve.addRange(i,o),ve.addRange(i,a,1),ve.recreateOuterExpressions(e.expression,ve.recreateOuterExpressions(s.initializer,ve.recreateOuterExpressions(u&&u.right,ve.updateCall(l,ve.recreateOuterExpressions(l.expression,ve.updateFunctionExpression(r,void 0,void 0,void 0,void 0,r.parameters,void 0,ve.updateBlock(r.body,i))),void 0,l.arguments))))}(e);var t=ve.skipOuterExpressions(e.expression);if(102===t.kind||ve.isSuperProperty(t)||ve.some(e.arguments,ve.isSpreadElement))return ce(e,!0);return ve.updateCall(e,ve.visitNode(e.expression,D,ve.isExpression),void 0,ve.visitNodes(e.arguments,x,ve.isExpression))}(e);case 197:return function(e){if(ve.some(e.arguments,ve.isSpreadElement)){var t=ve.createCallBinding(ve.createPropertyAccess(e.expression,"bind"),m),r=t.target,t=t.thisArg;return ve.createNew(ve.createFunctionApply(ve.visitNode(r,x,ve.isExpression),t,ue(ve.createNodeArray(__spreadArrays([ve.createVoidZero()],e.arguments)),!1,!1,!1)),void 0,[])}return ve.visitEachChild(e,x,_)}(e);case 200:return L(e,!0);case 209:return R(e,!0);case 14:case 15:case 16:case 17:return function(e){return ve.setTextRange(ve.createLiteral(e.text),e)}(e);case 10:return function(e){if(e.hasExtendedUnicodeEscape)return ve.setTextRange(ve.createLiteral(e.text),e);return e}(e);case 8:return function(e){if(384&e.numericLiteralFlags)return ve.setTextRange(ve.createNumericLiteral(e.text),e);return e}(e);case 198:return function(e){return ve.processTaggedTemplateExpression(_,e,x,u,c,ve.ProcessLevel.All)}(e);case 211:return function(i){var e=[];(function(e,t){!function(e){return ve.Debug.assert(0!==e.templateSpans.length),0!==e.head.text.length||0===e.templateSpans[0].literal.text.length}(t)||e.push(ve.createLiteral(t.head.text))})(e,i),function(e){for(var t=0,r=i.templateSpans;t<r.length;t++){var n=r[t];e.push(ve.visitNode(n.expression,x,ve.isExpression)),0!==n.literal.text.length&&e.push(ve.createLiteral(n.literal.text))}}(e);e=ve.reduceLeft(e,ve.createAdd);ve.nodeIsSynthesized(e)&&(e.pos=i.pos,e.end=i.end);return e}(e);case 212:return function(e){return ve.visitEachChild(e,x,_)}(e);case 213:return function(e){return ve.visitNode(e.expression,x,ve.isExpression)}(e);case 102:return ge(!1);case 104:return function(e){2&l&&(l|=32768);if(p)return 2&l?(p.containsLexicalThis=!0,e):p.thisName||(p.thisName=ve.createUniqueName("this"));return e}(e);case 219:return function(e){return 99!==e.keywordToken||"target"!==e.name.escapedText?e:(l|=16384,ve.createFileLevelUniqueName("_newTarget"))}(e);case 161:return function(e){ve.Debug.assert(!ve.isComputedPropertyName(e.name));var t=O(e,ve.moveRangePos(e,-1),void 0,void 0);return ve.setEmitFlags(t,512|ve.getEmitFlags(t)),ve.setTextRange(ve.createPropertyAssignment(e.name,t),e)}(e);case 163:case 164:return function(e){ve.Debug.assert(!ve.isComputedPropertyName(e.name));var t=p;p=void 0;var r=h(16286,65),n=ve.visitParameterList(e.parameters,x,_),i=M(e);i=163===e.kind?ve.updateGetAccessor(e,e.decorators,e.modifiers,e.name,n,e.type,i):ve.updateSetAccessor(e,e.decorators,e.modifiers,e.name,n,i);return v(r,49152,0),p=t,i}(e);case 225:return function(e){var t,r=h(0,ve.hasModifier(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&ve.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(75===t.kind)a.hoistedLocalVariables.push(t);else for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];ve.isOmittedExpression(i)||e(i.name)}}(e.name)}(p,s),s.initializer&&(o=void 0,ve.isBindingPattern(s.name)?o=ve.flattenDestructuringAssignment(s,x,_,0):(o=ve.createBinary(s.name,62,ve.visitNode(s.initializer,x,ve.isExpression)),ve.setTextRange(o,s)),n=ve.append(n,o))}t=n?ve.setTextRange(ve.createExpressionStatement(ve.inlineExpressions(n)),e):void 0}else t=ve.visitEachChild(e,x,_);return v(r,0,0),t}(e);case 235:return function(e){{if(p)return p.nonLocalJumps|=8,b(e)&&(e=S(e)),ve.createReturn(ve.createObjectLiteral([ve.createPropertyAssignment(ve.createIdentifier("value"),e.expression?ve.visitNode(e.expression,x,ve.isExpression):ve.createVoidZero())]));if(b(e))return S(e)}return ve.visitEachChild(e,x,_)}(e);default:return ve.visitEachChild(e,x,_)}}(e):e;var t}function D(e){return 102===e.kind?ge(!0):x(e)}function S(e){return ve.setOriginalNode(ve.createReturn(ve.createFileLevelUniqueName("_this")),e)}function C(e){e.name&&me();var t=ve.getClassExtendsHeritageElement(e),r=ve.createFunctionExpression(void 0,void 0,void 0,void 0,t?[ve.createParameter(void 0,void 0,void 0,ve.createFileLevelUniqueName("_super"))]:[],void 0,function(e,t){var r=[];d(),function(e,t,r){r&&e.push(ve.setTextRange(ve.createExpressionStatement(function(e,t){return e.requestEmitHelper(ve.extendsHelper),ve.createCall(ve.getUnscopedHelperName("__extends"),void 0,[t,ve.createFileLevelUniqueName("_super")])}(_,ve.getInternalName(t))),r))}(r,e,t),function(e,t,r){var n=p;p=void 0;var i=h(16278,73),a=ve.getFirstConstructorWithBody(t),o=function(e,t){if(!e||!t)return!1;if(ve.some(e.parameters))return!1;t=ve.firstOrUndefined(e.body.statements);if(!t||!ve.nodeIsSynthesized(t)||226!==t.kind)return!1;e=t.expression;if(!ve.nodeIsSynthesized(e)||196!==e.kind)return!1;t=e.expression;if(!ve.nodeIsSynthesized(t)||102!==t.kind)return!1;e=ve.singleOrUndefined(e.arguments);if(!e||!ve.nodeIsSynthesized(e)||213!==e.kind)return!1;e=e.expression;return ve.isIdentifier(e)&&"arguments"===e.escapedText}(a,void 0!==r),o=ve.createFunctionDeclaration(void 0,void 0,void 0,ve.getInternalName(t),void 0,function(e,t){return ve.visitParameterList(e&&!t?e.parameters:void 0,x,_)||[]}(a,o),void 0,function(e,t,r,n){var i=!!r&&100!==ve.skipOuterExpressions(r.expression).kind;if(!e)return function(e,t){var r=[];f(),ve.mergeLexicalEnvironment(r,g()),t&&r.push(ve.createReturn(k()));r=ve.createNodeArray(r);ve.setTextRange(r,e.members);r=ve.createBlock(r,!0);return ve.setTextRange(r,e),ve.setEmitFlags(r,1536),r}(t,i);var a=[],r=[];f();t=0;n||(t=ve.addStandardPrologue(a,e.body.statements,!1));N(r,e),A(r,e,n),n||(t=ve.addCustomPrologue(r,e.body.statements,t,x));n?o=k():i&&t<e.body.statements.length&&(n=e.body.statements[t],ve.isExpressionStatement(n)&&ve.isSuperCall(n.expression)&&(o=function(e){return ce(e,!1)}(n.expression)));o&&(l|=8192,t++);{var o;ve.addRange(r,ve.visitNodes(e.body.statements,x,ve.isStatement,t)),ve.mergeLexicalEnvironment(a,g()),w(a,e,!1),i?!o||t!==e.body.statements.length||4096&e.body.transformFlags?(P(r,e,o||T()),function e(t){{if(235===t.kind)return!0;if(227===t.kind){var r=t;if(r.elseStatement)return e(r.thenStatement)&&e(r.elseStatement)}else if(223===t.kind){var t=ve.lastOrUndefined(t.statements);if(t&&e(t))return!0}}return!1}(e.body)||r.push(ve.createReturn(ve.createFileLevelUniqueName("_this")))):(t=ve.cast(ve.cast(o,ve.isBinaryExpression).left,ve.isCallExpression),o=ve.createReturn(o),ve.setCommentRange(o,ve.getCommentRange(t)),ve.setEmitFlags(t,1536),r.push(o)):F(a,e)}r=ve.createBlock(ve.setTextRange(ve.createNodeArray(ve.concatenate(a,r)),e.body.statements),!0);return ve.setTextRange(r,e.body),r}(a,t,r,o));ve.setTextRange(o,a||t),r&&ve.setEmitFlags(o,8),e.push(o),v(i,49152,0),p=n}(r,e,t),function(e,t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r];switch(i.kind){case 222:e.push(function(e){return ve.setTextRange(ve.createEmptyStatement(),e)}(i));break;case 161:e.push(function(e,t,r){var n=ve.getCommentRange(t),i=ve.getSourceMapRange(t),a=O(t,t,void 0,r),o=ve.visitNode(t.name,x,ve.isPropertyName);s=!ve.isPrivateIdentifier(o)&&_.getCompilerOptions().useDefineForClassFields?(r=ve.isComputedPropertyName(o)?o.expression:ve.isIdentifier(o)?ve.createStringLiteral(ve.unescapeLeadingUnderscores(o.escapedText)):o,ve.createObjectDefinePropertyCall(e,r,ve.createPropertyDescriptor({value:a,enumerable:!1,writable:!0,configurable:!0}))):(s=ve.createMemberAccessForPropertyName(e,o,t.name),ve.createAssignment(s,a));ve.setEmitFlags(a,1536),ve.setSourceMapRange(a,i);var s=ve.setTextRange(ve.createExpressionStatement(s),t);return ve.setOriginalNode(s,t),ve.setCommentRange(s,n),ve.setEmitFlags(s,48),s}(he(t,i),i,t));break;case 163:case 164:var a=ve.getAllAccessorDeclarations(t.members,i);i===a.firstAccessor&&e.push(function(e,t,r){r=ve.createExpressionStatement(I(e,t,r,!1));return ve.setEmitFlags(r,1536),ve.setSourceMapRange(r,ve.getSourceMapRange(t.firstAccessor)),r}(he(t,i),a,t));break;case 162:break;default:ve.Debug.failBadSyntaxKind(i,u&&u.fileName)}}}(r,e);var n=ve.createTokenRange(ve.skipTrivia(i,e.members.end),19),t=ve.getInternalName(e),t=ve.createPartiallyEmittedExpression(t);t.end=n.end,ve.setEmitFlags(t,1536);t=ve.createReturn(t);t.pos=n.pos,ve.setEmitFlags(t,1920),r.push(t),ve.insertStatementsAfterStandardPrologue(r,g());e=ve.createBlock(ve.setTextRange(ve.createNodeArray(r),e.members),!0);return ve.setEmitFlags(e,1536),e}(e,t));ve.setEmitFlags(r,65536&ve.getEmitFlags(e)|524288);r=ve.createPartiallyEmittedExpression(r);r.end=e.end,ve.setEmitFlags(r,1536);r=ve.createPartiallyEmittedExpression(r);r.end=ve.skipTrivia(i,e.pos),ve.setEmitFlags(r,1536);t=ve.createParen(ve.createCall(r,void 0,t?[ve.visitNode(t.expression,x,ve.isExpression)]:[]));return ve.addSyntheticLeadingComment(t,3,"* @class "),t}function T(){return ve.setEmitFlags(ve.createThis(),4)}function k(){return ve.createLogicalOr(ve.createLogicalAnd(ve.createStrictInequality(ve.createFileLevelUniqueName("_super"),ve.createNull()),ve.createFunctionApply(ve.createFileLevelUniqueName("_super"),T(),ve.createIdentifier("arguments"))),T())}function E(e){return void 0!==e.initializer||ve.isBindingPattern(e.name)}function N(e,t){if(!ve.some(t.parameters,E))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||(ve.isBindingPattern(s)?n=function(e,t,r,n){{if(0<r.elements.length)return ve.insertStatementAfterCustomPrologue(e,ve.setEmitFlags(ve.createVariableStatement(void 0,ve.createVariableDeclarationList(ve.flattenDestructuringBinding(t,x,_,0,ve.getGeneratedNameForNode(t)))),1048576)),!0;if(n)return ve.insertStatementAfterCustomPrologue(e,ve.setEmitFlags(ve.createExpressionStatement(ve.createAssignment(ve.getGeneratedNameForNode(t),ve.visitNode(n,x,ve.isExpression))),1048576)),!0}return!1}(e,o,s,c)||n:c&&(r=e,o=o,s=s,c=c,c=ve.visitNode(c,x,ve.isExpression),c=ve.createIf(ve.createTypeCheck(ve.getSynthesizedClone(s),"undefined"),ve.setEmitFlags(ve.setTextRange(ve.createBlock([ve.createExpressionStatement(ve.setEmitFlags(ve.setTextRange(ve.createAssignment(ve.setEmitFlags(ve.getMutableClone(s),48),ve.setEmitFlags(c,1584|ve.getEmitFlags(c))),o),1536))]),o),1953)),ve.startOnNewLine(c),ve.setTextRange(c,o),ve.setEmitFlags(c,1050528),ve.insertStatementAfterCustomPrologue(r,c),n=!0))}return n}function A(e,t,r){var n=[],i=ve.lastOrUndefined(t.parameters);if(o=r,!(a=i)||!a.dotDotDotToken||o)return!1;r=75===i.name.kind?ve.getMutableClone(i.name):ve.createTempVariable(void 0);ve.setEmitFlags(r,48);var a=75===i.name.kind?ve.getSynthesizedClone(i.name):r,o=t.parameters.length-1,t=ve.createLoopVariable();n.push(ve.setEmitFlags(ve.setTextRange(ve.createVariableStatement(void 0,ve.createVariableDeclarationList([ve.createVariableDeclaration(r,void 0,ve.createArrayLiteral([]))])),i),1048576));t=ve.createFor(ve.setTextRange(ve.createVariableDeclarationList([ve.createVariableDeclaration(t,void 0,ve.createLiteral(o))]),i),ve.setTextRange(ve.createLessThan(t,ve.createPropertyAccess(ve.createIdentifier("arguments"),"length")),i),ve.setTextRange(ve.createPostfixIncrement(t),i),ve.createBlock([ve.startOnNewLine(ve.setTextRange(ve.createExpressionStatement(ve.createAssignment(ve.createElementAccess(a,0==o?t:ve.createSubtract(t,ve.createLiteral(o))),ve.createElementAccess(ve.createIdentifier("arguments"),t))),i))]));return ve.setEmitFlags(t,1048576),ve.startOnNewLine(t),n.push(t),75!==i.name.kind&&n.push(ve.setEmitFlags(ve.setTextRange(ve.createVariableStatement(void 0,ve.createVariableDeclarationList(ve.flattenDestructuringBinding(i,x,_,0,a))),i),1048576)),ve.insertStatementsAfterCustomPrologue(e,n),!0}function F(e,t){return 32768&l&&202!==t.kind&&(P(e,t,ve.createThis()),1)}function P(e,t,r){ye();r=ve.createVariableStatement(void 0,ve.createVariableDeclarationList([ve.createVariableDeclaration(ve.createFileLevelUniqueName("_this"),void 0,r)]));ve.setEmitFlags(r,1050112),ve.setSourceMapRange(r,t),ve.insertStatementAfterCustomPrologue(e,r)}function w(e,t,r){if(16384&l){var n=void 0;switch(t.kind){case 202:return e;case 161:case 163:case 164:n=ve.createVoidZero();break;case 162:n=ve.createPropertyAccess(ve.setEmitFlags(ve.createThis(),4),"constructor");break;case 244:case 201:n=ve.createConditional(ve.createLogicalAnd(ve.setEmitFlags(ve.createThis(),4),ve.createBinary(ve.setEmitFlags(ve.createThis(),4),98,ve.getLocalName(t))),ve.createPropertyAccess(ve.setEmitFlags(ve.createThis(),4),"constructor"),ve.createVoidZero());break;default:return ve.Debug.failBadSyntaxKind(t)}var i=ve.createVariableStatement(void 0,ve.createVariableDeclarationList([ve.createVariableDeclaration(ve.createFileLevelUniqueName("_newTarget"),void 0,n)]));ve.setEmitFlags(i,1050112),r&&(e=e.slice()),ve.insertStatementAfterCustomPrologue(e,i)}return e}function I(e,t,r,n){var i=t.firstAccessor,a=t.getAccessor,o=t.setAccessor,s=ve.getMutableClone(e);ve.setEmitFlags(s,1568),ve.setSourceMapRange(s,i.name);t=ve.visitNode(i.name,x,ve.isPropertyName);if(ve.isPrivateIdentifier(t))return ve.Debug.failBadSyntaxKind(t,"Encountered unhandled private identifier while transforming ES2015.");e=ve.createExpressionForPropertyName(t);ve.setEmitFlags(e,1552),ve.setSourceMapRange(e,i.name);t=[];a&&(i=O(a,void 0,void 0,r),ve.setSourceMapRange(i,ve.getSourceMapRange(a)),ve.setEmitFlags(i,512),i=ve.createPropertyAssignment("get",i),ve.setCommentRange(i,ve.getCommentRange(a)),t.push(i)),o&&(r=O(o,void 0,void 0,r),ve.setSourceMapRange(r,ve.getSourceMapRange(o)),ve.setEmitFlags(r,512),r=ve.createPropertyAssignment("set",r),ve.setCommentRange(r,ve.getCommentRange(o)),t.push(r)),t.push(ve.createPropertyAssignment("enumerable",a||o?ve.createFalse():ve.createTrue()),ve.createPropertyAssignment("configurable",ve.createTrue()));t=ve.createCall(ve.createPropertyAccess(ve.createIdentifier("Object"),"defineProperty"),void 0,[s,e,ve.createObjectLiteral(t,!0)]);return n&&ve.startOnNewLine(t),t}function O(e,t,r,n){var i=p;p=void 0;var a=n&&ve.isClassLike(n)&&!ve.hasModifier(e,32)?h(16286,73):h(16286,65),o=ve.visitParameterList(e.parameters,x,_),n=M(e);return 16384&l&&!r&&(244===e.kind||201===e.kind)&&(r=ve.getGeneratedNameForNode(e)),v(a,49152,0),p=i,ve.setOriginalNode(ve.setTextRange(ve.createFunctionExpression(void 0,e.asteriskToken,r,void 0,o,void 0,n),t),e)}function M(e){var t,r,n=!1,i=!1,a=[],o=[],s=e.body;if(f(),ve.isBlock(s)&&(t=ve.addStandardPrologue(a,s.statements,!1),t=ve.addCustomPrologue(o,s.statements,t,x,ve.isHoistedFunction),t=ve.addCustomPrologue(o,s.statements,t,x,ve.isHoistedVariableStatement)),n=N(o,e)||n,n=A(o,e,!1)||n,ve.isBlock(s)?(t=ve.addCustomPrologue(o,s.statements,t,x),c=s.statements,ve.addRange(o,ve.visitNodes(s.statements,x,ve.isStatement,t)),!n&&s.multiLine&&(n=!0)):(ve.Debug.assert(202===e.kind),c=ve.moveRangeEnd(s,-1),r=e.equalsGreaterThanToken,ve.nodeIsSynthesized(r)||ve.nodeIsSynthesized(s)||(ve.rangeEndIsOnSameLineAsRangeStart(r,s,u)?i=!0:n=!0),r=ve.visitNode(s,x,ve.isExpression),r=ve.createReturn(r),ve.setTextRange(r,s),ve.moveSyntheticComments(r,s),ve.setEmitFlags(r,1440),o.push(r),r=s),ve.mergeLexicalEnvironment(a,g()),w(a,e,!1),F(a,e),ve.some(a)&&(n=!0),o.unshift.apply(o,a),ve.isBlock(s)&&ve.arrayIsEqualTo(o,s.statements))return s;var c=ve.createBlock(ve.setTextRange(ve.createNodeArray(o),c),n);return ve.setTextRange(c,e.body),!n&&i&&ve.setEmitFlags(c,1),r&&ve.setTokenSourceMapRange(c,19,r),ve.setOriginalNode(c,e.body),c}function L(e,t){if(!t)switch(e.expression.kind){case 200:return ve.updateParen(e,L(e.expression,!1));case 209:return ve.updateParen(e,R(e.expression,!1))}return ve.visitEachChild(e,x,_)}function R(e,t){return ve.isDestructuringAssignment(e)?ve.flattenDestructuringAssignment(e,x,_,0,t):ve.visitEachChild(e,x,_)}function B(e){var t,r,n=e.name;if(ve.isBindingPattern(n))return j(e);if(e.initializer||(t=e,n=262144&(r=y.getNodeCheckFlags(t)),r&=524288,0!=(64&l)||n&&r&&0!=(512&l)||0!=(4096&l)||y.isDeclarationWithCollidingName(t)&&(!r||n||0!=(6144&l))))return ve.visitEachChild(e,x,_);e=ve.getMutableClone(e);return e.initializer=ve.createVoidZero(),e}function j(e){var t=h(32,0),e=ve.isBindingPattern(e.name)?ve.flattenDestructuringBinding(e,x,_,0,void 0,0!=(32&t)):ve.visitEachChild(e,x,_);return v(t,0,0),e}function J(e){p.labels.set(ve.idText(e.label),!0)}function z(e){p.labels.set(ve.idText(e.label),!1)}function U(e,t,r,n,i){t=h(e,t),i=function(e,t,r,n){if(!ee(e)){var i=void 0;p&&(i=p.allowedNonLabeledJumps,p.allowedNonLabeledJumps=6);var a=n?n(e,t,void 0,r):ve.restoreEnclosingLabel(ve.visitEachChild(e,x,_),t,p&&z);return p&&(p.allowedNonLabeledJumps=i),a}var o=function(e){var t;switch(e.kind){case 230:case 231:case 232:var r=e.initializer;r&&243===r.kind&&(t=r)}var n=[],i=[];if(t&&3&ve.getCombinedNodeFlags(t))for(var a=Z(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(ve.isBindingPattern(o))for(var s=0,c=o.elements;s<c.length;s++){var u=c[s];ve.isOmittedExpression(u)||e(t,u,n,i,a)}else{n.push(ve.createParameter(void 0,void 0,void 0,o));var l,_,d=y.getNodeCheckFlags(r);(4194304&d||a)&&(l=ve.createUniqueName("out_"+ve.idText(o)),_=0,4194304&d&&(_|=1),ve.isForStatement(t)&&t.initializer&&y.isBindingCapturedByNode(t.initializer,r)&&(_|=2),i.push({flags:_,originalName:o,outParamName:l}))}}(e,c,n,i,a)}var u={loopParameters:n,loopOutParameters:i};p&&(p.argumentsName&&(u.argumentsName=p.argumentsName),p.thisName&&(u.thisName=p.thisName),p.hoistedLocalVariables&&(u.hoistedLocalVariables=p.hoistedLocalVariables));return u}(e),s=[],c=p;p=o;i=Z(e)?function(e,t){var r=ve.createUniqueName("_loop_init"),n=0!=(262144&e.initializer.transformFlags),i=0;t.containsLexicalThis&&(i|=8);n&&4&l&&(i|=262144);var a=[];a.push(ve.createVariableStatement(void 0,e.initializer)),ae(t.loopOutParameters,2,1,a);i=ve.createVariableStatement(void 0,ve.setEmitFlags(ve.createVariableDeclarationList([ve.createVariableDeclaration(r,void 0,ve.setEmitFlags(ve.createFunctionExpression(void 0,n?ve.createToken(41):void 0,void 0,void 0,void 0,void 0,ve.visitNode(ve.createBlock(a,!0),x,ve.isBlock)),i))]),2097152)),t=ve.createVariableDeclarationList(ve.map(t.loopOutParameters,ne));return{functionName:r,containsYield:n,functionDeclaration:i,part:t}}(e,o):void 0,a=te(e)?function(e,t,r){var n=ve.createUniqueName("_loop");d();var i=ve.visitNode(e.statement,x,ve.isStatement,ve.liftToBlock),a=g(),o=[];($(e)||function(e){return ve.isForStatement(e)&&!!e.incrementor&&Y(e.incrementor)}(e))&&(t.conditionVariable=ve.createUniqueName("inc"),o.push(ve.createIf(t.conditionVariable,ve.createStatement(ve.visitNode(e.incrementor,x,ve.isExpression)),ve.createStatement(ve.createAssignment(t.conditionVariable,ve.createTrue())))),$(e)&&o.push(ve.createIf(ve.createPrefix(53,ve.visitNode(e.condition,x,ve.isExpression)),ve.visitNode(ve.createBreak(),x,ve.isStatement))));ve.isBlock(i)?ve.addRange(o,i.statements):o.push(i);ae(t.loopOutParameters,1,1,o),ve.insertStatementsAfterStandardPrologue(o,a);o=ve.createBlock(o,!0);ve.isBlock(i)&&ve.setOriginalNode(o,i);i=0!=(262144&e.statement.transformFlags),e=0;t.containsLexicalThis&&(e|=8);i&&0!=(4&l)&&(e|=262144);e=ve.createVariableStatement(void 0,ve.setEmitFlags(ve.createVariableDeclarationList([ve.createVariableDeclaration(n,void 0,ve.setEmitFlags(ve.createFunctionExpression(void 0,i?ve.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=ve.createCall(e,void 0,ve.map(t.loopParameters,function(e){return e.name})),e=n?ve.createYield(ve.createToken(41),ve.setEmitFlags(e,8388608)):e;{var o;a?(i.push(ve.createExpressionStatement(e)),ae(t.loopOutParameters,1,0,i)):(a=ve.createUniqueName("state"),e=ve.createVariableStatement(void 0,ve.createVariableDeclarationList([ve.createVariableDeclaration(a,void 0,e)])),i.push(e),ae(t.loopOutParameters,1,0,i),8&t.nonLocalJumps&&(o=void 0,o=r?(r.nonLocalJumps|=8,ve.createReturn(a)):ve.createReturn(ve.createPropertyAccess(a,"value")),i.push(ve.createIf(ve.createBinary(ve.createTypeOf(a),36,ve.createLiteral("object")),o))),2&t.nonLocalJumps&&i.push(ve.createIf(ve.createBinary(a,36,ve.createLiteral("break")),ve.createBreak())),(t.labeledNonLocalBreaks||t.labeledNonLocalContinues)&&(o=[],se(t.labeledNonLocalBreaks,!0,a,r,o),se(t.labeledNonLocalContinues,!1,a,r,o),i.push(ve.createSwitch(a,ve.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(ve.createVariableDeclaration(t.argumentsName,void 0,ve.createIdentifier("arguments")))),t.thisName&&(r?r.thisName=t.thisName:(n=n||[]).push(ve.createVariableDeclaration(t.thisName,void 0,ve.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(ve.createVariableDeclaration(o))}}if(t.loopOutParameters.length){n=n||[];for(var s=0,c=t.loopOutParameters;s<c.length;s++){var u=c[s];n.push(ve.createVariableDeclaration(u.outParamName))}}t.conditionVariable&&(n=n||[]).push(ve.createVariableDeclaration(t.conditionVariable,void 0,ve.createFalse())),n&&e.push(ve.createVariableStatement(void 0,ve.createVariableDeclarationList(n)))})(s,o,c),i&&s.push(function(e,t){e=ve.createCall(e,void 0,[]),e=t?ve.createYield(ve.createToken(41),ve.setEmitFlags(e,8388608)):e;return ve.createStatement(e)}(i.functionName,i.containsYield));t=a?n?n(e,t,a.part,r):(a=re(e,i,ve.createBlock(a.part,!0)),ve.aggregateTransformFlags(a),ve.restoreEnclosingLabel(a,t,p&&z)):(e=re(e,i,ve.visitNode(e.statement,x,ve.isStatement,ve.liftToBlock)),ve.aggregateTransformFlags(e),ve.restoreEnclosingLabel(e,t,p&&z));return s.push(t),s}(r,n,t,i);return v(t,0,0),i}function V(e,t){return U(0,1280,e,t)}function K(e,t){return U(5056,3328,e,t)}function q(e,t){return U(3008,5376,e,t)}function W(e,t){return U(3008,5376,e,t,n.downlevelIteration?X:Q)}function H(e,t,r){var n,i,a,o=[],s=e.initializer;if(ve.isVariableDeclarationList(s)?(3&e.initializer.flags&&me(),(n=ve.firstOrUndefined(s.declarations))&&ve.isBindingPattern(n.name)?(i=ve.flattenDestructuringBinding(n,x,_,0,t),a=ve.setTextRange(ve.createVariableDeclarationList(i),e.initializer),ve.setOriginalNode(a,e.initializer),ve.setSourceMapRange(a,ve.createRange(i[0].pos,ve.last(i).end)),o.push(ve.createVariableStatement(void 0,a))):o.push(ve.setTextRange(ve.createVariableStatement(void 0,ve.setOriginalNode(ve.setTextRange(ve.createVariableDeclarationList([ve.createVariableDeclaration(n?n.name:ve.createTempVariable(void 0),void 0,t)]),ve.moveRangePos(s,-1)),s)),ve.moveRangeEnd(s,-1)))):(t=ve.createAssignment(s,t),ve.isDestructuringAssignment(t)?(ve.aggregateTransformFlags(t),o.push(ve.createExpressionStatement(R(t,!1)))):(t.end=s.end,o.push(ve.setTextRange(ve.createExpressionStatement(ve.visitNode(t,x,ve.isExpression)),ve.moveRangeEnd(s,-1))))),r)return G(ve.addRange(o,r));e=ve.visitNode(e.statement,x,ve.isStatement,ve.liftToBlock);return ve.isBlock(e)?ve.updateBlock(e,ve.setTextRange(ve.createNodeArray(ve.concatenate(o,e.statements)),e.statements)):(o.push(e),G(o))}function G(e){return ve.setEmitFlags(ve.createBlock(ve.createNodeArray(e),!0),432)}function Q(e,t,r){var n=ve.visitNode(e.expression,x,ve.isExpression),i=ve.createLoopVariable(),a=ve.isIdentifier(n)?ve.getGeneratedNameForNode(n):ve.createTempVariable(void 0);ve.setEmitFlags(n,48|ve.getEmitFlags(n));r=ve.setTextRange(ve.createFor(ve.setEmitFlags(ve.setTextRange(ve.createVariableDeclarationList([ve.setTextRange(ve.createVariableDeclaration(i,void 0,ve.createLiteral(0)),ve.moveRangePos(e.expression,-1)),ve.setTextRange(ve.createVariableDeclaration(a,void 0,n),e.expression)]),e.expression),2097152),ve.setTextRange(ve.createLessThan(i,ve.createPropertyAccess(a,"length")),e.expression),ve.setTextRange(ve.createPostfixIncrement(i),e.expression),H(e,ve.createElementAccess(a,i),r)),e);return ve.setEmitFlags(r,256),ve.setTextRange(r,e),ve.restoreEnclosingLabel(r,t,p&&z)}function X(e,t,r,n){var i=ve.visitNode(e.expression,x,ve.isExpression),a=ve.isIdentifier(i)?ve.getGeneratedNameForNode(i):ve.createTempVariable(void 0),o=ve.isIdentifier(i)?ve.getGeneratedNameForNode(a):ve.createTempVariable(void 0),s=ve.createUniqueName("e"),c=ve.getGeneratedNameForNode(s),u=ve.createTempVariable(void 0),l=ve.createValuesHelper(_,i,e.expression),i=ve.createCall(ve.createPropertyAccess(a,"next"),void 0,[]);m(s),m(u);l=1024&n?ve.inlineExpressions([ve.createAssignment(s,ve.createVoidZero()),l]):l,e=ve.setEmitFlags(ve.setTextRange(ve.createFor(ve.setEmitFlags(ve.setTextRange(ve.createVariableDeclarationList([ve.setTextRange(ve.createVariableDeclaration(a,void 0,l),e.expression),ve.createVariableDeclaration(o,void 0,i)]),e.expression),2097152),ve.createLogicalNot(ve.createPropertyAccess(o,"done")),ve.createAssignment(o,i),H(e,ve.createPropertyAccess(o,"value"),r)),e),256);return ve.createTry(ve.createBlock([ve.restoreEnclosingLabel(e,t,p&&z)]),ve.createCatchClause(ve.createVariableDeclaration(c),ve.setEmitFlags(ve.createBlock([ve.createExpressionStatement(ve.createAssignment(s,ve.createObjectLiteral([ve.createPropertyAssignment("error",c)])))]),1)),ve.createBlock([ve.createTry(ve.createBlock([ve.setEmitFlags(ve.createIf(ve.createLogicalAnd(ve.createLogicalAnd(o,ve.createLogicalNot(ve.createPropertyAccess(o,"done"))),ve.createAssignment(u,ve.createPropertyAccess(a,"return"))),ve.createExpressionStatement(ve.createFunctionCall(u,a,[]))),1)]),void 0,ve.setEmitFlags(ve.createBlock([ve.setEmitFlags(ve.createIf(s,ve.createThrow(ve.createPropertyAccess(s,"error"))),1)]),1))]))}function Y(e){return 0!=(131072&y.getNodeCheckFlags(e))}function Z(e){return ve.isForStatement(e)&&!!e.initializer&&Y(e.initializer)}function $(e){return ve.isForStatement(e)&&e.condition&&Y(e.condition)}function ee(e){return te(e)||Z(e)}function te(e){return 0!=(65536&y.getNodeCheckFlags(e))}function re(e,t,r){switch(e.kind){case 230:return c=t,u=r,l=(s=e).condition&&Y(s.condition),_=l||s.incrementor&&Y(s.incrementor),ve.updateFor(s,ve.visitNode(c?c.part:s.initializer,x,ve.isForInitializer),ve.visitNode(l?void 0:s.condition,x,ve.isExpression),ve.visitNode(_?void 0:s.incrementor,x,ve.isExpression),u);case 231:return a=e,o=r,ve.updateForIn(a,ve.visitNode(a.initializer,x,ve.isForInitializer),ve.visitNode(a.expression,x,ve.isExpression),o);case 232:return a=e,o=r,ve.updateForOf(a,void 0,ve.visitNode(a.initializer,x,ve.isForInitializer),ve.visitNode(a.expression,x,ve.isExpression),o);case 228:return n=e,i=r,ve.updateDo(n,i,ve.visitNode(n.expression,x,ve.isExpression));case 229:return i=e,n=r,ve.updateWhile(i,ve.visitNode(i.expression,x,ve.isExpression),n);default:return ve.Debug.failBadSyntaxKind(e,"IterationStatement expected")}var n,i,a,o,s,c,u,l,_}function ne(e){return ve.createVariableDeclaration(e.originalName,void 0,e.outParamName)}function ie(e,t){var r=0===t?e.outParamName:e.originalName,e=0===t?e.originalName:e.outParamName;return ve.createBinary(e,62,r)}function ae(e,t,r,n){for(var i=0,a=e;i<a.length;i++){var o=a[i];o.flags&t&&n.push(ve.createExpressionStatement(ie(o,r)))}}function oe(e,t,r,n){t?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=ve.createMap()),e.labeledNonLocalBreaks.set(r,n)):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=ve.createMap()),e.labeledNonLocalContinues.set(r,n))}function se(e,i,a,o,s){e&&e.forEach(function(e,t){var r,n=[];!o||o.labels&&o.labels.get(t)?(r=ve.createIdentifier(t),n.push(i?ve.createBreak(r):ve.createContinue(r))):(oe(o,i,t,e),n.push(ve.createReturn(a))),s.push(ve.createCaseClause(ve.createLiteral(e),n))})}function ce(e,t){if(8192&e.transformFlags||102===e.expression.kind||ve.isSuperProperty(ve.skipOuterExpressions(e.expression))){var r=ve.createCallBinding(e.expression,m),n=r.target,i=r.thisArg;102===e.expression.kind&&ve.setEmitFlags(i,4);r=void 0;return r=8192&e.transformFlags?ve.createFunctionApply(ve.visitNode(n,D,ve.isExpression),102===e.expression.kind?i:ve.visitNode(i,x,ve.isExpression),ue(e.arguments,!1,!1,!1)):ve.createFunctionCall(ve.visitNode(n,D,ve.isExpression),102===e.expression.kind?i:ve.visitNode(i,x,ve.isExpression),ve.visitNodes(e.arguments,x,ve.isExpression),e),102===e.expression.kind&&(i=ve.createLogicalOr(r,T()),r=t?ve.createAssignment(ve.createFileLevelUniqueName("_this"),i):i),ve.setOriginalNode(r,e)}return ve.visitEachChild(e,x,_)}function ue(e,t,i,a){var o=e.length,e=ve.flatten(ve.spanMap(e,de,function(e,t,r,n){return t(e,i,a&&n===o)}));if(n.downlevelIteration){if(1===e.length)if(_e(r=e[0],"___spread"))return e[0];return ve.createSpreadHelper(_,e)}if(1===e.length){var r=e[0];if(!t||(t=r,ve.isArrayLiteralExpression(t)&&ve.every(t.elements,le))||_e(r,"___spreadArrays"))return e[0]}return ve.createSpreadArraysHelper(_,e)}function le(e){return!ve.isOmittedExpression(e)}function _e(e,t){return ve.isCallExpression(e)&&ve.isIdentifier(e.expression)&&4096&ve.getEmitFlags(e.expression)&&e.expression.escapedText===t}function de(e){return ve.isSpreadElement(e)?t:pe}function t(e){return ve.map(e,fe)}function pe(e,t,r){return ve.createArrayLiteral(ve.visitNodes(ve.createNodeArray(e,r),x,ve.isExpression),t)}function fe(e){return ve.visitNode(e.expression,x,ve.isExpression)}function ge(e){return 8&l&&!e?ve.createPropertyAccess(ve.createFileLevelUniqueName("_super"),"prototype"):ve.createFileLevelUniqueName("_super")}function me(){0==(2&o)&&(o|=2,_.enableSubstitution(75))}function ye(){0==(1&o)&&(o|=1,_.enableSubstitution(104),_.enableEmitNotification(162),_.enableEmitNotification(161),_.enableEmitNotification(163),_.enableEmitNotification(164),_.enableEmitNotification(202),_.enableEmitNotification(201),_.enableEmitNotification(244))}function he(e,t){return ve.hasModifier(t,32)?ve.getInternalName(e):ve.createPropertyAccess(ve.getInternalName(e),"prototype")}},ve.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 (b.hasOwnProperty(p)) d[p] = b[p]; };\n                    return extendStatics(d, b);\n                };\n\n                return function (d, b) {\n                    extendStatics(d, b);\n                    function __() { this.constructor = d; }\n                    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n                };\n            })();"}}(ts=ts||{}),function(o){o.transformES5=function(e){var i,a,t=e.getCompilerOptions();1!==t.jsx&&3!==t.jsx||(i=e.onEmitNode,e.onEmitNode=function(e,t,r){switch(t.kind){case 268:case 269:case 267:var n=t.tagName;a[o.getOriginalNodeId(n)]=!0}i(e,t,r)},e.enableEmitNotification(268),e.enableEmitNotification(269),e.enableEmitNotification(267),a=[]);var r=e.onSubstituteNode;return e.onSubstituteNode=function(e,t){if(t.id&&a&&a[t.id])return r(e,t);{if(t=r(e,t),o.isPropertyAccessExpression(t))return function(e){if(o.isPrivateIdentifier(e.name))return e;var t=n(e.name);if(t)return o.setTextRange(o.createElementAccess(e.expression,t),e);return e}(t);if(o.isPropertyAssignment(t))return function(e){var t=o.isIdentifier(e.name)&&n(e.name);if(t)return o.updatePropertyAssignment(e,t,e.initializer);return e}(t)}return t},e.enableSubstitution(194),e.enableSubstitution(281),o.chainBundle(function(e){return e});function n(e){var t=e.originalKeywordKind||(o.nodeIsSynthesized(e)?o.stringToToken(o.idText(e)):void 0);if(void 0!==t&&77<=t&&t<=112)return o.setTextRange(o.createLiteral(e),e)}}}(ts=ts||{}),function(Ne){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",Ne.transformGenerators=function(m){var n,i,y,h,v,b,x,D,S,C,T=m.resumeLexicalEnvironment,k=m.endLexicalEnvironment,a=m.hoistFunctionDeclaration,l=m.hoistVariableDeclaration,e=m.getCompilerOptions(),o=Ne.getEmitScriptTarget(e),r=m.getEmitResolver(),s=m.onSubstituteNode;m.onSubstituteNode=function(e,t){return t=s(e,t),1!==e?t:function(e){if(Ne.isIdentifier(e))return function(e){if(!Ne.isGeneratedIdentifier(e)&&n&&n.has(Ne.idText(e))){var t=Ne.getOriginalNode(e);if(Ne.isIdentifier(t)&&t.parent){t=r.getReferencedValueDeclaration(t);if(t){t=i[Ne.getOriginalNodeId(t)];if(t){t=Ne.getMutableClone(t);return Ne.setSourceMapRange(t,e),Ne.setCommentRange(t,e),t}}}}return e}(e);return e}(t)};var E,N,A,F,P,w,I,O,M,L,R,B,j=1,J=0,z=0;return Ne.chainBundle(function(e){if(e.isDeclarationFile||0==(512&e.transformFlags))return e;e=Ne.visitEachChild(e,U,m);return Ne.addEmitHelpers(e,m.readEmitHelpers()),e});function U(e){var t=e.transformFlags;return h?function(e){switch(e.kind){case 228:return function(e){return h?(re(),e=Ne.visitEachChild(e,U,m),ie(),e):Ne.visitEachChild(e,U,m)}(e);case 229:return function(e){return h?(re(),e=Ne.visitEachChild(e,U,m),ie(),e):Ne.visitEachChild(e,U,m)}(e);case 237:return function(e){h&&Z({kind:2,isScript:!0,breakLabel:-1});e=Ne.visitEachChild(e,U,m),h&&ae();return e}(e);case 238:return function(e){h&&Z({kind:4,isScript:!0,labelText:Ne.idText(e.label),breakLabel:-1});e=Ne.visitEachChild(e,U,m),h&&oe();return e}(e);default:return c(e)}}(e):y?c(e):Ne.isFunctionLikeDeclaration(e)&&e.asteriskToken?function(e){switch(e.kind){case 244:return u(e);case 201:return _(e);default:return Ne.Debug.failBadSyntaxKind(e)}}(e):512&t?Ne.visitEachChild(e,U,m):e}function c(e){switch(e.kind){case 244:return u(e);case 201:return _(e);case 163:case 164:return t=e,r=y,n=h,h=y=!1,t=Ne.visitEachChild(t,U,m),y=r,h=n,t;case 225:return function(e){{if(!(262144&e.transformFlags)){if(1048576&Ne.getEmitFlags(e))return e;for(var t=0,r=e.declarationList.declarations;t<r.length;t++){var n=r[t];l(n.name)}var i=Ne.getInitializedVariables(e.declarationList);return 0!==i.length?Ne.setSourceMapRange(Ne.createExpressionStatement(Ne.inlineExpressions(Ne.map(i,q))),e):void 0}K(e.declarationList)}}(e);case 230:return function(e){h&&re();var t=e.initializer;if(t&&Ne.isVariableDeclarationList(t)){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];l(i.name)}t=Ne.getInitializedVariables(t);e=Ne.updateFor(e,0<t.length?Ne.inlineExpressions(Ne.map(t,q)):void 0,Ne.visitNode(e.condition,U,Ne.isExpression),Ne.visitNode(e.incrementor,U,Ne.isExpression),Ne.visitNode(e.statement,U,Ne.isStatement,Ne.liftToBlock))}else e=Ne.visitEachChild(e,U,m);h&&ie();return e}(e);case 231:return function(e){h&&re();var t=e.initializer;if(Ne.isVariableDeclarationList(t)){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];l(i.name)}e=Ne.updateForIn(e,t.declarations[0].name,Ne.visitNode(e.expression,U,Ne.isExpression),Ne.visitNode(e.statement,U,Ne.isStatement,Ne.liftToBlock))}else e=Ne.visitEachChild(e,U,m);h&&ie();return e}(e);case 234:return function(e){if(h){var t=_e(e.label&&Ne.idText(e.label));if(0<t)return ge(t,e)}return Ne.visitEachChild(e,U,m)}(e);case 233:return function(e){if(h){var t=de(e.label&&Ne.idText(e.label));if(0<t)return ge(t,e)}return Ne.visitEachChild(e,U,m)}(e);case 235:return t=e,function(e,t){return Ne.setTextRange(Ne.createReturn(Ne.createArrayLiteral(e?[fe(2),e]:[fe(2)])),t)}(Ne.visitNode(t.expression,U,Ne.isExpression),t);default:return 262144&e.transformFlags?function(e){switch(e.kind){case 209:return function(e){var t=Ne.getExpressionAssociativity(e);switch(t){case 0:return function(e){if(W(e.right)){if(Ne.isLogicalOperator(e.operatorToken.kind))return function(e){var t=X(),r=Q();he(r,Ne.visitNode(e.left,U,Ne.isExpression),e.left),(55===e.operatorToken.kind?xe:be)(t,r,e.left);return he(r,Ne.visitNode(e.right,U,Ne.isExpression),e.right),Y(t),r}(e);if(27===e.operatorToken.kind)return function(e){var t=[];return r(e.left),r(e.right),Ne.inlineExpressions(t);function r(e){Ne.isBinaryExpression(e)&&27===e.operatorToken.kind?(r(e.left),r(e.right)):(W(e)&&0<t.length&&(De(1,[Ne.createExpressionStatement(Ne.inlineExpressions(t))]),t=[]),t.push(Ne.visitNode(e,U,Ne.isExpression)))}}(e);var t=Ne.getMutableClone(e);return t.left=G(Ne.visitNode(e.left,U,Ne.isExpression)),t.right=Ne.visitNode(e.right,U,Ne.isExpression),t}return Ne.visitEachChild(e,U,m)}(e);case 1:return function(e){var t=e.left,r=e.right;if(W(r)){var n=void 0;switch(t.kind){case 194:n=Ne.updatePropertyAccess(t,G(Ne.visitNode(t.expression,U,Ne.isLeftHandSideExpression)),t.name);break;case 195:n=Ne.updateElementAccess(t,G(Ne.visitNode(t.expression,U,Ne.isLeftHandSideExpression)),G(Ne.visitNode(t.argumentExpression,U,Ne.isExpression)));break;default:n=Ne.visitNode(t,U,Ne.isExpression)}var i=e.operatorToken.kind;return Ne.isCompoundAssignment(i)?Ne.setTextRange(Ne.createAssignment(n,Ne.setTextRange(Ne.createBinary(G(n),Ne.getNonAssignmentOperatorForCompoundAssignment(i),Ne.visitNode(r,U,Ne.isExpression)),e)),e):Ne.updateBinary(e,n,Ne.visitNode(r,U,Ne.isExpression))}return Ne.visitEachChild(e,U,m)}(e);default:return Ne.Debug.assertNever(t)}}(e);case 210:return function(e){if(W(e.whenTrue)||W(e.whenFalse)){var t=X(),r=X(),n=Q();return xe(t,Ne.visitNode(e.condition,U,Ne.isExpression),e.condition),he(n,Ne.visitNode(e.whenTrue,U,Ne.isExpression),e.whenTrue),ve(r),Y(t),he(n,Ne.visitNode(e.whenFalse,U,Ne.isExpression),e.whenFalse),Y(r),n}return Ne.visitEachChild(e,U,m)}(e);case 212:return function(e){var t=X(),r=Ne.visitNode(e.expression,U,Ne.isExpression);e.asteriskToken?De(7,[0==(8388608&Ne.getEmitFlags(e.expression))?Ne.createValuesHelper(m,r,e):r],e):De(6,[r],e);return Y(t),function(e){return Ne.setTextRange(Ne.createCall(Ne.createPropertyAccess(F,"sent"),void 0,[]),e)}(e)}(e);case 192:return function(e){return p(e.elements,void 0,void 0,e.multiLine)}(e);case 193:return function(r){var e=r.properties,n=r.multiLine,t=H(e),i=Q();he(i,Ne.createObjectLiteral(Ne.visitNodes(e,U,Ne.isObjectLiteralElementLike,0,t),n));t=Ne.reduceLeft(e,function(e,t){W(t)&&0<e.length&&(ye(Ne.createExpressionStatement(Ne.inlineExpressions(e))),e=[]);t=Ne.createExpressionForObjectLiteralElementLike(r,t,i),t=Ne.visitNode(t,U,Ne.isExpression);t&&(n&&Ne.startOnNewLine(t),e.push(t));return e},[],t);return t.push(n?Ne.startOnNewLine(Ne.getMutableClone(i)):i),Ne.inlineExpressions(t)}(e);case 195:return function(e){if(W(e.argumentExpression)){var t=Ne.getMutableClone(e);return t.expression=G(Ne.visitNode(e.expression,U,Ne.isLeftHandSideExpression)),t.argumentExpression=Ne.visitNode(e.argumentExpression,U,Ne.isExpression),t}return Ne.visitEachChild(e,U,m)}(e);case 196:return function(e){if(Ne.isImportCall(e)||!Ne.forEach(e.arguments,W))return Ne.visitEachChild(e,U,m);var t=Ne.createCallBinding(e.expression,l,o,!0),r=t.target,t=t.thisArg;return Ne.setOriginalNode(Ne.createFunctionApply(G(Ne.visitNode(r,U,Ne.isLeftHandSideExpression)),t,p(e.arguments),e),e)}(e);case 197:return function(e){if(Ne.forEach(e.arguments,W)){var t=Ne.createCallBinding(Ne.createPropertyAccess(e.expression,"bind"),l),r=t.target,t=t.thisArg;return Ne.setOriginalNode(Ne.setTextRange(Ne.createNew(Ne.createFunctionApply(G(Ne.visitNode(r,U,Ne.isExpression)),t,p(e.arguments,Ne.createVoidZero())),void 0,[]),e),e)}return Ne.visitEachChild(e,U,m)}(e);default:return Ne.visitEachChild(e,U,m)}}(e):1049088&e.transformFlags?Ne.visitEachChild(e,U,m):e}var t,r,n}function u(e){var t,r;if(e.asteriskToken?e=Ne.setOriginalNode(Ne.setTextRange(Ne.createFunctionDeclaration(void 0,e.modifiers,void 0,e.name,void 0,Ne.visitParameterList(e.parameters,U,m),void 0,d(e.body)),e),e):(t=y,r=h,h=y=!1,e=Ne.visitEachChild(e,U,m),y=t,h=r),!y)return e;a(e)}function _(e){var t,r;return e.asteriskToken?e=Ne.setOriginalNode(Ne.setTextRange(Ne.createFunctionExpression(void 0,void 0,e.name,void 0,Ne.visitParameterList(e.parameters,U,m),void 0,d(e.body)),e),e):(t=y,r=h,h=y=!1,e=Ne.visitEachChild(e,U,m),y=t,h=r),e}function d(e){var t=[],r=y,n=h,i=v,a=b,o=x,s=D,c=S,u=C,l=j,_=E,d=N,p=A,f=F;h=!(y=!0),j=1,A=N=E=C=S=D=x=b=v=void 0,F=Ne.createTempVariable(void 0),T();var g=Ne.addPrologue(t,e.statements,!1,U);V(e.statements,g);g=function(){z=J=0,P=void 0,I=w=!1,O=void 0,M=void 0,L=void 0,R=void 0,B=void 0;var e=function(){if(E){for(var e=0;e<E.length;e++)!function(e){if(Te(e),function(e){if(v)for(;J<x.length&&b[J]<=e;J++){var t=v[J],r=x[J];switch(t.kind){case 0:0===r?(M=M||[],(L=L||[]).push(R),R=t):1===r&&(R=L.pop());break;case 1:0===r?(B=B||[]).push(t):1===r&&B.pop()}}}(e),!w){I=w=!1;var t=E[e];if(0!==t){if(10===t)return w=!0,ke(Ne.createReturn(Ne.createArrayLiteral([fe(7)]))),0;var r=N[e];if(1===t)return ke(r[0]),0;var n=A[e];switch(t){case 2:return function(e,t,r){ke(Ne.setTextRange(Ne.createExpressionStatement(Ne.createAssignment(e,t)),r))}(r[0],r[1],n),0;case 3:return function(e,t){w=!0,ke(Ne.setEmitFlags(Ne.setTextRange(Ne.createReturn(Ne.createArrayLiteral([fe(3),pe(e)])),t),384))}(r[0],n),0;case 4:return function(e,t,r){ke(Ne.setEmitFlags(Ne.createIf(t,Ne.setEmitFlags(Ne.setTextRange(Ne.createReturn(Ne.createArrayLiteral([fe(3),pe(e)])),r),384)),1))}(r[0],r[1],n),0;case 5:return function(e,t,r){ke(Ne.setEmitFlags(Ne.createIf(Ne.createLogicalNot(t),Ne.setEmitFlags(Ne.setTextRange(Ne.createReturn(Ne.createArrayLiteral([fe(3),pe(e)])),r),384)),1))}(r[0],r[1],n),0;case 6:return function(e,t){w=!0,ke(Ne.setEmitFlags(Ne.setTextRange(Ne.createReturn(Ne.createArrayLiteral(e?[fe(4),e]:[fe(4)])),t),384))}(r[0],n),0;case 7:return function(e,t){w=!0,ke(Ne.setEmitFlags(Ne.setTextRange(Ne.createReturn(Ne.createArrayLiteral([fe(5),e])),t),384))}(r[0],n),0;case 8:return Ee(r[0],n),0;case 9:(function(e,t){I=w=!0,ke(Ne.setTextRange(Ne.createThrow(e),t))})(r[0],n)}}}}(e);Se(E.length)}else Se(0);if(O){var t=Ne.createPropertyAccess(F,"label"),t=Ne.createSwitch(t,Ne.createCaseBlock(O));return[Ne.startOnNewLine(t)]}if(M)return M;return[]}();return function(e,t){return e.requestEmitHelper(Ne.generatorHelper),Ne.createCall(Ne.getUnscopedHelperName("__generator"),void 0,[Ne.createThis(),t])}(m,Ne.setEmitFlags(Ne.createFunctionExpression(void 0,void 0,void 0,void 0,[Ne.createParameter(void 0,void 0,void 0,F)],void 0,Ne.createBlock(e,0<e.length)),524288))}();return Ne.insertStatementsAfterStandardPrologue(t,k()),t.push(Ne.createReturn(g)),y=r,h=n,v=i,b=a,x=o,D=s,S=c,C=u,j=l,E=_,N=d,A=p,F=f,Ne.setTextRange(Ne.createBlock(t,e.multiLine),e)}function p(e,n,t,i){var a,r,o=H(e);0<o&&(a=Q(),r=Ne.visitNodes(e,U,Ne.isExpression,0,o),he(a,Ne.createArrayLiteral(n?__spreadArrays([n],r):r)),n=void 0);o=Ne.reduceLeft(e,function(e,t){{var r;W(t)&&0<e.length&&(r=void 0!==a,he(a=a||Q(),r?Ne.createArrayConcat(a,[Ne.createArrayLiteral(e,i)]):Ne.createArrayLiteral(n?__spreadArrays([n],e):e,i)),n=void 0,e=[])}return e.push(Ne.visitNode(t,U,Ne.isExpression)),e},[],o);return a?Ne.createArrayConcat(a,[Ne.createArrayLiteral(o,i)]):Ne.setTextRange(Ne.createArrayLiteral(n?__spreadArrays([n],o):o,i),t)}function V(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n<r;n++)g(e[n])}function f(e){Ne.isBlock(e)?V(e.statements):g(e)}function g(e){var t=h;h=h||W(e),function(e){switch(e.kind){case 223:return function(e){W(e)?V(e.statements):ye(Ne.visitNode(e,U,Ne.isStatement))}(e);case 226:return function(e){ye(Ne.visitNode(e,U,Ne.isStatement))}(e);case 227:return function(e){{var t,r;W(e)&&(W(e.thenStatement)||W(e.elseStatement))?(t=X(),r=e.elseStatement?X():void 0,xe(e.elseStatement?r:t,Ne.visitNode(e.expression,U,Ne.isExpression),e.expression),f(e.thenStatement),e.elseStatement&&(ve(t),Y(r),f(e.elseStatement)),Y(t)):ye(Ne.visitNode(e,U,Ne.isStatement))}}(e);case 228:return function(e){{var t,r;W(e)?(t=X(),r=X(),ne(t),Y(r),f(e.statement),Y(t),be(r,Ne.visitNode(e.expression,U,Ne.isExpression)),ie()):ye(Ne.visitNode(e,U,Ne.isStatement))}}(e);case 229:return function(e){{var t,r;W(e)?(t=X(),r=ne(t),Y(t),xe(r,Ne.visitNode(e.expression,U,Ne.isExpression)),f(e.statement),ve(t),ie()):ye(Ne.visitNode(e,U,Ne.isStatement))}}(e);case 230:return function(e){{var t,r,n,i;W(e)?(t=X(),r=X(),n=ne(r),e.initializer&&(i=e.initializer,Ne.isVariableDeclarationList(i)?K(i):ye(Ne.setTextRange(Ne.createExpressionStatement(Ne.visitNode(i,U,Ne.isExpression)),i))),Y(t),e.condition&&xe(n,Ne.visitNode(e.condition,U,Ne.isExpression)),f(e.statement),Y(r),e.incrementor&&ye(Ne.setTextRange(Ne.createExpressionStatement(Ne.visitNode(e.incrementor,U,Ne.isExpression)),e.incrementor)),ve(t),ie()):ye(Ne.visitNode(e,U,Ne.isStatement))}}(e);case 231:return function(e){if(W(e)){var t=Q(),r=Q(),n=Ne.createLoopVariable(),i=e.initializer;l(n),he(t,Ne.createArrayLiteral()),ye(Ne.createForIn(r,Ne.visitNode(e.expression,U,Ne.isExpression),Ne.createExpressionStatement(Ne.createCall(Ne.createPropertyAccess(t,"push"),void 0,[r])))),he(n,Ne.createLiteral(0));var a=X(),o=X(),r=ne(o);Y(a),xe(r,Ne.createLessThan(n,Ne.createPropertyAccess(t,"length")));r=void 0;if(Ne.isVariableDeclarationList(i)){for(var s=0,c=i.declarations;s<c.length;s++){var u=c[s];l(u.name)}r=Ne.getSynthesizedClone(i.declarations[0].name)}else r=Ne.visitNode(i,U,Ne.isExpression),Ne.Debug.assert(Ne.isLeftHandSideExpression(r));he(r,Ne.createElementAccess(t,n)),f(e.statement),Y(o),ye(Ne.createExpressionStatement(Ne.createPostfixIncrement(n))),ve(a),ie()}else ye(Ne.visitNode(e,U,Ne.isStatement))}(e);case 233:return function(e){var t=de(e.label?Ne.idText(e.label):void 0);0<t?ve(t,e):ye(e)}(e);case 234:return function(e){var t=_e(e.label?Ne.idText(e.label):void 0);0<t?ve(t,e):ye(e)}(e);case 235:return function(t){!function(e){De(8,[e],t)}(Ne.visitNode(t.expression,U,Ne.isExpression))}(e);case 236:return function(e){W(e)?(function(e){var t=X(),r=X();Y(t),Z({kind:1,expression:e,startLabel:t,endLabel:r})}(G(Ne.visitNode(e.expression,U,Ne.isExpression))),f(e.statement),Ne.Debug.assert(1===te()),Y($().endLabel)):ye(Ne.visitNode(e,U,Ne.isStatement))}(e);case 237:return function(e){if(W(e.caseBlock)){for(var t=e.caseBlock,r=t.clauses.length,n=function(){var e=X();return Z({kind:2,isScript:!1,breakLabel:e}),e}(),i=G(Ne.visitNode(e.expression,U,Ne.isExpression)),a=[],o=-1,s=0;s<r;s++){var c=t.clauses[s];a.push(X()),278===c.kind&&-1===o&&(o=s)}for(var u=0,l=[];u<r;){for(var _=0,s=u;s<r;s++)if(277===(c=t.clauses[s]).kind){if(W(c.expression)&&0<l.length)break;l.push(Ne.createCaseClause(Ne.visitNode(c.expression,U,Ne.isExpression),[ge(a[s],c.expression)]))}else _++;l.length&&(ye(Ne.createSwitch(i,Ne.createCaseBlock(l))),u+=l.length,l=[]),0<_&&(u+=_,_=0)}ve(0<=o?a[o]:n);for(s=0;s<r;s++)Y(a[s]),V(t.clauses[s].statements);ae()}else ye(Ne.visitNode(e,U,Ne.isStatement))}(e);case 238:return function(e){W(e)?(function(e){var t=X();Z({kind:4,isScript:!1,labelText:e,breakLabel:t})}(Ne.idText(e.label)),f(e.statement),oe()):ye(Ne.visitNode(e,U,Ne.isStatement))}(e);case 239:return function(t){!function(e){De(9,[e],t)}(Ne.visitNode(t.expression,U,Ne.isExpression))}(e);case 240:return function(e){W(e)?(function(){var e=X(),t=X();Y(e),Z({kind:0,state:0,startLabel:e,endLabel:t}),me()}(),f(e.tryBlock),e.catchClause&&(function(e){var t;Ne.Debug.assert(0===te()),Ne.isGeneratedIdentifier(e.name)?(t=e.name,l(e.name)):(r=Ne.idText(e.name),t=Q(r),n||(n=Ne.createMap(),i=[],m.enableSubstitution(75)),n.set(r,!0),i[Ne.getOriginalNodeId(e)]=t);var r=ee();Ne.Debug.assert(r.state<1),ve(r.endLabel),Y(e=X()),r.state=1,r.catchVariable=t,r.catchLabel=e,he(t,Ne.createCall(Ne.createPropertyAccess(F,"sent"),void 0,[])),me()}(e.catchClause.variableDeclaration),f(e.catchClause.block)),e.finallyBlock&&(function(){Ne.Debug.assert(0===te());var e=ee();Ne.Debug.assert(e.state<2),ve(e.endLabel);var t=X();Y(t),e.state=2,e.finallyLabel=t}(),f(e.finallyBlock)),function(){Ne.Debug.assert(0===te());var e=$();e.state<2?ve(e.endLabel):De(10),Y(e.endLabel),me(),e.state=3}()):ye(Ne.visitEachChild(e,U,m))}(e);default:ye(Ne.visitNode(e,U,Ne.isStatement))}}(e),h=t}function K(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t],i=Ne.getSynthesizedClone(n.name);Ne.setCommentRange(i,n.name),l(i)}for(var a=Ne.getInitializedVariables(e),o=a.length,s=0,c=[];s<o;){for(var u=s;u<o;u++){if(W((n=a[u]).initializer)&&0<c.length)break;c.push(q(n))}c.length&&(ye(Ne.createExpressionStatement(Ne.inlineExpressions(c))),s+=c.length,c=[])}}function q(e){return Ne.setSourceMapRange(Ne.createAssignment(Ne.setSourceMapRange(Ne.getSynthesizedClone(e.name),e.name),Ne.visitNode(e.initializer,U,Ne.isExpression)),e)}function W(e){return!!e&&0!=(262144&e.transformFlags)}function H(e){for(var t=e.length,r=0;r<t;r++)if(W(e[r]))return r;return-1}function G(e){if(Ne.isGeneratedIdentifier(e)||4096&Ne.getEmitFlags(e))return e;var t=Ne.createTempVariable(l);return he(t,e,e),t}function Q(e){e=e?Ne.createUniqueName(e):Ne.createTempVariable(void 0);return l(e),e}function X(){var e=j;return j++,(S=S||[])[e]=-1,e}function Y(e){Ne.Debug.assert(void 0!==S,"No labels were defined."),S[e]=E?E.length:0}function Z(e){v||(v=[],x=[],b=[],D=[]);var t=x.length;return x[t]=0,b[t]=E?E.length:0,v[t]=e,D.push(e),t}function $(){var e=ee();if(void 0===e)return Ne.Debug.fail("beginBlock was never called.");var t=x.length;return x[t]=1,b[t]=E?E.length:0,v[t]=e,D.pop(),e}function ee(){return Ne.lastOrUndefined(D)}function te(){var e=ee();return e&&e.kind}function re(){Z({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function ne(e){var t=X();return Z({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function ie(){Ne.Debug.assert(3===te());var e=$(),t=e.breakLabel;e.isScript||Y(t)}function ae(){Ne.Debug.assert(2===te());var e=$(),t=e.breakLabel;e.isScript||Y(t)}function oe(){Ne.Debug.assert(4===te());var e=$();e.isScript||Y(e.breakLabel)}function se(e){return 2===e.kind||3===e.kind}function ce(e){return 4===e.kind}function ue(e){return 3===e.kind}function le(e,t){for(var r=t;0<=r;r--){var n=D[r];if(!ce(n))break;if(n.labelText===e)return 1}}function _e(e){if(D)if(e)for(var t=D.length-1;0<=t;t--){if(ce(r=D[t])&&r.labelText===e)return r.breakLabel;if(se(r)&&le(e,t-1))return r.breakLabel}else for(var r,t=D.length-1;0<=t;t--)if(se(r=D[t]))return r.breakLabel;return 0}function de(e){if(D)if(e){for(var t=D.length-1;0<=t;t--)if(ue(r=D[t])&&le(e,t-1))return r.continueLabel}else for(var r,t=D.length-1;0<=t;t--)if(ue(r=D[t]))return r.continueLabel;return 0}function pe(e){if(void 0!==e&&0<e){void 0===C&&(C=[]);var t=Ne.createLiteral(-1);return void 0===C[e]?C[e]=[t]:C[e].push(t),t}return Ne.createOmittedExpression()}function fe(e){var t=Ne.createLiteral(e);return Ne.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 ge(e,t){return Ne.Debug.assertLessThan(0,e,"Invalid label"),Ne.setTextRange(Ne.createReturn(Ne.createArrayLiteral([fe(3),pe(e)])),t)}function me(){De(0)}function ye(e){e?De(1,[e]):me()}function he(e,t,r){De(2,[e,t],r)}function ve(e,t){De(3,[e],t)}function be(e,t,r){De(4,[e,t],r)}function xe(e,t,r){De(5,[e,t],r)}function De(e,t,r){void 0===E&&(E=[],N=[],A=[]),void 0===S&&Y(X());var n=E.length;E[n]=e,N[n]=t,A[n]=r}function Se(e){!function(e){if(!I)return!0;if(!S||!C)return!1;for(var t=0;t<S.length;t++)if(S[t]===e&&C[t])return!0;return!1}(e)||(Te(e),Ee(B=void 0,void 0)),M&&O&&Ce(!1),function(){if(void 0!==C&&void 0!==P)for(var e=0;e<P.length;e++){var t=P[e];if(void 0!==t)for(var r=0,n=t;r<n.length;r++){var i=n[r],i=C[i];if(void 0!==i)for(var a=0,o=i;a<o.length;a++)o[a].text=String(e)}}}()}function Ce(e){if(O=O||[],M){if(B)for(var t=B.length-1;0<=t;t--){var r=B[t];M=[Ne.createWith(r.expression,Ne.createBlock(M))]}var n,i,a,o;R&&(n=R.startLabel,i=R.catchLabel,a=R.finallyLabel,o=R.endLabel,M.unshift(Ne.createExpressionStatement(Ne.createCall(Ne.createPropertyAccess(Ne.createPropertyAccess(F,"trys"),"push"),void 0,[Ne.createArrayLiteral([pe(n),pe(i),pe(a),pe(o)])]))),R=void 0),e&&M.push(Ne.createExpressionStatement(Ne.createAssignment(Ne.createPropertyAccess(F,"label"),Ne.createLiteral(z+1))))}O.push(Ne.createCaseClause(Ne.createLiteral(z),M||[])),M=void 0}function Te(e){if(S)for(var t=0;t<S.length;t++)S[t]===e&&(M&&(Ce(!w),I=w=!1,z++),void 0===P&&(P=[]),void 0===P[z]?P[z]=[t]:P[z].push(t))}function ke(e){e&&(M?M.push(e):M=[e])}function Ee(e,t){I=w=!0,ke(Ne.setEmitFlags(Ne.setTextRange(Ne.createReturn(Ne.createArrayLiteral(e?[fe(2),e]:[fe(2)])),t),384))}},Ne.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            };'}}(ts=ts||{}),function(q){q.transformModule=function(u){var n=u.startLexicalEnvironment,i=u.endLexicalEnvironment,a=u.hoistVariableDeclaration,d=u.getCompilerOptions(),p=u.getEmitResolver(),f=u.getEmitHost(),s=q.getEmitScriptTarget(d),c=q.getEmitModuleKind(d),r=u.onSubstituteNode,o=u.onEmitNode;u.onSubstituteNode=function(e,t){if((t=r(e,t)).id&&l[t.id])return t;{if(1===e)return function(e){switch(e.kind){case 75:return V(e);case 209: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=K(e.left);if(t){for(var r=e,n=0,i=t;n<i.length;n++){var a=i[n];l[q.getNodeId(r)]=!0,r=z(a,r,e)}return r}}return e}(e);case 208:case 207:return function(e){if((45===e.operator||46===e.operator)&&q.isIdentifier(e.operand)&&!q.isGeneratedIdentifier(e.operand)&&!q.isLocalName(e.operand)&&!q.isDeclarationNameOfEnumOrNamespace(e.operand)){var t=K(e.operand);if(t){for(var r=208===e.kind?q.setTextRange(q.createBinary(e.operand,q.createToken(45===e.operator?63:64),q.createLiteral(1)),e):e,n=0,i=t;n<i.length;n++){var a=i[n];l[q.getNodeId(r)]=!0,r=z(a,r)}return r}}return e}(e)}return e}(t);if(q.isShorthandPropertyAssignment(t))return function(e){var t=e.name,r=V(t);if(r===t)return e;if(e.objectAssignmentInitializer){var n=q.createAssignment(r,e.objectAssignmentInitializer);return q.setTextRange(q.createPropertyAssignment(t,n),e)}return q.setTextRange(q.createPropertyAssignment(t,r),e)}(t)}return t},u.onEmitNode=function(e,t,r){290===t.kind?(g=t,m=y[q.getOriginalNodeId(g)],l=[],o(e,t,r),l=m=g=void 0):o(e,t,r)},u.enableSubstitution(75),u.enableSubstitution(209),u.enableSubstitution(207),u.enableSubstitution(208),u.enableSubstitution(282),u.enableEmitNotification(290);var g,m,l,_,y=[],h=[];return q.chainBundle(function(e){if(e.isDeclarationFile||!(q.isEffectiveExternalModule(e,d)||2097152&e.transformFlags||q.isJsonSourceFile(e)&&q.hasJsonModuleEmitEnabled(d)&&(d.out||d.outFile)))return e;g=e,m=q.collectExternalModuleInfo(e,p,d),y[q.getOriginalNodeId(e)]=m;e=function(e){switch(e){case q.ModuleKind.AMD:return b;case q.ModuleKind.UMD:return x;default:return t}}(c)(e);return m=g=void 0,_=!1,q.aggregateTransformFlags(e)});function v(){return!(m.exportEquals||!q.isExternalModule(g))}function t(e){n();var t=[],r=q.getStrictOptionValue(d,"alwaysStrict")||!d.noImplicitUseStrict&&q.isExternalModule(g),r=q.addPrologue(t,e.statements,r&&!q.isJsonSourceFile(e),k);v()&&q.append(t,J()),q.length(m.exportedNames)&&q.append(t,q.createExpressionStatement(q.reduceLeft(m.exportedNames,function(e,t){return q.createAssignment(q.createPropertyAccess(q.createIdentifier("exports"),q.createIdentifier(q.idText(t))),e)},q.createVoidZero()))),q.append(t,q.visitNode(m.externalHelpersImportDeclaration,k,q.isStatement)),q.addRange(t,q.visitNodes(e.statements,k,q.isStatement,r)),T(t,!1),q.insertStatementsAfterStandardPrologue(t,i());e=q.updateSourceFileNode(e,q.setTextRange(q.createNodeArray(t),e.statements));return q.addEmitHelpers(e,u.readEmitHelpers()),e}function b(e){var t=q.createIdentifier("define"),r=q.tryGetModuleNameFromFile(e,f,d),n=q.isJsonSourceFile(e)&&e,i=D(e,!0),a=i.aliasedModuleNames,o=i.unaliasedModuleNames,i=i.importAliasNames,e=q.updateSourceFileNode(e,q.setTextRange(q.createNodeArray([q.createExpressionStatement(q.createCall(t,void 0,__spreadArrays(r?[r]:[],[q.createArrayLiteral(n?q.emptyArray:__spreadArrays([q.createLiteral("require"),q.createLiteral("exports")],a,o)),n?n.statements.length?n.statements[0].expression:q.createObjectLiteral():q.createFunctionExpression(void 0,void 0,void 0,void 0,__spreadArrays([q.createParameter(void 0,void 0,void 0,"require"),q.createParameter(void 0,void 0,void 0,"exports")],i),void 0,C(e))])))]),e.statements));return q.addEmitHelpers(e,u.readEmitHelpers()),e}function x(e){var t=D(e,!1),r=t.aliasedModuleNames,n=t.unaliasedModuleNames,i=t.importAliasNames,t=q.tryGetModuleNameFromFile(e,f,d),n=q.createFunctionExpression(void 0,void 0,void 0,void 0,[q.createParameter(void 0,void 0,void 0,"factory")],void 0,q.setTextRange(q.createBlock([q.createIf(q.createLogicalAnd(q.createTypeCheck(q.createIdentifier("module"),"object"),q.createTypeCheck(q.createPropertyAccess(q.createIdentifier("module"),"exports"),"object")),q.createBlock([q.createVariableStatement(void 0,[q.createVariableDeclaration("v",void 0,q.createCall(q.createIdentifier("factory"),void 0,[q.createIdentifier("require"),q.createIdentifier("exports")]))]),q.setEmitFlags(q.createIf(q.createStrictInequality(q.createIdentifier("v"),q.createIdentifier("undefined")),q.createExpressionStatement(q.createAssignment(q.createPropertyAccess(q.createIdentifier("module"),"exports"),q.createIdentifier("v")))),1)]),q.createIf(q.createLogicalAnd(q.createTypeCheck(q.createIdentifier("define"),"function"),q.createPropertyAccess(q.createIdentifier("define"),"amd")),q.createBlock([q.createExpressionStatement(q.createCall(q.createIdentifier("define"),void 0,__spreadArrays(t?[t]:[],[q.createArrayLiteral(__spreadArrays([q.createLiteral("require"),q.createLiteral("exports")],r,n)),q.createIdentifier("factory")])))])))],!0),void 0)),e=q.updateSourceFileNode(e,q.setTextRange(q.createNodeArray([q.createExpressionStatement(q.createCall(n,void 0,[q.createFunctionExpression(void 0,void 0,void 0,void 0,__spreadArrays([q.createParameter(void 0,void 0,void 0,"require"),q.createParameter(void 0,void 0,void 0,"exports")],i),void 0,C(e))]))]),e.statements));return q.addEmitHelpers(e,u.readEmitHelpers()),e}function D(e,t){for(var r=[],n=[],i=[],a=0,o=e.amdDependencies;a<o.length;a++){var s=o[a];s.name?(r.push(q.createLiteral(s.path)),i.push(q.createParameter(void 0,void 0,void 0,s.name))):n.push(q.createLiteral(s.path))}for(var c=0,u=m.externalImports;c<u.length;c++){var l=u[c],_=q.getExternalModuleNameLiteral(l,g,f,p,d),l=q.getLocalNameForExternalImport(l,g);_&&(t&&l?(q.setEmitFlags(l,4),r.push(_),i.push(q.createParameter(void 0,void 0,void 0,l))):n.push(_))}return{aliasedModuleNames:r,unaliasedModuleNames:n,importAliasNames:i}}function S(e){if(!q.isImportEqualsDeclaration(e)&&!q.isExportDeclaration(e)&&q.getExternalModuleNameLiteral(e,g,f,p,d)){var t=q.getLocalNameForExternalImport(e,g),e=F(e,t);if(e!==t)return q.createExpressionStatement(q.createAssignment(t,e))}}function C(e){n();var t=[],r=q.addPrologue(t,e.statements,!d.noImplicitUseStrict,k);v()&&q.append(t,J()),q.length(m.exportedNames)&&q.append(t,q.createExpressionStatement(q.reduceLeft(m.exportedNames,function(e,t){return q.createAssignment(q.createPropertyAccess(q.createIdentifier("exports"),q.createIdentifier(q.idText(t))),e)},q.createVoidZero()))),q.append(t,q.visitNode(m.externalHelpersImportDeclaration,k,q.isStatement)),c===q.ModuleKind.AMD&&q.addRange(t,q.mapDefined(m.externalImports,S)),q.addRange(t,q.visitNodes(e.statements,k,q.isStatement,r)),T(t,!0),q.insertStatementsAfterStandardPrologue(t,i());t=q.createBlock(t,!0);return _&&q.addEmitHelper(t,H),t}function T(e,t){var r,n;!m.exportEquals||(r=q.visitNode(m.exportEquals.expression,E))&&(t?(n=q.createReturn(r),q.setTextRange(n,m.exportEquals),q.setEmitFlags(n,1920)):(n=q.createExpressionStatement(q.createAssignment(q.createPropertyAccess(q.createIdentifier("module"),"exports"),r)),q.setTextRange(n,m.exportEquals),q.setEmitFlags(n,1536)),e.push(n))}function k(e){switch(e.kind){case 254:return function(e){var t,r=q.getNamespaceDeclarationNode(e);if(c!==q.ModuleKind.AMD){if(!e.importClause)return q.setOriginalNode(q.setTextRange(q.createExpressionStatement(P(e)),e),e);var n=[];r&&!q.isDefaultImport(e)?n.push(q.createVariableDeclaration(q.getSynthesizedClone(r.name),void 0,F(e,P(e)))):(n.push(q.createVariableDeclaration(q.getGeneratedNameForNode(e),void 0,F(e,P(e)))),r&&q.isDefaultImport(e)&&n.push(q.createVariableDeclaration(q.getSynthesizedClone(r.name),void 0,q.getGeneratedNameForNode(e)))),t=q.append(t,q.setOriginalNode(q.setTextRange(q.createVariableStatement(void 0,q.createVariableDeclarationList(n,2<=s?2:0)),e),e))}else r&&q.isDefaultImport(e)&&(t=q.append(t,q.createVariableStatement(void 0,q.createVariableDeclarationList([q.setOriginalNode(q.setTextRange(q.createVariableDeclaration(q.getSynthesizedClone(r.name),void 0,q.getGeneratedNameForNode(e)),e),e)],2<=s?2:0))));I(e)?(r=q.getOriginalNodeId(e),h[r]=O(h[r],e)):t=O(t,e);return q.singleOrMany(t)}(e);case 253:return function(e){var t;q.Debug.assert(q.isExternalModuleImportEqualsDeclaration(e),"import= for internal module references should be handled in an earlier transformer."),c!==q.ModuleKind.AMD?t=q.hasModifier(e,1)?q.append(t,q.setOriginalNode(q.setTextRange(q.createExpressionStatement(z(e.name,P(e))),e),e)):q.append(t,q.setOriginalNode(q.setTextRange(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(q.getSynthesizedClone(e.name),void 0,P(e))],2<=s?2:0)),e),e)):q.hasModifier(e,1)&&(t=q.append(t,q.setOriginalNode(q.setTextRange(q.createExpressionStatement(z(q.getExportName(e),q.getLocalName(e))),e),e)));{var r;I(e)?(r=q.getOriginalNodeId(e),h[r]=M(h[r],e)):t=M(t,e)}return q.singleOrMany(t)}(e);case 260:return function(e){if(!e.moduleSpecifier)return;var t=q.getGeneratedNameForNode(e);{if(e.exportClause&&q.isNamedExports(e.exportClause)){var r=[];c!==q.ModuleKind.AMD&&r.push(q.setOriginalNode(q.setTextRange(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(t,void 0,P(e))])),e),e));for(var n=0,i=e.exportClause.elements;n<i.length;n++){var a,o=i[n];0===s?r.push(q.setOriginalNode(q.setTextRange(q.createExpressionStatement(function(e,t,r,n){return e.requestEmitHelper(q.createBindingHelper),q.createCall(q.getUnscopedHelperName("__createBinding"),void 0,__spreadArrays([q.createIdentifier("exports"),t,r],n?[n]:[]))}(u,t,q.createLiteral(o.propertyName||o.name),o.propertyName?q.createLiteral(o.name):void 0)),o),o)):(a=q.createPropertyAccess(t,o.propertyName||o.name),r.push(q.setOriginalNode(q.setTextRange(q.createExpressionStatement(z(q.getExportName(o),a,void 0,!0)),o),o)))}return q.singleOrMany(r)}return e.exportClause?((r=[]).push(q.setOriginalNode(q.setTextRange(q.createExpressionStatement(z(q.getSynthesizedClone(e.exportClause.name),c!==q.ModuleKind.AMD?function(e,t){if(!d.esModuleInterop||67108864&q.getEmitFlags(e))return t;if(q.getExportNeedsImportStarHelper(e))return u.requestEmitHelper(q.importStarHelper),q.createCall(q.getUnscopedHelperName("__importStar"),void 0,[t]);return t}(e,P(e)):q.createIdentifier(q.idText(e.exportClause.name)))),e),e)),q.singleOrMany(r)):q.setOriginalNode(q.setTextRange(q.createExpressionStatement(function(e,t){return e.requestEmitHelper(W),q.createCall(q.getUnscopedHelperName("__exportStar"),void 0,[t,q.createIdentifier("exports")])}(u,c!==q.ModuleKind.AMD?P(e):t)),e),e)}}(e);case 259:return function(e){if(e.isExportEquals)return;var t,r=e.original;r&&I(r)?(r=q.getOriginalNodeId(e),h[r]=j(h[r],q.createIdentifier("default"),q.visitNode(e.expression,E),e,!0)):t=j(t,q.createIdentifier("default"),q.visitNode(e.expression,E),e,!0);return q.singleOrMany(t)}(e);case 225:return function(e){var t,r,n;if(q.hasModifier(e,1)){for(var i=void 0,a=0,o=e.declarationList.declarations;a<o.length;a++){var s=o[a];q.isIdentifier(s.name)&&q.isLocalName(s.name)?(i=i||q.visitNodes(e.modifiers,U,q.isModifier),r=q.append(r,s)):s.initializer&&(n=q.append(n,function(e){return q.isBindingPattern(e.name)?q.flattenDestructuringAssignment(q.visitNode(e,E),void 0,u,0,!1,w):q.createAssignment(q.setTextRange(q.createPropertyAccess(q.createIdentifier("exports"),e.name),e.name),e.initializer?q.visitNode(e.initializer,E):q.createVoidZero())}(s)))}r&&(t=q.append(t,q.updateVariableStatement(e,i,q.updateVariableDeclarationList(e.declarationList,r)))),n&&(t=q.append(t,q.setOriginalNode(q.setTextRange(q.createExpressionStatement(q.inlineExpressions(n)),e),e)))}else t=q.append(t,q.visitEachChild(e,E,u));{var c;I(e)?(c=q.getOriginalNodeId(e),h[c]=L(h[c],e)):t=L(t,e)}return q.singleOrMany(t)}(e);case 244:return function(e){var t;t=q.hasModifier(e,1)?q.append(t,q.setOriginalNode(q.setTextRange(q.createFunctionDeclaration(void 0,q.visitNodes(e.modifiers,U,q.isModifier),e.asteriskToken,q.getDeclarationName(e,!0,!0),void 0,q.visitNodes(e.parameters,E),void 0,q.visitEachChild(e.body,E,u)),e),e)):q.append(t,q.visitEachChild(e,E,u));{var r;I(e)?(r=q.getOriginalNodeId(e),h[r]=R(h[r],e)):t=R(t,e)}return q.singleOrMany(t)}(e);case 245:return function(e){var t;t=q.hasModifier(e,1)?q.append(t,q.setOriginalNode(q.setTextRange(q.createClassDeclaration(void 0,q.visitNodes(e.modifiers,U,q.isModifier),q.getDeclarationName(e,!0,!0),void 0,q.visitNodes(e.heritageClauses,E),q.visitNodes(e.members,E)),e),e)):q.append(t,q.visitEachChild(e,E,u));{var r;I(e)?(r=q.getOriginalNodeId(e),h[r]=R(h[r],e)):t=R(t,e)}return q.singleOrMany(t)}(e);case 328:return function(e){{var t;I(e)&&225===e.original.kind&&(t=q.getOriginalNodeId(e),h[t]=L(h[t],e.original))}return e}(e);case 329:return function(e){var t=q.getOriginalNodeId(e),r=h[t];if(r)return delete h[t],q.append(r,e);return e}(e);default:return q.visitEachChild(e,E,u)}}function E(e){return 2097152&e.transformFlags||1024&e.transformFlags?q.isImportCall(e)?function(e){var t=q.visitNode(q.firstOrUndefined(e.arguments),E),r=!!(4096&e.transformFlags);switch(d.module){case q.ModuleKind.AMD:return N(t,r);case q.ModuleKind.UMD:return function(e,t){{if(_=!0,q.isSimpleCopiableExpression(e)){var r=q.isGeneratedIdentifier(e)?e:q.isStringLiteral(e)?q.createLiteral(e):q.setEmitFlags(q.setTextRange(q.getSynthesizedClone(e),e),1536);return q.createConditional(q.createIdentifier("__syncRequire"),A(e,t),N(r,t))}r=q.createTempVariable(a);return q.createComma(q.createAssignment(r,e),q.createConditional(q.createIdentifier("__syncRequire"),A(r,t),N(r,t)))}}(t,r);case q.ModuleKind.CommonJS:default:return A(t,r)}}(e):q.isDestructuringAssignment(e)?function(e){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 281:if(e(i.initializer))return!0;break;case 282:if(e(i.name))return!0;break;case 283:if(e(i.expression))return!0;break;case 161:case 163:case 164: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(K(t))>(q.isExportName(t)?1:0);return!1}(e.left))return q.flattenDestructuringAssignment(e,E,u,0,!1,w);return q.visitEachChild(e,E,u)}(e):q.visitEachChild(e,E,u):e}function N(e,t){var r=q.createUniqueName("resolve"),n=q.createUniqueName("reject"),i=[q.createParameter(void 0,void 0,void 0,r),q.createParameter(void 0,void 0,void 0,n)],n=q.createBlock([q.createExpressionStatement(q.createCall(q.createIdentifier("require"),void 0,[q.createArrayLiteral([e||q.createOmittedExpression()]),r,n]))]);2<=s?a=q.createArrowFunction(void 0,void 0,i,void 0,void 0,n):(a=q.createFunctionExpression(void 0,void 0,void 0,void 0,i,void 0,n),t&&q.setEmitFlags(a,8));var a=q.createNew(q.createIdentifier("Promise"),void 0,[a]);return d.esModuleInterop?(u.requestEmitHelper(q.importStarHelper),q.createCall(q.createPropertyAccess(a,q.createIdentifier("then")),void 0,[q.getUnscopedHelperName("__importStar")])):a}function A(e,t){var r,n=q.createCall(q.createPropertyAccess(q.createIdentifier("Promise"),"resolve"),void 0,[]),e=q.createCall(q.createIdentifier("require"),void 0,e?[e]:[]);return d.esModuleInterop&&(u.requestEmitHelper(q.importStarHelper),e=q.createCall(q.getUnscopedHelperName("__importStar"),void 0,[e])),2<=s?r=q.createArrowFunction(void 0,void 0,[],void 0,void 0,e):(r=q.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,q.createBlock([q.createReturn(e)])),t&&q.setEmitFlags(r,8)),q.createCall(q.createPropertyAccess(n,"then"),void 0,[r])}function F(e,t){return!d.esModuleInterop||67108864&q.getEmitFlags(e)?t:q.getImportNeedsImportStarHelper(e)?(u.requestEmitHelper(q.importStarHelper),q.createCall(q.getUnscopedHelperName("__importStar"),void 0,[t])):q.getImportNeedsImportDefaultHelper(e)?(u.requestEmitHelper(q.importDefaultHelper),q.createCall(q.getUnscopedHelperName("__importDefault"),void 0,[t])):t}function P(e){var t=q.getExternalModuleNameLiteral(e,g,f,p,d),e=[];return t&&e.push(t),q.createCall(q.createIdentifier("require"),void 0,e)}function w(e,t,r){var n=K(e);if(n){for(var i=q.isExportName(e)?t:q.createAssignment(e,t),a=0,o=n;a<o.length;a++){var s=o[a];q.setEmitFlags(i,4),i=z(s,i,r)}return i}return q.createAssignment(e,t)}function I(e){return 0!=(4194304&q.getEmitFlags(e))}function O(e,t){if(m.exportEquals)return e;t=t.importClause;if(!t)return e;t.name&&(e=B(e,t));var r=t.namedBindings;if(r)switch(r.kind){case 256:e=B(e,r);break;case 257:for(var n=0,i=r.elements;n<i.length;n++)e=B(e,i[n],!0)}return e}function M(e,t){return m.exportEquals?e:B(e,t)}function L(e,t){if(m.exportEquals)return e;for(var r=0,n=t.declarationList.declarations;r<n.length;r++)e=function e(t,r){if(m.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=B(t,r));return t}(e,n[r]);return e}function R(e,t){return m.exportEquals||(q.hasModifier(t,1)&&(e=j(e,q.hasModifier(t,512)?q.createIdentifier("default"):q.getDeclarationName(t),q.getLocalName(t),t)),t.name&&(e=B(e,t))),e}function B(e,t,r){var n=q.getDeclarationName(t),t=m.exportSpecifiers.get(q.idText(n));if(t)for(var i=0,a=t;i<a.length;i++){var o=a[i];e=j(e,o.name,n,o.name,void 0,r)}return e}function j(e,t,r,n,i,a){return e=q.append(e,function(e,t,r,n,i){r=q.setTextRange(q.createExpressionStatement(z(e,t,void 0,i)),r);q.startOnNewLine(r),n||q.setEmitFlags(r,1536);return r}(t,r,n,i,a))}function J(){var e=0===s?q.createExpressionStatement(z(q.createIdentifier("__esModule"),q.createLiteral(!0))):q.createExpressionStatement(q.createCall(q.createPropertyAccess(q.createIdentifier("Object"),"defineProperty"),void 0,[q.createIdentifier("exports"),q.createLiteral("__esModule"),q.createObjectLiteral([q.createPropertyAssignment("value",q.createLiteral(!0))])]));return q.setEmitFlags(e,1048576),e}function z(e,t,r,n){return q.setTextRange(n&&0!==s?q.createCall(q.createPropertyAccess(q.createIdentifier("Object"),"defineProperty"),void 0,[q.createIdentifier("exports"),q.createLiteral(e),q.createObjectLiteral([q.createPropertyAssignment("enumerable",q.createLiteral(!0)),q.createPropertyAssignment("get",q.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,q.createBlock([q.createReturn(t)])))])]):q.createAssignment(q.createPropertyAccess(q.createIdentifier("exports"),q.getSynthesizedClone(e)),t),r)}function U(e){switch(e.kind){case 89:case 84:return}return e}function V(e){if(4096&q.getEmitFlags(e)){var t=q.getExternalHelpersModuleName(g);return t?q.createPropertyAccess(t,e):e}if(!q.isGeneratedIdentifier(e)&&!q.isLocalName(e)){var r=p.getReferencedExportContainer(e,q.isExportName(e));if(r&&290===r.kind)return q.setTextRange(q.createPropertyAccess(q.createIdentifier("exports"),q.getSynthesizedClone(e)),e);t=p.getReferencedImportDeclaration(e);if(t){if(q.isImportClause(t))return q.setTextRange(q.createPropertyAccess(q.getGeneratedNameForNode(t.parent),q.createIdentifier("default")),e);if(q.isImportSpecifier(t)){r=t.propertyName||t.name;return q.setTextRange(q.createPropertyAccess(q.getGeneratedNameForNode(t.parent.parent.parent),q.getSynthesizedClone(r)),e)}}}return e}function K(e){if(!q.isGeneratedIdentifier(e)){e=p.getReferencedImportDeclaration(e)||p.getReferencedValueDeclaration(e);if(e)return m&&m.exportedBindings[q.getOriginalNodeId(e)]}}},q.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:"\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));"};var W={name:"typescript:export-star",importName:"__exportStar",scoped:!(q.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\nvar __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});'}),dependencies:[q.createBindingHelper],priority:2,text:'\n            var __exportStar = (this && this.__exportStar) || function(m, exports) {\n                for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\n            };'},H={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n            var __syncRequire = typeof module === "object" && typeof module.exports === "object";'};q.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[q.createBindingHelper,q.setModuleDefaultHelper],priority:2,text:'\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};'},q.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { "default": mod };\n};'}}(ts=ts||{}),function(H){H.transformSystemModule=function(h){var o=h.startLexicalEnvironment,s=h.endLexicalEnvironment,v=h.hoistVariableDeclaration,u=h.getCompilerOptions(),l=h.getEmitResolver(),_=h.getEmitHost(),r=h.onSubstituteNode,i=h.onEmitNode;h.onSubstituteNode=function(e,t){if(function(e){return d&&e.id&&d[e.id]}(t=r(e,t)))return t;{if(1===e)return function(e){switch(e.kind){case 75:return function(e){if(4096&H.getEmitFlags(e)){var t=H.getExternalHelpersModuleName(y);return t?H.createPropertyAccess(t,e):e}if(!H.isGeneratedIdentifier(e)&&!H.isLocalName(e)){t=l.getReferencedImportDeclaration(e);if(t){if(H.isImportClause(t))return H.setTextRange(H.createPropertyAccess(H.getGeneratedNameForNode(t.parent),H.createIdentifier("default")),e);if(H.isImportSpecifier(t))return H.setTextRange(H.createPropertyAccess(H.getGeneratedNameForNode(t.parent.parent.parent),H.getSynthesizedClone(t.propertyName||t.name)),e)}}return e}(e);case 209:return function(e){if(H.isAssignmentOperator(e.operatorToken.kind)&&H.isIdentifier(e.left)&&!H.isGeneratedIdentifier(e.left)&&!H.isLocalName(e.left)&&!H.isDeclarationNameOfEnumOrNamespace(e.left)){var t=q(e.left);if(t){for(var r=e,n=0,i=t;n<i.length;n++){var a=i[n];r=j(a,W(r))}return r}}return e}(e);case 207:case 208:return function(e){if((45===e.operator||46===e.operator)&&H.isIdentifier(e.operand)&&!H.isGeneratedIdentifier(e.operand)&&!H.isLocalName(e.operand)&&!H.isDeclarationNameOfEnumOrNamespace(e.operand)){var t=q(e.operand);if(t){for(var r=208===e.kind?H.setTextRange(H.createPrefix(e.operator,e.operand),e):e,n=0,i=t;n<i.length;n++){var a=i[n];r=j(a,W(r))}return 208===e.kind&&(r=45===e.operator?H.createSubtract(W(r),H.createLiteral(1)):H.createAdd(W(r),H.createLiteral(1))),r}}return e}(e);case 219:return function(e){if(H.isImportMeta(e))return H.createPropertyAccess(c,H.createIdentifier("meta"));return e}(e)}return e}(t);if(4===e)return function(e){if(282===e.kind)return function(e){var t=e.name;if(!H.isGeneratedIdentifier(t)&&!H.isLocalName(t)){var r=l.getReferencedImportDeclaration(t);if(r){if(H.isImportClause(r))return H.setTextRange(H.createPropertyAssignment(H.getSynthesizedClone(t),H.createPropertyAccess(H.getGeneratedNameForNode(r.parent),H.createIdentifier("default"))),e);if(H.isImportSpecifier(r))return H.setTextRange(H.createPropertyAssignment(H.getSynthesizedClone(t),H.createPropertyAccess(H.getGeneratedNameForNode(r.parent.parent.parent),H.getSynthesizedClone(r.propertyName||r.name))),e)}}return e}(e);return e}(t)}return t},h.onEmitNode=function(e,t,r){{var n;290===t.kind?(n=H.getOriginalNodeId(t),y=t,g=p[n],b=f[n],d=m[n],c=C[n],d&&delete m[n],i(e,t,r),d=c=b=g=y=void 0):i(e,t,r)}},h.enableSubstitution(75),h.enableSubstitution(282),h.enableSubstitution(209),h.enableSubstitution(207),h.enableSubstitution(208),h.enableSubstitution(219),h.enableEmitNotification(290);var y,g,b,c,x,D,d,p=[],S=[],f=[],m=[],C=[];return H.chainBundle(function(e){if(e.isDeclarationFile||!(H.isEffectiveExternalModule(e,u)||2097152&e.transformFlags))return e;var t=H.getOriginalNodeId(e);D=y=e,g=p[t]=H.collectExternalModuleInfo(e,l,u),b=H.createUniqueName("exports"),f[t]=b,c=C[t]=H.createUniqueName("context");var r=function(e){for(var t=H.createMap(),r=[],n=0,i=e;n<i.length;n++){var a,o,s=i[n],c=H.getExternalModuleNameLiteral(s,y,_,l,u);c&&(a=c.text,void 0!==(o=t.get(a))?r[o].externalImports.push(s):(t.set(a,r.length),r.push({name:c,externalImports:[s]})))}return r}(g.externalImports),n=function(e,t){var r=[];o();var n=H.getStrictOptionValue(u,"alwaysStrict")||!u.noImplicitUseStrict&&H.isExternalModule(y),i=H.addPrologue(r,e.statements,n,k);r.push(H.createVariableStatement(void 0,H.createVariableDeclarationList([H.createVariableDeclaration("__moduleName",void 0,H.createLogicalAnd(c,H.createPropertyAccess(c,"id")))]))),H.visitNode(g.externalHelpersImportDeclaration,k,H.isStatement);n=H.visitNodes(e.statements,k,H.isStatement,i);H.addRange(r,x),H.insertStatementsAfterStandardPrologue(r,s());i=function(e){if(!g.hasExportStarsToExportValues)return;if(!g.exportedNames&&0===g.exportSpecifiers.size){for(var t=!1,r=0,n=g.externalImports;r<n.length;r++)if(260===(_=n[r]).kind&&_.exportClause){t=!0;break}if(!t){var i=T(void 0);return e.push(i),i.name}}var a=[];if(g.exportedNames)for(var o=0,s=g.exportedNames;o<s.length;o++){var c=s[o];"default"!==c.escapedText&&a.push(H.createPropertyAssignment(H.createLiteral(c),H.createTrue()))}for(var u=0,l=g.externalImports;u<l.length;u++){var _=l[u];if(260===_.kind&&_.exportClause)if(H.isNamedExports(_.exportClause))for(var d=0,p=_.exportClause.elements;d<p.length;d++){var f=p[d];a.push(H.createPropertyAssignment(H.createLiteral(H.idText(f.name||f.propertyName)),H.createTrue()))}else a.push(H.createPropertyAssignment(H.createLiteral(H.idText(_.exportClause.name)),H.createTrue()))}i=H.createUniqueName("exportedNames");e.push(H.createVariableStatement(void 0,H.createVariableDeclarationList([H.createVariableDeclaration(i,void 0,H.createObjectLiteral(a,!0))])));i=T(i);return e.push(i),i.name}(r),e=524288&e.transformFlags?H.createModifiersFromModifierFlags(256):void 0,n=H.createObjectLiteral([H.createPropertyAssignment("setters",function(e,t){for(var r=[],n=0,i=t;n<i.length;n++){for(var a=i[n],o=H.forEach(a.externalImports,function(e){return H.getLocalNameForExternalImport(e,y)}),s=o?H.getGeneratedNameForNode(o):H.createUniqueName(""),c=[],u=0,l=a.externalImports;u<l.length;u++){var _=l[u],d=H.getLocalNameForExternalImport(_,y);switch(_.kind){case 254:if(!_.importClause)break;case 253:H.Debug.assert(void 0!==d),c.push(H.createExpressionStatement(H.createAssignment(d,s)));break;case 260:if(H.Debug.assert(void 0!==d),_.exportClause)if(H.isNamedExports(_.exportClause)){for(var p=[],f=0,g=_.exportClause.elements;f<g.length;f++){var m=g[f];p.push(H.createPropertyAssignment(H.createLiteral(H.idText(m.name)),H.createElementAccess(s,H.createLiteral(H.idText(m.propertyName||m.name)))))}c.push(H.createExpressionStatement(H.createCall(b,void 0,[H.createObjectLiteral(p,!0)])))}else c.push(H.createExpressionStatement(H.createCall(b,void 0,[H.createLiteral(H.idText(_.exportClause.name)),s])));else c.push(H.createExpressionStatement(H.createCall(e,void 0,[s])))}}r.push(H.createFunctionExpression(void 0,void 0,void 0,void 0,[H.createParameter(void 0,void 0,void 0,s)],void 0,H.createBlock(c,!0)))}return H.createArrayLiteral(r,!0)}(i,t)),H.createPropertyAssignment("execute",H.createFunctionExpression(e,void 0,void 0,void 0,[],void 0,H.createBlock(n,!0)))]);return n.multiLine=!0,r.push(H.createReturn(n)),H.createBlock(r,!0)}(e,r),i=H.createFunctionExpression(void 0,void 0,void 0,void 0,[H.createParameter(void 0,void 0,void 0,b),H.createParameter(void 0,void 0,void 0,c)],void 0,n),a=H.tryGetModuleNameFromFile(e,_,u),r=H.createArrayLiteral(H.map(r,function(e){return e.name})),e=H.setEmitFlags(H.updateSourceFileNode(e,H.setTextRange(H.createNodeArray([H.createExpressionStatement(H.createCall(H.createPropertyAccess(H.createIdentifier("System"),"register"),void 0,a?[a,r,i]:[r,i]))]),e.statements)),1024);u.outFile||u.out||H.moveEmitHelpers(e,n,function(e){return!e.scoped});d&&(m[t]=d,d=void 0);return D=x=c=b=g=y=void 0,H.aggregateTransformFlags(e)});function T(e){var t=H.createUniqueName("exportStar"),r=H.createIdentifier("m"),n=H.createIdentifier("n"),i=H.createIdentifier("exports"),a=H.createStrictInequality(n,H.createLiteral("default"));return e&&(a=H.createLogicalAnd(a,H.createLogicalNot(H.createCall(H.createPropertyAccess(e,"hasOwnProperty"),void 0,[n])))),H.createFunctionDeclaration(void 0,void 0,void 0,t,void 0,[H.createParameter(void 0,void 0,void 0,r)],void 0,H.createBlock([H.createVariableStatement(void 0,H.createVariableDeclarationList([H.createVariableDeclaration(i,void 0,H.createObjectLiteral([]))])),H.createForIn(H.createVariableDeclarationList([H.createVariableDeclaration(n,void 0)]),r,H.createBlock([H.setEmitFlags(H.createIf(a,H.createExpressionStatement(H.createAssignment(H.createElementAccess(i,n),H.createElementAccess(r,n)))),1)])),H.createExpressionStatement(H.createCall(b,void 0,[i]))],!0))}function k(e){switch(e.kind){case 254:return function(e){var t;e.importClause&&v(H.getLocalNameForExternalImport(e,y));{var r;P(e)?(r=H.getOriginalNodeId(e),S[r]=w(S[r],e)):t=w(t,e)}return H.singleOrMany(t)}(e);case 253:return function(e){var t;{var r;H.Debug.assert(H.isExternalModuleImportEqualsDeclaration(e),"import= for internal module references should be handled in an earlier transformer."),v(H.getLocalNameForExternalImport(e,y)),P(e)?(r=H.getOriginalNodeId(e),S[r]=I(S[r],e)):t=I(t,e)}return H.singleOrMany(t)}(e);case 260:return t=e,void H.Debug.assertIsDefined(t);case 259:return function(e){if(e.isExportEquals)return;var t=H.visitNode(e.expression,U,H.isExpression),r=e.original;{if(!r||!P(r))return B(H.createIdentifier("default"),t,!0);e=H.getOriginalNodeId(e);S[e]=R(S[e],H.createIdentifier("default"),t,!0)}}(e);default:return J(e)}var t}function E(e){if(H.isBindingPattern(e.name))for(var t=0,r=e.name.elements;t<r.length;t++){var n=r[t];H.isOmittedExpression(n)||E(n)}else v(H.getSynthesizedClone(e.name))}function N(e){return 0==(2097152&H.getEmitFlags(e))&&(290===D.kind||0==(3&H.getOriginalNode(e).flags))}function A(e,t){t=t?n:a;return H.isBindingPattern(e.name)?H.flattenDestructuringAssignment(e,U,h,0,!1,t):e.initializer?t(e.name,H.visitNode(e.initializer,U,H.isExpression)):e.name}function n(e,t,r){return F(e,t,r,!0)}function a(e,t,r){return F(e,t,r,!1)}function F(e,t,r,n){return v(H.getSynthesizedClone(e)),n?j(e,W(H.setTextRange(H.createAssignment(e,t),r))):W(H.setTextRange(H.createAssignment(e,t),r))}function P(e){return 0!=(4194304&H.getEmitFlags(e))}function w(e,t){if(g.exportEquals)return e;t=t.importClause;if(!t)return e;t.name&&(e=L(e,t));var r=t.namedBindings;if(r)switch(r.kind){case 256:e=L(e,r);break;case 257:for(var n=0,i=r.elements;n<i.length;n++)e=L(e,i[n])}return e}function I(e,t){return g.exportEquals?e:L(e,t)}function O(e,t,r){if(g.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(g.exportEquals)return t;if(H.isBindingPattern(r.name))for(var i=0,a=r.name.elements;i<a.length;i++){var o=a[i];H.isOmittedExpression(o)||(t=e(t,o,n))}else{var s;H.isGeneratedIdentifier(r.name)||(s=void 0,n&&(t=R(t,r.name,H.getLocalName(r)),s=H.idText(r.name)),t=L(t,r,s))}return t}(e,a,r))}return e}function M(e,t){return g.exportEquals||(H.hasModifier(t,1)&&(e=R(e,r=H.hasModifier(t,512)?H.createLiteral("default"):t.name,H.getLocalName(t)),r=H.getTextOfIdentifierOrLiteral(r)),t.name&&(e=L(e,t,r))),e;var r}function L(e,t,r){if(g.exportEquals)return e;var n=H.getDeclarationName(t),t=g.exportSpecifiers.get(H.idText(n));if(t)for(var i=0,a=t;i<a.length;i++){var o=a[i];o.name.escapedText!==r&&(e=R(e,o.name,n))}return e}function R(e,t,r,n){return e=H.append(e,B(t,r,n))}function B(e,t,r){t=H.createExpressionStatement(j(e,t));return H.startOnNewLine(t),r||H.setEmitFlags(t,1536),t}function j(e,t){e=H.isIdentifier(e)?H.createLiteral(e):e;return H.setEmitFlags(t,1536|H.getEmitFlags(t)),H.setCommentRange(H.createCall(b,void 0,[e,t]),t)}function J(e){switch(e.kind){case 225:return function(e){if(!N(e.declarationList))return H.visitNode(e,U,H.isStatement);for(var t,r,n,i=H.hasModifier(e,1),a=P(e),o=0,s=e.declarationList.declarations;o<s.length;o++){var c=s[o];c.initializer?t=H.append(t,A(c,i&&!a)):E(c)}return t&&(r=H.append(r,H.setTextRange(H.createExpressionStatement(H.inlineExpressions(t)),e))),a?(n=H.getOriginalNodeId(e),S[n]=O(S[n],e,i)):r=O(r,e,!1),H.singleOrMany(r)}(e);case 244:return m=e,x=H.hasModifier(m,1)?H.append(x,H.updateFunctionDeclaration(m,m.decorators,H.visitNodes(m.modifiers,K,H.isModifier),m.asteriskToken,H.getDeclarationName(m,!0,!0),void 0,H.visitNodes(m.parameters,U,H.isParameterDeclaration),void 0,H.visitNode(m.body,U,H.isBlock))):H.append(x,H.visitEachChild(m,U,h)),void(P(m)?(y=H.getOriginalNodeId(m),S[y]=M(S[y],m)):x=M(x,m));case 245:return p=e,g=H.getLocalName(p),v(g),f=H.append(f,H.setTextRange(H.createExpressionStatement(H.createAssignment(g,H.setTextRange(H.createClassExpression(void 0,p.name,void 0,H.visitNodes(p.heritageClauses,U,H.isHeritageClause),H.visitNodes(p.members,U,H.isClassElement)),p))),p)),P(p)?(g=H.getOriginalNodeId(p),S[g]=M(S[g],p)):f=M(f,p),H.singleOrMany(f);case 230:return g=D,D=p=e,p=H.updateFor(p,p.initializer&&z(p.initializer),H.visitNode(p.condition,U,H.isExpression),H.visitNode(p.incrementor,U,H.isExpression),H.visitNode(p.statement,J,H.isStatement)),D=g,p;case 231:return d=D,D=_=e,_=H.updateForIn(_,z(_.initializer),H.visitNode(_.expression,U,H.isExpression),H.visitNode(_.statement,J,H.isStatement,H.liftToBlock)),D=d,_;case 232:return d=D,D=_=e,_=H.updateForOf(_,_.awaitModifier,z(_.initializer),H.visitNode(_.expression,U,H.isExpression),H.visitNode(_.statement,J,H.isStatement,H.liftToBlock)),D=d,_;case 228:return l=e,H.updateDo(l,H.visitNode(l.statement,J,H.isStatement,H.liftToBlock),H.visitNode(l.expression,U,H.isExpression));case 229:return l=e,H.updateWhile(l,H.visitNode(l.expression,U,H.isExpression),H.visitNode(l.statement,J,H.isStatement,H.liftToBlock));case 238:return u=e,H.updateLabel(u,u.label,H.visitNode(u.statement,J,H.isStatement,H.liftToBlock));case 236:return u=e,H.updateWith(u,H.visitNode(u.expression,U,H.isExpression),H.visitNode(u.statement,J,H.isStatement,H.liftToBlock));case 237:return c=e,H.updateSwitch(c,H.visitNode(c.expression,U,H.isExpression),H.visitNode(c.caseBlock,J,H.isCaseBlock));case 251:return c=D,D=s=e,s=H.updateCaseBlock(s,H.visitNodes(s.clauses,J,H.isCaseOrDefaultClause)),D=c,s;case 277:return s=e,H.updateCaseClause(s,H.visitNode(s.expression,U,H.isExpression),H.visitNodes(s.statements,J,H.isStatement));case 278:return o=e,H.visitEachChild(o,J,h);case 240:return o=e,H.visitEachChild(o,J,h);case 280:return a=D,D=i=e,i=H.updateCatchClause(i,i.variableDeclaration,H.visitNode(i.block,J,H.isBlock)),D=a,i;case 223:return a=D,D=i=e,i=H.visitEachChild(i,J,h),D=a,i;case 328:return P(t=e)&&225===t.original.kind&&(r=H.getOriginalNodeId(t),n=H.hasModifier(t.original,1),S[r]=O(S[r],t.original,n)),t;case 329:return r=e,n=H.getOriginalNodeId(r),(t=S[n])?(delete S[n],H.append(t,r)):(n=H.getOriginalNode(r),H.isModuleOrEnumDeclaration(n)?H.append(L(t,n),r):r);default:return U(e)}var t,r,n,i,a,o,s,c,u,l,_,d,p,f,g,m,y}function z(e){if(a=e,H.isVariableDeclarationList(a)&&N(a)){for(var t=void 0,r=0,n=e.declarations;r<n.length;r++){var i=n[r],t=H.append(t,A(i,!1));i.initializer||E(i)}return t?H.inlineExpressions(t):H.createOmittedExpression()}return H.visitEachChild(e,J,h);var a}function U(e){return H.isDestructuringAssignment(e)?function(e){if(V(e.left))return H.flattenDestructuringAssignment(e,U,h,0,!0);return H.visitEachChild(e,U,h)}(e):H.isImportCall(e)?(t=e,H.createCall(H.createPropertyAccess(c,H.createIdentifier("import")),void 0,H.some(t.arguments)?[H.visitNode(t.arguments[0],U)]:[])):1024&e.transformFlags||2097152&e.transformFlags?H.visitEachChild(e,U,h):e;var t}function V(e){if(H.isAssignmentExpression(e,!0))return V(e.left);if(H.isSpreadElement(e))return V(e.expression);if(H.isObjectLiteralExpression(e))return H.some(e.properties,V);if(H.isArrayLiteralExpression(e))return H.some(e.elements,V);if(H.isShorthandPropertyAssignment(e))return V(e.name);if(H.isPropertyAssignment(e))return V(e.initializer);if(H.isIdentifier(e)){e=l.getReferencedExportContainer(e);return void 0!==e&&290===e.kind}return!1}function K(e){switch(e.kind){case 89:case 84:return}return e}function q(e){var t,r;return H.isGeneratedIdentifier(e)||(r=l.getReferencedImportDeclaration(e)||l.getReferencedValueDeclaration(e))&&((e=l.getReferencedExportContainer(e,!1))&&290===e.kind&&(t=H.append(t,H.getDeclarationName(r))),t=H.addRange(t,g&&g.exportedBindings[H.getOriginalNodeId(r)])),t}function W(e){return void 0===d&&(d=[]),d[H.getNodeId(e)]=!0,e}}}(ts=ts||{}),function(c){c.transformECMAScriptModule=function(i){var n,a=i.getCompilerOptions(),o=i.onEmitNode,r=i.onSubstituteNode;return i.onEmitNode=function(e,t,r){c.isSourceFile(t)?((c.isExternalModule(t)||a.isolatedModules)&&a.importHelpers&&(n=c.createMap()),o(e,t,r),n=void 0):o(e,t,r)},i.onSubstituteNode=function(e,t){if(t=r(e,t),n&&c.isIdentifier(t)&&4096&c.getEmitFlags(t))return function(e){var t=c.idText(e),e=n.get(t);e||n.set(t,e=c.createFileLevelUniqueName(t));return e}(t);return t},i.enableEmitNotification(290),i.enableSubstitution(75),c.chainBundle(function(e){if(e.isDeclarationFile)return e;if(c.isExternalModule(e)||a.isolatedModules){var t=c.createExternalHelpersImportDeclarationIfNeeded(e,a);if(t){var r=[],n=c.addPrologue(r,e.statements);return c.append(r,t),c.addRange(r,c.visitNodes(e.statements,s,c.isStatement,n)),c.updateSourceFileNode(e,c.setTextRange(c.createNodeArray(r),e.statements))}return c.visitEachChild(e,s,i)}return e});function s(e){switch(e.kind){case 253:return;case 259:return(t=e).isExportEquals?void 0:t;case 260:return function(e){if(void 0!==a.module&&a.module>c.ModuleKind.ES2015)return e;if(!e.exportClause||!c.isNamespaceExport(e.exportClause)||!e.moduleSpecifier)return e;var t=e.exportClause.name,r=c.getGeneratedNameForNode(t),n=c.createImportDeclaration(void 0,void 0,c.createImportClause(void 0,c.createNamespaceImport(r)),e.moduleSpecifier);c.setOriginalNode(n,e.exportClause);t=c.createExportDeclaration(void 0,void 0,c.createNamedExports([c.createExportSpecifier(r,t)]));return c.setOriginalNode(t,e),[n,t]}(e)}var t;return e}}}(ts=ts||{}),function(n){function e(r){return n.isVariableDeclaration(r)||n.isPropertyDeclaration(r)||n.isPropertySignature(r)||n.isPropertyAccessExpression(r)||n.isBindingElement(r)||n.isConstructorDeclaration(r)?e:n.isSetAccessor(r)||n.isGetAccessor(r)?function(e){e=164===r.kind?n.hasModifier(r,32)?e.errorModuleName?n.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:e.errorModuleName?n.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:n.hasModifier(r,32)?e.errorModuleName?2===e.accessibility?n.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:e.errorModuleName?2===e.accessibility?n.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:e,errorNode:r.name,typeName:r.name}}:n.isConstructSignatureDeclaration(r)||n.isCallSignatureDeclaration(r)||n.isMethodDeclaration(r)||n.isMethodSignature(r)||n.isFunctionDeclaration(r)||n.isIndexSignatureDeclaration(r)?function(e){var t;switch(r.kind){case 166: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 165: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 167: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 161:case 160:t=n.hasModifier(r,32)?e.errorModuleName?2===e.accessibility?n.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:n.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:n.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:245===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 244: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.hasModifier(r.parent,8)?e:function(e){e=function(e){switch(r.parent.kind){case 162: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 166:case 171: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 165: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 167: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 161:case 160:return n.hasModifier(r.parent,32)?e.errorModuleName?2===e.accessibility?n.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:245===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 244:case 170: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 164:case 163:return e.errorModuleName?2===e.accessibility?n.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return n.Debug.fail("Unknown parent for parameter: "+n.SyntaxKind[r.parent.kind])}}(e);return void 0!==e?{diagnosticMessage:e,errorNode:r,typeName:r.name}:void 0}:n.isTypeParameterDeclaration(r)?function(){var e;switch(r.parent.kind){case 245:e=n.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 246:e=n.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 186:e=n.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 171:case 166:e=n.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 165:e=n.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 161:case 160:e=n.hasModifier(r.parent,32)?n.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:245===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 170:case 244:e=n.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 247: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=245===r.parent.parent.kind?n.isHeritageClause(r.parent)&&113===r.parent.token?n.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:n.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:n.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:e,errorNode:r,typeName:n.getNameOfDeclaration(r.parent.parent)}}:n.isImportEqualsDeclaration(r)?function(){return{diagnosticMessage:n.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:r,typeName:r.name}}:n.isTypeAliasDeclaration(r)?function(){return{diagnosticMessage:n.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:r.type,typeName:r.name}}:n.Debug.assertNever(r,"Attempted to set a declaration diagnostic context for unhandled node kind: "+n.SyntaxKind[r.kind]);function e(e){e=e,e=242===r.kind||191===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:159===r.kind||194===r.kind||158===r.kind||156===r.kind&&n.hasModifier(r.parent,8)?n.hasModifier(r,32)?e.errorModuleName?2===e.accessibility?n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:245===r.parent.kind||156===r.kind?e.errorModuleName?2===e.accessibility?n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:e.errorModuleName?n.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0;return void 0!==e?{diagnosticMessage:e,errorNode:r,typeName:r.name}:void 0}}n.canProduceDiagnostics=function(e){return n.isVariableDeclaration(e)||n.isPropertyDeclaration(e)||n.isPropertySignature(e)||n.isBindingElement(e)||n.isSetAccessor(e)||n.isGetAccessor(e)||n.isConstructSignatureDeclaration(e)||n.isCallSignatureDeclaration(e)||n.isMethodDeclaration(e)||n.isMethodSignature(e)||n.isFunctionDeclaration(e)||n.isParameter(e)||n.isTypeParameterDeclaration(e)||n.isExpressionWithTypeArguments(e)||n.isImportEqualsDeclaration(e)||n.isTypeAliasDeclaration(e)||n.isConstructorDeclaration(e)||n.isIndexSignatureDeclaration(e)||n.isPropertyAccessExpression(e)},n.createGetSymbolAccessibilityDiagnosticForNodeName=function(t){return n.isSetAccessor(t)||n.isGetAccessor(t)?function(e){e=function(e){return n.hasModifier(t,32)?e.errorModuleName?2===e.accessibility?n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:245===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.hasModifier(t,32)?e.errorModuleName?2===e.accessibility?n.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:245===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(ae){function a(e,t){e=t.text.substring(e.pos,e.end);return ae.stringContains(e,"@internal")}function t(e,t){var r=ae.getParseTreeNode(e);if(r&&156===r.kind){var n=r.parent.parameters.indexOf(r),i=0<n?r.parent.parameters[n-1]:void 0,n=t.text,e=i?ae.concatenate(ae.getTrailingCommentRanges(n,ae.skipTrivia(n,i.end+1,!1,!0)),ae.getLeadingCommentRanges(n,e.pos)):ae.getTrailingCommentRanges(n,ae.skipTrivia(n,e.pos,!1,!0));return e&&e.length&&a(ae.last(e),t)}r=r&&ae.getLeadingCommentRangesOfNode(r,t);return!!ae.forEach(r,function(e){return a(e,t)})}ae.getDeclarationDiagnostics=function(e,t,r){if(r&&ae.isJsonSourceFile(r))return[];var n=e.getCompilerOptions();return ae.transformNodes(t,e,n,r?[r]:ae.filter(e.getSourceFiles(),ae.isSourceFileNotJson),[i],!1).diagnostics},ae.isInternalDeclaration=t;var oe=531469;function i(d){function l(){return ae.Debug.fail("Diagnostic emitted without context")}var v,_,p,b,f,g,m,y,h,x,D,S=l,C=!0,T=!1,k=!1,E=!1,N=!1,A=d.getEmitHost(),F={trackSymbol:function(e,t,r){if(262144&e.flags)return;n(P.isSymbolAccessible(e,t,r,!0)),O(P.getTypeReferenceDirectivesForSymbol(e,r))},reportInaccessibleThisError:function(){m&&d.addDiagnostic(ae.createDiagnosticForNode(m,ae.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ae.declarationNameToString(m),"this"))},reportInaccessibleUniqueSymbolError:function(){m&&d.addDiagnostic(ae.createDiagnosticForNode(m,ae.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ae.declarationNameToString(m),"unique symbol"))},reportCyclicStructureError:function(){m&&d.addDiagnostic(ae.createDiagnosticForNode(m,ae.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,ae.declarationNameToString(m)))},reportPrivateInBaseOfClassExpression:function(e){m&&d.addDiagnostic(ae.createDiagnosticForNode(m,ae.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,e))},reportLikelyUnsafeImportRequiredError:function(e){m&&d.addDiagnostic(ae.createDiagnosticForNode(m,ae.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,ae.declarationNameToString(m),e))},moduleResolverHost:A,trackReferencedAmbientModule:function(e,t){t=P.getTypeReferenceDirectivesForSymbol(t,67108863);if(ae.length(t))return O(t);e=ae.getSourceFileOfNode(e);h.set(""+ae.getOriginalNodeId(e),e)},trackExternalModuleSymbolOfImportTypeNode:function(e){T||(g=g||[]).push(e)},reportNonlocalAugmentation:function(t,e,r){for(var n=ae.find(e.declarations,function(e){return ae.getSourceFileOfNode(e)===t}),r=ae.filter(r.declarations,function(e){return ae.getSourceFileOfNode(e)!==t}),i=0,a=r;i<a.length;i++){var o=a[i];d.addDiagnostic(ae.addRelatedInfo(ae.createDiagnosticForNode(o,ae.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),ae.createDiagnosticForNode(n,ae.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}}},P=d.getEmitResolver(),w=d.getCompilerOptions(),e=w.noResolve,I=w.stripInternal;return function(a){if(290===a.kind&&a.isDeclarationFile)return a;if(291===a.kind){T=!0,h=ae.createMap(),x=ae.createMap();var r=!1,e=ae.createBundle(ae.map(a.sourceFiles,function(e){if(!e.isDeclarationFile){if(r=r||e.hasNoDefaultLib,v=y=e,p=void 0,f=!1,b=ae.createMap(),S=l,N=E=!1,L(e,h),R(e,x),ae.isExternalOrCommonJsModule(e)||ae.isJsonSourceFile(e)){C=k=!1;var t=ae.isSourceFileJS(e)?ae.createNodeArray(M(e,!0)):ae.visitNodes(e.statements,Y);return ae.updateSourceFileNode(e,[ae.createModuleDeclaration([],[ae.createModifier(130)],ae.createLiteral(ae.getResolvedExternalModuleName(d.getEmitHost(),e)),ae.createModuleBlock(ae.setTextRange(ae.createNodeArray(Q(t)),e.statements)))],!0,[],[],!1,[])}C=!0;t=ae.isSourceFileJS(e)?ae.createNodeArray(M(e)):ae.visitNodes(e.statements,Y);return ae.updateSourceFileNode(e,Q(t),!0,[],[],!1,[])}}),ae.mapDefined(a.prepends,function(e){if(293!==e.kind)return e;e=ae.createUnparsedSourceFile(e,"dts",I);return r=r||!!e.hasNoDefaultLib,L(e,h),O(e.typeReferenceDirectives),R(e,x),e}));e.syntheticFileReferences=[],e.syntheticTypeReferences=s(),e.syntheticLibReferences=o(),e.hasNoDefaultLib=r;var t=ae.getDirectoryPath(ae.normalizeSlashes(ae.getOutputPathsFor(a,A,!0).declarationFilePath)),n=u(e.syntheticFileReferences,t);return h.forEach(n),e}C=!0,y=v=a,S=l,f=k=T=N=E=!1,p=void 0,b=ae.createMap(),_=void 0,h=L(y,ae.createMap()),x=R(y,ae.createMap());var i,t=[],n=ae.getDirectoryPath(ae.normalizeSlashes(ae.getOutputPathsFor(a,A,!0).declarationFilePath)),e=u(t,n);ae.isSourceFileJS(y)?(i=ae.createNodeArray(M(a)),h.forEach(e),D=ae.filter(i,ae.isAnyImportSyntax)):(n=ae.visitNodes(a.statements,Y),i=ae.setTextRange(ae.createNodeArray(Q(n)),a.statements),h.forEach(e),D=ae.filter(i,ae.isAnyImportSyntax),ae.isExternalModule(a)&&(!k||E&&!N)&&(i=ae.setTextRange(ae.createNodeArray(__spreadArrays(i,[ae.createEmptyExports()])),i)));t=ae.updateSourceFileNode(a,i,!0,t,s(),a.hasNoDefaultLib,o());return t.exportedModulesFromDeclarationEmit=g,t;function o(){return ae.map(ae.arrayFrom(x.keys()),function(e){return{fileName:e,pos:-1,end:-1}})}function s(){return _?ae.mapDefined(ae.arrayFrom(_.keys()),c):[]}function c(e){if(D)for(var t=0,r=D;t<r.length;t++){var n=r[t];if(ae.isImportEqualsDeclaration(n)&&ae.isExternalModuleReference(n.moduleReference)){var i=n.moduleReference.expression;if(ae.isStringLiteralLike(i)&&i.text===e)return}else if(ae.isImportDeclaration(n)&&ae.isStringLiteral(n.moduleSpecifier)&&n.moduleSpecifier.text===e)return}return{fileName:e,pos:-1,end:-1}}function u(n,i){return function(e){if(e.isDeclarationFile)r=e.fileName;else{if(T&&ae.contains(a.sourceFiles,e))return;var t=ae.getOutputPathsFor(e,A,!0),r=t.declarationFilePath||t.jsFilePath||e.fileName}r&&(e=ae.moduleSpecifiers.getModuleSpecifier(__assign(__assign({},w),{baseUrl:w.baseUrl&&ae.toPath(w.baseUrl,A.getCurrentDirectory(),A.getCanonicalFileName)}),y,ae.toPath(i,A.getCurrentDirectory(),A.getCanonicalFileName),ae.toPath(r,A.getCurrentDirectory(),A.getCanonicalFileName),A,void 0),ae.pathIsRelative(e)?(r=ae.getRelativePathToDirectoryOrUrl(i,r,A.getCurrentDirectory(),A.getCanonicalFileName,!1),ae.startsWith(r,"./")&&ae.hasExtension(r)&&(r=r.substring(2)),ae.startsWith(r,"node_modules/")||ae.pathContainsNodeModules(r)||n.push({pos:-1,end:-1,fileName:r})):O([e]))}}};function O(e){if(e){_=_||ae.createMap();for(var t=0,r=e;t<r.length;t++){var n=r[t];_.set(n,!0)}}}function n(e){if(0===e.accessibility){if(e&&e.aliasesToMakeVisible)if(p)for(var t=0,r=e.aliasesToMakeVisible;t<r.length;t++){var n=r[t];ae.pushIfUnique(p,n)}else p=e.aliasesToMakeVisible}else{var i=S(e);i&&(i.typeName?d.addDiagnostic(ae.createDiagnosticForNode(e.errorNode||i.errorNode,i.diagnosticMessage,ae.getTextOfNode(i.typeName),e.errorSymbolName,e.errorModuleName)):d.addDiagnostic(ae.createDiagnosticForNode(e.errorNode||i.errorNode,i.diagnosticMessage,e.errorSymbolName,e.errorModuleName)))}}function M(t,e){var r=S;S=function(e){return{diagnosticMessage:e.errorModuleName?ae.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:ae.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:e.errorNode||t}};e=P.getDeclarationStatementsForSourceFile(t,oe,F,e);return S=r,e}function L(t,r){return e||!ae.isUnparsedSource(t)&&ae.isSourceFileJS(t)||ae.forEach(t.referencedFiles,function(e){e=A.getSourceFileFromReference(t,e);e&&r.set(""+ae.getOriginalNodeId(e),e)}),r}function R(e,t){return ae.forEach(e.libReferenceDirectives,function(e){A.getLibFileFromReference(e)&&t.set(ae.toFileNameLowerCase(e.fileName),!0)}),t}function i(e,t,r){var n;f||(n=S,S=ae.createGetSymbolAccessibilityDiagnosticForNode(e));var i,a,e=ae.updateParameter(e,void 0,(i=e,t=t,ae.createModifiersFromModifierFlags(s(i,t,a))),e.dotDotDotToken,function t(e){return 75===e.kind?e:190===e.kind?ae.updateArrayBindingPattern(e,ae.visitNodes(e.elements,r)):ae.updateObjectBindingPattern(e,ae.visitNodes(e.elements,r));function r(e){return 215===e.kind?e:ae.updateBindingElement(e,e.dotDotDotToken,e.propertyName,t(e.name),o(e)?e.initializer:void 0)}}(e.name),P.isOptionalParameter(e)?e.questionToken||ae.createToken(57):void 0,j(e,r||e.type,!0),B(e));return f||(S=n),e}function o(e){return function(e){switch(e.kind){case 159:case 158:return!ae.hasModifier(e,8);case 156:case 242:return 1}return}(e)&&P.isLiteralConstDeclaration(ae.getParseTreeNode(e))}function B(e){if(o(e))return P.createLiteralConstValue(ae.getParseTreeNode(e),F)}function j(e,t,r){if((r||!ae.hasModifier(e,8))&&!o(e)){var n,r=156===e.kind&&(P.isRequiredInitializedParameter(e)||P.isOptionalUninitializedParameterProperty(e));return t&&!r?ae.visitNode(t,X):ae.getParseTreeNode(e)?164===e.kind?ae.createKeywordTypeNode(125):(m=e.name,f||(n=S,S=ae.createGetSymbolAccessibilityDiagnosticForNode(e)),242===e.kind||191===e.kind?i(P.createTypeOfDeclaration(e,v,oe,F)):156===e.kind||159===e.kind||158===e.kind?e.initializer?i(P.createTypeOfDeclaration(e,v,oe,F,r)||P.createTypeOfExpression(e.initializer,v,oe,F)):i(P.createTypeOfDeclaration(e,v,oe,F,r)):i(P.createReturnTypeOfSignatureDeclaration(e,v,oe,F))):t?ae.visitNode(t,X):ae.createKeywordTypeNode(125)}function i(e){return m=void 0,f||(S=n),e||ae.createKeywordTypeNode(125)}}function J(e){switch((e=ae.getParseTreeNode(e)).kind){case 244:case 249:case 246:case 245:case 247:case 248:return!P.isDeclarationVisible(e);case 242:return!z(e);case 253:case 254:case 260:case 259:return}}function z(e){return!ae.isOmittedExpression(e)&&(ae.isBindingPattern(e.name)?ae.some(e.name.elements,z):P.isDeclarationVisible(e))}function U(e,t,r){if(!ae.hasModifier(e,8)){e=ae.map(t,function(e){return i(e,r)});if(e)return ae.createNodeArray(e,t.hasTrailingComma)}}function V(e,t){var r,n;return t||(n=ae.getThisParameter(e))&&(r=[i(n)]),ae.isSetAccessorDeclaration(e)&&(n=void 0,t||(t=ae.getSetAccessorValueParameter(e))&&(n=i(t,void 0,ne(e,P.getAllAccessorDeclarations(e)))),n=n||ae.createParameter(void 0,void 0,void 0,"value"),r=ae.append(r,n)),ae.createNodeArray(r||ae.emptyArray)}function K(e,t){return ae.hasModifier(e,8)?void 0:ae.visitNodes(t,X)}function q(e){return ae.isSourceFile(e)||ae.isTypeAliasDeclaration(e)||ae.isModuleDeclaration(e)||ae.isClassDeclaration(e)||ae.isInterfaceDeclaration(e)||ae.isFunctionLike(e)||ae.isIndexSignatureDeclaration(e)||ae.isMappedTypeNode(e)}function W(e,t){n(P.isEntityNameVisible(e,t)),O(P.getTypeReferenceDirectivesForEntityName(e))}function H(e,t){return ae.hasJSDocNodes(e)&&ae.hasJSDocNodes(t)&&(e.jsDoc=t.jsDoc),ae.setCommentRange(e,ae.getCommentRange(t))}function G(e,t){if(t){if(k=k||249!==e.kind&&188!==e.kind,ae.isStringLiteralLike(t))if(T){var r=ae.getExternalModuleNameFromDeclaration(d.getEmitHost(),P,e);if(r)return ae.createLiteral(r)}else{r=P.getSymbolOfExternalModuleSpecifier(t);r&&(g=g||[]).push(r)}return t}}function Q(e){for(;ae.length(p);){var t=p.shift();if(!ae.isLateVisibilityPaintedStatement(t))return ae.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: "+(ae.SyntaxKind?ae.SyntaxKind[t.kind]:t.kind));var r=C;C=t.parent&&ae.isSourceFile(t.parent)&&!(ae.isExternalModule(t.parent)&&T);var n=a(t);C=r,b.set(""+ae.getOriginalNodeId(t),n)}return ae.visitNodes(e,function(e){if(ae.isLateVisibilityPaintedStatement(e)){var t=""+ae.getOriginalNodeId(e);if(b.has(t)){var r=b.get(t);return b.delete(t),r&&((ae.isArray(r)?ae.some(r,ae.needsScopeMarker):ae.needsScopeMarker(r))&&(E=!0),ae.isSourceFile(e.parent)&&(ae.isArray(r)?ae.some(r,ae.isExternalModuleIndicator):ae.isExternalModuleIndicator(r))&&(k=!0)),r}}return e})}function X(n){if(!ee(n)){if(ae.isDeclaration(n)){if(J(n))return;if(ae.hasDynamicName(n)&&!P.isLateBound(ae.getParseTreeNode(n)))return}if(!(ae.isFunctionLike(n)&&P.isImplementationOfOverload(n)||ae.isSemicolonClassElement(n))){var i;q(n)&&(i=v,v=n);var a=S,o=ae.canProduceDiagnostics(n),s=f,c=(173===n.kind||186===n.kind)&&247!==n.parent.kind;if((ae.isMethodDeclaration(n)||ae.isMethodSignature(n))&&ae.hasModifier(n,8))return n.symbol&&n.symbol.declarations&&n.symbol.declarations[0]!==n?void 0:_(ae.createProperty(void 0,re(n),n.name,void 0,void 0,void 0));if(o&&!f&&(S=ae.createGetSymbolAccessibilityDiagnosticForNode(n)),ae.isTypeQueryNode(n)&&W(n.exprName,v),c&&(f=!0),function(e){switch(e.kind){case 166:case 162:case 161:case 163:case 164:case 159:case 158:case 160:case 165:case 167:case 242:case 155:case 216:case 169:case 180:case 170:case 171:case 188:return!0}return!1}(n))switch(n.kind){case 216:(ae.isEntityName(n.expression)||ae.isEntityNameExpression(n.expression))&&W(n.expression,v);var e=ae.visitEachChild(n,X,d);return _(ae.updateExpressionWithTypeArguments(e,ae.parenthesizeTypeParameters(e.typeArguments),e.expression));case 169:W(n.typeName,v);e=ae.visitEachChild(n,X,d);return _(ae.updateTypeReferenceNode(e,e.typeName,ae.parenthesizeTypeParameters(e.typeArguments)));case 166:return _(ae.updateConstructSignature(n,K(n,n.typeParameters),U(n,n.parameters),j(n,n.type)));case 162:var t=ae.createSignatureDeclaration(162,K(n,n.typeParameters),U(n,n.parameters,0),void 0);return t.modifiers=ae.createNodeArray(re(n)),_(t);case 161:if(ae.isPrivateIdentifier(n.name))return _(void 0);var r=ae.createSignatureDeclaration(160,K(n,n.typeParameters),U(n,n.parameters),j(n,n.type));return r.name=n.name,r.modifiers=ae.createNodeArray(re(n)),r.questionToken=n.questionToken,_(r);case 163:if(ae.isPrivateIdentifier(n.name))return _(void 0);var u=ne(n,P.getAllAccessorDeclarations(n));return _(ae.updateGetAccessor(n,void 0,re(n),n.name,V(n,ae.hasModifier(n,8)),j(n,u),void 0));case 164:return ae.isPrivateIdentifier(n.name)?_(void 0):_(ae.updateSetAccessor(n,void 0,re(n),n.name,V(n,ae.hasModifier(n,8)),void 0));case 159:return ae.isPrivateIdentifier(n.name)?_(void 0):_(ae.updateProperty(n,void 0,re(n),n.name,n.questionToken,j(n,n.type),B(n)));case 158:return ae.isPrivateIdentifier(n.name)?_(void 0):_(ae.updatePropertySignature(n,re(n),n.name,n.questionToken,j(n,n.type),B(n)));case 160:return ae.isPrivateIdentifier(n.name)?_(void 0):_(ae.updateMethodSignature(n,K(n,n.typeParameters),U(n,n.parameters),j(n,n.type),n.name,n.questionToken));case 165:return _(ae.updateCallSignature(n,K(n,n.typeParameters),U(n,n.parameters),j(n,n.type)));case 167:return _(ae.updateIndexSignature(n,void 0,re(n),U(n,n.parameters),ae.visitNode(n.type,X)||ae.createKeywordTypeNode(125)));case 242:return ae.isBindingPattern(n.name)?$(n.name):(f=c=!0,_(ae.updateTypeScriptVariableDeclaration(n,n.name,void 0,j(n,n.type),B(n))));case 155:return 161===(l=n).parent.kind&&ae.hasModifier(l.parent,8)&&(n.default||n.constraint)?_(ae.updateTypeParameterDeclaration(n,n.name,void 0,void 0)):_(ae.visitEachChild(n,X,d));case 180:t=ae.visitNode(n.checkType,X),r=ae.visitNode(n.extendsType,X),u=v;v=n.trueType;var l=ae.visitNode(n.trueType,X);v=u;u=ae.visitNode(n.falseType,X);return _(ae.updateConditionalTypeNode(n,t,r,l,u));case 170:return _(ae.updateFunctionTypeNode(n,ae.visitNodes(n.typeParameters,X),U(n,n.parameters),ae.visitNode(n.type,X)));case 171:return _(ae.updateConstructorTypeNode(n,ae.visitNodes(n.typeParameters,X),U(n,n.parameters),ae.visitNode(n.type,X)));case 188:return ae.isLiteralImportTypeNode(n)?_(ae.updateImportTypeNode(n,ae.updateLiteralTypeNode(n.argument,G(n,n.argument.literal)),n.qualifier,ae.visitNodes(n.typeArguments,X,ae.isTypeNode),n.isTypeOf)):_(n);default:ae.Debug.assertNever(n,"Attempted to process unhandled node kind: "+ae.SyntaxKind[n.kind])}return _(ae.visitEachChild(n,X,d))}}function _(e){var t,r;return e&&o&&ae.hasDynamicName(n)&&(t=n,f||(r=S,S=ae.createGetSymbolAccessibilityDiagnosticForNodeName(t)),m=t.name,ae.Debug.assert(P.isLateBound(ae.getParseTreeNode(t))),W(t.name.expression,v),f||(S=r),m=void 0),q(n)&&(v=i),o&&!f&&(S=a),c&&(f=s),e===n?e:e&&ae.setOriginalNode(H(e,n),n)}}function Y(e){if(function(e){switch(e.kind){case 244:case 249:case 253:case 246:case 245:case 247:case 248:case 225:case 254:case 260:case 259:return!0}return!1}(e)&&!ee(e)){switch(e.kind){case 260:return ae.isSourceFile(e.parent)&&(k=!0),N=!0,ae.updateExportDeclaration(e,void 0,e.modifiers,e.exportClause,G(e,e.moduleSpecifier),e.isTypeOnly);case 259:if(ae.isSourceFile(e.parent)&&(k=!0),N=!0,75===e.expression.kind)return e;var t=ae.createOptimisticUniqueName("_default");S=function(){return{diagnosticMessage:ae.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}};var r=ae.createVariableDeclaration(t,P.createTypeOfExpression(e.expression,e,oe,F),void 0);return[ae.createVariableStatement(C?[ae.createModifier(130)]:[],ae.createVariableDeclarationList([r],2)),ae.updateExportAssignment(e,e.decorators,e.modifiers,t)]}var n=a(e);return b.set(""+ae.getOriginalNodeId(e),n),e}}function Z(e){if(ae.isImportEqualsDeclaration(e)||ae.hasModifier(e,512))return e;var t=ae.getMutableClone(e),e=ae.createModifiersFromModifierFlags(3070&ae.getModifierFlags(e));return t.modifiers=e.length?ae.createNodeArray(e):void 0,t}function a(t){if(!ee(t)){switch(t.kind){case 253:return function(e){if(P.isDeclarationVisible(e)){if(265===e.moduleReference.kind){var t=ae.getExternalModuleImportEqualsDeclarationExpression(e);return ae.updateImportEqualsDeclaration(e,void 0,e.modifiers,e.name,ae.updateExternalModuleReference(e.moduleReference,G(e,t)))}t=S;return S=ae.createGetSymbolAccessibilityDiagnosticForNode(e),W(e.moduleReference,v),S=t,e}}(t);case 254:return function(e){if(!e.importClause)return ae.updateImportDeclaration(e,void 0,e.modifiers,e.importClause,G(e,e.moduleSpecifier));var t=e.importClause&&e.importClause.name&&P.isDeclarationVisible(e.importClause)?e.importClause.name:void 0;if(!e.importClause.namedBindings)return t&&ae.updateImportDeclaration(e,void 0,e.modifiers,ae.updateImportClause(e.importClause,t,void 0,e.importClause.isTypeOnly),G(e,e.moduleSpecifier));if(256!==e.importClause.namedBindings.kind)return(r=ae.mapDefined(e.importClause.namedBindings.elements,function(e){return P.isDeclarationVisible(e)?e:void 0}))&&r.length||t?ae.updateImportDeclaration(e,void 0,e.modifiers,ae.updateImportClause(e.importClause,t,r&&r.length?ae.updateNamedImports(e.importClause.namedBindings,r):void 0,e.importClause.isTypeOnly),G(e,e.moduleSpecifier)):P.isImportRequiredByAugmentation(e)?ae.updateImportDeclaration(e,void 0,e.modifiers,void 0,G(e,e.moduleSpecifier)):void 0;var r=P.isDeclarationVisible(e.importClause.namedBindings)?e.importClause.namedBindings:void 0;return t||r?ae.updateImportDeclaration(e,void 0,e.modifiers,ae.updateImportClause(e.importClause,t,r,e.importClause.isTypeOnly),G(e,e.moduleSpecifier)):void 0}(t)}if(!(ae.isDeclaration(t)&&J(t)||ae.isFunctionLike(t)&&P.isImplementationOfOverload(t))){var r;q(t)&&(r=v,v=t);var n=ae.canProduceDiagnostics(t),i=S;n&&(S=ae.createGetSymbolAccessibilityDiagnosticForNode(t));var a=C;switch(t.kind){case 247:return h(ae.updateTypeAliasDeclaration(t,void 0,re(t),t.name,ae.visitNodes(t.typeParameters,X,ae.isTypeParameterDeclaration),ae.visitNode(t.type,X,ae.isTypeNode)));case 246:return h(ae.updateInterfaceDeclaration(t,void 0,re(t),t.name,K(t,t.typeParameters),ie(t.heritageClauses),ae.visitNodes(t.members,X)));case 244:var e=h(ae.updateFunctionDeclaration(t,void 0,re(t),void 0,t.name,K(t,t.typeParameters),U(t,t.parameters),j(t,t.type),void 0));if(e&&P.isExpandoFunctionDeclaration(t)){var o=P.getPropertiesOfContainerFunction(t),s=ae.createModuleDeclaration(void 0,void 0,e.name||ae.createIdentifier("_default"),ae.createModuleBlock([]),16);s.flags^=8,s.parent=v,s.locals=ae.createSymbolTable(o),s.symbol=o[0].parent;var c=ae.mapDefined(o,function(e){if(ae.isPropertyAccessExpression(e.valueDeclaration)){S=ae.createGetSymbolAccessibilityDiagnosticForNode(e.valueDeclaration);var t=P.createTypeOfDeclaration(e.valueDeclaration,s,oe,F);S=i;t=ae.createVariableDeclaration(ae.unescapeLeadingUnderscores(e.escapedName),t,void 0);return ae.createVariableStatement(void 0,ae.createVariableDeclarationList([t]))}}),u=ae.createModuleDeclaration(void 0,re(t),t.name,ae.createModuleBlock(c),16);if(!ae.hasModifier(e,512))return[e,u];var l=ae.createModifiersFromModifierFlags(-514&ae.getModifierFlags(e)|2),o=ae.updateFunctionDeclaration(e,void 0,l,void 0,e.name,e.typeParameters,e.parameters,e.type,void 0),c=ae.updateModuleDeclaration(u,void 0,l,u.name,u.body),u=ae.createExportAssignment(void 0,void 0,!1,u.name);return ae.isSourceFile(t.parent)&&(k=!0),N=!0,[o,c,u]}return e;case 249:C=!1;var _=t.body;if(_&&250===_.kind){var u=E,d=N;E=N=!1;var p=Q(ae.visitNodes(_.statements,Y));8388608&t.flags&&(E=!1),ae.isGlobalScopeAugmentation(t)||(e=p,ae.some(e,te))||N||(p=E?ae.createNodeArray(__spreadArrays(p,[ae.createEmptyExports()])):ae.visitNodes(p,Z));p=ae.updateModuleBlock(_,p);C=a,E=u,N=d;d=re(t);return h(ae.updateModuleDeclaration(t,void 0,d,ae.isExternalModuleAugmentation(t)?G(t,t.name):t.name,p))}C=a;d=re(t);C=!1,ae.visitNode(_,Y);_=""+ae.getOriginalNodeId(_),p=b.get(_);return b.delete(_),h(ae.updateModuleDeclaration(t,void 0,d,t.name,p));case 245:l=ae.createNodeArray(re(t)),_=K(t,t.typeParameters),d=ae.getFirstConstructorWithBody(t),p=void 0;d&&(f=S,p=ae.compact(ae.flatMap(d.parameters,function(o){if(ae.hasModifier(o,92)&&!ee(o))return S=ae.createGetSymbolAccessibilityDiagnosticForNode(o),75===o.name.kind?H(ae.createProperty(void 0,re(o),o.name,o.questionToken,j(o,o.type),B(o)),o):function e(t){var r;for(var n=0,i=t.elements;n<i.length;n++){var a=i[n];ae.isOmittedExpression(a)||(ae.isBindingPattern(a.name)&&(r=ae.concatenate(r,e(a.name))),(r=r||[]).push(ae.createProperty(void 0,re(o),a.name,void 0,j(a,void 0),void 0)))}return r}(o.name)})),S=f);var f=ae.some(t.members,function(e){return!!e.name&&ae.isPrivateIdentifier(e.name)})?[ae.createProperty(void 0,void 0,ae.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,f=ae.concatenate(ae.concatenate(f,p),ae.visitNodes(t.members,X)),p=ae.createNodeArray(f),g=ae.getEffectiveBaseTypeNode(t);if(g&&!ae.isEntityNameExpression(g.expression)&&100!==g.expression.kind){var f=t.name?ae.unescapeLeadingUnderscores(t.name.escapedText):"default",m=ae.createOptimisticUniqueName(f+"_base");S=function(){return{diagnosticMessage:ae.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:g,typeName:t.name}};var y=ae.createVariableDeclaration(m,P.createTypeOfExpression(g.expression,t,oe,F),void 0),f=ae.createVariableStatement(C?[ae.createModifier(130)]:[],ae.createVariableDeclarationList([y],2)),y=ae.createNodeArray(ae.map(t.heritageClauses,function(e){if(90!==e.token)return ae.updateHeritageClause(e,ae.visitNodes(ae.createNodeArray(ae.filter(e.types,function(e){return ae.isEntityNameExpression(e.expression)||100===e.expression.kind})),X));var t=S;S=ae.createGetSymbolAccessibilityDiagnosticForNode(e.types[0]);e=ae.updateHeritageClause(e,ae.map(e.types,function(e){return ae.updateExpressionWithTypeArguments(e,ae.visitNodes(e.typeArguments,X),m)}));return S=t,e}));return[f,h(ae.updateClassDeclaration(t,void 0,l,t.name,_,y,p))]}y=ie(t.heritageClauses);return h(ae.updateClassDeclaration(t,void 0,l,t.name,_,y,p));case 225:return h(function(e){if(!ae.forEach(e.declarationList.declarations,z))return;var t=ae.visitNodes(e.declarationList.declarations,X);return ae.length(t)?ae.updateVariableStatement(e,ae.createNodeArray(re(e)),ae.updateVariableDeclarationList(e.declarationList,t)):void 0}(t));case 248:return h(ae.updateEnumDeclaration(t,void 0,ae.createNodeArray(re(t)),t.name,ae.createNodeArray(ae.mapDefined(t.members,function(e){if(!ee(e)){var t=P.getConstantValue(e);return H(ae.updateEnumMember(e,e.name,void 0!==t?ae.createLiteral(t):void 0),e)}}))))}return ae.Debug.assertNever(t,"Unhandled top-level node in declaration emit: "+ae.SyntaxKind[t.kind])}}function h(e){return q(t)&&(v=r),n&&(S=i),249===t.kind&&(C=a),e===t?e:e&&ae.setOriginalNode(H(e,t),t)}}function $(e){return ae.flatten(ae.mapDefined(e.elements,function(e){if(215===e.kind)return;if(e.name&&z(e))return ae.isBindingPattern(e.name)?$(e.name):ae.createVariableDeclaration(e.name,j(e,void 0),void 0)}))}function ee(e){return I&&e&&t(e,y)}function te(e){return ae.isExportAssignment(e)||ae.isExportDeclaration(e)}function re(e){var t=ae.getModifierFlags(e),r=function(e){var t=2811,r=C&&246!==e.kind?2:0,n=290===e.parent.kind;(!n||T&&n&&ae.isExternalModule(e.parent))&&(t^=2,r=0);return s(e,t,r)}(e);return t===r?e.modifiers:ae.createModifiersFromModifierFlags(r)}function ne(e,t){var r=c(e);return r||e===t.firstAccessor||(r=c(t.firstAccessor),S=ae.createGetSymbolAccessibilityDiagnosticForNode(t.firstAccessor)),!r&&t.secondAccessor&&e!==t.secondAccessor&&(r=c(t.secondAccessor),S=ae.createGetSymbolAccessibilityDiagnosticForNode(t.secondAccessor)),r}function ie(e){return ae.createNodeArray(ae.filter(ae.map(e,function(t){return ae.updateHeritageClause(t,ae.visitNodes(ae.createNodeArray(ae.filter(t.types,function(e){return ae.isEntityNameExpression(e.expression)||90===t.token&&100===e.expression.kind})),X))}),function(e){return e.types&&!!e.types.length}))}}function s(e,t,r){void 0===t&&(t=3067),void 0===r&&(r=0);r=ae.getModifierFlags(e)&t|r;return 512&r&&!(1&r)&&(r^=1),512&r&&2&r&&(r^=2),r}function c(e){if(e)return 163===e.kind?e.type:0<e.parameters.length?e.parameters[0].type:void 0}ae.transformDeclarations=i}(ts=ts||{}),function(F){var e;function t(r,n){return function(e){var t,e=r(e);return"function"==typeof e?n(e):(t=e,function(e){return F.isBundle(e)?t.transformBundle(e):t.transformSourceFile(e)})}}function a(e){return t(e,F.chainBundle)}function n(e){return t(e,F.identity)}function P(e,t){return t}function w(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",F.noTransformers={scriptTransformers:F.emptyArray,declarationTransformers:F.emptyArray},F.getTransformers=function(e,t,r){return{scriptTransformers:function(e,t,r){if(r)return F.emptyArray;var n=e.jsx,i=F.getEmitScriptTarget(e),r=F.getEmitModuleKind(e),e=[];F.addRange(e,t&&F.map(t.before,a)),e.push(F.transformTypeScript),e.push(F.transformClassFields),2===n&&e.push(F.transformJsx);i<99&&e.push(F.transformESNext);i<7&&e.push(F.transformES2020);i<6&&e.push(F.transformES2019);i<5&&e.push(F.transformES2018);i<4&&e.push(F.transformES2017);i<3&&e.push(F.transformES2016);i<2&&(e.push(F.transformES2015),e.push(F.transformGenerators));e.push(function(e){switch(e){case F.ModuleKind.ESNext:case F.ModuleKind.ES2020:case F.ModuleKind.ES2015:return F.transformECMAScriptModule;case F.ModuleKind.System:return F.transformSystemModule;default:return F.transformModule}}(r)),i<1&&e.push(F.transformES5);return F.addRange(e,t&&F.map(t.after,a)),e}(e,t,r),declarationTransformers:(r=t,(t=[]).push(F.transformDeclarations),F.addRange(t,r&&F.map(r.afterDeclarations,n)),t)}},F.noEmitSubstitution=P,F.noEmitNotification=w,F.transformNodes=function(e,t,r,n,i,a){for(var o,s,c,u,l=new Array(331),_=0,d=[],p=[],f=[],g=[],m=0,y=!1,h=P,v=w,b=0,x=[],D={getCompilerOptions:function(){return r},getEmitResolver:function(){return e},getEmitHost:function(){return t},startLexicalEnvironment:function(){F.Debug.assert(0<b,"Cannot modify the lexical environment during initialization."),F.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),F.Debug.assert(!y,"Lexical environment is suspended."),d[m]=o,p[m]=s,f[m]=c,g[m]=_,m++,o=void 0,s=void 0,c=void 0,_=0},suspendLexicalEnvironment:function(){F.Debug.assert(0<b,"Cannot modify the lexical environment during initialization."),F.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),F.Debug.assert(!y,"Lexical environment is already suspended."),y=!0},resumeLexicalEnvironment:function(){F.Debug.assert(0<b,"Cannot modify the lexical environment during initialization."),F.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),F.Debug.assert(y,"Lexical environment is not suspended."),y=!1},endLexicalEnvironment:function(){var e;{var t;F.Debug.assert(0<b,"Cannot modify the lexical environment during initialization."),F.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),F.Debug.assert(!y,"Lexical environment is suspended."),(o||s||c)&&(s&&(e=__spreadArrays(s)),o&&(t=F.createVariableStatement(void 0,F.createVariableDeclarationList(o)),F.setEmitFlags(t,1048576),e?e.push(t):e=[t]),c&&(e=e?__spreadArrays(e,c):__spreadArrays(c)))}o=d[--m],s=p[m],c=f[m],_=g[m],0===m&&(d=[],p=[],f=[],g=[]);return e},setLexicalEnvironmentFlags:function(e,t){_=t?_|e:_&~e},getLexicalEnvironmentFlags:function(){return _},hoistVariableDeclaration:function(e){F.Debug.assert(0<b,"Cannot modify the lexical environment during initialization."),F.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed.");e=F.setEmitFlags(F.createVariableDeclaration(e),64);o?o.push(e):o=[e];1&_&&(_|=2)},hoistFunctionDeclaration:function(e){F.Debug.assert(0<b,"Cannot modify the lexical environment during initialization."),F.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),F.setEmitFlags(e,1048576),s?s.push(e):s=[e]},addInitializationStatement:function(e){F.Debug.assert(0<b,"Cannot modify the lexical environment during initialization."),F.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),F.setEmitFlags(e,1048576),c?c.push(e):c=[e]},requestEmitHelper:function e(t){F.Debug.assert(0<b,"Cannot modify the transformation context during initialization.");F.Debug.assert(b<2,"Cannot modify the transformation context after transformation has completed.");F.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)}u=F.append(u,t)},readEmitHelpers:function(){F.Debug.assert(0<b,"Cannot modify the transformation context during initialization."),F.Debug.assert(b<2,"Cannot modify the transformation context after transformation has completed.");var e=u;return u=void 0,e},enableSubstitution:function(e){F.Debug.assert(b<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=1},enableEmitNotification:function(e){F.Debug.assert(b<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=2},isSubstitutionEnabled:N,isEmitNotificationEnabled:A,get onSubstituteNode(){return h},set onSubstituteNode(e){F.Debug.assert(b<1,"Cannot modify transformation hooks after initialization has completed."),F.Debug.assert(void 0!==e,"Value must not be 'undefined'"),h=e},get onEmitNode(){return v},set onEmitNode(e){F.Debug.assert(b<1,"Cannot modify transformation hooks after initialization has completed."),F.Debug.assert(void 0!==e,"Value must not be 'undefined'"),v=e},addDiagnostic:function(e){x.push(e)}},S=0,C=n;S<C.length;S++){var T=C[S];F.disposeEmitNodes(F.getSourceFileOfNode(F.getParseTreeNode(T)))}function k(e){for(var t=0,r=E;t<r.length;t++)e=(0,r[t])(e);return e}F.performance.mark("beforeTransform");var E=i.map(function(e){return e(D)}),b=1,a=F.map(n,a?k:function(e){return!e||F.isSourceFile(e)&&e.isDeclarationFile?e:k(e)});return b=2,F.performance.mark("afterTransform"),F.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:a,substituteNode:function(e,t){return F.Debug.assert(b<3,"Cannot substitute a node after the result is disposed."),t&&N(t)&&h(e,t)||t},emitNodeWithNotification:function(e,t,r){F.Debug.assert(b<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(A(t)?v(e,t,r):r(e,t))},isEmitNotificationEnabled:A,dispose:function(){if(b<3){for(var e=0,t=n;e<t.length;e++){var r=t[e];F.disposeEmitNodes(F.getSourceFileOfNode(F.getParseTreeNode(r)))}u=v=h=p=s=d=o=void 0,b=3}},diagnostics:x};function N(e){return 0!=(1&l[e.kind])&&0==(4&F.getEmitFlags(e))}function A(e){return 0!=(2&l[e.kind])||0!=(2&F.getEmitFlags(e))}}}(ts=ts||{}),function(Nr){var e,Ar=((e=[])[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e),Fr={pos:-1,end:-1};function n(e,t,r,n,i,a){void 0===n&&(n=!1);var o=Nr.isArray(r)?r:Nr.getSourceFilesToEmit(e,r,n),r=e.getCompilerOptions();if(r.outFile||r.out){r=e.getPrependNodes();if(o.length||r.length){r=Nr.createBundle(o,r);if(u=t(d(r,e,n),r))return u}}else{if(!i)for(var s=0,c=o;s<c.length;s++){var u,l=c[s];if(u=t(d(l,e,n),l))return u}if(a){a=_(e.getCompilerOptions());if(a)return t({buildInfoPath:a},void 0)}}}function _(e){var t=e.configFilePath;if(Nr.isIncrementalCompilation(e)){if(e.tsBuildInfoFile)return e.tsBuildInfoFile;var r=e.outFile||e.out;if(r)n=Nr.removeFileExtension(r);else{if(!t)return;var t=Nr.removeFileExtension(t),n=e.outDir?e.rootDir?Nr.resolvePath(e.outDir,Nr.getRelativePathFromDirectory(e.rootDir,t,!0)):Nr.combinePaths(e.outDir,Nr.getBaseFileName(t)):t}return n+".tsbuildinfo"}}function S(e,t){var r=e.outFile||e.out,n=e.emitDeclarationOnly?void 0:r,i=n&&s(n,e),r=t||Nr.getEmitDeclarations(e)?Nr.removeFileExtension(r)+".d.ts":void 0;return{jsFilePath:n,sourceMapFilePath:i,declarationFilePath:r,declarationMapPath:r&&Nr.getAreDeclarationMapsEnabled(e)?r+".map":void 0,buildInfoPath:_(e)}}function d(e,t,r){var n=t.getCompilerOptions();if(291===e.kind)return S(n,r);var i=Nr.getOwnEmitOutputFilePath(e.fileName,t,c(e,n)),a=Nr.isJsonSourceFile(e),o=a&&0===Nr.comparePaths(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),o=n.emitDeclarationOnly||o?void 0:i,i=!o||Nr.isJsonSourceFile(e)?void 0:s(o,n),t=r||Nr.getEmitDeclarations(n)&&!a?Nr.getDeclarationEmitOutputFilePath(e.fileName,t):void 0;return{jsFilePath:o,sourceMapFilePath:i,declarationFilePath:t,declarationMapPath:t&&Nr.getAreDeclarationMapsEnabled(n)?t+".map":void 0,buildInfoPath:void 0}}function s(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function c(e,t){if(Nr.isJsonSourceFile(e))return".json";if(1===t.jsx)if(Nr.isSourceFileJS(e)){if(Nr.fileExtensionIs(e.fileName,".jsx"))return".jsx"}else if(1===e.languageVariant)return".jsx";return".js"}function a(e,t,r,n){return n?Nr.resolvePath(n,Nr.getRelativePathFromDirectory((t=t).options.rootDir||Nr.getDirectoryPath(Nr.Debug.checkDefined(t.options.configFilePath)),e,r)):e}function u(e,t,r){return Nr.Debug.assert(!Nr.fileExtensionIs(e,".d.ts")&&!Nr.fileExtensionIs(e,".json")),Nr.changeExtension(a(e,t,r,t.options.declarationDir||t.options.outDir),".d.ts")}function l(e,t,r){if(!t.options.emitDeclarationOnly){var n=Nr.fileExtensionIs(e,".json"),i=Nr.changeExtension(a(e,t,r,t.options.outDir),n?".json":Nr.fileExtensionIs(e,".tsx")&&1===t.options.jsx?".jsx":".js");return n&&0===Nr.comparePaths(e,i,Nr.Debug.checkDefined(t.options.configFilePath),r)?void 0:i}}function o(){var t;return{addOutput:function(e){e&&(t=t||[]).push(e)},getOutputs:function(){return t||Nr.emptyArray}}}function p(e,t){var r=S(e.options,!1),n=r.jsFilePath,i=r.sourceMapFilePath,a=r.declarationFilePath,e=r.declarationMapPath,r=r.buildInfoPath;t(n),t(i),t(a),t(e),t(r)}function f(e,t,r,n){var i;Nr.fileExtensionIs(t,".d.ts")||(n(i=l(t,e,r)),Nr.fileExtensionIs(t,".json")||(i&&e.options.sourceMap&&n(i+".map"),Nr.getEmitDeclarations(e.options)&&(n(r=u(t,e,r)),e.options.declarationMap&&n(r+".map"))))}function C(c,l,u,e,_,t,d){var p,f,g=e.scriptTransformers,m=e.declarationTransformers,y=l.getCompilerOptions(),h=y.sourceMap||y.inlineSourceMap||Nr.getAreDeclarationMapsEnabled(y)?[]:void 0,v=y.listEmittedFiles?[]:void 0,b=Nr.createDiagnosticCollection(),x=Nr.getNewLineCharacter(y,function(){return l.getNewLine()}),D=Nr.createTextWriter(x),r=Nr.performance.createTimer("printTime","beforePrint","afterPrint"),e=r.enter,r=r.exit,S=!1;return e(),n(l,function(e,t){var r,n=e.jsFilePath,i=e.sourceMapFilePath,a=e.declarationFilePath,o=e.declarationMapPath,e=e.buildInfoPath;e&&t&&Nr.isBundle(t)&&(r=Nr.getDirectoryPath(Nr.getNormalizedAbsolutePath(e,l.getCurrentDirectory())),p={commonSourceDirectory:s(l.getCommonSourceDirectory()),sourceFiles:t.sourceFiles.map(function(e){return s(Nr.getNormalizedAbsolutePath(e.fileName,l.getCurrentDirectory()))})});(function(e,t,r,n){if(e&&!_&&t){if(t&&l.isEmitBlocked(t)||y.noEmit)return S=!0;e=Nr.transformNodes(c,l,y,[e],g,!1),n=E({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}),Nr.Debug.assert(1===e.transformed.length,"Should only see one output from the transform"),T(t,r,e.transformed[0],n,y),e.dispose(),p&&(p.js=n.bundleFileInfo)}})(t,n,i,s),function(e,t,r,n){if(e){if(!t)return(_||y.emitDeclarationOnly)&&(S=!0);var i=Nr.isSourceFile(e)?[e]:e.sourceFiles,i=d?i:Nr.filter(i,Nr.isSourceFileNotJson),e=y.outFile||y.out?[Nr.createBundle(i,Nr.isSourceFile(e)?void 0:e.prepends)]:i;if(_&&!Nr.getEmitDeclarations(y)&&i.forEach(C),i=Nr.transformNodes(c,l,y,e,m,!1),Nr.length(i.diagnostics))for(var a=0,o=i.diagnostics;a<o.length;a++){var s=o[a];b.add(s)}e=E({removeComments:y.removeComments,newLine:y.newLine,noEmitHelpers:!0,module:y.module,target:y.target,sourceMap:y.sourceMap,inlineSourceMap:y.inlineSourceMap,extendedDiagnostics:y.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!p,recordInternalSection:!!p,relativeToBuildInfo:n},{hasGlobalName:c.hasGlobalName,onEmitNode:i.emitNodeWithNotification,isEmitNotificationEnabled:i.isEmitNotificationEnabled,substituteNode:i.substituteNode}),n=!!i.diagnostics&&!!i.diagnostics.length||!!l.isEmitBlocked(t)||!!y.noEmit,S=S||n,n&&!d||(Nr.Debug.assert(1===i.transformed.length,"Should only see one output from the decl transform"),T(t,r,i.transformed[0],e,{sourceMap:y.declarationMap,sourceRoot:y.sourceRoot,mapRoot:y.mapRoot,extendedDiagnostics:y.extendedDiagnostics}),d&&290===i.transformed[0].kind&&(r=i.transformed[0],f=r.exportedModulesFromDeclarationEmit)),i.dispose(),p&&(p.dts=e.bundleFileInfo)}}(t,a,o,s),function(e,t){if(t&&!u&&!S){var r=l.getProgramBuildInfo();if(l.isEmitBlocked(t)||y.noEmit)return S=!0;var n=Nr.version;Nr.writeFile(l,b,t,k({bundle:e,program:r,version:n}),!1)}}(p,e),!S&&v&&(_||(n&&v.push(n),i&&v.push(i),e&&v.push(e)),a&&v.push(a),o&&v.push(o));function s(e){return Nr.ensurePathIsNonModuleName(Nr.getRelativePathFromDirectory(r,e,l.getCanonicalFileName))}},Nr.getSourceFilesToEmit(l,u,d),d,t,!u),r(),{emitSkipped:S,diagnostics:b.getDiagnostics(),emittedFiles:v,sourceMaps:h,exportedModulesFromDeclarationEmit:f};function C(e){Nr.isExportAssignment(e)?75===e.expression.kind&&c.collectLinkedAliases(e.expression,!0):Nr.isExportSpecifier(e)?c.collectLinkedAliases(e.propertyName||e.name,!0):Nr.forEachChild(e,C)}function T(e,t,r,n,i){var a,o,s=291===r.kind?r:void 0,c=290===r.kind?r:void 0,u=s?s.sourceFiles:[c];a=r,!(r=i).sourceMap&&!r.inlineSourceMap||290===a.kind&&Nr.fileExtensionIs(a.fileName,".json")||(o=Nr.createSourceMapGenerator(l,Nr.getBaseFileName(Nr.normalizeSlashes(e)),function(e){e=Nr.normalizeSlashes(e.sourceRoot||"");return e&&Nr.ensureTrailingDirectorySeparator(e)}(i),function(e,t,r){if(e.sourceRoot)return l.getCommonSourceDirectory();if(e.mapRoot){e=Nr.normalizeSlashes(e.mapRoot);return r&&(e=Nr.getDirectoryPath(Nr.getSourceFilePathInNewDir(r.fileName,l,e))),0===Nr.getRootLength(e)&&(e=Nr.combinePaths(l.getCommonSourceDirectory(),e)),e}return Nr.getDirectoryPath(Nr.normalizePath(t))}(i,e,c),i)),s?n.writeBundle(s,D,o):n.writeFile(c,D,o),o?(h&&h.push({inputSourceFileNames:o.getSources(),sourceMap:o.toJSON()}),(c=function(e,t,r,n,i){if(e.inlineSourceMap){t=t.toString();return"data:application/json;base64,"+Nr.base64encode(Nr.sys,t)}n=Nr.getBaseFileName(Nr.normalizeSlashes(Nr.Debug.checkDefined(n)));if(e.mapRoot){e=Nr.normalizeSlashes(e.mapRoot);return i&&(e=Nr.getDirectoryPath(Nr.getSourceFilePathInNewDir(i.fileName,l,e))),0===Nr.getRootLength(e)?(e=Nr.combinePaths(l.getCommonSourceDirectory(),e),Nr.getRelativePathToDirectoryOrUrl(Nr.getDirectoryPath(Nr.normalizePath(r)),Nr.combinePaths(e,n),l.getCurrentDirectory(),l.getCanonicalFileName,!0)):Nr.combinePaths(e,n)}return n}(i,o,e,t,c))&&(D.isAtStartOfLine()||D.rawWrite(x),D.writeComment("//# sourceMappingURL="+c)),t&&(o=o.toString(),Nr.writeFile(l,b,t,o,!1,u))):D.writeLine(),Nr.writeFile(l,b,e,D.getText(),!!y.emitBOM,u),D.clear()}}function k(e){return JSON.stringify(e,void 0,2)}function T(e){return JSON.parse(e)}function E(f,e){void 0===f&&(f={}),void 0===e&&(e={});var _e,n,r,o,t,i,a,s,de,c,g,u,l,_,d,pe,fe,p=e.hasGlobalName,m=e.onEmitNode,y=void 0===m?Nr.noEmitNotification:m,h=e.isEmitNotificationEnabled,m=e.substituteNode,ge=void 0===m?Nr.noEmitSubstitution:m,v=e.onBeforeEmitNodeArray,b=e.onAfterEmitNodeArray,x=e.onBeforeEmitToken,D=e.onAfterEmitToken,e=!!f.extendedDiagnostics,S=Nr.getNewLineCharacter(f),C=Nr.getEmitModuleKind(f),T=Nr.createMap(),k=f.preserveSourceNewlines,me=function(e){de.write(e)},ye=f.writeBundleFileInfo?{sections:[]}:void 0,E=ye?Nr.Debug.checkDefined(f.relativeToBuildInfo):void 0,N=f.recordInternalSection,A=0,F="text",P=!0,w=-1,I=-1,O=-1,M=-1,L=!1,R=!!f.removeComments,e=Nr.performance.createTimerIf(e,"commentTime","beforeComment","afterComment"),B=e.enter,j=e.exit;return ee(),{printNode:function(e,t,r){switch(e){case 0:Nr.Debug.assert(Nr.isSourceFile(t),"Expected a SourceFile node.");break;case 2:Nr.Debug.assert(Nr.isIdentifier(t),"Expected an Identifier node.");break;case 1:Nr.Debug.assert(Nr.isExpression(t),"Expected an Expression node.")}switch(t.kind){case 290:return z(t);case 291:return J(t);case 292:return function(e){return function(e,t){var r=de;$(t,void 0),Y(4,e,void 0),ee(),de=r}(e,Q()),X()}(t)}return U(e,t,r,Q()),X()},printList:function(e,t,r){return V(e,t,r,Q()),X()},printFile:z,printBundle:J,writeNode:U,writeList:V,writeFile:G,writeBundle:H,bundleFileInfo:ye};function J(e){return H(e,Q(),void 0),X()}function z(e){return G(e,Q(),void 0),X()}function U(e,t,r,n){var i=de;$(n,void 0),Y(e,t,r),ee(),de=i}function V(e,t,r,n){var i=de;$(n,void 0),r&&Z(r),dt(Fr,t,e),ee(),de=i}function he(){return de.getTextPosWithWriteLine?de.getTextPosWithWriteLine():de.getTextPos()}function ve(e,t,r){var n=Nr.lastOrUndefined(ye.sections);n&&n.kind===r?n.end=t:ye.sections.push({pos:e,end:t,kind:r})}function K(e){if(N&&ye&&_e&&(Nr.isDeclaration(e)||Nr.isVariableStatement(e))&&Nr.isInternalDeclaration(e,_e)&&"internal"!==F){e=F;return W(de.getTextPos()),A=he(),F="internal",e}}function q(e){e&&(W(de.getTextPos()),A=he(),F=e)}function W(e){return A<e&&(ve(A,e,F),1)}function H(e,t,r){g=!1;var n=de;$(t,r),$e(e),Ze(e),oe(e),function(e){Qe(!!e.hasNoDefaultLib,e.syntheticFileReferences||[],e.syntheticTypeReferences||[],e.syntheticLibReferences||[]);for(var t=0,r=e.prepends;t<r.length;t++){var n=r[t];if(Nr.isUnparsedSource(n)&&n.syntheticReferences)for(var i=0,a=n.syntheticReferences;i<a.length;i++)be(a[i]),Tt()}}(e);for(var i=0,a=e.prepends;i<a.length;i++){var o=a[i];Tt();var s,c=de.getTextPos(),u=ye&&ye.sections;u&&(ye.sections=[]),Y(4,o,void 0),ye&&(s=ye.sections,ye.sections=u,o.oldFileOfCurrentEmit?(u=ye.sections).push.apply(u,s):(s.forEach(function(e){return Nr.Debug.assert(Nr.isBundleFileTextLike(e))}),ye.sections.push({pos:c,end:de.getTextPos(),kind:"prepend",data:E(o.fileName),texts:s})))}A=he();for(var l=0,_=e.sourceFiles;l<_.length;l++){var d=_[l];Y(0,d,d)}ye&&e.sourceFiles.length&&W(de.getTextPos())&&((r=function(e){for(var t,r=Nr.createMap(),n=0;n<e.sourceFiles.length;n++){for(var i=e.sourceFiles[n],a=void 0,o=0,s=0,c=i.statements;s<c.length;s++){var u=c[s];if(!Nr.isPrologueDirective(u))break;r.has(u.expression.text)||(r.set(u.expression.text,!0),(a=a||[]).push({pos:u.pos,end:u.end,expression:{pos:u.expression.pos,end:u.expression.end,text:u.expression.text}}),o=o<u.end?u.end:o)}a&&(t=t||[]).push({file:n,text:i.text.substring(0,o),directives:a})}return t}(e))&&(ye.sources||(ye.sources={}),ye.sources.prologues=r),(e=function(e){var t;if(C===Nr.ModuleKind.None||f.noEmitHelpers)return;for(var r=Nr.createMap(),n=0,i=e.sourceFiles;n<i.length;n++){var a=i[n],o=void 0!==Nr.getExternalHelpersModuleName(a),a=se(a);if(a)for(var s=0,c=a;s<c.length;s++){var u=c[s];u.scoped||o||r.get(u.name)||(r.set(u.name,!0),(t=t||[]).push(u.name))}}return t}(e))&&(ye.sources||(ye.sources={}),ye.sources.helpers=e)),ee(),de=n}function G(e,t,r){g=!0;var n=de;$(t,r),$e(e),Ze(e),Y(0,e,e),ee(),de=n}function Q(){return c=c||Nr.createTextWriter(S)}function X(){var e=c.getText();return c.clear(),e}function Y(e,t,r){r&&Z(r),Se(e,t)}function Z(e){d=_=void 0,(_e=e)&&kr(e)}function $(e,t){e&&f.omitTrailingSemicolon&&(e=Nr.getTrailingSemicolonDeferringWriter(e)),u=t,P=!(de=e)||!u}function ee(){n=[],r=[],o=Nr.createMap(),t=[],a=[],$(fe=pe=d=_=_e=void(i=0),void 0)}function te(){return _=_||Nr.getLineStarts(_e)}function be(e){if(void 0!==e){var t=K(e),e=Se(4,e);return q(t),e}}function re(e){return void 0!==e&&Se(2,e)}function xe(e){if(void 0!==e)return Se(1,e)}function De(e){return Se(Nr.isStringLiteral(e)?6:4,e)}function Se(e,t){var r=pe,n=fe,i=k;pe=t,fe=void 0,k&&134217728&Nr.getEmitFlags(t)&&(k=!1),Ce(0,e,t)(e,t),Nr.Debug.assert(pe===t);e=fe;return pe=r,fe=n,k=i,e||t}function Ce(e,t,r){switch(e){case 0:if(y!==Nr.noEmitNotification&&(!h||h(r)))return ie;case 1:if(ge!==Nr.noEmitSubstitution&&(fe=ge(t,r))!==r)return ae;case 2:if(!R&&290!==r.kind)return or;case 3:if(!P&&290!==r.kind&&!Nr.isInJsonFile(r))return Dr;case 4:return Te;default:return Nr.Debug.assertNever(e)}}function ne(e,t,r){return Ce(e+1,t,r)}function ie(e,t){Nr.Debug.assert(pe===t);var r=ne(0,e,t);y(e,t,r),Nr.Debug.assert(pe===t)}function Te(e,t){if(Nr.Debug.assert(pe===t||fe===t),0===e)return function(e){Tt();var t=e.statements;if(lr,0===t.length||!Nr.isPrologueDirective(t[0])||Nr.nodeIsSynthesized(t[0]))return void lr(e,t,Xe);Xe(e)}(Nr.cast(t,Nr.isSourceFile));if(2===e)return Ne(Nr.cast(t,Nr.isIdentifier));if(6===e)return ke(Nr.cast(t,Nr.isStringLiteral),!0);if(3===e)return be((r=Nr.cast(t,Nr.isTypeParameterDeclaration)).name),St(),vt("in"),St(),void be(r.constraint);var r,n,i,a,o,s,c,u,l,_,d,p,f,g,m,y,h,v,b,x,D,S,C,T,k,E,N,A,F,P,w,I,O,M,L,R,B,j,J,z,U,V,K,q,W,H,G,Q,X,Y,Z,$,ee,te,re,ne,ie,ae,oe,se,ce,ue,le;if(5===e)return Nr.Debug.assertNode(t,Nr.isEmptyStatement),Pe(!0);if(4===e){if(Nr.isKeyword(t.kind))return At(t,vt);switch(t.kind){case 15:case 16:case 17:return ke(t,!1);case 292:case 286:return function(e){for(var t=0,r=e.texts;t<r.length;t++){var n=r[t];Tt(),be(n)}}(t);case 285:return Ee(t);case 287:case 288:return q=t,W=he(),Ee(q),void(ye&&ve(W,de.getTextPos(),287===q.kind?"text":"internal"));case 289:return W=t,q=he(),Ee(W),void(ye&&((W=Nr.clone(W.section)).pos=q,W.end=de.getTextPos(),ye.sections.push(W)));case 75:return Ne(t);case 76:return void((K=t).symbol?mt:me)(qt(K,!1),K.symbol);case 153:return function(e){(75===e.kind?xe:be)(e)}((K=t).left),yt("."),void be(K.right);case 154:return V=t,yt("["),xe(V.expression),void yt("]");case 155:return function(e){be(e.name),e.constraint&&(St(),vt("extends"),St(),be(e.constraint));e.default&&(St(),bt("="),St(),be(e.default))}(t);case 156:return function(e){st(e,e.decorators),tt(e,e.modifiers),be(e.dotDotDotToken),et(e.name,xt),be(e.questionToken),(e.parent&&300===e.parent.kind&&!e.name?be:rt)(e.type);nt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.decorators?e.decorators.end:e.pos,e)}(t);case 157:return V=t,yt("@"),void xe(V.expression);case 158:return st(U=t,U.decorators),tt(U,U.modifiers),et(U.name,Ct),be(U.questionToken),rt(U.type),void ht();case 159:return st(U=t,U.decorators),tt(U,U.modifiers),be(U.name),be(U.questionToken),be(U.exclamationToken),rt(U.type),nt(U.initializer,(U.type||U.questionToken||U.name).end,U),void ht();case 160:return Ht(z=t),st(z,z.decorators),tt(z,z.modifiers),be(z.name),be(z.questionToken),ut(z,z.typeParameters),lt(z,z.parameters),rt(z.type),ht(),void Gt(z);case 161:return st(z=t,z.decorators),tt(z,z.modifiers),be(z.asteriskToken),be(z.name),be(z.questionToken),void Le(z,Re);case 162:return tt(J=t,J.modifiers),vt("constructor"),void Le(J,Re);case 163:case 164:return st(J=t,J.decorators),tt(J,J.modifiers),vt(163===J.kind?"get":"set"),St(),be(J.name),void Le(J,Re);case 165:return Ht(j=t),st(j,j.decorators),tt(j,j.modifiers),ut(j,j.typeParameters),lt(j,j.parameters),rt(j.type),ht(),void Gt(j);case 166:return Ht(j=t),st(j,j.decorators),tt(j,j.modifiers),vt("new"),St(),ut(j,j.typeParameters),lt(j,j.parameters),rt(j.type),ht(),void Gt(j);case 167:return st(B=t,B.decorators),tt(B,B.modifiers),function(e){dt(B,e,8848)}(B.parameters),rt(B.type),void ht();case 168:return function(e){e.assertsModifier&&(be(e.assertsModifier),St());be(e.parameterName),e.type&&(St(),vt("is"),St(),be(e.type))}(t);case 169:return be((R=t).typeName),void ct(R,R.typeArguments);case 170:return Ht(R=t),ut(R,R.typeParameters),_t(R,R.parameters),St(),yt("=>"),St(),be(R.type),void Gt(R);case 300:return L=t,vt("function"),lt(L,L.parameters),yt(":"),void be(L.type);case 171:return Ht(L=t),vt("new"),St(),ut(L,L.typeParameters),lt(L,L.parameters),St(),yt("=>"),St(),be(L.type),void Gt(L);case 172:return M=t,vt("typeof"),St(),void be(M.exprName);case 173:return function(e){yt("{");var t=1&Nr.getEmitFlags(e)?768:32897;dt(e,e.members,524288|t),yt("}")}(t);case 174:return be(t.elementType),yt("["),void yt("]");case 175:return M=t,yt("["),dt(M,M.elementTypes,528),void yt("]");case 176:return be(t.type),void yt("?");case 178:return void dt(O=t,O.types,516);case 179:return void dt(O=t,O.types,520);case 180:return be((I=t).checkType),St(),vt("extends"),St(),be(I.extendsType),St(),yt("?"),St(),be(I.trueType),St(),yt(":"),St(),void be(I.falseType);case 181:return I=t,vt("infer"),St(),void be(I.typeParameter);case 182:return w=t,yt("("),be(w.type),void yt(")");case 216:return xe((w=t).expression),void ct(w,w.typeArguments);case 183:return void vt("this");case 184:return Ft((P=t).operator,vt),St(),void be(P.type);case 185:return be((P=t).objectType),yt("["),be(P.indexType),void yt("]");case 186:return function(e){var t=Nr.getEmitFlags(e);yt("{"),1&t?St():(Tt(),kt());e.readonlyToken&&(be(e.readonlyToken),138!==e.readonlyToken.kind&&vt("readonly"),St());yt("["),Se(3,e.typeParameter),yt("]"),e.questionToken&&(be(e.questionToken),57!==e.questionToken.kind&&yt("?"));yt(":"),St(),be(e.type),ht(),1&t?St():(Tt(),Et());yt("}")}(t);case 187:return void xe(t.literal);case 188:return function(e){e.isTypeOf&&(vt("typeof"),St());vt("import"),yt("("),be(e.argument),yt(")"),e.qualifier&&(yt("."),be(e.qualifier));ct(e,e.typeArguments)}(t);case 295:return void yt("*");case 296:return void yt("?");case 297:return F=t,yt("?"),void be(F.type);case 298:return F=t,yt("!"),void be(F.type);case 299:return be(t.type),void yt("=");case 177:case 301:return A=t,yt("..."),void be(A.type);case 189:return A=t,yt("{"),dt(A,A.elements,525136),void yt("}");case 190:return N=t,yt("["),dt(N,N.elements,524880),void yt("]");case 191:return function(e){be(e.dotDotDotToken),e.propertyName&&(be(e.propertyName),yt(":"),St());be(e.name),nt(e.initializer,e.name.end,e)}(t);case 221:return xe((N=t).expression),void be(N.literal);case 222:return void ht();case 223:return void Fe(E=t,!E.multiLine&&Vt(E));case 225:return tt(E=t,E.modifiers),be(E.declarationList),void ht();case 224:return Pe(!1);case 226:return xe((k=t).expression),void(Nr.isJsonSourceFile(_e)&&!Nr.nodeIsSynthesized(k.expression)||ht());case 227:return k=Oe(95,(T=t).pos,vt,T),St(),Oe(20,k,yt,T),xe(T.expression),Oe(21,T.expression.end,yt,T),ot(T,T.thenStatement),void(T.elseStatement&&(Pt(T),Oe(87,T.thenStatement.end,vt,T),227===T.elseStatement.kind?(St(),be(T.elseStatement)):ot(T,T.elseStatement)));case 228:return function(e){Oe(86,e.pos,vt,e),ot(e,e.statement),Nr.isBlock(e.statement)?St():Pt(e);we(e,e.statement.end),ht()}(t);case 229:return we(T=t,T.pos),void ot(T,T.statement);case 230:return function(e){var t=Oe(93,e.pos,vt,e);St();t=Oe(20,t,yt,e);Ie(e.initializer),t=Oe(26,e.initializer?e.initializer.end:t,yt,e),at(e.condition),t=Oe(26,e.condition?e.condition.end:t,yt,e),at(e.incrementor),Oe(21,e.incrementor?e.incrementor.end:t,yt,e),ot(e,e.statement)}(t);case 231:return C=Oe(93,(S=t).pos,vt,S),St(),Oe(20,C,yt,S),Ie(S.initializer),St(),Oe(97,S.initializer.end,vt,S),St(),xe(S.expression),Oe(21,S.expression.end,yt,S),void ot(S,S.statement);case 232:return S=Oe(93,(C=t).pos,vt,C),St(),function(e){e&&(be(e),St())}(C.awaitModifier),Oe(20,S,yt,C),Ie(C.initializer),St(),Oe(152,C.initializer.end,vt,C),St(),xe(C.expression),Oe(21,C.expression.end,yt,C),void ot(C,C.statement);case 233:return Oe(82,(D=t).pos,vt,D),it(D.label),void ht();case 234:return Oe(77,(D=t).pos,vt,D),it(D.label),void ht();case 235:return Oe(101,(x=t).pos,vt,x),at(x.expression),void ht();case 236:return x=Oe(112,(b=t).pos,vt,b),St(),Oe(20,x,yt,b),xe(b.expression),Oe(21,b.expression.end,yt,b),void ot(b,b.statement);case 237:return b=Oe(103,(v=t).pos,vt,v),St(),Oe(20,b,yt,v),xe(v.expression),Oe(21,v.expression.end,yt,v),St(),void be(v.caseBlock);case 238:return be((v=t).label),Oe(58,v.label.end,yt,v),St(),void be(v.statement);case 239:return Oe(105,(h=t).pos,vt,h),at(h.expression),void ht();case 240:return function(e){Oe(107,e.pos,vt,e),St(),be(e.tryBlock),e.catchClause&&(Pt(e),be(e.catchClause));e.finallyBlock&&(Pt(e),Oe(92,(e.catchClause||e.tryBlock).end,vt,e),St(),be(e.finallyBlock))}(t);case 241:return Nt(83,t.pos,vt),void ht();case 242:return be((h=t).name),be(h.exclamationToken),rt(h.type),void nt(h.initializer,(h.type||h.name).end,h);case 243:return y=t,vt(Nr.isLet(y)?"let":Nr.isVarConst(y)?"const":"var"),St(),void dt(y,y.declarations,528);case 244:return void Me(t);case 245:return void je(t);case 246:return st(y=t,y.decorators),tt(y,y.modifiers),vt("interface"),St(),be(y.name),ut(y,y.typeParameters),dt(y,y.heritageClauses,512),St(),yt("{"),dt(y,y.members,129),void yt("}");case 247:return st(m=t,m.decorators),tt(m,m.modifiers),vt("type"),St(),be(m.name),ut(m,m.typeParameters),St(),yt("="),St(),be(m.type),void ht();case 248:return tt(m=t,m.modifiers),vt("enum"),St(),be(m.name),St(),yt("{"),dt(m,m.members,145),void yt("}");case 249:return function(e){tt(e,e.modifiers),1024&~e.flags&&(vt(16&e.flags?"namespace":"module"),St());be(e.name);var t=e.body;if(!t)return ht();for(;249===t.kind;)yt("."),be(t.name),t=t.body;St(),be(t)}(t);case 250:return Ht(g=t),Nr.forEach(g.statements,Xt),Fe(g,Vt(g)),void Gt(g);case 251:return Oe(18,(f=t).pos,yt,f),dt(f,f.clauses,129),void Oe(19,f.clauses.end,yt,f,!0);case 252:return f=Oe(89,(g=t).pos,vt,g),St(),f=Oe(123,f,vt,g),St(),f=Oe(136,f,vt,g),St(),be(g.name),void ht();case 253:return tt(p=t,p.modifiers),Oe(96,p.modifiers?p.modifiers.end:p.pos,vt,p),St(),be(p.name),St(),Oe(62,p.name.end,yt,p),St(),function(e){(75===e.kind?xe:be)(e)}(p.moduleReference),void ht();case 254:return function(e){tt(e,e.modifiers),Oe(96,e.modifiers?e.modifiers.end:e.pos,vt,e),St(),e.importClause&&(be(e.importClause),St(),Oe(149,e.importClause.end,vt,e),St());xe(e.moduleSpecifier),ht()}(t);case 255:return function(e){e.isTypeOnly&&(Oe(145,e.pos,vt,e),St());be(e.name),e.name&&e.namedBindings&&(Oe(27,e.name.end,yt,e),St());be(e.namedBindings)}(t);case 256:return p=Oe(41,(d=t).pos,yt,d),St(),Oe(123,p,vt,d),St(),void be(d.name);case 262:return d=Oe(41,(_=t).pos,yt,_),St(),Oe(123,d,vt,_),St(),void be(_.name);case 257:return void Je(t);case 258:return void ze(t);case 259:return function(e){var t=Oe(89,e.pos,vt,e);St(),e.isExportEquals?Oe(62,t,bt,e):Oe(84,t,vt,e);St(),xe(e.expression),ht()}(t);case 260:return function(e){var t=Oe(89,e.pos,vt,e);St(),e.isTypeOnly&&(t=Oe(145,t,vt,e),St());e.exportClause?be(e.exportClause):t=Oe(41,t,yt,e);e.moduleSpecifier&&(St(),Oe(149,e.exportClause?e.exportClause.end:t,vt,e),St(),xe(e.moduleSpecifier));ht()}(t);case 261:return void Je(t);case 263:return void ze(t);case 264:return;case 265:return _=t,vt("require"),yt("("),xe(_.expression),void yt(")");case 11:return l=t,void de.writeLiteral(l.text);case 268:case 271:return function(e){{var t;yt("<"),Nr.isJsxOpeningElement(e)&&(t=jt(e.tagName,e),Ue(e.tagName),ct(e,e.typeArguments),e.attributes.properties&&0<e.attributes.properties.length&&St(),be(e.attributes),Jt(e.attributes,e),Ot(t))}yt(">")}(t);case 269:case 272:return function(e){yt("</"),Nr.isJsxClosingElement(e)&&Ue(e.tagName);yt(">")}(t);case 273:return be((l=t).name),void function(e,t,r,n){r&&(t(e),n(r))}("=",yt,l.initializer,De);case 274:return void dt(u=t,u.properties,262656);case 275:return u=t,yt("{..."),xe(u.expression),void yt("}");case 276:return void((c=t).expression&&(yt("{"),be(c.dotDotDotToken),xe(c.expression),yt("}")));case 277:return Oe(78,(s=t).pos,vt,s),St(),xe(s.expression),void Ve(s,s.statements,s.expression.end);case 278:return s=Oe(84,(c=t).pos,vt,c),void Ve(c,c.statements,s);case 279:return o=t,St(),Ft(o.token,vt),St(),void dt(o,o.types,528);case 280:return function(e){var t=Oe(79,e.pos,vt,e);St(),e.variableDeclaration&&(Oe(20,t,yt,e),be(e.variableDeclaration),Oe(21,e.variableDeclaration.end,yt,e),St());be(e.block)}(t);case 281:return function(e){be(e.name),yt(":"),St();e=e.initializer;0==(512&Nr.getEmitFlags(e))&&yr(Nr.getCommentRange(e).pos);xe(e)}(t);case 282:return be((o=t).name),void(o.objectAssignmentInitializer&&(St(),yt("="),St(),xe(o.objectAssignmentInitializer)));case 283:return void((a=t).expression&&(Oe(25,a.pos,yt,a),xe(a.expression)));case 284:return be((a=t).name),void nt(a.initializer,a.name.end,a);case 317:case 323:return function(e){We(e.tagName),Ge(e.typeExpression),St(),e.isBracketed&&yt("[");be(e.name),e.isBracketed&&yt("]");He(e.comment)}(t);case 318:case 320:case 319:case 316:return We((i=t).tagName),Ge(i.typeExpression),void He(i.comment);case 308:case 307:return We((i=t).tagName),St(),yt("{"),be(i.class),yt("}"),void He(i.comment);case 321:return We((n=t).tagName),Ge(n.constraint),St(),dt(n,n.typeParameters,528),void He(n.comment);case 322:return function(e){We(e.tagName),e.typeExpression&&(294===e.typeExpression.kind?Ge(e.typeExpression):(St(),yt("{"),me("Object"),e.typeExpression.isArrayType&&(yt("["),yt("]")),yt("}")));e.fullName&&(St(),be(e.fullName));He(e.comment),e.typeExpression&&304===e.typeExpression.kind&&Ke(e.typeExpression)}(t);case 315:return function(e){We(e.tagName),e.name&&(St(),be(e.name));He(e.comment),qe(e.typeExpression)}(t);case 305:return qe(t);case 304:return Ke(t);case 310:case 306:return We((n=t).tagName),void He(n.comment);case 303:return function(e){if(me("/**"),e.comment)for(var t=e.comment.split(/\r\n?|\n/g),r=0,n=t;r<n.length;r++){var i=n[r];Tt(),St(),yt("*"),St(),me(i)}e.tags&&(1!==e.tags.length||320!==e.tags[0].kind||e.comment?dt(e,e.tags,33):(St(),be(e.tags[0])));St(),me("*/")}(t)}if(Nr.isExpression(t))e=1,ge!==Nr.noEmitSubstitution&&(fe=t=ge(e,t));else if(Nr.isToken(t))return At(t,yt)}if(1===e)switch(t.kind){case 8:case 9:return void ke(t,!1);case 10:case 13:case 14:return ke(t,!1);case 75:return Ne(t);case 91:case 100:case 102:case 106:case 104:case 96:return void At(t,vt);case 192:return ue=(ce=t).elements,le=ce.multiLine?65536:0,void pt(ce,ue,8914|le);case 193:return function(e){Nr.forEach(e.properties,Yt);var t=65536&Nr.getEmitFlags(e);t&&kt();var r=e.multiLine?65536:0,n=1<=_e.languageVersion&&!Nr.isJsonSourceFile(_e)?64:0;dt(e,e.properties,526226|n|r),t&&Et()}(t);case 194:return function(e){var t=Nr.cast(xe(e.expression),Nr.isExpression),r=e.questionDotToken||Nr.createNode(24,e.expression.end,e.name.pos),n=Ut(e,e.expression,r),i=Ut(e,r,e.name);It(n,!1),28===r.kind||!function(e){{if(e=Nr.skipPartiallyEmittedExpressions(e),Nr.isNumericLiteral(e)){var t=Wt(e,!0,!1);return!e.numericLiteralFlags&&!Nr.stringContains(t,Nr.tokenToString(24))}if(Nr.isAccessExpression(e)){e=Nr.getConstantValue(e);return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}}}(t)||de.hasTrailingComment()||de.hasTrailingWhitespace()||yt(".");e.questionDotToken?be(r):Oe(r.kind,e.expression.end,yt,e);It(i,!1),be(e.name),Ot(n,i)}(t);case 195:return xe((se=t).expression),be(se.questionDotToken),Oe(22,se.expression.end,yt,se),xe(se.argumentExpression),void Oe(23,se.argumentExpression.end,yt,se);case 196:return xe((se=t).expression),be(se.questionDotToken),ct(se,se.typeArguments),void pt(se,se.arguments,2576);case 197:return Oe(99,(oe=t).pos,vt,oe),St(),xe(oe.expression),ct(oe,oe.typeArguments),void pt(oe,oe.arguments,18960);case 198:return xe((ae=t).tag),ct(ae,ae.typeArguments),St(),void xe(ae.template);case 199:return ie=t,yt("<"),be(ie.type),yt(">"),void xe(ie.expression);case 200:return ae=Oe(20,(oe=t).pos,yt,oe),ie=jt(oe.expression,oe),xe(oe.expression),Jt(oe.expression,oe),Ot(ie),void Oe(21,oe.expression?oe.expression.end:ae,yt,oe);case 201:return Zt((ne=t).name),void Me(ne);case 202:return st(ne=t,ne.decorators),tt(ne,ne.modifiers),void Le(ne,Ae);case 203:return Oe(85,(re=t).pos,vt,re),St(),void xe(re.expression);case 204:return Oe(108,(te=t).pos,vt,te),St(),void xe(te.expression);case 205:return Oe(110,(ee=t).pos,vt,ee),St(),void xe(ee.expression);case 206:return Oe(127,($=t).pos,vt,$),St(),void xe($.expression);case 207:return function(e){Ft(e.operator,bt),function(e){var t=e.operand;return 207===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&St();xe(e.operand)}(t);case 208:return xe((Z=t).operand),void Ft(Z.operator,bt);case 209:return function(e){var i=[e],a=[0],o=0;for(;0<=o;)switch(e=i[o],a[o]){case 0:s(e.left);break;case 1:var t=27!==e.operatorToken.kind,r=Ut(e,e.left,e.operatorToken),n=Ut(e,e.operatorToken,e.right);It(r,t),gr(e.operatorToken.pos),At(e.operatorToken,97===e.operatorToken.kind?vt:bt),yr(e.operatorToken.end,!0),It(n,!0),s(e.right);break;case 2:r=Ut(e,e.left,e.operatorToken),n=Ut(e,e.operatorToken,e.right);Ot(r,n),o--;break;default:return Nr.Debug.fail("Invalid state "+a[o]+" for emitBinaryExpressionWorker")}function s(e){a[o]++;var t=pe,r=fe;fe=void 0;var n=Ce(0,1,pe=e);n===Te&&Nr.isBinaryExpression(e)?(a[++o]=0,i[o]=e):n(1,e),Nr.Debug.assert(pe===e),pe=t,fe=r}}(t);case 210:return te=Ut(re=t,re.condition,re.questionToken),ee=Ut(re,re.questionToken,re.whenTrue),$=Ut(re,re.whenTrue,re.colonToken),Z=Ut(re,re.colonToken,re.whenFalse),xe(re.condition),It(te,!0),be(re.questionToken),It(ee,!0),xe(re.whenTrue),Ot(te,ee),It($,!0),be(re.colonToken),It(Z,!0),xe(re.whenFalse),void Ot($,Z);case 211:return be((Y=t).head),void dt(Y,Y.templateSpans,262144);case 212:return Oe(121,(Y=t).pos,vt,Y),be(Y.asteriskToken),void at(Y.expression);case 213:return Oe(25,(X=t).pos,yt,X),void xe(X.expression);case 214:return Zt((X=t).name),void je(X);case 215:return;case 217:return xe((Q=t).expression),void(Q.type&&(St(),vt("as"),St(),be(Q.type)));case 218:return xe(t.expression),void bt("!");case 219:return Nt((Q=t).keywordToken,Q.pos,yt),yt("."),void be(Q.name);case 266:return be((G=t).openingElement),dt(G,G.children,262144),void be(G.closingElement);case 267:return G=t,yt("<"),Ue(G.tagName),ct(G,G.typeArguments),St(),be(G.attributes),void yt("/>");case 270:return be((H=t).openingFragment),dt(H,H.children,262144),void be(H.closingFragment);case 326:return void xe(t.expression);case 327:return void pt(H=t,H.elements,528)}}function ae(e,t){Nr.Debug.assert(pe===t||fe===t),ne(1,e,t)(e,fe),Nr.Debug.assert(pe===t||fe===t)}function oe(e){var t=!1,r=291===e.kind?e:void 0;if(!r||C!==Nr.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=Nr.isSourceFile(o)?o:Nr.isUnparsedSource(o)?void 0:_e,c=f.noEmitHelpers||!!s&&Nr.hasRecordedExternalHelpers(s),u=(Nr.isSourceFile(o)||Nr.isUnparsedSource(o))&&!g,o=Nr.isUnparsedSource(o)?o.helpers:se(o);if(o)for(var l=0,_=o;l<_.length;l++){var d=_[l];if(d.scoped){if(r)continue}else{if(c)continue;if(u){if(T.get(d.name))continue;T.set(d.name,!0)}}var p=he();"string"==typeof d.text?wt(d.text):wt(d.text(ar)),ye&&ye.sections.push({pos:p,end:de.getTextPos(),kind:"emitHelpers",data:d.name}),t=!0}}return t}}function se(e){e=Nr.getEmitHelpers(e);return e&&Nr.stableSort(e,Nr.compareEmitHelpers)}function ke(e,t){t=Wt(e,f.neverAsciiEscape,t);!f.sourceMap&&!f.inlineSourceMap||10!==e.kind&&!Nr.isTemplateLiteralKind(e.kind)?(e=t,de.writeStringLiteral(e)):(t=t,de.writeLiteral(t))}function Ee(e){de.rawWrite(e.parent.text.substring(e.pos,e.end))}function Ne(e){(e.symbol?mt:me)(qt(e,!1),e.symbol),dt(e,e.typeArguments,53776)}function Ae(e){ut(e,e.typeParameters),_t(e,e.parameters),rt(e.type),St(),be(e.equalsGreaterThanToken)}function Fe(e,t){Oe(18,e.pos,yt,e);t=t||1&Nr.getEmitFlags(e)?768:129;dt(e,e.statements,t),Oe(19,e.statements.end,yt,e,!!(1&t))}function Pe(e){e?yt(";"):ht()}function we(e,t){t=Oe(111,t,vt,e);St(),Oe(20,t,yt,e),xe(e.expression),Oe(21,e.expression.end,yt,e)}function Ie(e){void 0!==e&&(243===e.kind?be:xe)(e)}function Oe(e,t,r,n,i){var a=Nr.getParseTreeNode(n),o=a&&a.kind===n.kind,a=t;return o&&_e&&(t=Nr.skipTrivia(_e.text,t)),o&&n.pos!==a&&((i=i&&_e&&!Nr.positionsAreOnSameLine(a,t,_e))&&kt(),gr(a),i&&Et()),t=Ft(e,r,t),o&&n.end!==t&&yr(t,!0),t}function Me(e){st(e,e.decorators),tt(e,e.modifiers),vt("function"),be(e.asteriskToken),St(),re(e.name),Le(e,Re)}function ce(e,t){ue(t)}function Le(e,t){var r,n=e.body;n?Nr.isBlock(n)?((r=65536&Nr.getEmitFlags(e))&&kt(),Ht(e),Nr.forEach(e.parameters,Xt),Xt(e.body),t(e),y?y(4,n,ce):ue(n),Gt(e),r&&Et()):(t(e),St(),xe(n)):(t(e),ht())}function Re(e){ut(e,e.typeParameters),lt(e,e.parameters),rt(e.type)}function ue(e){St(),yt("{"),kt();var t=function(e){if(1&Nr.getEmitFlags(e))return 1;if(!e.multiLine&&(Nr.nodeIsSynthesized(e)||Nr.rangeIsOnSingleLine(e,_e))&&!Mt(e,e.statements,2)&&!Rt(e,e.statements,2)){for(var t,r=0,n=e.statements;r<n.length;r++){var i=n[r];if(0<Lt(t,i,2))return;t=i}return 1}}(e)?le:Be;lr(e,e.statements,t),Et(),Nt(19,e.statements.end,yt,e)}function le(e){Be(e,!0)}function Be(e,t){var r=Ye(e.statements),n=de.getTextPos();oe(e),0===r&&n===de.getTextPos()&&t?(Et(),dt(e,e.statements,768),kt()):dt(e,e.statements,1,r)}function je(e){Nr.forEach(e.members,Yt),st(e,e.decorators),tt(e,e.modifiers),vt("class"),e.name&&(St(),re(e.name));var t=65536&Nr.getEmitFlags(e);t&&kt(),ut(e,e.typeParameters),dt(e,e.heritageClauses,0),St(),yt("{"),dt(e,e.members,129),yt("}"),t&&Et()}function Je(e){yt("{"),dt(e,e.elements,525136),yt("}")}function ze(e){e.propertyName&&(be(e.propertyName),St(),Oe(123,e.propertyName.end,vt,e),St()),be(e.name)}function Ue(e){(75===e.kind?xe:be)(e)}function Ve(e,t,r){var n=163969;1===t.length&&(Nr.nodeIsSynthesized(e)||Nr.nodeIsSynthesized(t[0])||Nr.rangeStartPositionsAreOnSameLine(e,t[0],_e))?(Nt(58,r,yt,e),St(),n&=-130):Oe(58,r,yt,e),dt(e,t,n)}function Ke(e){dt(e,Nr.createNodeArray(e.jsDocPropertyTags),33)}function qe(e){e.typeParameters&&dt(e,Nr.createNodeArray(e.typeParameters),33),e.parameters&&dt(e,Nr.createNodeArray(e.parameters),33),e.type&&(Tt(),St(),yt("*"),St(),be(e.type))}function We(e){yt("@"),be(e)}function He(e){e&&(St(),me(e))}function Ge(e){e&&(St(),yt("{"),be(e.type),yt("}"))}function Qe(e,t,r,n){if(e&&(l=de.getTextPos(),Dt('/// <reference no-default-lib="true"/>'),ye&&ye.sections.push({pos:l,end:de.getTextPos(),kind:"no-default-lib"}),Tt()),_e&&_e.moduleName&&(Dt('/// <amd-module name="'+_e.moduleName+'" />'),Tt()),_e&&_e.amdDependencies)for(var i=0,a=_e.amdDependencies;i<a.length;i++){var o=a[i];o.name?Dt('/// <amd-dependency name="'+o.name+'" path="'+o.path+'" />'):Dt('/// <amd-dependency path="'+o.path+'" />'),Tt()}for(var s=0,c=t;s<c.length;s++){var u=c[s],l=de.getTextPos();Dt('/// <reference path="'+u.fileName+'" />'),ye&&ye.sections.push({pos:l,end:de.getTextPos(),kind:"reference",data:u.fileName}),Tt()}for(var _=0,d=r;_<d.length;_++){u=d[_],l=de.getTextPos();Dt('/// <reference types="'+u.fileName+'" />'),ye&&ye.sections.push({pos:l,end:de.getTextPos(),kind:"type",data:u.fileName}),Tt()}for(var p=0,f=n;p<f.length;p++){u=f[p],l=de.getTextPos();Dt('/// <reference lib="'+u.fileName+'" />'),ye&&ye.sections.push({pos:l,end:de.getTextPos(),kind:"lib",data:u.fileName}),Tt()}}function Xe(e){var t=e.statements;Ht(e),Nr.forEach(e.statements,Xt),oe(e);var r,n=Nr.findIndex(t,function(e){return!Nr.isPrologueDirective(e)});(r=e).isDeclarationFile&&Qe(r.hasNoDefaultLib,r.referencedFiles,r.typeReferenceDirectives,r.libReferenceDirectives),dt(e,t,1,-1===n?t.length:n),Gt(e)}function Ye(e,t,r,n){for(var i=!!t,a=0;a<e.length;a++){var o,s=e[a];if(!Nr.isPrologueDirective(s))return a;r&&r.has(s.expression.text)||(i&&(i=!1,Z(t)),Tt(),o=de.getTextPos(),be(s),n&&ye&&ye.sections.push({pos:o,end:de.getTextPos(),kind:"prologue",data:s.expression.text}),r&&r.set(s.expression.text,!0))}return e.length}function Ze(e){if(Nr.isSourceFile(e))Ye(e.statements,e);else{for(var t=Nr.createMap(),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)||(Tt(),i=de.getTextPos(),be(a),ye&&ye.sections.push({pos:i,end:de.getTextPos(),kind:"prologue",data:a.data}),t&&t.set(a.data,!0))}}(n[r].prologues,t);for(var i=0,a=e.sourceFiles;i<a.length;i++){var o=a[i];Ye(o.statements,o,t,!0)}Z(void 0)}}function $e(e){if(Nr.isSourceFile(e)||Nr.isUnparsedSource(e)){var t=Nr.getShebang(e.text);return t?(Dt(t),Tt(),1):void 0}for(var r=0,n=e.prepends;r<n.length;r++){var i=n[r];if(Nr.Debug.assertNode(i,Nr.isUnparsedSource),$e(i))return 1}for(var a=0,o=e.sourceFiles;a<o.length;a++)if($e(o[a]))return 1}function et(e,t){var r;e&&(r=me,me=t,be(e),me=r)}function tt(e,t){t&&t.length&&(dt(e,t,262656),St())}function rt(e){e&&(yt(":"),St(),be(e))}function nt(e,t,r){e&&(St(),Oe(62,t,bt,r),St(),xe(e))}function it(e){e&&(St(),be(e))}function at(e){e&&(St(),xe(e))}function ot(e,t){Nr.isBlock(t)||1&Nr.getEmitFlags(e)?(St(),be(t)):(Tt(),kt(),Nr.isEmptyStatement(t)?Se(5,t):be(t),Et())}function st(e,t){dt(e,t,2146305)}function ct(e,t){dt(e,t,53776)}function ut(e,t){if(Nr.isFunctionLike(e)&&e.typeArguments)return ct(e,e.typeArguments),0;dt(e,t,53776)}function lt(e,t){dt(e,t,2576)}function _t(e,t){var r,n;r=e,n=t,!(n=Nr.singleOrUndefined(n))||n.pos!==r.pos||!Nr.isArrowFunction(r)||r.type||Nr.some(r.decorators)||Nr.some(r.modifiers)||Nr.some(r.typeParameters)||Nr.some(n.decorators)||Nr.some(n.modifiers)||n.dotDotDotToken||n.questionToken||n.type||n.initializer||!Nr.isIdentifier(n.name)?lt(e,t):dt(e,t,528)}function dt(e,t,r,n,i){gt(be,e,t,r,n,i)}function pt(e,t,r,n,i){gt(xe,e,t,r,n,i)}function ft(e){switch(60&e){case 0:break;case 16:yt(",");break;case 4:St(),yt("|");break;case 32:St(),yt("*"),St();break;case 8:St(),yt("&")}}function gt(e,t,r,n,i,a){void 0===i&&(i=0),void 0===a&&(a=r?r.length-i:0);var o=void 0===r;if(!(o&&16384&n)){var s=void 0===r||i>=r.length||0===a;if(s&&32768&n)return v&&v(r),void(b&&b(r));if(15360&n&&(yt(Ar[15360&n][0]),s&&!o&&yr(r.pos,!0)),v&&v(r),s)!(1&n)||k&&Nr.rangeIsOnSingleLine(t,_e)?256&n&&!(524288&n)&&St():Tt();else{var c=0==(262144&n),u=c,l=Mt(t,r,n);l?(Tt(l),u=!1):256&n&&St(),128&n&&kt();for(var _=void 0,d=void 0,p=!1,f=0;f<a;f++){var g,m=r[i+f];32&n?(Tt(),ft(n)):_&&(60&n&&_.end!==t.end&&gr(_.end),ft(n),q(d),0<(g=Lt(_,m,n))?(0==(131&n)&&(kt(),p=!0),Tt(g),u=!1):_&&512&n&&St()),d=K(m),u?yr(Nr.getCommentRange(m).pos):u=c,e(m),p&&(Et(),p=!1),_=m}l=64&n&&r.hasTrailingComma;16&n&&l&&yt(","),_&&60&n&&_.end!==t.end&&!(1024&Nr.getEmitFlags(_))&&gr(_.end),128&n&&Et(),q(d);l=Rt(t,r,n);l?Tt(l):2097408&n&&St()}b&&b(r),15360&n&&(s&&!o&&gr(r.end),yt(Ar[15360&n][1]))}}function mt(e,t){de.writeSymbol(e,t)}function yt(e){de.writePunctuation(e)}function ht(){de.writeTrailingSemicolon(";")}function vt(e){de.writeKeyword(e)}function bt(e){de.writeOperator(e)}function xt(e){de.writeParameter(e)}function Dt(e){de.writeComment(e)}function St(){de.writeSpace(" ")}function Ct(e){de.writeProperty(e)}function Tt(e){void 0===e&&(e=1);for(var t=0;t<e;t++)de.writeLine(0<t)}function kt(){de.increaseIndent()}function Et(){de.decreaseIndent()}function Nt(e,t,r,n){return P?Ft(e,r,t):function(e,t,r,n,i){if(P||e&&Nr.isInJsonFile(e))return i(t,r,n);var a=e&&e.emitNode,o=a&&a.flags||0,e=a&&a.tokenSourceMapRanges&&a.tokenSourceMapRanges[t],a=e&&e.source||l;n=Sr(a,e?e.pos:n),0==(128&o)&&0<=n&&Tr(a,n);n=i(t,r,n),e&&(n=e.end);0==(256&o)&&0<=n&&Tr(a,n);return n}(n,e,r,t,Ft)}function At(e,t){x&&x(e),t(Nr.tokenToString(e.kind)),D&&D(e)}function Ft(e,t,r){e=Nr.tokenToString(e);return t(e),r<0?r:r+e.length}function Pt(e){(1&Nr.getEmitFlags(e)?St:Tt)()}function wt(e){for(var e=e.split(/\r\n?|\n/g),t=Nr.guessIndentation(e),r=0,n=e;r<n.length;r++){var i=n[r],i=t?i.slice(t):i;i.length&&(Tt(),me(i))}}function It(e,t){e?(kt(),Tt(e)):t&&St()}function Ot(e,t){e&&Et(),t&&Et()}function Mt(t,e,r){if(2&r||k){if(65536&r)return 1;var n=e[0];if(void 0===n)return Nr.rangeIsOnSingleLine(t,_e)?0:1;if(11===n.kind)return 0;if(!(Nr.positionIsSynthesized(t.pos)||Nr.nodeIsSynthesized(n)||n.parent&&n.parent!==t))return k?Bt(function(e){return Nr.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(n.pos,t.pos,_e,e)}):Nr.rangeStartPositionsAreOnSameLine(t,n,_e)?0:1;if(zt(n,r))return 1}return 1&r?1:0}function Lt(t,r,e){if(2&e||k){if(void 0===t||void 0===r)return 0;if(11===r.kind)return 0;if(!Nr.nodeIsSynthesized(t)&&!Nr.nodeIsSynthesized(r)&&t.parent===r.parent)return k?Bt(function(e){return Nr.getLinesBetweenRangeEndAndRangeStart(t,r,_e,e)}):Nr.rangeEndIsOnSameLineAsRangeStart(t,r,_e)?0:1;if(zt(t,e)||zt(r,e))return 1}else if(Nr.getStartsOnNewLine(r))return 1;return 1&e?1:0}function Rt(t,e,r){if(2&r||k){if(65536&r)return 1;var n=Nr.lastOrUndefined(e);if(void 0===n)return Nr.rangeIsOnSingleLine(t,_e)?0:1;if(!(Nr.positionIsSynthesized(t.pos)||Nr.nodeIsSynthesized(n)||n.parent&&n.parent!==t))return k?Bt(function(e){return Nr.getLinesBetweenPositionAndNextNonWhitespaceCharacter(n.end,t.end,_e,e)}):Nr.rangeEndPositionsAreOnSameLine(t,n,_e)?0:1;if(zt(n,r))return 1}return 1&r&&!(131072&r)?1:0}function Bt(e){Nr.Debug.assert(!!k);var t=e(!0);return 0===t?e(!1):t}function jt(e,t){e=k&&Mt(t,[e],0);return e&&It(e,!1),!!e}function Jt(e,t){e=k&&Rt(t,[e],0);e&&Tt(e)}function zt(e,t){if(Nr.nodeIsSynthesized(e)){e=Nr.getStartsOnNewLine(e);return void 0===e?0!=(65536&t):e}return 0!=(65536&t)}function Ut(e,t,r){return 131072&Nr.getEmitFlags(e)?0:(e=Kt(e),t=Kt(t),r=Kt(r),Nr.getStartsOnNewLine(r)?1:Nr.nodeIsSynthesized(e)||Nr.nodeIsSynthesized(t)||Nr.nodeIsSynthesized(r)?0:k?Bt(function(e){return Nr.getLinesBetweenRangeEndAndRangeStart(t,r,_e,e)}):Nr.rangeEndIsOnSameLineAsRangeStart(t,r,_e)?0:1)}function Vt(e){return 0===e.statements.length&&Nr.rangeEndIsOnSameLineAsRangeStart(e,e,_e)}function Kt(e){for(;200===e.kind&&Nr.nodeIsSynthesized(e);)e=e.expression;return e}function qt(e,t){return Nr.isGeneratedIdentifier(e)?$t(e):(Nr.isIdentifier(e)||Nr.isPrivateIdentifier(e))&&(Nr.nodeIsSynthesized(e)||!e.parent||!_e||e.parent&&_e&&Nr.getSourceFileOfNode(e)!==Nr.getOriginalNode(_e))?Nr.idText(e):10===e.kind&&e.textSourceNode?qt(e.textSourceNode,t):!Nr.isLiteralExpression(e)||!Nr.nodeIsSynthesized(e)&&e.parent?Nr.getSourceTextOfNodeFromSourceFile(_e,e,t):e.text}function Wt(e,t,r){if(10===e.kind&&e.textSourceNode){var n=e.textSourceNode;return Nr.isIdentifier(n)?r?'"'+Nr.escapeJsxAttributeString(qt(n))+'"':t||16777216&Nr.getEmitFlags(e)?'"'+Nr.escapeString(qt(n))+'"':'"'+Nr.escapeNonAsciiString(qt(n))+'"':Wt(n,t,r)}return Nr.getLiteralText(e,_e,t,r)}function Ht(e){e&&524288&Nr.getEmitFlags(e)||(t.push(i),i=0,a.push(s))}function Gt(e){e&&524288&Nr.getEmitFlags(e)||(i=t.pop(),s=a.pop())}function Qt(e){s&&s!==Nr.lastOrUndefined(a)||(s=Nr.createMap()),s.set(e,!0)}function Xt(e){if(e)switch(e.kind){case 223:Nr.forEach(e.statements,Xt);break;case 238:case 236:case 228:case 229:Xt(e.statement);break;case 227:Xt(e.thenStatement),Xt(e.elseStatement);break;case 230:case 232:case 231:Xt(e.initializer),Xt(e.statement);break;case 237:Xt(e.caseBlock);break;case 251:Nr.forEach(e.clauses,Xt);break;case 277:case 278:Nr.forEach(e.statements,Xt);break;case 240:Xt(e.tryBlock),Xt(e.catchClause),Xt(e.finallyBlock);break;case 280:Xt(e.variableDeclaration),Xt(e.block);break;case 225:Xt(e.declarationList);break;case 243:Nr.forEach(e.declarations,Xt);break;case 242:case 156:case 191:case 245:Zt(e.name);break;case 244:Zt(e.name),524288&Nr.getEmitFlags(e)&&(Nr.forEach(e.parameters,Xt),Xt(e.body));break;case 189:case 190:Nr.forEach(e.elements,Xt);break;case 254:Xt(e.importClause);break;case 255:Zt(e.name),Xt(e.namedBindings);break;case 256:case 262:Zt(e.name);break;case 257:Nr.forEach(e.elements,Xt);break;case 258:Zt(e.propertyName||e.name)}}function Yt(e){if(e)switch(e.kind){case 281:case 282:case 159:case 161:case 163:case 164:Zt(e.name)}}function Zt(e){e&&(Nr.isGeneratedIdentifier(e)?$t(e):Nr.isBindingPattern(e)&&Xt(e))}function $t(e){if(4==(7&e.autoGenerateFlags))return er(function(e){var t=e.autoGenerateId,r=e,n=r.original;for(;n&&(r=n,!(Nr.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 nr(0,!!(8&e.autoGenerateFlags));case 2:return nr(268435456,!!(8&e.autoGenerateFlags));case 3:return ir(Nr.idText(e),32&e.autoGenerateFlags?rr:tr,!!(16&e.autoGenerateFlags),!!(8&e.autoGenerateFlags))}return Nr.Debug.fail("Unsupported GeneratedIdentifierKind.")}(e))}function er(e,t){var r=Nr.getNodeId(e);return n[r]||(n[r]=function(e,t){switch(e.kind){case 75:return ir(qt(e),tr,!!(16&t),!!(8&t));case 249:case 248:return function(e){var t=qt(e.name);return function(e,t){for(var r=t;Nr.isNodeDescendantOf(r,t);r=r.nextContainer)if(r.locals){var n=r.locals.get(Nr.escapeLeadingUnderscores(e));if(n&&3257279&n.flags)return!1}return!0}(t,e)?t:ir(t)}(e);case 254:case 260:return function(e){e=Nr.getExternalModuleName(e);return ir(Nr.isStringLiteral(e)?Nr.makeIdentifierFromModuleName(e.text):"module")}(e);case 244:case 245:case 259:return ir("default");case 214:return ir("class");case 161:case 163:case 164:return function(e){if(Nr.isIdentifier(e.name))return er(e.name);return nr(0)}(e);case 154:return nr(0,!0);default:return nr(0)}}(e,t))}function tr(e){return rr(e)&&!o.has(e)&&!(s&&s.has(e))}function rr(e){return!_e||Nr.isFileLevelUniqueName(_e,e,p)}function nr(e,t){if(e&&!(i&e)&&tr(r=268435456===e?"_i":"_n"))return i|=e,t&&Qt(r),r;for(;;){var r,n=268435455&i;if(i++,8!=n&&13!=n)if(tr(r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26)))return t&&Qt(r),r}}function ir(e,t,r,n){if(void 0===t&&(t=tr),r&&t(e))return n?Qt(e):o.set(e,!0),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var i=1;;){var a=e+i;if(t(a))return n?Qt(a):o.set(a,!0),a;i++}}function ar(e){return ir(e,rr,!0)}function or(e,t){Nr.Debug.assert(pe===t||fe===t),B(),L=!1;var r=Nr.getEmitFlags(t),n=Nr.getCommentRange(t),i=n.pos,a=n.end,o=325!==t.kind,s=i<0||0!=(512&r)||11===t.kind,c=a<0||0!=(1024&r)||11===t.kind,u=I,l=O,n=M;(0<i||0<a)&&i!==a&&(s||_r(i,o),(!s||0<=i&&0!=(512&r))&&(I=i),(!c||0<=a&&0!=(1024&r))&&(O=a,243===t.kind&&(M=a))),Nr.forEach(Nr.getSyntheticLeadingComments(t),sr),j();s=ne(2,e,t);2048&r?(R=!0,s(e,t),R=!1):s(e,t),B(),Nr.forEach(Nr.getSyntheticTrailingComments(t),cr),(0<i||0<a)&&i!==a&&(I=u,O=l,M=n,!c&&o&&br(a,mr)),j(),Nr.Debug.assert(pe===t||fe===t)}function sr(e){2===e.kind&&de.writeLine(),ur(e),e.hasTrailingNewLine||2===e.kind?de.writeLine():de.writeSpace(" ")}function cr(e){de.isAtStartOfLine()||de.writeSpace(" "),ur(e),e.hasTrailingNewLine&&de.writeLine()}function ur(e){var t,t=3===(t=e).kind?"/*"+t.text+"*/":"//"+t.text,e=3===e.kind?Nr.computeLineStarts(t):void 0;Nr.writeCommentRange(t,e,de,0,t.length,S)}function lr(e,t,r){B();var n=t.pos,i=t.end,a=Nr.getEmitFlags(e),i=R||i<0||0!=(1024&a);n<0||0!=(512&a)||(n=t,(n=Nr.emitDetachedComments(_e.text,te(),de,xr,n,S,R))&&(d?d.push(n):d=[n])),j(),2048&a&&!R?(R=!0,r(e),R=!1):r(e),B(),i||(_r(t.end,!0),L&&!de.isAtStartOfLine()&&de.writeLine()),j()}function _r(e,t){L=!1,t?vr(e,fr):0===e&&vr(e,dr)}function dr(e,t,r,n,i){var a,o;a=e,o=t,Nr.isRecognizedTripleSlashComment(_e.text,a,o)&&fr(e,t,r,n,i)}function pr(e,t){return!f.onlyPrintJsDocStyle||(Nr.isJSDocLikeText(e,t)||Nr.isPinnedComment(e,t))}function fr(e,t,r,n,i){pr(_e.text,e)&&(L||(Nr.emitNewLineBeforeLeadingCommentOfPosition(te(),de,i,e),L=!0),Cr(e),Nr.writeCommentRange(_e.text,te(),de,e,t,S),Cr(t),n?de.writeLine():3===r&&de.writeSpace(" "))}function gr(e){R||-1===e||_r(e,!0)}function mr(e,t,r,n){pr(_e.text,e)&&(de.isAtStartOfLine()||de.writeSpace(" "),Cr(e),Nr.writeCommentRange(_e.text,te(),de,e,t,S),Cr(t),n&&de.writeLine())}function yr(e,t){R||(B(),br(e,t?mr:hr),j())}function hr(e,t,r,n){Cr(e),Nr.writeCommentRange(_e.text,te(),de,e,t,S),Cr(t),n?de.writeLine():de.writeSpace(" ")}function vr(e,t){var r,n;!_e||-1!==I&&e===I||(n=e,void 0!==d&&Nr.last(d).nodePos===n?(r=t,n=Nr.last(d).detachedCommentEndPos,d.length-1?d.pop():d=void 0,Nr.forEachLeadingCommentRange(_e.text,n,r,n)):Nr.forEachLeadingCommentRange(_e.text,e,t,e))}function br(e,t){_e&&(-1===O||e!==O&&e!==M)&&Nr.forEachTrailingCommentRange(_e.text,e,t)}function xr(e,t,r,n,i,a){pr(_e.text,n)&&(Cr(n),Nr.writeCommentRange(e,t,r,n,i,a),Cr(i))}function Dr(e,t){Nr.Debug.assert(pe===t||fe===t);var r,n,i,a,o=ne(3,e,t);Nr.isUnparsedSource(t)||Nr.isUnparsedPrepend(t)?o(e,t):Nr.isUnparsedNode(t)?((i=(void 0===(a=t.parent).parsedSourceMap&&void 0!==a.sourceMapText&&(a.parsedSourceMap=Nr.tryParseRawSourceMap(a.sourceMapText)||!1),a.parsedSourceMap||void 0))&&u&&u.appendSourceMap(de.getLine(),de.getColumn(),i,t.parent.sourceMapPath,t.parent.getLineAndCharacterOfPosition(t.pos),t.parent.getLineAndCharacterOfPosition(t.end)),o(e,t)):(r=(n=Nr.getSourceMapRange(t)).pos,a=n.end,n=void 0===(i=n.source)?l:i,i=Nr.getEmitFlags(t),325!==t.kind&&0==(16&i)&&0<=r&&Tr(n,Sr(n,r)),64&i?(P=!0,o(e,t),P=!1):o(e,t),325!==t.kind&&0==(32&i)&&0<=a&&Tr(n,a)),Nr.Debug.assert(pe===t||fe===t)}function Sr(e,t){return e.skipTrivia?e.skipTrivia(t):Nr.skipTrivia(e.text,t)}function Cr(e){var t;P||Nr.positionIsSynthesized(e)||Er(l)||(e=(t=Nr.getLineAndCharacterOfPosition(l,e)).line,t=t.character,u.addMapping(de.getLine(),de.getColumn(),w,e,t,void 0))}function Tr(e,t){var r;e!==l?(r=l,kr(e),Cr(t),kr(r)):Cr(t)}function kr(e){P||Er(l=e)||(w=u.addSource(e.fileName),f.inlineSources&&u.setSourceContent(w,e.text))}function Er(e){return Nr.fileExtensionIs(e.fileName,".json")}}Nr.isBuildInfoFile=function(e){return Nr.fileExtensionIs(e,".tsbuildinfo")},Nr.forEachEmittedFile=n,Nr.getTsBuildInfoEmitOutputFilePath=_,Nr.getOutputPathsForBundle=S,Nr.getOutputPathsFor=d,Nr.getOutputExtension=c,Nr.getOutputDeclarationFileName=u,Nr.getAllProjectOutputs=function(e,t){var r=(n=o()).addOutput,n=n.getOutputs;if(e.options.outFile||e.options.out)p(e,r);else{for(var i=0,a=e.fileNames;i<a.length;i++)f(e,a[i],t,r);r(_(e.options))}return n()},Nr.getOutputFileNames=function(e,t,r){t=Nr.normalizePath(t),Nr.Debug.assert(Nr.contains(e.fileNames,t),"Expected fileName to be present in command line");var n=(i=o()).addOutput,i=i.getOutputs;return e.options.outFile||e.options.out?p(e,n):f(e,t,r,n),i()},Nr.getFirstProjectOutput=function(e,t){if(e.options.outFile||e.options.out){var r=S(e.options,!1).jsFilePath;return Nr.Debug.checkDefined(r,"project "+e.options.configFilePath+" expected to have at least one output")}for(var n=0,i=e.fileNames;n<i.length;n++){var a=i[n];if(!Nr.fileExtensionIs(a,".d.ts")){if(r=l(a,e,t))return r;if(!Nr.fileExtensionIs(a,".json")&&Nr.getEmitDeclarations(e.options))return u(a,e,t)}}var o=_(e.options);return o||Nr.Debug.fail("project "+e.options.configFilePath+" expected to have at least one output")},Nr.emitFiles=C,Nr.getBuildInfoText=k,Nr.getBuildInfo=T,Nr.notImplementedResolver={hasGlobalName:Nr.notImplemented,getReferencedExportContainer:Nr.notImplemented,getReferencedImportDeclaration:Nr.notImplemented,getReferencedDeclarationWithCollidingName:Nr.notImplemented,isDeclarationWithCollidingName:Nr.notImplemented,isValueAliasDeclaration:Nr.notImplemented,isReferencedAliasDeclaration:Nr.notImplemented,isTopLevelValueImportEqualsWithEntityName:Nr.notImplemented,getNodeCheckFlags:Nr.notImplemented,isDeclarationVisible:Nr.notImplemented,isLateBound:function(e){return!1},collectLinkedAliases:Nr.notImplemented,isImplementationOfOverload:Nr.notImplemented,isRequiredInitializedParameter:Nr.notImplemented,isOptionalUninitializedParameterProperty:Nr.notImplemented,isExpandoFunctionDeclaration:Nr.notImplemented,getPropertiesOfContainerFunction:Nr.notImplemented,createTypeOfDeclaration:Nr.notImplemented,createReturnTypeOfSignatureDeclaration:Nr.notImplemented,createTypeOfExpression:Nr.notImplemented,createLiteralConstValue:Nr.notImplemented,isSymbolAccessible:Nr.notImplemented,isEntityNameVisible:Nr.notImplemented,getConstantValue:Nr.notImplemented,getReferencedValueDeclaration:Nr.notImplemented,getTypeReferenceSerializationKind:Nr.notImplemented,isOptionalParameter:Nr.notImplemented,moduleExportsSomeValue:Nr.notImplemented,isArgumentsLocalBinding:Nr.notImplemented,getExternalModuleFileFromDeclaration:Nr.notImplemented,getTypeReferenceDirectivesForEntityName:Nr.notImplemented,getTypeReferenceDirectivesForSymbol:Nr.notImplemented,isLiteralConstDeclaration:Nr.notImplemented,getJsxFactoryEntity:Nr.notImplemented,getAllAccessorDeclarations:Nr.notImplemented,getSymbolOfExternalModuleSpecifier:Nr.notImplemented,isBindingCapturedByNode:Nr.notImplemented,getDeclarationStatementsForSourceFile:Nr.notImplemented,isImportRequiredByAugmentation:Nr.notImplemented},Nr.emitUsingBuildInfo=function(e,t,r,n){var i=S(e.options,!1),s=i.buildInfoPath,c=i.jsFilePath,u=i.sourceMapFilePath,l=i.declarationFilePath,_=i.declarationMapPath;if(!(i=t.readFile(Nr.Debug.checkDefined(s))))return s;var d=t.readFile(Nr.Debug.checkDefined(c));if(!d)return c;var p=u&&t.readFile(u);if(u&&!p||e.options.inlineSourceMap)return u||"inline sourcemap decoding";var f=l&&t.readFile(l);if(l&&!f)return l;var g=_&&t.readFile(_);if(_&&!g||e.options.inlineSourceMap)return _||"inline sourcemap decoding";var m=T(i);if(!m.bundle||!m.bundle.js||f&&!m.bundle.dts)return s;var a,o,y,h=Nr.getDirectoryPath(Nr.getNormalizedAbsolutePath(s,t.getCurrentDirectory())),v=Nr.createInputFiles(d,f,u,p,_,g,c,l,s,m,!0),b=[],x=Nr.createPrependNodes(e.projectReferences,r,function(e){return t.readFile(e)}),D=(r=m.bundle,a=h,o=t,y=r.sourceFiles.map(function(e){var t=Nr.createNode(290,0,0);return t.fileName=Nr.getRelativePathFromDirectory(o.getCurrentDirectory(),Nr.getNormalizedAbsolutePath(e,a),!o.useCaseSensitiveFileNames()),t.text="",t.statements=Nr.createNodeArray(),t}),r=Nr.Debug.checkDefined(r.js),Nr.forEach(r.sources&&r.sources.prologues,function(e){var t=y[e.file];t.text=e.text,t.end=e.text.length,t.statements=Nr.createNodeArray(e.directives.map(function(e){var t=Nr.createNode(226,e.pos,e.end);return t.expression=Nr.createNode(10,e.expression.pos,e.expression.end),t.expression.text=e.expression.text,t}))}),y),r={getPrependNodes:Nr.memoize(function(){return __spreadArrays(x,[v])}),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:function(){return Nr.getNormalizedAbsolutePath(m.bundle.commonSourceDirectory,h)},getCompilerOptions:function(){return e.options},getCurrentDirectory:function(){return t.getCurrentDirectory()},getNewLine:function(){return t.getNewLine()},getSourceFile:Nr.returnUndefined,getSourceFileByPath:Nr.returnUndefined,getSourceFiles:function(){return D},getLibFileFromReference:Nr.notImplemented,isSourceFileFromExternalLibrary:Nr.returnFalse,getResolvedProjectReferenceToRedirect:Nr.returnUndefined,getProjectReferenceRedirect:Nr.returnUndefined,isSourceOfProjectReferenceRedirect:Nr.returnFalse,writeFile:function(e,t,r){switch(e){case c:if(d===t)return;break;case u:if(p===t)return;break;case s:var n=T(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 l:if(f===t)return;break;case _:if(g===t)return;break;default:Nr.Debug.fail("Unexpected path: "+e)}b.push({name:e,text:t,writeByteOrderMark:r})},isEmitBlocked:Nr.returnFalse,readFile:function(e){return t.readFile(e)},fileExists:function(e){return t.fileExists(e)},useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames()},getProgramBuildInfo:Nr.returnUndefined,getSourceFileFromReference:Nr.returnUndefined,redirectTargetsMap:Nr.createMultiMap()};return C(Nr.notImplementedResolver,r,void 0,Nr.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",Nr.createPrinter=E,(e={})[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(ts=ts||{}),function(h){var n,e;function o(e,t,r,n,i){return e.watchFile(t,r,n,i)}function i(e,t,r,n,i,a){return o(e,t,function(e,t){return r(e,t,a)},n,i)}function a(e,t,r,n,i){return e.watchDirectory(t,r,0!=(1&n),i)}function f(e,t){switch(e){case n.None:return t;case n.TriggerOnly:return g;case n.Verbose:return t===a?s:r}}function r(e,t,r,n,i,a,o,s,c,u,l,_){u(l+":: Added:: "+m(t,n,i,o,s,_));var d=g(e,t,r,n,i,a,o,s,c,u,l,_);return{close:function(){u(l+":: Close:: "+m(t,n,i,o,s,_)),d.close()}}}function s(e,r,t,n,i,a,o,s,c,u,l,_){var d=l+":: Added:: "+m(r,n,i,o,s,_);u(d);var p=h.timestamp(),f=g(e,r,t,n,i,a,o,s,c,u,l,_),p=h.timestamp()-p;return u("Elapsed:: "+p+"ms "+d),{close:function(){var e=l+":: Close:: "+m(r,n,i,o,s,_);u(e);var t=h.timestamp();f.close();t=h.timestamp()-t;u("Elapsed:: "+t+"ms "+e)}}}function g(e,i,a,o,s,c,u,l,t,_,d,p){return t(e,i,function(e,t){var r=d+":: Triggered with "+e+" "+(void 0!==t?t:"")+":: "+m(i,o,s,u,l,p);_(r);var n=h.timestamp();a(e,t,c);n=h.timestamp()-n;_("Elapsed:: "+n+"ms "+r)},o,s)}function m(e,t,r,n,i,a){return"WatchInfo: "+e+" "+t+" "+JSON.stringify(r)+" "+(a?a(n,i):void 0===i?n:n+" "+i)}function t(e){e.watcher.close()}h.createCachedDirectoryStructureHost=function(s,c,u){if(s.getDirectories&&s.readDirectory){var a=h.createMap(),r=h.createGetCanonicalFileName(u);return{useCaseSensitiveFileNames:u,fileExists:function(e){var t=i(l(e));return t&&p(t.files,_(e))||s.fileExists(e)},readFile:function(e,t){return s.readFile(e,t)},directoryExists:s.directoryExists&&function(e){var t=l(e);return a.has(h.ensureTrailingDirectorySeparator(t))||s.directoryExists(e)},getDirectories:function(e){var t=l(e),t=d(e,t);if(t)return t.directories.slice();return s.getDirectories(e)},readDirectory:function(e,t,r,n,i){var a=l(e),o=d(e,a);if(o)return h.matchFiles(e,t,r,n,u,c,i,function(e){var t=l(e);return t!==a?d(e,t)||h.emptyFileSystemEntries:o},g);return s.readDirectory(e,t,r,n,i)},createDirectory:s.createDirectory&&function(e){var t=i(l(e)),r=_(e);t&&f(t.directories,r,!0);s.createDirectory(e)},writeFile:s.writeFile&&function(e,t,r){var n=i(l(e));n&&m(n,_(e),!0);return s.writeFile(e,t,r)},addOrDeleteFileOrDirectory:function(e,t){if(o(t))return void y();var r=i(t);if(!r)return;if(!s.directoryExists)return void y();e=_(e),t={fileExists:s.fileExists(t),directoryExists:s.directoryExists(t)};t.directoryExists||p(r.directories,e)?y():m(r,e,t.fileExists);return t},addOrDeleteFile:function(e,t,r){if(r===h.FileWatcherEventKind.Changed)return;t=i(t);t&&m(t,_(e),r===h.FileWatcherEventKind.Created)},clearCache:y,realpath:s.realpath&&g}}function l(e){return h.toPath(e,c,r)}function o(e){return a.get(h.ensureTrailingDirectorySeparator(e))}function i(e){return o(h.getDirectoryPath(e))}function _(e){return h.getBaseFileName(h.normalizePath(e))}function d(e,t){var r,n,i=o(t=h.ensureTrailingDirectorySeparator(t));if(i)return i;try{return r=e,n=t,r={files:h.map(s.readDirectory(r,void 0,void 0,["*.*"]),_)||[],directories:s.getDirectories(r)||[]},a.set(h.ensureTrailingDirectorySeparator(n),r),r}catch(e){return void h.Debug.assert(!a.has(h.ensureTrailingDirectorySeparator(t)))}}function n(e,t){return r(e)===r(t)}function p(e,t){return h.some(e,function(e){return n(e,t)})}function f(e,t,r){return p(e,t)?!r&&h.filterMutate(e,function(e){return!n(e,t)}):r&&e.push(t)}function g(e){return s.realpath?s.realpath(e):e}function m(e,t,r){f(e.files,t,r)}function y(){a.clear()}},(e=h.ConfigFileProgramReloadLevel||(h.ConfigFileProgramReloadLevel={}))[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full",h.updateMissingFilePathsWatch=function(e,t,r){e=e.getMissingFilePaths(),e=h.arrayToSet(e),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.isEmittedFileOfProgram=function(e,t){return!!e&&e.isEmittedFile(t)},(e=n=h.WatchLogLevel||(h.WatchLogLevel={}))[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",h.getWatchFactory=function(e,t,r){return function(e,c,u,l,s){var _=f(e,l),d=e===n.None?i:_,p=f(e,s);e===n.Verbose&&h.sysLog===h.noop&&h.setSysLog(function(e){return c(e)});return{watchFile:function(e,t,r,n,i,a,o){return _(e,t,r,n,i,void 0,a,o,l,c,"FileWatcher",u)},watchFilePath:function(e,t,r,n,i,a,o,s){return d(e,t,r,n,i,a,o,s,l,c,"FileWatcher",u)},watchDirectory:function(e,t,r,n,i,a,o){return p(e,t,r,n,i,void 0,a,o,s,c,"DirectoryWatcher",u)}}}(e,t,r,o,a)},h.getFallbackOptions=function(e){return{watchFile:void 0!==(e=null==e?void 0:e.fallbackPolling)?e:h.WatchFileKind.PriorityPollingInterval}},h.closeFileWatcherOf=t}(ts=ts||{}),function(Rt){function Bt(e,t){t=Rt.getDirectoryPath(t),e=Rt.isRootedDiskPath(e)?e:Rt.combinePaths(t,e);return Rt.normalizePath(e)}function jt(e,i,a){var o;return Rt.forEach(e,function(e){var t=Rt.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?Rt.getPathFromPathComponents(o):i}function Jt(e,t){return r(e,t)}function r(o,i,s){void 0===s&&(s=Rt.sys);var c,a=Rt.createMap(),e=Rt.createGetCanonicalFileName(s.useCaseSensitiveFileNames);function t(){return Rt.getDirectoryPath(Rt.normalizePath(s.getExecutingFilePath()))}var r=Rt.getNewLineCharacter(o,function(){return s.newLine}),n=s.realpath&&function(e){return s.realpath(e)},u={getSourceFile:function(e,t,r){var n;try{Rt.performance.mark("beforeIORead"),n=u.readFile(e),Rt.performance.mark("afterIORead"),Rt.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){r&&r(e.message),n=""}return void 0!==n?Rt.createSourceFile(e,n,t,i):void 0},getDefaultLibLocation:t,getDefaultLibFileName:function(e){return Rt.combinePaths(t(),Rt.getDefaultLibFileName(e))},writeFile:function(e,t,r,n){try{Rt.performance.mark("beforeIOWrite"),Rt.writeFileEnsuringDirectories(e,t,r,function(e,t,r){if(!Rt.isWatchSet(o)||!s.createHash||!s.getModifiedTime)return void s.writeFile(e,t,r);c=c||Rt.createMap();var n=s.createHash(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)||Rt.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)}),Rt.performance.mark("afterIOWrite"),Rt.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){n&&n(e.message)}},getCurrentDirectory:Rt.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:Rt.maybeBind(s,s.createHash)};return u}function a(e,t){var r=Rt.diagnosticCategoryName(e)+" TS"+e.code+": "+m(e.messageText,t.getNewLine())+t.getNewLine();if(e.file){var n=Rt.getLineAndCharacterOfPosition(e.file,e.start),i=n.line,n=n.character,e=e.file.fileName;return Rt.convertToRelativePath(e,t.getCurrentDirectory(),function(e){return t.getCanonicalFileName(e)})+"("+(i+1)+","+(n+1)+"): "+r}return r}var d,e;Rt.findConfigFile=function(e,t,r){return void 0===r&&(r="tsconfig.json"),Rt.forEachAncestorDirectory(e,function(e){e=Rt.combinePaths(e,r);return t(e)?e:void 0})},Rt.resolveTripleslashReference=Bt,Rt.computeCommonSourceDirectoryOfFilenames=jt,Rt.createCompilerHost=Jt,Rt.createCompilerHostWorker=r,Rt.changeCompilerHostLikeToUseCache=function(s,c,o){var n=s.readFile,i=s.fileExists,a=s.directoryExists,r=s.createDirectory,u=s.writeFile,l=Rt.createMap(),_=Rt.createMap(),d=Rt.createMap(),p=Rt.createMap(),f=function(e,t){t=n.call(s,t);return l.set(e,void 0!==t&&t),t};s.readFile=function(e){var t=c(e),r=l.get(t);return void 0!==r?!1!==r?r:void 0:Rt.fileExtensionIs(e,".json")||Rt.isBuildInfoFile(e)?f(t,e):n.call(s,e)};var g=o?function(e,t,r,n){var i=c(e),a=p.get(i);if(a)return a;n=o(e,t,r,n);return n&&(Rt.isDeclarationFileName(e)||Rt.fileExtensionIs(e,".json"))&&p.set(i,n),n}:void 0;return s.fileExists=function(e){var t=c(e),r=_.get(t);if(void 0!==r)return r;e=i.call(s,e);return _.set(t,!!e),e},u&&(s.writeFile=function(e,t,r,n,i){var a=c(e);_.delete(a);var o=l.get(a);void 0!==o&&o!==t?(l.delete(a),p.delete(a)):!g||(o=p.get(a))&&o.text!==t&&p.delete(a),u.call(s,e,t,r,n,i)}),a&&r&&(s.directoryExists=function(e){var t=c(e),r=d.get(t);if(void 0!==r)return r;e=a.call(s,e);return d.set(t,!!e),e},s.createDirectory=function(e){var t=c(e);d.delete(t),r.call(s,e)}),{originalReadFile:n,originalFileExists:i,originalDirectoryExists:a,originalCreateDirectory:r,originalWriteFile:u,getSourceFileWithCache:g,readFileWithCache:function(e){var t=c(e),r=l.get(t);return void 0!==r?!1!==r?r:void 0:f(t,e)}}},Rt.getPreEmitDiagnostics=function(e,t,r){var n=Rt.addRange(n,e.getConfigFileParsingDiagnostics());return n=Rt.addRange(n,e.getOptionsDiagnostics(r)),n=Rt.addRange(n,e.getSyntacticDiagnostics(t,r)),n=Rt.addRange(n,e.getGlobalDiagnostics(r)),n=Rt.addRange(n,e.getSemanticDiagnostics(t,r)),Rt.getEmitDeclarations(e.getCompilerOptions())&&(n=Rt.addRange(n,e.getDeclarationDiagnostics(t,r))),Rt.sortAndDeduplicateDiagnostics(n||Rt.emptyArray)},Rt.formatDiagnostics=function(e,t){for(var r="",n=0,i=e;n<i.length;n++)r+=a(i[n],t);return r},Rt.formatDiagnostic=a,(e=d=Rt.ForegroundColorEscapeSequences||(Rt.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 Rt.DiagnosticCategory.Error:return d.Red;case Rt.DiagnosticCategory.Warning:return d.Yellow;case Rt.DiagnosticCategory.Suggestion:return Rt.Debug.fail("Should never get an Info diagnostic on the command line.");case Rt.DiagnosticCategory.Message:return d.Blue}}function D(e,t){return t+e+b}function f(e,t,r,n,i,a){var o=Rt.getLineAndCharacterOfPosition(e,t),s=o.line,c=o.character,r=Rt.getLineAndCharacterOfPosition(e,t+r),u=r.line,l=r.character,_=Rt.getLineAndCharacterOfPosition(e,e.text.length).line,d=4<=u-s,p=(u+1+"").length;d&&(p=Math.max(x.length,p));for(var f="",g=s;g<=u;g++){f+=a.getNewLine(),d&&s+1<g&&g<u-1&&(f+=n+D(Rt.padLeft(x,p),h)+v+a.getNewLine(),g=u-1);var m=Rt.getPositionOfLineAndCharacter(e,g,0),y=g<_?Rt.getPositionOfLineAndCharacter(e,g+1,0):e.text.length,m=e.text.slice(m,y);m=(m=m.replace(/\s+$/g,"")).replace("\t"," "),f+=n+D(Rt.padLeft(g+1+"",p),h)+v,f+=m+a.getNewLine(),f+=n+D(Rt.padLeft("",p),h)+v,f+=i,g===s?(y=g===u?l:void 0,f+=m.slice(0,c).replace(/\S/g," "),f+=m.slice(c,y).replace(/./g,"~")):f+=(g===u?m.slice(0,l):m).replace(/./g,"~"),f+=b}return f}function g(e,t,r,n){void 0===n&&(n=D);var i=Rt.getLineAndCharacterOfPosition(e,t),a=i.line,t=i.character,i="";return i+=n(r?Rt.convertToRelativePath(e.fileName,r.getCurrentDirectory(),function(e){return r.getCanonicalFileName(e)}):e.fileName,d.Cyan),i+=":",i+=n(""+(a+1),d.Yellow),i+=":",i+=n(""+(t+1),d.Yellow)}function m(e,t,r){if(void 0===r&&(r=0),Rt.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){if(0===e.length)return[];for(var i=[],a=Rt.createMap(),o=0,s=e;o<s.length;o++){var c=s[o],u=void 0;a.has(c)?u=a.get(c):a.set(c,u=n(c,t,r)),i.push(u)}return i}function Ut(e,t,r){var n=e.getCompilerOptions();if(n.noEmit)return{diagnostics:Rt.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};if(n.noEmitOnError){t=__spreadArrays(e.getOptionsDiagnostics(r),e.getSyntacticDiagnostics(t,r),e.getGlobalDiagnostics(r),e.getSemanticDiagnostics(t,r));return 0===t.length&&Rt.getEmitDeclarations(e.getCompilerOptions())&&(t=e.getDeclarationDiagnostics(void 0,r)),0<t.length?{diagnostics:t,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}:void 0}}function Vt(t,a){return void 0===a&&(a=t),{fileExists:function(e){return a.fileExists(e)},readDirectory:function(e,t,r,n,i){return Rt.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||Rt.returnUndefined,trace:t.trace?function(e){return t.trace(e)}:void 0}}function Kt(e,t,r){if(!e)return Rt.emptyArray;for(var n,i=0;i<e.length;i++){var a,o,s,c=e[i],u=t(c,i);c.prepend&&u&&u.options&&(u.options.outFile||u.options.out)&&(a=(s=Rt.getOutputPathsForBundle(u.options,!0)).jsFilePath,o=s.sourceMapFilePath,c=s.declarationFilePath,u=s.declarationMapPath,s=s.buildInfoPath,s=Rt.createInputFiles(r,a,o,c,u,s),(n=n||[]).push(s))}return n||Rt.emptyArray}function qt(e,t){e=t||e;return Rt.resolveConfigFileProjectName(e.path)}function Wt(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:Rt.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function r(){return e.jsx?void 0:Rt.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function n(){return e.allowJs||!Rt.getStrictOptionValue(e,"noImplicitAny")?void 0:Rt.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function Ht(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}Rt.formatColorAndReset=D,Rt.formatLocation=g,Rt.formatDiagnosticsWithColorAndContext=function(e,t){for(var r="",n=0,i=e;n<i.length;n++){var a=i[n];if(a.file&&(r+=g(u=a.file,l=a.start,t),r+=" - "),r+=D(Rt.diagnosticCategoryName(a),p(a.category)),r+=D(" TS"+a.code+": ",d.Grey),r+=m(a.messageText,t.getNewLine()),a.file&&(r+=t.getNewLine(),r+=f(a.file,a.start,a.length,"",p(a.category),t),a.relatedInformation)){r+=t.getNewLine();for(var o=0,s=a.relatedInformation;o<s.length;o++){var c=s[o],u=c.file,l=c.start,_=c.length,c=c.messageText;u&&(r+=t.getNewLine(),r+="  "+g(u,l,t),r+=f(u,l,_,"    ",d.Cyan,t)),r+=t.getNewLine(),r+="    "+m(c,t.getNewLine())}}r+=t.getNewLine()}return r},Rt.flattenDiagnosticMessageText=m,Rt.loadWithLocalCache=zt,Rt.inferredTypesContainingFile="__inferred type names__.ts",Rt.isProgramUptoDate=function(n,e,t,r,i,a,o,s){return!(!n||o)&&(!!Rt.arrayIsEqualTo(n.getRootFileNames(),e)&&(!!Rt.arrayIsEqualTo(n.getProjectReferences(),s,function(e,t,r){return!!Rt.projectReferenceIsEqualTo(e,t)&&function r(n,e){if(n)return!!Rt.contains(c,n)||!!u(n.sourceFile)&&((c=c||[]).push(n),!Rt.forEach(n.references,function(e,t){return!r(e,n.commandLine.projectReferences[t])}));return!i(qt(e))}(n.getResolvedProjectReferences()[r],e)})&&(!n.getSourceFiles().some(function(e){return!u(e)||a(e.path)})&&(!n.getMissingFilePaths().some(i)&&(s=n.getCompilerOptions(),!!Rt.compareDataObjects(s,t)&&(!s.configFile||!t.configFile||s.configFile.text===t.configFile.text))))));var c;function u(e){return e.version===r(e.resolvedPath,e.fileName)}},Rt.getConfigFileParsingDiagnostics=function(e){return e.options.configFile?__spreadArrays(e.options.configFile.parseDiagnostics,e.errors):e.errors},Rt.createProgram=function(e,t,r,n,i){var h,v,F,a,o,s,c,u,P,w=(i=Rt.isArray(e)?{rootNames:e,options:t,host:r,oldProgram:n,configFileParsingDiagnostics:i}:e).rootNames,I=i.options,l=i.configFileParsingDiagnostics,O=i.projectReferences,M=i.oldProgram,L=Rt.createMap(),_={},d={},R=Rt.createMap(),B=Rt.createDiagnosticCollection(),b="number"==typeof I.maxNodeModuleJsDepth?I.maxNodeModuleJsDepth:0,x=0,D=Rt.createMap(),j=Rt.createMap();Rt.performance.mark("beforeProgram");var p,f,g,m,y,S,J=i.host||Jt(I),C=Vt(J),T=I.noLib,k=Rt.memoize(function(){return J.getDefaultLibFileName(I)}),E=J.getDefaultLibLocation?J.getDefaultLibLocation():Rt.getDirectoryPath(k()),N=Rt.createDiagnosticCollection(),z=J.getCurrentDirectory(),A=Rt.getSupportedExtensions(I),U=Rt.getSuppoertedExtensionsWithJsonIfResolveJsonModule(I,A),V=Rt.createMap(),K=J.hasInvalidatedResolution||Rt.returnFalse;m=J.resolveModuleNames?function(e,t,r,n){return J.resolveModuleNames(Rt.Debug.checkEachDefined(e),t,r,n,I).map(function(e){if(!e||void 0!==e.extension)return e;var t=Rt.clone(e);return t.extension=Rt.extensionFromPath(e.resolvedFileName),t})}:(f=Rt.createModuleResolutionCache(z,function(e){return J.getCanonicalFileName(e)},I),g=function(e,t,r){return Rt.resolveModuleName(e,t,I,J,f,r).resolvedModule},function(e,t,r,n){return zt(Rt.Debug.checkEachDefined(e),t,n,g)}),S=J.resolveTypeReferenceDirectives?function(e,t,r){return J.resolveTypeReferenceDirectives(Rt.Debug.checkEachDefined(e),t,r,I)}:(y=function(e,t,r){return Rt.resolveTypeReferenceDirective(e,t,I,J,r).resolvedTypeReferenceDirective},function(e,t,r){return zt(Rt.Debug.checkEachDefined(e),t,r,y)});var q,W,H,G,Q,X=Rt.createMap(),Y=Rt.createMap(),Z=Rt.createMultiMap(),$=Rt.createMap(),ee=J.useCaseSensitiveFileNames()?Rt.createMap():void 0,te=!(null===(e=J.useSourceOfProjectReferenceRedirect)||void 0===e||!e.call(J)||I.disableSourceOfProjectReferenceRedirect),e=(i=function(c){var n,u,l,t=c.compilerHost.fileExists,r=c.compilerHost.directoryExists,i=c.compilerHost.getDirectories,a=c.compilerHost.realpath;if(!c.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:Rt.noop,fileExists:e};c.compilerHost.fileExists=e,r&&(c.compilerHost.directoryExists=function(e){return r.call(c.compilerHost,e)?(function(e){if(c.getResolvedProjectReferences()&&a&&Rt.stringContains(e,Rt.nodeModulesPathPart)){u=u||Rt.createMap();var t=Rt.ensureTrailingDirectorySeparator(c.toPath(e));if(!u.has(t)){var r,n=Rt.normalizePath(a.call(c.compilerHost,e));if(n===e||(r=Rt.ensureTrailingDirectorySeparator(c.toPath(n)))===t)return u.set(t,!1);u.set(t,{real:Rt.ensureTrailingDirectorySeparator(n),realPath:r})}}}(e),!0):!!c.getResolvedProjectReferences()&&(n||(n=Rt.createMap(),c.forEachResolvedProjectReference(function(e){var t;e&&((t=e.commandLine.options.outFile||e.commandLine.options.out)?n.set(Rt.getDirectoryPath(c.toPath(t)),!0):(e=e.commandLine.options.declarationDir||e.commandLine.options.outDir)&&n.set(c.toPath(e),!0))})),o(e,!1))});i&&(c.compilerHost.getDirectories=function(e){return!c.getResolvedProjectReferences()||r&&r.call(c.compilerHost,e)?i.call(c.compilerHost,e):[]});a&&(c.compilerHost.realpath=function(e){return(null==l?void 0:l.get(c.toPath(e)))||a.call(c.compilerHost,e)});return{onProgramCreateComplete:function(){c.compilerHost.fileExists=t,c.compilerHost.directoryExists=r,c.compilerHost.getDirectories=i},fileExists:e};function e(e){return!!t.call(c.compilerHost,e)||!!c.getResolvedProjectReferences()&&(!!Rt.isDeclarationFileName(e)&&o(e,!0))}function o(i,a){var o=a?function(e){return e=e,void 0!==(e=c.getSourceOfProjectReferenceRedirect(e))?!Rt.isString(e)||t.call(c.compilerHost,e):void 0}:function(e){return e=e,t=c.toPath(e),r=""+t+Rt.directorySeparator,Rt.forEachKey(n,function(e){return t===e||Rt.startsWith(e,r)||Rt.startsWith(t,e+"/")});var t,r},e=o(i);if(void 0!==e)return e;if(!u)return!1;var s=c.toPath(i);return!!Rt.stringContains(s,Rt.nodeModulesPathPart)&&(!!(a&&l&&l.has(s))||(Rt.firstDefinedIterator(u.entries(),function(e){var t=e[0],r=e[1];if(r&&Rt.startsWith(s,t)){var n=o(s.replace(t,r.realPath));return a&&n&&(l=l||Rt.createMap(),e=Rt.getNormalizedAbsolutePath(i,c.compilerHost.getCurrentDirectory()),l.set(s,""+r.real+e.replace(new RegExp(t,"i"),""))),n}})||!1))}}({compilerHost:J,useSourceOfProjectReferenceRedirect:te,toPath:Te,getResolvedProjectReferences:Ae,getSourceOfProjectReferenceRedirect:lt,forEachResolvedProjectReference:ut})).onProgramCreateComplete,i=i.fileExists,re=function(e,t){if(!e)return!1;var r=e.getCompilerOptions();return!!Rt.sourceFileAffectingCompilerOptions.some(function(e){return!Rt.isJsonEqual(Rt.getCompilerOptionValue(r,e),Rt.getCompilerOptionValue(t,e))})}(M,I),ne=function(){if(!M)return 0;var e=M.getCompilerOptions();if(Rt.changesAffectModuleResolution(e,I))return M.structureIsReused=0;Rt.Debug.assert(!(3&M.structureIsReused));var t=M.getRootFileNames();if(!Rt.arrayIsEqualTo(t,w))return M.structureIsReused=0;if(!Rt.arrayIsEqualTo(I.types,e.types))return M.structureIsReused=0;if(dt(M.getProjectReferences(),M.getResolvedProjectReferences(),function(e,t,r){t=Dt((r?r.commandLine.projectReferences:O)[t]);return e?!t||t.sourceFile!==e.sourceFile:void 0!==t},function(e,t){t=t?pt(t.sourceFile.path).commandLine.projectReferences:O;return!Rt.arrayIsEqualTo(e,t,Rt.projectReferenceIsEqualTo)}))return M.structureIsReused=0;O&&(W=O.map(Dt));var r=[],n=[];if(M.structureIsReused=2,M.getMissingFilePaths().some(function(e){return J.fileExists(e)}))return M.structureIsReused=0;e=M.getSourceFiles();!function(e){e[e.Exists=0]="Exists",e[e.Modified=1]="Modified"}({});for(var i=Rt.createMap(),a=0,o=e;a<o.length;a++){var s=o[a];if(!(D=J.getSourceFileByPath?J.getSourceFileByPath(s.fileName,s.resolvedPath,I.target,void 0,re):J.getSourceFile(s.fileName,I.target,void 0,re)))return M.structureIsReused=0;Rt.Debug.assert(!D.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var c=void 0;if(s.redirectInfo){if(D!==s.redirectInfo.unredirected)return M.structureIsReused=0;c=!1,D=s}else if(M.redirectTargetsMap.has(s.path)){if(D!==s)return M.structureIsReused=0;c=!1}else c=D!==s;D.path=s.path,D.originalFileName=s.originalFileName,D.resolvedPath=s.resolvedPath,D.fileName=s.fileName;var u=M.sourceFileToPackageName.get(s.path);if(void 0!==u){var l=i.get(u),_=c?1:0;if(void 0!==l&&1==_||1===l)return M.structureIsReused=0;i.set(u,_)}if(c){if(!Rt.arrayIsEqualTo(s.libReferenceDirectives,D.libReferenceDirectives,Xe))return M.structureIsReused=0;s.hasNoDefaultLib!==D.hasNoDefaultLib&&(M.structureIsReused=1),Rt.arrayIsEqualTo(s.referencedFiles,D.referencedFiles,Xe)||(M.structureIsReused=1),Ze(D),Rt.arrayIsEqualTo(s.imports,D.imports,Ye)||(M.structureIsReused=1),Rt.arrayIsEqualTo(s.moduleAugmentations,D.moduleAugmentations,Ye)||(M.structureIsReused=1),(3145728&s.flags)!=(3145728&D.flags)&&(M.structureIsReused=1),Rt.arrayIsEqualTo(s.typeReferenceDirectives,D.typeReferenceDirectives,Xe)||(M.structureIsReused=1),n.push({oldFile:s,newFile:D})}else K(s.path)&&(M.structureIsReused=1,n.push({oldFile:s,newFile:D}));r.push(D)}if(2!==M.structureIsReused)return M.structureIsReused;for(var d=n.map(function(e){return e.oldFile}),p=0,f=e;p<f.length;p++){var g=f[p];if(!Rt.contains(d,g))for(var m=0,y=g.ambientModuleNames;m<y.length;m++){var h=y[m];L.set(h,g.fileName)}}for(var v=0,b=n;v<b.length;v++){var x=b[v],s=x.oldFile,D=x.newFile,S=Rt.getNormalizedAbsolutePath(D.originalFileName,z),C=Ht(D),x=Ee(C,S,D);Rt.hasChangesInResolutions(C,x,s.resolvedModules,Rt.moduleResolutionIsEqualTo)?(M.structureIsReused=1,D.resolvedModules=Rt.zipToMap(C,x)):D.resolvedModules=s.resolvedModules;x=Rt.map(D.typeReferenceDirectives,function(e){return Rt.toFileNameLowerCase(e.fileName)}),S=Se(x,S,ct(D.originalFileName));Rt.hasChangesInResolutions(x,S,s.resolvedTypeReferenceDirectiveNames,Rt.typeDirectiveIsEqualTo)?(M.structureIsReused=1,D.resolvedTypeReferenceDirectiveNames=Rt.zipToMap(x,S)):D.resolvedTypeReferenceDirectiveNames=s.resolvedTypeReferenceDirectiveNames}if(2!==M.structureIsReused)return M.structureIsReused;if(J.hasChangedAutomaticTypeDirectiveNames)return M.structureIsReused=1;q=M.getMissingFilePaths(),P=M.getRefFileMap(),Rt.Debug.assert(r.length===M.getSourceFiles().length);for(var T=0,k=r;T<k.length;T++){D=k[T];$.set(D.path,D)}M.getFilesByNameMap().forEach(function(e,t){e?e.path!==t?$.set(t,$.get(e.path)):M.isSourceFileFromExternalLibrary(e)&&j.set(e.path,!0):$.set(t,e)}),F=r,B=M.getFileProcessingDiagnostics();for(var E=0,N=n;E<N.length;E++){var A=N[E];B.reattachFileDiagnostics(A.newFile)}return R=M.getResolvedTypeReferenceDirectives(),Y=M.sourceFileToPackageName,Z=M.redirectTargetsMap,M.structureIsReused=2}();if(2!==ne){if(h=[],v=[],O&&(W=W||O.map(Dt),w.length))for(var ie=0,ae=W;ie<ae.length;ie++){var oe=ae[ie];if(oe){var se=oe.commandLine.options.outFile||oe.commandLine.options.out;if(te){if(se||Rt.getEmitModuleKind(oe.commandLine.options)===Rt.ModuleKind.None)for(var ce=0,ue=oe.commandLine.fileNames;ce<ue.length;ce++)et(de=ue[ce],!1,!1,void 0)}else if(se)et(Rt.changeExtension(se,".d.ts"),!1,!1,void 0);else if(Rt.getEmitModuleKind(oe.commandLine.options)===Rt.ModuleKind.None)for(var le=0,_e=oe.commandLine.fileNames;le<_e.length;le++){var de=_e[le];Rt.fileExtensionIs(de,".d.ts")||Rt.fileExtensionIs(de,".json")||et(Rt.getOutputDeclarationFileName(de,oe.commandLine,!J.useCaseSensitiveFileNames()),!1,!1,void 0)}}}Rt.forEach(w,function(e){return Qe(e,!1,!1)});var pe=w.length?Rt.getAutomaticTypeDirectiveNames(I,J):Rt.emptyArray;if(pe.length)for(var fe=I.configFilePath?Rt.getDirectoryPath(I.configFilePath):J.getCurrentDirectory(),ge=Se(pe,Rt.combinePaths(fe,Rt.inferredTypesContainingFile)),me=0;me<pe.length;me++)mt(pe[me],ge[me]);w.length&&!T&&(fe=k(),!I.lib&&fe?Qe(fe,!0,!1):Rt.forEach(I.lib,function(e){Qe(Rt.combinePaths(E,e),!0,!1)})),q=Rt.arrayFrom(Rt.mapDefinedIterator($.entries(),function(e){var t=e[0];return void 0===e[1]?t:void 0})),F=Rt.stableSort(h,function(e,t){return Rt.compareValues(Ce(e),Ce(t))}).concat(v),v=h=void 0}if(Rt.Debug.assert(!!q),M&&J.onReleaseOldSourceFile){for(var ye=0,he=M.getSourceFiles();ye<he.length;ye++){var ve=he[ye],be=Le(ve.resolvedPath);(re||!be||ve.resolvedPath===ve.path&&be.resolvedPath!==ve.path)&&J.onReleaseOldSourceFile(ve,M.getCompilerOptions(),!!Le(ve.path))}M.forEachResolvedProjectReference(function(e,t){e&&!pt(t)&&J.onReleaseOldSourceFile(e.sourceFile,M.getCompilerOptions(),!1)})}M=void 0;var xe={getRootFileNames:function(){return w},getSourceFile:Me,getSourceFileByPath:Le,getSourceFiles:function(){return F},getMissingFilePaths:function(){return q},getRefFileMap:function(){return P},getFilesByNameMap:function(){return $},getCompilerOptions:function(){return I},getSyntacticDiagnostics:function(e,t){return Re(e,je,t)},getOptionsDiagnostics:function(){return Rt.sortAndDeduplicateDiagnostics(Rt.concatenate(B.getGlobalDiagnostics(),Rt.concatenate(N.getGlobalDiagnostics(),function(){if(!I.configFile)return Rt.emptyArray;var t=N.getDiagnostics(I.configFile.fileName);return ut(function(e){e&&(t=Rt.concatenate(t,N.getDiagnostics(e.sourceFile.fileName)))}),t}())))},getGlobalDiagnostics:function(){return w.length?Rt.sortAndDeduplicateDiagnostics(we().getGlobalDiagnostics().slice()):Rt.emptyArray},getSemanticDiagnostics:function(e,t){return Re(e,ze,t)},getSuggestionDiagnostics:function(e,t){return Je(function(){return we().getSuggestionDiagnostics(e,t)})},getDeclarationDiagnostics:function(e,t){var r=xe.getCompilerOptions();return!e||r.out||r.outFile?qe(e,t):Re(e,Ge,t)},getBindAndCheckDiagnostics:Ue,getProgramDiagnostics:Be,getTypeChecker:Ie,getClassifiableNames:function(){if(!u){Ie(),u=Rt.createUnderscoreEscapedMap();for(var e=0,t=F;e<t.length;e++){var r=t[e];Rt.copyEntries(r.classifiableNames,u)}}return u},getDiagnosticsProducingTypeChecker:we,getCommonSourceDirectory:ke,emit:function(e,t,r,n,i,a){return Je(function(){return function(e,t,r,n,i,a,o){if(!o){e=Ut(e,t,n);if(e)return e}n=we().getEmitResolver(I.outFile||I.out?void 0:t,n);Rt.performance.mark("beforeEmit");o=Rt.emitFiles(n,Ne(r),t,Rt.getTransformers(I,a,i),i,!1,o);return Rt.performance.mark("afterEmit"),Rt.performance.measure("Emit","beforeEmit","afterEmit"),o}(xe,e,t,r,n,i,a)})},getCurrentDirectory:function(){return z},getNodeCount:function(){return we().getNodeCount()},getIdentifierCount:function(){return we().getIdentifierCount()},getSymbolCount:function(){return we().getSymbolCount()},getTypeCount:function(){return we().getTypeCount()},getInstantiationCount:function(){return we().getInstantiationCount()},getRelationCacheSizes:function(){return we().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return B},getResolvedTypeReferenceDirectives:function(){return R},isSourceFileFromExternalLibrary:Pe,isSourceFileDefaultLibrary:function(t){if(t.hasNoDefaultLib)return!0;if(!I.noLib)return!1;var r=J.useCaseSensitiveFileNames()?Rt.equateStringsCaseSensitive:Rt.equateStringsCaseInsensitive;return I.lib?Rt.some(I.lib,function(e){return r(t.fileName,Rt.combinePaths(E,e))}):r(t.fileName,k())},dropDiagnosticsProducingTypeChecker:function(){s=void 0},getSourceFileFromReference:function(e,t){return $e(Bt(t.fileName,e.fileName),function(e){return $.get(Te(e))||void 0})},getLibFileFromReference:function(e){e=Rt.toFileNameLowerCase(e.fileName),e=Rt.libMap.get(e);if(e)return Me(Rt.combinePaths(E,e))},sourceFileToPackageName:Y,redirectTargetsMap:Z,isEmittedFile:function(e){if(I.noEmit)return!1;var t=Te(e);if(Le(t))return!1;e=I.outFile||I.out;if(e)return Mt(t,e)||Mt(t,Rt.removeFileExtension(e)+".d.ts");if(I.declarationDir&&Rt.containsPath(I.declarationDir,t,z,!J.useCaseSensitiveFileNames()))return!0;if(I.outDir)return Rt.containsPath(I.outDir,t,z,!J.useCaseSensitiveFileNames());if(Rt.fileExtensionIsOneOf(t,Rt.supportedJSExtensions)||Rt.fileExtensionIs(t,".d.ts")){t=Rt.removeFileExtension(t);return!!Le(t+".ts")||!!Le(t+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return l||Rt.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t){return f&&Rt.resolveModuleNameFromCache(e,t,f)},getProjectReferences:function(){return O},getResolvedProjectReferences:Ae,getProjectReferenceRedirect:at,getResolvedProjectReferenceToRedirect:ct,getResolvedProjectReferenceByPath:pt,forEachResolvedProjectReference:ut,isSourceOfProjectReferenceRedirect:_t,emitBuildInfo:function(e){Rt.Debug.assert(!I.out&&!I.outFile),Rt.performance.mark("beforeEmit");e=Rt.emitFiles(Rt.notImplementedResolver,Ne(e),void 0,Rt.noTransformers,!1,!0);return Rt.performance.mark("afterEmit"),Rt.performance.measure("Emit","beforeEmit","afterEmit"),e},fileExists:i,getProbableSymlinks:Lt,useCaseSensitiveFileNames:function(){return J.useCaseSensitiveFileNames()}};return e(),function(){if(I.strictPropertyInitialization&&!Rt.getStrictOptionValue(I,"strictNullChecks")&&Nt(Rt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),I.isolatedModules&&(I.out&&Nt(Rt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),I.outFile&&Nt(Rt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),I.inlineSourceMap&&(I.sourceMap&&Nt(Rt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),I.mapRoot&&Nt(Rt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),I.paths&&void 0===I.baseUrl&&Nt(Rt.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths"),I.composite&&(!1===I.declaration&&Nt(Rt.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===I.incremental&&Nt(Rt.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration")),I.tsBuildInfoFile?Rt.isIncrementalCompilation(I)||Nt(Rt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!I.incremental||I.outFile||I.out||I.configFilePath||N.add(Rt.createCompilerDiagnostic(Rt.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),!I.listFilesOnly&&I.noEmit&&Rt.isIncrementalCompilation(I)&&Nt(Rt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noEmit",I.incremental?"incremental":"composite"),function(){var o=I.noEmit||I.suppressOutputPathCheck?void 0:Rt.getTsBuildInfoEmitOutputFilePath(I);dt(O,W,function(e,t,r){var n,i=(r?r.commandLine.projectReferences:O)[t],a=r&&r.sourceFile;e?((n=e.commandLine.options).composite||(r?r.commandLine.fileNames:w).length&&Ft(a,t,Rt.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,i.path),i.prepend&&((e=n.outFile||n.out)?J.fileExists(e)||Ft(a,t,Rt.Diagnostics.Output_file_0_from_project_1_does_not_exist,e,i.path):Ft(a,t,Rt.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,i.path)),!r&&o&&o===Rt.getTsBuildInfoEmitOutputFilePath(n)&&(Ft(a,t,Rt.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,o,i.path),V.set(Te(o),!0))):Ft(a,t,Rt.Diagnostics.File_0_not_found,i.path)})}(),I.composite)for(var e=Rt.arrayToSet(w,Te),t=0,r=F;t<r.length;t++){var n=r[t];Rt.sourceFileMayBeEmitted(n,xe)&&!e.has(n.path)&&Ct(n,e,Rt.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,n.fileName,I.configFilePath||"")}if(I.paths)for(var i in I.paths)if(Rt.hasProperty(I.paths,i))if(Rt.hasZeroOrOneAsteriskCharacter(i)||kt(!0,i,Rt.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i),Rt.isArray(I.paths[i])){var a=I.paths[i].length;0===a&&kt(!1,i,Rt.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,i);for(var o=0;o<a;o++){var s=I.paths[i][o],c=typeof s;"string"==c?Rt.hasZeroOrOneAsteriskCharacter(s)||Tt(i,o,Rt.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,s,i):Tt(i,o,Rt.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,s,i,c)}}else kt(!1,i,Rt.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,i);I.sourceMap||I.inlineSourceMap||(I.inlineSources&&Nt(Rt.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),I.sourceRoot&&Nt(Rt.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),I.out&&I.outFile&&Nt(Rt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),!I.mapRoot||I.sourceMap||I.declarationMap||Nt(Rt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),I.declarationDir&&(Rt.getEmitDeclarations(I)||Nt(Rt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),(I.out||I.outFile)&&Nt(Rt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",I.out?"out":"outFile")),I.declarationMap&&!Rt.getEmitDeclarations(I)&&Nt(Rt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),I.lib&&I.noLib&&Nt(Rt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),I.noImplicitUseStrict&&Rt.getStrictOptionValue(I,"alwaysStrict")&&Nt(Rt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var u,l,_,d=I.target||0,p=I.outFile||I.out,f=Rt.find(F,function(e){return Rt.isExternalModule(e)&&!e.isDeclarationFile});function g(e,t){var r,n;e&&(n=Te(e),$.has(n)&&(r=void 0,I.configFilePath||(r=Rt.chainDiagnosticMessages(void 0,Rt.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=Rt.chainDiagnosticMessages(r,Rt.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,e),Ot(e,Rt.createCompilerDiagnosticFromMessageChain(r))),n=J.useCaseSensitiveFileNames()?n:Rt.toFileNameLowerCase(n),t.has(n)?Ot(e,Rt.createCompilerDiagnostic(Rt.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):t.set(n,!0))}I.isolatedModules?(I.module===Rt.ModuleKind.None&&d<2&&Nt(Rt.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),(u=Rt.find(F,function(e){return!Rt.isExternalModule(e)&&!Rt.isSourceFileJS(e)&&!e.isDeclarationFile&&6!==e.scriptKind}))&&(l=Rt.getErrorSpanForNode(u,u),N.add(Rt.createFileDiagnostic(u,l.start,l.length,Rt.Diagnostics.All_files_must_be_modules_when_the_isolatedModules_flag_is_provided)))):f&&d<2&&I.module===Rt.ModuleKind.None&&(l=Rt.getErrorSpanForNode(f,f.externalModuleIndicator),N.add(Rt.createFileDiagnostic(f,l.start,l.length,Rt.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))),p&&!I.emitDeclarationOnly&&(I.module&&I.module!==Rt.ModuleKind.AMD&&I.module!==Rt.ModuleKind.System?Nt(Rt.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,I.out?"out":"outFile","module"):void 0===I.module&&f&&(l=Rt.getErrorSpanForNode(f,f.externalModuleIndicator),N.add(Rt.createFileDiagnostic(f,l.start,l.length,Rt.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,I.out?"out":"outFile")))),I.resolveJsonModule&&(Rt.getEmitModuleResolutionKind(I)!==Rt.ModuleResolutionKind.NodeJs?Nt(Rt.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):Rt.hasJsonModuleEmitEnabled(I)||Nt(Rt.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),(I.outDir||I.sourceRoot||I.mapRoot)&&(l=ke(),I.outDir&&""===l&&F.some(function(e){return 1<Rt.getRootLength(e.fileName)})&&Nt(Rt.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")),I.useDefineForClassFields&&0===d&&Nt(Rt.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),I.checkJs&&!I.allowJs&&N.add(Rt.createCompilerDiagnostic(Rt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),I.emitDeclarationOnly&&(Rt.getEmitDeclarations(I)||Nt(Rt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),I.noEmit&&Nt(Rt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),I.emitDecoratorMetadata&&!I.experimentalDecorators&&Nt(Rt.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),I.jsxFactory?(I.reactNamespace&&Nt(Rt.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),Rt.parseIsolatedEntityName(I.jsxFactory,d)||At("jsxFactory",Rt.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,I.jsxFactory)):I.reactNamespace&&!Rt.isIdentifierText(I.reactNamespace,d)&&At("reactNamespace",Rt.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,I.reactNamespace),I.noEmit||I.suppressOutputPathCheck||(d=Ne(),_=Rt.createMap(),Rt.forEachEmittedFile(d,function(e){I.emitDeclarationOnly||g(e.jsFilePath,_),g(e.declarationFilePath,_)}))}(),Rt.performance.mark("afterProgram"),Rt.performance.measure("Program","beforeProgram","afterProgram"),xe;function De(e,t,r,n){Rt.performance.mark("beforeResolveModule");n=m(e,t,r,n);return Rt.performance.mark("afterResolveModule"),Rt.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),n}function Se(e,t,r){Rt.performance.mark("beforeResolveTypeReference");r=S(e,t,r);return Rt.performance.mark("afterResolveTypeReference"),Rt.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),r}function Ce(e){if(Rt.containsPath(E,e.fileName,!1)){e=Rt.getBaseFileName(e.fileName);if("lib.d.ts"===e||"lib.es6.d.ts"===e)return 0;e=Rt.removeSuffix(Rt.removePrefix(e,"lib."),".d.ts"),e=Rt.libs.indexOf(e);if(-1!==e)return e+1}return Rt.libs.length+2}function Te(e){return Rt.toPath(e,z,vt)}function ke(){var e;return void 0===o&&(e=Rt.filter(F,function(e){return Rt.sourceFileMayBeEmitted(e,xe)}),I.rootDir&&xt(e,I.rootDir)?o=Rt.getNormalizedAbsolutePath(I.rootDir,z):I.composite&&I.configFilePath?xt(e,o=Rt.getDirectoryPath(Rt.normalizeSlashes(I.configFilePath))):(e=e,o=jt(Rt.mapDefined(e,function(e){return e.isDeclarationFile?void 0:e.fileName}),z,vt)),o&&o[o.length-1]!==Rt.directorySeparator&&(o+=Rt.directorySeparator)),o}function Ee(e,t,r){if(0===ne&&!r.ambientModuleNames.length)return De(e,t,void 0,ct(r.originalFileName));var n,i,a,o=M&&M.getSourceFile(t);if(o!==r&&r.resolvedModules){for(var s=[],c=0,u=e;c<u.length;c++){var l=u[c],_=r.resolvedModules.get(l);s.push(_)}return s}for(var d={},p=0;p<e.length;p++){l=e[p];if(r===o&&!K(o.path)){var f=o&&o.resolvedModules.get(l);if(f){Rt.isTraceEnabled(I,J)&&Rt.trace(J,Rt.Diagnostics.Reusing_resolution_of_module_0_to_file_1_from_old_program,l,t),(i=i||new Array(e.length))[p]=f,(a=a||[]).push(l);continue}}f=!1;Rt.contains(r.ambientModuleNames,l)?(f=!0,Rt.isTraceEnabled(I,J)&&Rt.trace(J,Rt.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,l,t)):f=function(e){var t=Rt.getResolvedModule(o,e),r=t&&M.getSourceFile(t.resolvedFileName);if(t&&r)return!1;r=L.get(e);if(!r)return!1;Rt.isTraceEnabled(I,J)&&Rt.trace(J,Rt.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,e,r);return!0}(l),f?(i=i||new Array(e.length))[p]=d:(n=n||[]).push(l)}var g=n&&n.length?De(n,t,a,ct(r.originalFileName)):Rt.emptyArray;if(!i)return Rt.Debug.assert(g.length===e.length),g;for(var m=0,p=0;p<i.length;p++)i[p]?i[p]===d&&(i[p]=void 0):(i[p]=g[m],m++);return Rt.Debug.assert(m===g.length),i}function Ne(e){return{getPrependNodes:Fe,getCanonicalFileName:vt,getCommonSourceDirectory:xe.getCommonSourceDirectory,getCompilerOptions:xe.getCompilerOptions,getCurrentDirectory:function(){return z},getNewLine:function(){return J.getNewLine()},getSourceFile:xe.getSourceFile,getSourceFileByPath:xe.getSourceFileByPath,getSourceFiles:xe.getSourceFiles,getLibFileFromReference:xe.getLibFileFromReference,isSourceFileFromExternalLibrary:Pe,getResolvedProjectReferenceToRedirect:ct,getProjectReferenceRedirect:at,isSourceOfProjectReferenceRedirect:_t,getProbableSymlinks:Lt,writeFile:e||function(e,t,r,n,i){return J.writeFile(e,t,r,n,i)},isEmitBlocked:Oe,readFile:function(e){return J.readFile(e)},fileExists:function(e){var t=Te(e);return!!Le(t)||!Rt.contains(q,t)&&J.fileExists(e)},useCaseSensitiveFileNames:function(){return J.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return xe.getProgramBuildInfo&&xe.getProgramBuildInfo()},getSourceFileFromReference:function(e,t){return xe.getSourceFileFromReference(e,t)},redirectTargetsMap:Z}}function Ae(){return W}function Fe(){return Kt(O,function(e,t){return W[t].commandLine},function(e){var t=Te(e),e=Le(t);return e?e.text:$.has(t)?void 0:J.readFile(t)})}function Pe(e){return!!j.get(e.path)}function we(){return s=s||Rt.createTypeChecker(xe,!0)}function Ie(){return c=c||Rt.createTypeChecker(xe,!1)}function Oe(e){return V.has(Te(e))}function Me(e){return Le(Te(e))}function Le(e){return $.get(e)||void 0}function Re(e,t,r){return e?t(e,r):Rt.sortAndDeduplicateDiagnostics(Rt.flatMap(xe.getSourceFiles(),function(e){return r&&r.throwIfCancellationRequested(),t(e,r)}))}function Be(e){return Rt.skipTypeChecking(e,I,xe)?Rt.emptyArray:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=Rt.flatten(r);return null!==(t=e.commentDirectives)&&void 0!==t&&t.length?Ke(e,e.commentDirectives,i).diagnostics:i}(e,B.getDiagnostics(e.fileName),N.getDiagnostics(e.fileName))}function je(e){return Rt.isSourceFileJS(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=(c=e,Je(function(){var a=[];return e(c,c),Rt.forEachChildRecursively(c,e,function(e,t){t.decorators!==e||I.experimentalDecorators||a.push(s(t,Rt.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 245:case 214:case 161:case 162:case 163:case 164:case 201:case 244:case 202:if(e===t.typeParameters)return a.push(o(e,Rt.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 225: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 81:if(t)continue;case 119:case 117:case 118:case 138:case 130:case 122:a.push(s(i,Rt.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,Rt.tokenToString(i.kind)))}}}(t.modifiers,225===t.kind),"skip";break;case 159:if(e!==t.modifiers)break;for(var r=0,n=e;r<n.length;r++){var i=n[r];120!==i.kind&&a.push(s(i,Rt.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,Rt.tokenToString(i.kind)))}return"skip";case 156:if(e===t.modifiers)return a.push(o(e,Rt.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 196:case 197:case 216:case 267:case 268:case 198:if(e===t.typeArguments)return a.push(o(e,Rt.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}}),a;function e(e,t){switch(t.kind){case 156:case 159:case 161:if(t.questionToken===e)return a.push(s(e,Rt.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 160:case 162:case 163:case 164:case 201:case 244:case 202:case 242:if(t.type===e)return a.push(s(e,Rt.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(e.kind){case 255:if(e.isTypeOnly)return a.push(s(e.parent,Rt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 260:if(e.isTypeOnly)return a.push(s(e,Rt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 253:return a.push(s(e,Rt.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 259:if(e.isExportEquals)return a.push(s(e,Rt.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 279:if(113===e.token)return a.push(s(e,Rt.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 246:var r=Rt.tokenToString(114);return Rt.Debug.assertIsDefined(r),a.push(s(e,Rt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,r)),"skip";case 249:var n=16&e.flags?Rt.tokenToString(136):Rt.tokenToString(135);return Rt.Debug.assertIsDefined(n),a.push(s(e,Rt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,n)),"skip";case 247:return a.push(s(e,Rt.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 248:n=Rt.Debug.checkDefined(Rt.tokenToString(88));return a.push(s(e,Rt.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,n)),"skip";case 218:return a.push(s(e,Rt.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 217:return a.push(s(e.type,Rt.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 199:Rt.Debug.fail()}}function o(e,t,r,n,i){var a=e.pos;return Rt.createFileDiagnostic(c,a,e.end-a,t,r,n,i)}function s(e,t,r,n,i){return Rt.createDiagnosticForNodeInSourceFile(c,e,t,r,n,i)}}))),Rt.concatenate(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics;var c}function Je(e){try{return e()}catch(e){throw e instanceof Rt.OperationCanceledException&&(s=c=void 0),e}}function ze(e,t){return Rt.concatenate(Ue(e,t),Be(e))}function Ue(e,t){return He(e,t,_,Ve)}function Ve(i,a){return Je(function(){if(Rt.skipTypeChecking(i,I,xe))return Rt.emptyArray;var e=we();Rt.Debug.assert(!!i.bindDiagnostics);var t=Rt.isCheckJsEnabledForFile(i,I),r=!(!!i.checkJsDirective&&!1===i.checkJsDirective.enabled)&&(3===i.scriptKind||4===i.scriptKind||5===i.scriptKind||t||7===i.scriptKind),n=r?i.bindDiagnostics:Rt.emptyArray,e=r?e.getDiagnostics(i,a):Rt.emptyArray;return function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=Rt.flatten(r);if(null===(t=e.commentDirectives)||void 0===t||!t.length)return i;for(var i=Ke(e,e.commentDirectives,i),a=i.diagnostics,i=i.directives,o=0,s=i.getUnusedExpectations();o<s.length;o++){var c=s[o];a.push(Rt.createDiagnosticForRange(e,c.range,Rt.Diagnostics.Unused_ts_expect_error_directive))}return a}(i,n,e,t?i.jsDocDiagnostics:void 0)})}function Ke(e,t,r){var n=Rt.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=Rt.getLineStarts(r),i=Rt.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 qe(e,t){return He(e,t,d,We)}function We(t,r){return Je(function(){var e=we().getEmitResolver(t,r);return Rt.getDeclarationDiagnostics(Ne(Rt.noop),e,t)||Rt.emptyArray})}function He(e,t,r,n){var i=e?r.perFile&&r.perFile.get(e.path):r.allDiagnostics;if(i)return i;t=n(e,t);return e?(r.perFile||(r.perFile=Rt.createMap()),r.perFile.set(e.path,t)):r.allDiagnostics=t,t}function Ge(e,t){return e.isDeclarationFile?[]:qe(e,t)}function Qe(e,t,r){et(Rt.normalizePath(e),t,r,void 0)}function Xe(e,t){return e.fileName===t.fileName}function Ye(e,t){return 75===e.kind?75===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function Ze(s){if(!s.imports){var c,u,l,e,t,a=Rt.isSourceFileJS(s),_=Rt.isExternalModule(s);I.importHelpers&&(I.isolatedModules||_)&&!s.isDeclarationFile&&(e=Rt.createLiteral(Rt.externalHelpersModuleNameText),t=Rt.createImportDeclaration(void 0,void 0,void 0,e),Rt.addEmitFlags(t,67108864),(e.parent=t).parent=s,c=[e]);for(var r=0,n=s.statements;r<n.length;r++)!function e(t,r){if(Rt.isAnyImportOrReExport(t)){var n=Rt.getExternalModuleName(t);!(n&&Rt.isStringLiteral(n)&&n.text)||r&&Rt.isExternalModuleNameRelative(n.text)||(c=Rt.append(c,n))}else if(Rt.isModuleDeclaration(t)&&Rt.isAmbientModule(t)&&(r||Rt.hasModifier(t,2)||s.isDeclarationFile)){var n=Rt.getTextOfIdentifierOrLiteral(t.name);if(_||r&&!Rt.isExternalModuleNameRelative(n))(u=u||[]).push(t.name);else if(!r){s.isDeclarationFile&&(l=l||[]).push(n);var t=t.body;if(t)for(var i=0,a=t.statements;i<a.length;i++){var o=a[i];e(o,!0)}}}}(n[r],!1);(1048576&s.flags||a)&&function(e){for(var t=/import|require/g;null!==t.exec(e.text);){var r=function(e,t){function r(e){if(e.pos<=t&&(t<e.end||t===e.end&&1===e.kind))return e}var n=e;for(;;){var i=a&&Rt.hasJSDocNodes(n)&&Rt.forEach(n.jsDoc,r)||Rt.forEachChild(n,r);if(!i)return n;n=i}}(e,t.lastIndex);Rt.isRequireCall(r,!0)||Rt.isImportCall(r)&&1===r.arguments.length&&Rt.isStringLiteralLike(r.arguments[0])?c=Rt.append(c,r.arguments[0]):Rt.isLiteralImportTypeNode(r)&&(c=Rt.append(c,r.argument.literal))}}(s),s.imports=c||Rt.emptyArray,s.moduleAugmentations=u||Rt.emptyArray,s.ambientModuleNames=l||Rt.emptyArray}}function $e(t,r,e,n){if(Rt.hasExtension(t)){var i=J.getCanonicalFileName(t);if(I.allowNonTsExtensions||Rt.forEach(U,function(e){return Rt.fileExtensionIs(i,e)})){var a=r(t);return e&&(a?n&&i===J.getCanonicalFileName(n.fileName)&&e(Rt.Diagnostics.A_file_cannot_have_a_reference_to_itself):(n=at(t))?e(Rt.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,n,t):e(Rt.Diagnostics.File_0_not_found,t)),a}e&&(Rt.hasJSFileExtension(i)?e(Rt.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,t):e(Rt.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,t,"'"+A.join("', '")+"'"))}else{a=I.allowNonTsExtensions&&r(t);if(a)return a;if(!e||!I.allowNonTsExtensions){a=Rt.forEach(A,function(e){return r(t+e)});return e&&!a&&e(Rt.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,t,"'"+A.join("', '")+"'"),a}e(Rt.Diagnostics.File_0_not_found,t)}}function et(e,t,r,n,i){$e(e,function(e){return rt(e,Te(e),t,r,i,n)},function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return B.add(ht.apply(void 0,__spreadArrays([i,e],t)))},i&&i.file)}function tt(e,t,r){var n=r?void 0:P&&P.get(t.path),n=n&&Rt.find(n,function(e){return e.referencedFileName===t.fileName});B.add(n?St(n,Rt.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,t.fileName,e):ht(r,Rt.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,e,t.fileName))}function rt(t,e,r,n,i,a){if(te){var o=lt(t);if(!o&&J.realpath&&I.preserveSymlinks&&Rt.isDeclarationFileName(t)&&Rt.stringContains(t,Rt.nodeModulesPathPart)&&((p=J.realpath(t))!==t&&(o=lt(p))),o){var s=Rt.isString(o)?rt(o,Te(o),r,n,i,a):void 0;return s&&it(s,e,void 0),s}}var c=t;if($.has(e)){var u=$.get(e);return nt(t,u||void 0,i),u&&I.forceConsistentCasingInFileNames&&(Te(f=u.fileName)!==Te(t)&&(t=at(t)||t),Rt.getNormalizedAbsolutePathWithoutRoot(f,z)!==Rt.getNormalizedAbsolutePathWithoutRoot(t,z)&&tt(t,u,i)),u&&j.get(u.path)&&0===x?(j.set(u.path,!1),I.noResolve||(ft(u,r),gt(u)),I.noLib||yt(u),D.set(u.path,!1),bt(u)):u&&D.get(u.path)&&x<b&&(D.set(u.path,!1),bt(u)),u||void 0}if(i&&!te){var l=ot(t);if(l){if(l.commandLine.options.outFile||l.commandLine.options.out)return;var _=st(l,t),d=Te(t=_)}}var p,f,g=J.getSourceFile(t,I.target,function(e){return B.add(ht(i,Rt.Diagnostics.Cannot_read_file_0_Colon_1,t,e))},re);if(a){var m=Rt.packageIdToString(a),y=X.get(m);if(y){_=(p=y,o=g,s=e,u=Te(f=t),l=c,(_=Object.create(p)).fileName=f,_.path=s,_.resolvedPath=u,_.originalFileName=l,_.redirectInfo={redirectTarget:p,unredirected:o},j.set(s,0<x),Object.defineProperties(_,{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}}}),_);return Z.add(y.path,t),it(_,e,d),Y.set(e,a.name),v.push(_),_}g&&(X.set(m,g),Y.set(e,a.name))}return it(g,e,d),g&&(j.set(e,0<x),g.fileName=t,g.path=e,g.resolvedPath=Te(t),g.originalFileName=c,nt(t,g,i),J.useCaseSensitiveFileNames()&&(c=Rt.toFileNameLowerCase(e),(e=ee.get(c))?tt(t,e,i):ee.set(c,g)),T=T||g.hasNoDefaultLib&&!n,I.noResolve||(ft(g,r),gt(g)),I.noLib||yt(g),bt(g),(r?h:v).push(g)),g}function nt(e,t,r){r&&t&&(P=P||Rt.createMultiMap()).add(t.path,{referencedFileName:e,kind:r.kind,index:r.index,file:r.file.path})}function it(e,t,r){r?($.set(r,e),$.set(t,e||!1)):$.set(t,e)}function at(e){var t=ot(e);return t&&st(t,e)}function ot(e){if(W&&W.length&&!Rt.fileExtensionIs(e,".d.ts")&&!Rt.fileExtensionIs(e,".json"))return ct(e)}function st(e,t){var r=e.commandLine.options.outFile||e.commandLine.options.out;return r?Rt.changeExtension(r,".d.ts"):Rt.getOutputDeclarationFileName(t,e.commandLine,!J.useCaseSensitiveFileNames())}function ct(e){void 0===G&&(G=Rt.createMap(),ut(function(e,t){e&&Te(I.configFilePath)!==t&&e.commandLine.fileNames.forEach(function(e){return G.set(Te(e),t)})}));e=G.get(Te(e));return e&&pt(e)}function ut(n){return dt(O,W,function(e,t,r){t=Te(qt((r?r.commandLine.projectReferences:O)[t]));return n(e,t)})}function lt(e){if(Rt.isDeclarationFileName(e))return void 0===Q&&(Q=Rt.createMap(),ut(function(r){var e;r&&((e=r.commandLine.options.outFile||r.commandLine.options.out)?(e=Rt.changeExtension(e,".d.ts"),Q.set(Te(e),!0)):Rt.forEach(r.commandLine.fileNames,function(e){var t;Rt.fileExtensionIs(e,".d.ts")||Rt.fileExtensionIs(e,".json")||(t=Rt.getOutputDeclarationFileName(e,r.commandLine,J.useCaseSensitiveFileNames()),Q.set(Te(t),e))}))})),Q.get(Te(e))}function _t(e){return te&&!!ct(e)}function dt(e,t,r,n){var o;return function r(e,t,n,i,a){if(a){var e=a(e,n);if(e)return e}return Rt.forEach(t,function(e,t){if(!Rt.contains(o,e)){var t=i(e,t,n);return t?t:e?((o=o||[]).push(e),r(e.commandLine.projectReferences,e.references,e,i,a)):void 0}})}(e,t,void 0,r,n)}function pt(e){if(H)return H.get(e)||void 0}function ft(r,n){Rt.forEach(r.referencedFiles,function(e,t){et(Bt(e.fileName,r.originalFileName),n,!1,void 0,{kind:Rt.RefFileKind.ReferenceFile,index:t,file:r,pos:e.pos,end:e.end})})}function gt(e){var t=Rt.map(e.typeReferenceDirectives,function(e){return Rt.toFileNameLowerCase(e.fileName)});if(t)for(var r=Se(t,e.originalFileName,ct(e.originalFileName)),n=0;n<t.length;n++){var i=e.typeReferenceDirectives[n],a=r[n],o=Rt.toFileNameLowerCase(i.fileName);Rt.setResolvedTypeReferenceDirective(e,o,a),mt(o,a,{kind:Rt.RefFileKind.TypeReferenceDirective,index:n,file:e,pos:i.pos,end:i.end})}}function mt(e,t,r){var n,i,a,o=R.get(e);o&&o.primary||(n=!0,t?(t.isExternalLibraryImport&&x++,!t.primary&&o?(t.resolvedFileName===o.resolvedFileName||J.readFile(t.resolvedFileName)!==(i=Me(o.resolvedFileName)).text&&(a=(a=r?void 0:P&&P.get(i.path))&&Rt.find(a,function(e){return e.referencedFileName===i.fileName}),B.add(a?St(a,Rt.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,e,t.resolvedFileName,o.resolvedFileName):ht(r,Rt.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,e,t.resolvedFileName,o.resolvedFileName))),n=!1):et(t.resolvedFileName,!1,!1,t.packageId,r),t.isExternalLibraryImport&&x--):B.add(ht(r,Rt.Diagnostics.Cannot_find_type_definition_file_for_0,e)),n&&R.set(e,t))}function yt(i){Rt.forEach(i.libReferenceDirectives,function(e){var t,r=Rt.toFileNameLowerCase(e.fileName),n=Rt.libMap.get(r);n?Qe(Rt.combinePaths(E,n),!0,!0):(t=Rt.removeSuffix(Rt.removePrefix(r,"lib."),".d.ts"),t=(n=Rt.getSpellingSuggestion(t,Rt.libs,Rt.identity))?Rt.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:Rt.Diagnostics.Cannot_find_lib_definition_for_0,B.add(Rt.createFileDiagnostic(i,e.pos,e.end-e.pos,t,r,n)))})}function ht(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return e?Rt.createFileDiagnostic.apply(void 0,__spreadArrays([e.file,e.pos,e.end-e.pos,t],r)):Rt.createCompilerDiagnostic.apply(void 0,__spreadArrays([t],r))}function vt(e){return J.getCanonicalFileName(e)}function bt(e){if(Ze(e),e.imports.length||e.moduleAugmentations.length){var t=Ht(e),r=Ee(t,Rt.getNormalizedAbsolutePath(e.originalFileName,z),e);Rt.Debug.assert(r.length===t.length);for(var n=0;n<t.length;n++){var i,a,o,s,c=r[n];Rt.setResolvedModule(e,t[n],c),c&&(i=c.isExternalLibraryImport,s=!Rt.resolutionExtensionIsTSOrJson(c.extension),o=i&&s,a=c.resolvedFileName,i&&x++,o=o&&b<x,s=a&&!Wt(I,c)&&!I.noResolve&&n<e.imports.length&&!o&&!(s&&!I.allowJs)&&(Rt.isInJSFile(e.imports[n])||!(4194304&e.imports[n].flags)),o?D.set(e.path,!0):s&&(o=Te(a),s=Rt.skipTrivia(e.text,e.imports[n].pos),rt(a,o,!1,!1,{kind:Rt.RefFileKind.Import,index:n,file:e,pos:s,end:e.imports[n].end},c.packageId)),i&&x--)}}else e.resolvedModules=void 0}function xt(e,t){for(var r,n=!0,i=J.getCanonicalFileName(Rt.getNormalizedAbsolutePath(t,z)),a=0,o=e;a<o.length;a++){var s=o[a];s.isDeclarationFile||0!==J.getCanonicalFileName(Rt.getNormalizedAbsolutePath(s.fileName,z)).indexOf(i)&&(Ct(s,r=r||Rt.arrayToSet(w,Te),Rt.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,s.fileName,t),n=!1)}return n}function Dt(e){H=H||Rt.createMap();var t,r=qt(e),n=Te(r),e=H.get(n);if(void 0!==e)return e||void 0;if(J.getParsedCommandLine){if(!(t=J.getParsedCommandLine(r)))return it(void 0,n,void 0),void H.set(n,!1);i=Rt.Debug.checkDefined(t.options.configFile),Rt.Debug.assert(!i.path||i.path===n),it(i,n,void 0)}else{e=Rt.getNormalizedAbsolutePath(Rt.getDirectoryPath(r),J.getCurrentDirectory());if(it(i=J.getSourceFile(r,100),n,void 0),void 0===i)return void H.set(n,!1);t=Rt.parseJsonSourceFileConfigFileContent(i,C,e,void 0,r)}i.fileName=r,i.path=n,i.resolvedPath=n,i.originalFileName=r;var i={commandLine:t,sourceFile:i};return H.set(n,i),t.projectReferences&&(i.references=t.projectReferences.map(Dt)),i}function St(e,t){for(var r,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var a,o,s=Rt.Debug.checkDefined(Le(e.file)),c=e.kind,u=e.index;switch(c){case Rt.RefFileKind.Import:a=Rt.skipTrivia(s.text,s.imports[u].pos),o=s.imports[u].end;break;case Rt.RefFileKind.ReferenceFile:a=(r=s.referencedFiles[u]).pos,o=r.end;break;case Rt.RefFileKind.TypeReferenceDirective:a=(r=s.typeReferenceDirectives[u]).pos,o=r.end;break;default:return Rt.Debug.assertNever(c)}return Rt.createFileDiagnostic.apply(void 0,__spreadArrays([s,a,o-a,t],n))}function Ct(e,t,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];e=P&&P.get(e.path),e=Rt.forEach(e,function(e){return t.has(e.file)?e:void 0})||Rt.elementAt(e,0);N.add(e?St.apply(void 0,__spreadArrays([e,r],n)):Rt.createCompilerDiagnostic.apply(void 0,__spreadArrays([r],n)))}function Tt(e,t,r,n,i,a){for(var o=!0,s=0,c=Et();s<c.length;s++){var u=c[s];if(Rt.isObjectLiteralExpression(u.initializer))for(var l=0,_=Rt.getPropertyAssignment(u.initializer,e);l<_.length;l++){var d=_[l].initializer;Rt.isArrayLiteralExpression(d)&&d.elements.length>t&&(N.add(Rt.createDiagnosticForNodeInSourceFile(I.configFile,d.elements[t],r,n,i,a)),o=!1)}}o&&N.add(Rt.createCompilerDiagnostic(r,n,i,a))}function kt(e,t,r,n){for(var i=!0,a=0,o=Et();a<o.length;a++){var s=o[a];Rt.isObjectLiteralExpression(s.initializer)&&It(s.initializer,e,t,void 0,r,n)&&(i=!1)}i&&N.add(Rt.createCompilerDiagnostic(r,n))}function Et(){return function(e){var t=wt();if(t)return Rt.getPropertyAssignment(t,e)}("paths")||Rt.emptyArray}function Nt(e,t,r,n){Pt(!0,t,r,e,t,r,n)}function At(e,t,r){Pt(!1,e,void 0,t,r)}function Ft(e,t,r,n,i){var a=Rt.firstDefined(Rt.getTsConfigPropArray(e||I.configFile,"references"),function(e){return Rt.isArrayLiteralExpression(e.initializer)?e.initializer:void 0});a&&a.elements.length>t?N.add(Rt.createDiagnosticForNodeInSourceFile(e||I.configFile,a.elements[t],r,n,i)):N.add(Rt.createCompilerDiagnostic(r,n,i))}function Pt(e,t,r,n,i,a,o){var s=wt();s&&It(s,e,t,r,n,i,a,o)||N.add(Rt.createCompilerDiagnostic(n,i,a,o))}function wt(){if(void 0===p){p=null;var e=Rt.getTsConfigObjectLiteralExpression(I.configFile);if(e)for(var t=0,r=Rt.getPropertyAssignment(e,"compilerOptions");t<r.length;t++){var n=r[t];if(Rt.isObjectLiteralExpression(n.initializer)){p=n.initializer;break}}}return p}function It(e,t,r,n,i,a,o,s){for(var n=Rt.getPropertyAssignment(e,r,n),c=0,u=n;c<u.length;c++){var l=u[c];N.add(Rt.createDiagnosticForNodeInSourceFile(I.configFile,t?l.name:l.initializer,i,a,o,s))}return n.length}function Ot(e,t){V.set(Te(e),!0),N.add(t)}function Mt(e,t){return 0===Rt.comparePaths(e,t,z,!J.useCaseSensitiveFileNames())}function Lt(){return J.getSymlinks?J.getSymlinks():a=a||Rt.discoverProbableSymlinks(F,vt,J.getCurrentDirectory())}},Rt.handleNoEmitOptions=Ut,Rt.parseConfigHostFromCompilerHostLike=Vt,Rt.createPrependNodes=Kt,Rt.resolveProjectReferencePath=qt,Rt.getResolutionDiagnostic=Wt}(ts=ts||{}),function(b){function d(e,t,r,n,i,a){var o=[],r=e.emit(t,function(e,t,r){o.push({name:e,writeByteOrderMark:r,text:t})},n,r,i,a),i=r.emitSkipped,a=r.diagnostics,r=r.exportedModulesFromDeclarationEmit;return{outputFiles:o,emitSkipped:i,diagnostics:a,exportedModulesFromDeclarationEmit:r}}var e;function x(e){if(e.declarations&&e.declarations[0]){e=b.getSourceFileOfNode(e.declarations[0]);return e&&e.resolvedPath}}function D(e,t,r,n){return b.toPath(e.getProjectReferenceRedirect(t)||t,r,n)}function f(t,i,r){var n;if(i.imports&&0<i.imports.length)for(var e=t.getTypeChecker(),a=0,o=i.imports;a<o.length;a++){var s=o[a],s=(s=s,(s=e.getSymbolAtLocation(s))&&x(s));s&&v(s)}var c=b.getDirectoryPath(i.resolvedPath);if(i.referencedFiles&&0<i.referencedFiles.length)for(var u=0,l=i.referencedFiles;u<l.length;u++){var _=l[u];v(D(t,_.fileName,c,r))}if(i.resolvedTypeReferenceDirectiveNames&&i.resolvedTypeReferenceDirectiveNames.forEach(function(e){e&&(e=e.resolvedFileName,v(D(t,e,c,r)))}),i.moduleAugmentations.length)for(var e=t.getTypeChecker(),d=0,p=i.moduleAugmentations;d<p.length;d++){var f=p[d];b.isStringLiteral(f)&&((f=e.getSymbolAtLocation(f))&&h(f))}for(var g=0,m=t.getTypeChecker().getAmbientModules();g<m.length;g++){var y=m[g];1<y.declarations.length&&h(y)}return n;function h(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t],n=b.getSourceFileOfNode(n);n&&n!==i&&v(n.resolvedPath)}}function v(e){(n=n||b.createMap()).set(e,!0)}}function g(e,t){return t&&!t.referencedMap==!e}function c(r,e){e.forEach(function(e,t){return n(r,e,t)})}function n(e,t,r){e.fileInfos.get(r).signature=t,e.hasCalledUpdateShapeSignature.set(r,!0)}function p(e,t,r,n,i,a,o){if(b.Debug.assert(!!r),b.Debug.assert(!o||!!e.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),e.hasCalledUpdateShapeSignature.has(r.resolvedPath)||n.has(r.resolvedPath))return!1;var s=e.fileInfos.get(r.resolvedPath);if(!s)return b.Debug.fail();var c,u,l,_,s=s.signature;return r.isDeclarationFile?(c=r.version,o&&c!==s&&(e=e.referencedMap?e.referencedMap.get(r.resolvedPath):void 0,o.set(r.resolvedPath,e||!1))):(u=d(t,r,!0,i,void 0,!0),(l=u.outputFiles&&t.getCompilerOptions().declarationMap?1<u.outputFiles.length?u.outputFiles[1]:void 0:0<u.outputFiles.length?u.outputFiles[0]:void 0)?(b.Debug.assert(b.fileExtensionIs(l.name,".d.ts"),"File extension for signature expected to be dts",function(){return"Found: "+b.getAnyExtensionFromPath(l.name)+" for "+l.name+":: All output files: "+JSON.stringify(u.outputFiles.map(function(e){return e.name}))}),c=a(l.text),o&&c!==s&&(t=r,a=u.exportedModulesFromDeclarationEmit,o=o,a?(a.forEach(function(e){(e=x(e))&&(_=_||b.createMap()).set(e,!0)}),o.set(t.resolvedPath,_||!1)):o.set(t.resolvedPath,!1))):c=s),n.set(r.resolvedPath,c),!s||c!==s}function u(e,t){return e.allFileNames||(t=t.getSourceFiles(),e.allFileNames=t===b.emptyArray?b.emptyArray:t.map(function(e){return e.fileName})),e.allFileNames}function m(e,r){return b.arrayFrom(b.mapDefinedIterator(e.referencedMap.entries(),function(e){var t=e[0];return e[1].has(r)?t:void 0}))}function y(e){return t=e,b.some(t.moduleAugmentations,function(e){return b.isGlobalScopeAugmentation(e.parent)})||!b.isExternalModule(e)&&!function(e){for(var t=0,r=e.statements;t<r.length;t++){var n=r[t];if(!b.isModuleWithStringLiteralName(n))return}return 1}(e);var t}function h(e,t,r){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;var n;r&&s(r);for(var i=0,a=t.getSourceFiles();i<a.length;i++){var o=a[i];o!==r&&s(o)}return e.allFilesExcludingDefaultLibraryFile=n||b.emptyArray,e.allFilesExcludingDefaultLibraryFile;function s(e){t.isSourceFileDefaultLibrary(e)||(n=n||[]).push(e)}}function t(e){return e?b.cloneMap(e):void 0}b.getFileEmitOutput=d,(e=b.BuilderState||(b.BuilderState={})).canReuseOldState=g,e.create=function(e,t,r){for(var n=b.createMap(),i=e.getCompilerOptions().module!==b.ModuleKind.None?b.createMap():void 0,a=i?b.createMap():void 0,o=b.createMap(),s=g(i,r),c=0,u=e.getSourceFiles();c<u.length;c++){var l,_=u[c],d=b.Debug.checkDefined(_.version,"Program intended to be used with Builder should have source files with versions set"),p=s?r.fileInfos.get(_.resolvedPath):void 0;i&&((l=f(e,_,t))&&i.set(_.resolvedPath,l),!s||(l=r.exportedModulesMap.get(_.resolvedPath))&&a.set(_.resolvedPath,l)),n.set(_.resolvedPath,{version:d,signature:p&&p.signature,affectsGlobalScope:y(_)})}return{fileInfos:n,referencedMap:i,exportedModulesMap:a,hasCalledUpdateShapeSignature:o}},e.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},e.clone=function(e){var r=b.createMap();return e.fileInfos.forEach(function(e,t){r.set(t,__assign({},e))}),{fileInfos:r,referencedMap:t(e.referencedMap),exportedModulesMap:t(e.exportedModulesMap),hasCalledUpdateShapeSignature:b.cloneMap(e.hasCalledUpdateShapeSignature)}},e.getFilesAffectedBy=function(e,t,r,n,i,a,o){var s=a||b.createMap();return(r=t.getSourceFileByPath(r))?p(e,t,r,s,n,i,o)?(o=(e.referencedMap?function(e,t,r,n,i,a,o){if(y(r))return h(e,t,r);var s=t.getCompilerOptions();if(s&&(s.isolatedModules||s.out||s.outFile))return[r];var c=b.createMap();c.set(r.resolvedPath,r);var u=m(e,r.resolvedPath);for(;0<u.length;){var l,_=u.pop();c.has(_)||(l=t.getSourceFileByPath(_),c.set(_,l),l&&p(e,t,l,n,i,a,o)&&u.push.apply(u,m(e,l.resolvedPath)))}return b.arrayFrom(b.mapDefinedIterator(c.values(),function(e){return e}))}:function(e,t,r){var n=t.getCompilerOptions();if(n&&(n.out||n.outFile))return[r];return h(e,t,r)})(e,t,r,s,n,i,o),a||c(e,s),o):[r]:b.emptyArray},e.updateSignaturesFromCache=c,e.updateSignatureOfFile=n,e.updateShapeSignature=p,e.updateExportedFilesMapFromCache=function(r,e){e&&(b.Debug.assert(!!r.exportedModulesMap),e.forEach(function(e,t){e?r.exportedModulesMap.set(t,e):r.exportedModulesMap.delete(t)}))},e.getAllDependencies=function(e,r,t){var n=r.getCompilerOptions();if(n.outFile||n.out)return u(e,r);if(!e.referencedMap||y(t))return u(e,r);for(var i=b.createMap(),a=[t.resolvedPath];a.length;){var o=a.pop();if(!i.has(o)){i.set(o,!0);o=e.referencedMap.get(o);if(o)for(var s=o.keys(),c=s.next();!c.done;c=s.next())a.push(c.value)}}return b.arrayFrom(b.mapDefinedIterator(i.keys(),function(e){var t=r.getSourceFileByPath(e);return t?t.fileName:e}))},e.getReferencedByPaths=m,e.getAllFilesExcludingDefaultLibraryFile=h,b.cloneMapOrUndefined=t}(ts=ts||{}),function(v){var m,e;function o(a,o,s){var c=v.BuilderState.create(a,o,s),e=(c.program=a).getCompilerOptions();(c.compilerOptions=e).outFile||e.out||(c.semanticDiagnosticsPerFile=v.createMap()),c.changedFilesSet=v.createMap();var t,u=v.BuilderState.canReuseOldState(c.referencedMap,s),r=u?s.compilerOptions:void 0,l=u&&s.semanticDiagnosticsPerFile&&!!c.semanticDiagnosticsPerFile&&!v.compilerOptionsAffectSemanticDiagnostics(e,r);u&&(s.currentChangedFilePath||(t=s.currentAffectedFilesSignatures,v.Debug.assert(!(s.affectedFiles||t&&t.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")),t=s.changedFilesSet,l&&v.Debug.assert(!t||!v.forEachKey(t,function(e){return s.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files"),t&&v.copyEntries(t,c.changedFilesSet),e.outFile||e.out||!s.affectedFilesPendingEmit||(c.affectedFilesPendingEmit=s.affectedFilesPendingEmit.slice(),c.affectedFilesPendingEmitKind=v.cloneMapOrUndefined(s.affectedFilesPendingEmitKind),c.affectedFilesPendingEmitIndex=s.affectedFilesPendingEmitIndex,c.seenAffectedFiles=v.createMap()));var _=c.referencedMap,d=u?s.referencedMap:void 0,p=l&&!e.skipLibCheck==!r.skipLibCheck,f=p&&!e.skipDefaultLibCheck==!r.skipDefaultLibCheck;return c.fileInfos.forEach(function(e,t){var r,n,i;!u||!(r=s.fileInfos.get(t))||r.version!==e.version||(e=n=_&&_.get(t),i=d&&d.get(t),e!==i&&(void 0===e||void 0===i||e.size!==i.size||v.forEachKey(e,function(e){return!i.has(e)})))||n&&v.forEachKey(n,function(e){return!c.fileInfos.has(e)&&s.fileInfos.has(e)})?c.changedFilesSet.set(t,!0):l&&((n=a.getSourceFileByPath(t)).isDeclarationFile&&!p||n.hasNoDefaultLib&&!f||(n=s.semanticDiagnosticsPerFile.get(t))&&(c.semanticDiagnosticsPerFile.set(t,s.hasReusableDiagnostic?function(e,r,t){if(!e.length)return v.emptyArray;var n=v.getDirectoryPath(v.getNormalizedAbsolutePath(v.getTsBuildInfoEmitOutputFilePath(r.getCompilerOptions()),r.getCurrentDirectory()));return e.map(function(e){var t=g(e,r,i);t.reportsUnnecessary=e.reportsUnnecessary,t.source=e.source;e=e.relatedInformation;return t.relatedInformation=e?e.length?e.map(function(e){return g(e,r,i)}):v.emptyArray:void 0,t});function i(e){return v.toPath(e,n,t)}}(n,a,o):n),c.semanticDiagnosticsFromOldState||(c.semanticDiagnosticsFromOldState=v.createMap()),c.semanticDiagnosticsFromOldState.set(t,!0)))}),u&&v.forEachEntry(s.fileInfos,function(e,t){return e.affectsGlobalScope&&!c.fileInfos.has(t)})?v.BuilderState.getAllFilesExcludingDefaultLibraryFile(c,a,void 0).forEach(function(e){return c.changedFilesSet.set(e.resolvedPath,!0)}):r&&v.compilerOptionsAffectEmit(e,r)&&(a.getSourceFiles().forEach(function(e){return C(c,e.resolvedPath,1)}),v.Debug.assert(!c.seenAffectedFiles||!c.seenAffectedFiles.size),c.seenAffectedFiles=c.seenAffectedFiles||v.createMap()),c.emittedBuildInfo=!c.changedFilesSet.size&&!c.affectedFilesPendingEmit,c}function g(e,t,r){var n=e.file;return __assign(__assign({},e),{file:n?t.getSourceFileByPath(r(n)):void 0})}function y(e,t){v.Debug.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function l(e,t,r){for(;;){var n=e.affectedFiles;if(n){for(var i=e.seenAffectedFiles,a=e.affectedFilesIndex;a<n.length;){var o=n[a];if(!i.has(o.resolvedPath))return e.affectedFilesIndex=a,function(t,e,r,n){var i,a;_(t,e.resolvedPath),t.allFilesExcludingDefaultLibraryFile===t.affectedFiles?t.cleanedDiagnosticsOfLibFiles||(t.cleanedDiagnosticsOfLibFiles=!0,i=v.Debug.checkDefined(t.program),a=i.getCompilerOptions(),v.forEach(i.getSourceFiles(),function(e){return i.isSourceFileDefaultLibrary(e)&&!v.skipTypeChecking(e,a,i)&&_(t,e.resolvedPath)})):t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(r,n,i){if(r.exportedModulesMap&&r.changedFilesSet.has(n.resolvedPath)&&d(r,n.resolvedPath)){if(r.compilerOptions.isolatedModules){var e=v.createMap();e.set(n.resolvedPath,!0);for(var t=v.BuilderState.getReferencedByPaths(r,n.resolvedPath);0<t.length;){var a=t.pop();e.has(a)||(e.set(a,!0),i(r,a)&&d(r,a)&&(a=v.Debug.checkDefined(r.program).getSourceFileByPath(a),t.push.apply(t,v.BuilderState.getReferencedByPaths(r,a.resolvedPath))))}}v.Debug.assert(!!r.currentAffectedFilesExportedModulesMap);var o=v.createMap();v.forEachEntry(r.currentAffectedFilesExportedModulesMap,function(e,t){return e&&e.has(n.resolvedPath)&&p(r,t,o,i)})||v.forEachEntry(r.exportedModulesMap,function(e,t){return!r.currentAffectedFilesExportedModulesMap.has(t)&&e.has(n.resolvedPath)&&p(r,t,o,i)})}}(t,e,function(e,t){return function(e,t,r,n){{var i,a;_(e,t),e.changedFilesSet.has(t)||(i=v.Debug.checkDefined(e.program),(a=i.getSourceFileByPath(t))&&(v.BuilderState.updateShapeSignature(e,i,a,v.Debug.checkDefined(e.currentAffectedFilesSignatures),r,n,e.currentAffectedFilesExportedModulesMap),v.getEmitDeclarations(e.compilerOptions)&&C(e,t,0)))}return!1}(e,t,r,n)})}(e,o,t,r),o;a++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,v.BuilderState.updateSignaturesFromCache(e,e.currentAffectedFilesSignatures),e.currentAffectedFilesSignatures.clear(),v.BuilderState.updateExportedFilesMapFromCache(e,e.currentAffectedFilesExportedModulesMap),e.affectedFiles=void 0}var s=e.changedFilesSet.keys().next();if(s.done)return;var c=v.Debug.checkDefined(e.program),u=c.getCompilerOptions();if(u.outFile||u.out)return v.Debug.assert(!e.semanticDiagnosticsPerFile),c;e.currentAffectedFilesSignatures=e.currentAffectedFilesSignatures||v.createMap(),e.exportedModulesMap&&(e.currentAffectedFilesExportedModulesMap=e.currentAffectedFilesExportedModulesMap||v.createMap()),e.affectedFiles=v.BuilderState.getFilesAffectedBy(e,c,s.value,t,r,e.currentAffectedFilesSignatures,e.currentAffectedFilesExportedModulesMap),e.currentChangedFilePath=s.value,e.affectedFilesIndex=0,e.seenAffectedFiles=e.seenAffectedFiles||v.createMap()}}function _(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function d(e,t){return v.Debug.checkDefined(e.currentAffectedFilesSignatures).get(t)!==v.Debug.checkDefined(e.fileInfos.get(t)).signature}function p(r,n,i,a){return v.forEachEntry(r.referencedMap,function(e,t){return e.has(n)&&function r(n,i,a,o){if(!v.addToSeen(a,i))return!1;if(o(n,i))return!0;v.Debug.assert(!!n.currentAffectedFilesExportedModulesMap);if(v.forEachEntry(n.currentAffectedFilesExportedModulesMap,function(e,t){return e&&e.has(i)&&r(n,t,a,o)}))return!0;if(v.forEachEntry(n.exportedModulesMap,function(e,t){return!n.currentAffectedFilesExportedModulesMap.has(t)&&e.has(i)&&r(n,t,a,o)}))return!0;return!!v.forEachEntry(n.referencedMap,function(e,t){return e.has(i)&&!a.has(t)&&o(n,t)})}(r,t,i,a)})}function c(e,t,r,n,i){i?e.emittedBuildInfo=!0:t===e.program?(e.changedFilesSet.clear(),e.programEmitComplete=!0):(e.seenAffectedFiles.set(t.resolvedPath,!0),void 0!==r&&(e.seenEmittedFiles||(e.seenEmittedFiles=v.createMap())).set(t.resolvedPath,r),n?e.affectedFilesPendingEmitIndex++:e.affectedFilesIndex++)}function h(e,t,r){return c(e,r),{result:t,affected:r}}function b(e,t,r,n,i,a){return c(e,r,n,i,a),{result:t,affected:r}}function x(e,t,r){return v.concatenate(function(e,t,r){var n=t.resolvedPath;if(e.semanticDiagnosticsPerFile){var i=e.semanticDiagnosticsPerFile.get(n);if(i)return i}r=v.Debug.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(n,r);return r}(e,t,r),v.Debug.checkDefined(e.program).getProgramDiagnostics(t))}function D(n,t){if(!n.compilerOptions.outFile&&!n.compilerOptions.out){var r=v.Debug.checkDefined(n.program).getCurrentDirectory(),i=v.getDirectoryPath(v.getNormalizedAbsolutePath(v.getTsBuildInfoEmitOutputFilePath(n.compilerOptions),r)),a={};n.fileInfos.forEach(function(e,t){var r=n.currentAffectedFilesSignatures&&n.currentAffectedFilesSignatures.get(t);a[h(t)]=void 0===r?e:{version:e.version,signature:r,affectsGlobalScope:e.affectsGlobalScope}});var e={fileInfos:a,options:function(e,t){var r,n={},i=v.getOptionsNameMap().optionsNameMap;for(r in e)v.hasProperty(e,r)&&(n[r]=function(e,t,r){if(e)if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}(i.get(r.toLowerCase()),e[r],t));n.configFilePath&&(n.configFilePath=t(n.configFilePath));return n}(n.compilerOptions,function(e){return h(v.getNormalizedAbsolutePath(e,r))})};if(n.referencedMap){for(var o={},s=0,c=v.arrayFrom(n.referencedMap.keys()).sort(v.compareStringsCaseSensitive);s<c.length;s++)o[h(d=c[s])]=v.arrayFrom(n.referencedMap.get(d).keys(),h).sort(v.compareStringsCaseSensitive);e.referencedMap=o}if(n.exportedModulesMap){for(var u={},l=0,_=v.arrayFrom(n.exportedModulesMap.keys()).sort(v.compareStringsCaseSensitive);l<_.length;l++){var d=_[l],p=n.currentAffectedFilesExportedModulesMap&&n.currentAffectedFilesExportedModulesMap.get(d);void 0===p?u[h(d)]=v.arrayFrom(n.exportedModulesMap.get(d).keys(),h).sort(v.compareStringsCaseSensitive):p&&(u[h(d)]=v.arrayFrom(p.keys(),h).sort(v.compareStringsCaseSensitive))}e.exportedModulesMap=u}if(n.semanticDiagnosticsPerFile){for(var f=[],g=0,m=v.arrayFrom(n.semanticDiagnosticsPerFile.keys()).sort(v.compareStringsCaseSensitive);g<m.length;g++){var d=m[g],y=n.semanticDiagnosticsPerFile.get(d);f.push(y.length?[h(d),n.hasReusableDiagnostic?y:function(e,r){return v.Debug.assert(!!e.length),e.map(function(e){var t=S(e,r);t.reportsUnnecessary=e.reportsUnnecessary,t.source=e.source;e=e.relatedInformation;return t.relatedInformation=e?e.length?e.map(function(e){return S(e,r)}):v.emptyArray:void 0,t})}(y,h)]:h(d))}e.semanticDiagnosticsPerFile=f}return e}function h(e){return v.ensurePathIsNonModuleName(v.getRelativePathFromDirectory(i,e,t))}}function S(e,t){var r=e.file;return __assign(__assign({},e),{file:r?t(r.resolvedPath):void 0})}function C(e,t,r){e.affectedFilesPendingEmit||(e.affectedFilesPendingEmit=[]),e.affectedFilesPendingEmitKind||(e.affectedFilesPendingEmitKind=v.createMap());var n=e.affectedFilesPendingEmitKind.get(t);e.affectedFilesPendingEmit.push(t),e.affectedFilesPendingEmitKind.set(t,n||r),void 0===e.affectedFilesPendingEmitIndex&&(e.affectedFilesPendingEmitIndex=0)}function u(e,t){if(e){var r,n=v.createMap();for(r in e)v.hasProperty(e,r)&&n.set(t(r),v.arrayToSet(e[r],t));return n}}function T(e,t){return{getState:v.notImplemented,backupState:v.noop,restoreState:v.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)},getAllDependencies:v.notImplemented,getCurrentDirectory:function(){return a().getCurrentDirectory()},close:v.noop};function a(){return v.Debug.checkDefined(e.program)}}(e=v.BuilderFileEmit||(v.BuilderFileEmit={}))[e.DtsOnly=0]="DtsOnly",e[e.Full=1]="Full",(e=m=v.BuilderProgramKind||(v.BuilderProgramKind={}))[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",v.getBuilderCreationParameters=function(e,t,r,n,i,a){var o,s,c;return void 0===e?(v.Debug.assert(void 0===t),o=r,c=n,v.Debug.assert(!!c),s=c.getProgram()):v.isArray(e)?(c=n,s=v.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||v.emptyArray}},v.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=v.createGetCanonicalFileName(d.useCaseSensitiveFileNames()),u=d.createHash||v.generateDjb2Hash,p=o(t,a,e);t.getProgramBuildInfo=function(){return D(p,a)},e=r=t=void 0;var f=T(p,n);return f.getState=function(){return p},f.backupState=function(){var e,t;v.Debug.assert(void 0===i),e=p,(t=v.BuilderState.clone(e)).semanticDiagnosticsPerFile=v.cloneMapOrUndefined(e.semanticDiagnosticsPerFile),t.changedFilesSet=v.cloneMap(e.changedFilesSet),t.affectedFiles=e.affectedFiles,t.affectedFilesIndex=e.affectedFilesIndex,t.currentChangedFilePath=e.currentChangedFilePath,t.currentAffectedFilesSignatures=v.cloneMapOrUndefined(e.currentAffectedFilesSignatures),t.currentAffectedFilesExportedModulesMap=v.cloneMapOrUndefined(e.currentAffectedFilesExportedModulesMap),t.seenAffectedFiles=v.cloneMapOrUndefined(e.seenAffectedFiles),t.cleanedDiagnosticsOfLibFiles=e.cleanedDiagnosticsOfLibFiles,t.semanticDiagnosticsFromOldState=v.cloneMapOrUndefined(e.semanticDiagnosticsFromOldState),t.program=e.program,t.compilerOptions=e.compilerOptions,t.affectedFilesPendingEmit=e.affectedFilesPendingEmit&&e.affectedFilesPendingEmit.slice(),t.affectedFilesPendingEmitKind=v.cloneMapOrUndefined(e.affectedFilesPendingEmitKind),t.affectedFilesPendingEmitIndex=e.affectedFilesPendingEmitIndex,t.seenEmittedFiles=v.cloneMapOrUndefined(e.seenEmittedFiles),t.programEmitComplete=e.programEmitComplete,i=t},f.restoreState=function(){p=v.Debug.checkDefined(i),i=void 0},f.getAllDependencies=function(e){return v.BuilderState.getAllDependencies(p,v.Debug.checkDefined(p.program),e)},f.getSemanticDiagnostics=function(e,t){y(p,e);var r,n=v.Debug.checkDefined(p.program).getCompilerOptions();if(n.outFile||n.out)return v.Debug.assert(!p.semanticDiagnosticsPerFile),v.Debug.checkDefined(p.program).getSemanticDiagnostics(e,t);if(e)return x(p,e,t);for(;s(t););for(var i=0,a=v.Debug.checkDefined(p.program).getSourceFiles();i<a.length;i++){var o=a[i];r=v.addRange(r,x(p,o,t))}return r||v.emptyArray},f.emit=function(e,t,r,n,i){if(_===m.EmitAndSemanticDiagnosticsBuilderProgram){y(p,e);var a=v.handleNoEmitOptions(f,e,r);if(a)return a;if(!e){for(var o=[],s=!1,c=void 0,u=[],l=void 0;l=g(t,r,n,i);)s=s||l.result.emitSkipped,c=v.addRange(c,l.result.diagnostics),u=v.addRange(u,l.result.emittedFiles),o=v.addRange(o,l.result.sourceMaps);return{emitSkipped:s,diagnostics:c||v.emptyArray,emittedFiles:u,sourceMaps:o}}}return v.Debug.checkDefined(p.program).emit(e,t||v.maybeBind(d,d.writeFile),r,n,i)},f.releaseProgram=function(){var e;e=p,v.BuilderState.releaseCache(e),e.program=void 0,i=void 0},_===m.SemanticDiagnosticsBuilderProgram?f.getSemanticDiagnosticsOfNextAffectedFile=s:_===m.EmitAndSemanticDiagnosticsBuilderProgram?(f.getSemanticDiagnosticsOfNextAffectedFile=s,f.emitNextAffectedFile=g):v.notImplemented(),f;function g(e,t,r,n){var i=l(p,t,u),a=1,o=!1;if(!i)if(p.compilerOptions.out||p.compilerOptions.outFile){var s=v.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=v.createMap()),n=e.affectedFilesPendingEmitIndex;n<t.length;n++){var i=v.Debug.checkDefined(e.program).getSourceFileByPath(t[n]);if(i){var a=r.get(i.resolvedPath),o=v.Debug.checkDefined(v.Debug.checkDefined(e.affectedFilesPendingEmitKind).get(i.resolvedPath));if(void 0===a||a<o)return e.affectedFilesPendingEmitIndex=n,{affectedFile:i,emitKind:o}}}e.affectedFilesPendingEmit=void 0,e.affectedFilesPendingEmitKind=void 0,e.affectedFilesPendingEmitIndex=void 0}}(p);if(!c){if(p.emittedBuildInfo)return;s=v.Debug.checkDefined(p.program);return b(p,s.emitBuildInfo(e||v.maybeBind(d,d.writeFile),t),s,1,!1,!0)}i=c.affectedFile,a=c.emitKind,o=!0}return b(p,v.Debug.checkDefined(p.program).emit(i===p.program?void 0:i,e||v.maybeBind(d,d.writeFile),t,r||0===a,n),i,a,o)}function s(e,t){for(;;){var r=l(p,e,u);if(!r)return;if(r===p.program)return h(p,p.program.getSemanticDiagnostics(void 0,e),r);if(_===m.EmitAndSemanticDiagnosticsBuilderProgram&&C(p,r.resolvedPath,1),!t||!t(r))return h(p,x(p,r,e),r);c(p,r)}}},v.createBuildProgramUsingProgramBuildInfo=function(e,t,r){var n,i=v.getDirectoryPath(v.getNormalizedAbsolutePath(t,r.getCurrentDirectory())),a=v.createGetCanonicalFileName(r.useCaseSensitiveFileNames()),o=v.createMap();for(n in e.fileInfos)v.hasProperty(e.fileInfos,n)&&o.set(c(n),e.fileInfos[n]);var s={fileInfos:o,compilerOptions:v.convertToOptionsWithAbsolutePaths(e.options,function(e){return v.getNormalizedAbsolutePath(e,i)}),referencedMap:u(e.referencedMap,c),exportedModulesMap:u(e.exportedModulesMap,c),semanticDiagnosticsPerFile:e.semanticDiagnosticsPerFile&&v.arrayToMap(e.semanticDiagnosticsPerFile,function(e){return c(v.isString(e)?e:e[0])},function(e){return v.isString(e)?v.emptyArray:e[1]}),hasReusableDiagnostic:!0};return{getState:function(){return s},backupState:v.noop,restoreState:v.noop,getProgram:v.notImplemented,getProgramOrUndefined:v.returnUndefined,releaseProgram:v.noop,getCompilerOptions:function(){return s.compilerOptions},getSourceFile:v.notImplemented,getSourceFiles:v.notImplemented,getOptionsDiagnostics:v.notImplemented,getGlobalDiagnostics:v.notImplemented,getConfigFileParsingDiagnostics:v.notImplemented,getSyntacticDiagnostics:v.notImplemented,getDeclarationDiagnostics:v.notImplemented,getSemanticDiagnostics:v.notImplemented,emit:v.notImplemented,getAllDependencies:v.notImplemented,getCurrentDirectory:v.notImplemented,emitNextAffectedFile:v.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:v.notImplemented,close:v.noop};function c(e){return v.toPath(e,i,a)}},v.createRedirectedBuilderProgram=T}(ts=ts||{}),function(o){o.createSemanticDiagnosticsBuilderProgram=function(e,t,r,n,i,a){return o.createBuilderProgram(o.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,o.getBuilderCreationParameters(e,t,r,n,i,a))},o.createEmitAndSemanticDiagnosticsBuilderProgram=function(e,t,r,n,i,a){return o.createBuilderProgram(o.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,o.getBuilderCreationParameters(e,t,r,n,i,a))},o.createAbstractBuilder=function(e,t,r,n,i,a){return i=o.getBuilderCreationParameters(e,t,r,n,i,a),a=i.newProgram,i=i.configFileParsingDiagnostics,o.createRedirectedBuilderProgram({program:a,compilerOptions:a.getCompilerOptions()},i)}}(ts=ts||{}),function(H){function G(t){return H.endsWith(t,"/node_modules/.staging")?H.removeSuffix(t,"/.staging"):H.some(H.ignoredPaths,function(e){return H.stringContains(t,e)})?void 0:t}function Q(e){var t=H.getRootLength(e);if(e.length===t)return!1;var r=e.indexOf(H.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(H.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(H.directorySeparator,a)+1))return!1;return!0}H.removeIgnoredPath=G,H.canWatchDirectory=Q,H.createResolutionCache=function(N,e,i){var A,a,t,F=H.createMultiMap(),l=[],P=H.createMultiMap(),o=H.memoize(function(){return N.getCurrentDirectory()}),s=N.getCachedDirectoryStructureHost(),c=H.createMap(),u=H.createCacheWithRedirects(),r=H.createCacheWithRedirects(),_=H.createModuleResolutionCacheWithMaps(u,r,o(),N.getCanonicalFileName),n=H.createMap(),d=H.createCacheWithRedirects(),p=[".ts",".tsx",".js",".jsx",".json"],f=H.createMap(),g=H.createMap(),m=e&&H.removeTrailingDirectorySeparator(H.getNormalizedAbsolutePath(e,o())),y=m&&N.toPath(m),h=void 0!==y?y.split(H.directorySeparator).length:0,v=H.createMap();return{startRecordingFilesWithChangedResolutions:function(){A=[]},finishRecordingFilesWithChangedResolutions:function(){var e=A;return A=void 0,e},startCachingPerDirectoryResolution:S,finishCachingPerDirectoryResolution:function(){t=void 0,S(),g.forEach(function(e,t){0===e.refCount&&(g.delete(t),e.watcher.close())})},resolveModuleNames:function(e,t,r,n){return T({names:e,containingFile:t,redirectedReference:n,cache:c,perDirectoryCacheWithRedirects:u,loader:C,getResolutionWithResolvedFileName:b,shouldRetryResolution:function(e){return!e.resolvedModule||!H.resolutionExtensionIsTSOrJson(e.resolvedModule.extension)},reusedNames:r,logChanges:i})},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t){t=c.get(N.toPath(t));return t&&t.get(e)},resolveTypeReferenceDirectives:function(e,t,r){return T({names:e,containingFile:t,redirectedReference:r,cache:n,perDirectoryCacheWithRedirects:d,loader:H.resolveTypeReferenceDirective,getResolutionWithResolvedFileName:x,shouldRetryResolution:function(e){return void 0===e.resolvedTypeReferenceDirective}})},removeResolutionsFromProjectReferenceRedirects:function(e){if(!H.fileExtensionIs(e,".json"))return;var t=N.getCurrentProgram();if(!t)return;e=t.getResolvedProjectReferenceByPath(e);if(!e)return;e.commandLine.fileNames.forEach(function(e){return z(N.toPath(e))})},removeResolutionsOfFile:z,invalidateResolutionOfFile:function(e){z(e),H.forEach(P.get(e),U)},setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){H.Debug.assert(t===e||void 0===t),t=e},createHasInvalidatedResolution:function(e){if(e)return a=void 0,H.returnTrue;var t=a;return a=void 0,function(e){return!!t&&t.has(e)||w(e)}},updateTypeRootsWatch:function(){var e=N.getCompilationSettings();if(e.types)return void K();e=H.getEffectiveTypeRoots(e,{directoryExists:W,getCurrentDirectory:o});e?H.mutateMap(v,H.arrayToMap(e,function(e){return N.toPath(e)}),{createNewValue:q,onDeleteValue:H.closeFileWatcher}):K()},closeTypeRootsWatch:K,clear:function(){H.clearMap(g,H.closeFileWatcherOf),f.clear(),F.clear(),K(),c.clear(),n.clear(),P.clear(),l.length=0,S()}};function b(e){return e.resolvedModule}function x(e){return e.resolvedTypeReferenceDirective}function D(e,t){return!(void 0===e||t.length<=e.length)&&(H.startsWith(t,e)&&t[e.length]===H.directorySeparator)}function w(e){if(!t)return!1;e=t.get(e);return!!e&&!!e.length}function S(){u.clear(),r.clear(),d.clear(),F.forEach(L),F.clear()}function C(e,t,r,n,i){t=H.resolveModuleName(e,t,r,n,_,i);if(!N.getGlobalCache)return t;var i=N.getGlobalCache();if(!(void 0===i||H.isExternalModuleNameRelative(e)||t.resolvedModule&&H.extensionIsTS(t.resolvedModule.extension))){n=H.loadModuleFromGlobalCache(H.Debug.checkDefined(N.globalCacheResolutionModuleName)(e),N.projectName,r,n,i),i=n.resolvedModule,n=n.failedLookupLocations;if(i)return t.resolvedModule=i,(i=t.failedLookupLocations).push.apply(i,n),t}return t}function T(e){var t=e.names,r=e.containingFile,n=e.redirectedReference,i=e.cache,a=e.perDirectoryCacheWithRedirects,o=e.loader,s=e.getResolutionWithResolvedFileName,c=e.shouldRetryResolution,u=e.reusedNames,l=e.logChanges,_=N.toPath(r),d=i.get(_)||i.set(_,H.createMap()).get(_),i=H.getDirectoryPath(_),a=a.getOrCreateMapOfCacheRedirects(n),p=a.get(i);p||(p=H.createMap(),a.set(i,p));for(var f,g,m,y=[],h=N.getCompilationSettings(),v=l&&w(_),i=N.getCurrentProgram(),i=i&&i.getResolvedProjectReferenceToRedirect(r),b=i?!n||n.sourceFile.path!==i.sourceFile.path:!!n,x=H.createMap(),D=0,S=t;D<S.length;D++){var C,T,k=S[D],E=d.get(k);(!x.has(k)&&b||!E||E.isInvalidated||v&&!H.isExternalModuleNameRelative(k)&&c(E))&&(C=E,(T=p.get(k))?E=T:(E=o(k,r,h,(null===(g=N.getCompilerHost)||void 0===g?void 0:g.call(N))||N,n),p.set(k,E)),d.set(k,E),f=k,m=_,T=s,(g=E).refCount?(g.refCount++,H.Debug.assertDefined(g.files)):(g.refCount=1,H.Debug.assert(void 0===g.files),H.isExternalModuleNameRelative(f)?M(g):F.add(f,g),(T=T(g))&&T.resolvedFileName&&P.add(N.toPath(T.resolvedFileName),g)),(g.files||(g.files=[])).push(m),C&&B(C,_,s),l&&A&&!function(e,t){if(e===t)return!0;if(!e||!t)return!1;e=s(e),t=s(t);return e===t||!(!e||!t)&&e.resolvedFileName===t.resolvedFileName}(C,E)&&(A.push(_),l=!1)),H.Debug.assert(void 0!==E&&!E.isInvalidated),x.set(k,!0),y.push(s(E))}return d.forEach(function(e,t){x.has(t)||H.contains(u,t)||(B(e,_,s),d.delete(t))}),y}function k(e){return H.endsWith(e,"/node_modules/@types")}function E(e,t){if(D(y,t)){e=H.isRootedDiskPath(e)?H.normalizePath(e):H.getNormalizedAbsolutePath(e,o());var r=t.split(H.directorySeparator),n=e.split(H.directorySeparator);return H.Debug.assert(n.length===r.length,"FailedLookup: "+e+" failedLookupLocationPath: "+t),r.length>h+1?{dir:n.slice(0,h+1).join(H.directorySeparator),dirPath:r.slice(0,h+1).join(H.directorySeparator)}:{dir:m,dirPath:y,nonRecursive:!1}}return I(H.getDirectoryPath(H.getNormalizedAbsolutePath(e,o())),H.getDirectoryPath(t))}function I(e,t){for(;H.pathContainsNodeModules(t);)e=H.getDirectoryPath(e),t=H.getDirectoryPath(t);if(H.isNodeModulesDirectory(t))return Q(H.getDirectoryPath(t))?{dir:e,dirPath:t}:void 0;var r,n,i=!0;if(void 0!==y)for(;!D(t,y);){var a=H.getDirectoryPath(t);if(a===t)break;i=!1,r=t,n=e,t=a,e=H.getDirectoryPath(e)}return Q(t)?{dir:n||e,dirPath:r||t,nonRecursive:i}:void 0}function O(e){return H.fileExtensionIsOneOf(e,p)}function M(e){H.Debug.assert(!!e.refCount);var t=e.failedLookupLocations;if(t.length){l.push(e);for(var r=!1,n=0,i=t;n<i.length;n++){var a,o,s=i[n],c=N.toPath(s),u=E(s,c);u&&(a=u.dir,o=u.dirPath,s=u.nonRecursive,O(c)||(u=f.get(c)||0,f.set(c,u+1)),o===y?(H.Debug.assert(!s),r=!0):R(a,o,s))}r&&R(m,y,!0)}}function L(e,t){var r=N.getCurrentProgram();r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t)||e.forEach(M)}function R(e,t,r){var n,i=g.get(t);i?(H.Debug.assert(!!r==!!i.nonRecursive),i.refCount++):g.set(t,{watcher:(e=e,n=t,t=r,N.watchDirectoryOfFailedLookupLocation(e,function(e){var t=N.toPath(e);s&&s.addOrDeleteFileOrDirectory(e,t),V(t,n===t)&&N.onInvalidatedResolution()},t?0:1)),refCount:1,nonRecursive:r})}function B(e,t,r){if(H.unorderedRemoveItem(H.Debug.assertDefined(e.files),t),e.refCount--,!e.refCount){r=r(e);if(r&&r.resolvedFileName&&P.remove(N.toPath(r.resolvedFileName),e),H.unorderedRemoveItem(l,e)){for(var n=!1,i=0,a=e.failedLookupLocations;i<a.length;i++){var o=a[i],s=N.toPath(o),c=E(o,s);c&&(o=c.dirPath,(c=f.get(s))&&(1===c?f.delete(s):(H.Debug.assert(1<c),f.set(s,c-1))),o===y?n=!0:j(o))}n&&j(y)}}}function j(e){g.get(e).refCount--}function J(e,t,r){var n=e.get(t);n&&(n.forEach(function(e){return B(e,t,r)}),e.delete(t))}function z(e){J(c,e,b),J(n,e,x)}function U(e){for(var t=!(e.isInvalidated=!0),r=0,n=H.Debug.assertDefined(e.files);r<n.length;r++){var i=n[r];(a=a||H.createMap()).set(i,!0),t=t||i.endsWith(H.inferredTypesContainingFile)}t&&N.onChangedAutomaticTypeDirectiveNames()}function V(t,e){var r;if(e)r=function(e){return D(t,N.toPath(e))};else{e=G(t);if(!e)return;if(t=e,N.fileIsOpen(t))return;e=H.getDirectoryPath(t);if(k(t)||H.isNodeModulesDirectory(t)||k(e)||H.isNodeModulesDirectory(e))r=function(e){return N.toPath(e)===t||H.startsWith(N.toPath(e),t)};else{if(!O(t)&&!f.has(t))return;if(H.isEmittedFileOfProgram(N.getCurrentProgram(),t))return;r=function(e){return N.toPath(e)===t}}}for(var n=!1,i=0,a=l;i<a.length;i++){var o=a[i];o.failedLookupLocations.some(r)&&(U(o),n=!0)}return n}function K(){H.clearMap(v,H.closeFileWatcher)}function q(n,i){return N.watchTypeRootsDirectory(i,function(e){var t=N.toPath(e);s&&s.addOrDeleteFileOrDirectory(e,t),N.onChangedAutomaticTypeDirectiveNames();var r,e=(r=i,D(y,e=n)?y:(e=I(r,e))&&g.has(e.dirPath)?e.dirPath:void 0);e&&V(t,e===t)&&N.onInvalidatedResolution()},1)}function W(e){e=H.getDirectoryPath(H.getDirectoryPath(e)),e=N.toPath(e);return e===y||Q(e)}}}(ts=ts||{}),function(p){var e,t;function c(e,t,r){var n=e.importModuleSpecifierPreference,i=e.importModuleSpecifierEnding;return{relativePreference:"relative"===n?0:"non-relative"===n?1:2,ending:function(){switch(i){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return function(e){e=e.imports;return p.firstDefined(e,function(e){e=e.text;return p.pathIsRelative(e)?p.hasJSFileExtension(e):void 0})||!1}(r)?2:p.getEmitModuleResolutionKind(t)!==p.ModuleResolutionKind.NodeJs?1:0}}()}}function o(t,e,r,n,i){var a=u(e,n),e=g(e,r,n);return p.firstDefined(e,function(e){return y(e,a,n,t)})||l(r,a,t,i)}function u(e,t){return{getCanonicalFileName:p.createGetCanonicalFileName(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),sourceDirectory:p.getDirectoryPath(e)}}function l(e,t,r,n){var i=t.getCanonicalFileName,a=t.sourceDirectory,o=n.ending,s=n.relativePreference,c=r.baseUrl,t=r.paths,n=r.rootDirs,a=n&&function(e,t,r,n,i,a){t=h(t,e,n);if(void 0===t)return;e=h(r,e,n),t=void 0!==e?p.ensurePathIsNonModuleName(p.getRelativePathFromDirectory(e,t,n)):t;return p.getEmitModuleResolutionKind(a)===p.ModuleResolutionKind.NodeJs?v(t,i,a):p.removeFileExtension(t)}(n,e,a,i,o,r)||v(p.ensurePathIsNonModuleName(p.getRelativePathFromDirectory(a,e,i)),o,r);if(!c||0===s)return a;i=b(e,c,i);if(!i)return a;r=v(i,o,r),t=t&&m(p.removeFileExtension(i),r,t),t=void 0===t?r:t;return 1===s?t:(2!==s&&p.Debug.assertNever(s),x(t)||_(a)<_(t)?a:t)}function _(e){for(var t=0,r=p.startsWith(e,"./")?2:0;r<e.length;r++)47===e.charCodeAt(r)&&t++;return t}function r(e){e=e.match(/\//g);return e?e.length:0}function d(e,t){return p.compareValues(r(e),r(t))}function f(n,e,i,t,a){var o=p.hostGetCanonicalFileName(i),r=i.getCurrentDirectory(),s=i.isSourceOfProjectReferenceRedirect(e)?i.getProjectReferenceRedirect(e):void 0,c=i.redirectTargetsMap.get(p.toPath(e,r,o))||p.emptyArray,u=__spreadArrays(s?[s]:p.emptyArray,[e],c).map(function(e){return p.getNormalizedAbsolutePath(e,r)});if(!t){var l=p.forEach(u,a);if(l)return l}var l=i.getProbableSymlinks?i.getProbableSymlinks(i.getSourceFiles()):p.discoverProbableSymlinks(i.getSourceFiles(),o,r),_=!i.useCaseSensitiveFileNames||i.useCaseSensitiveFileNames()?p.compareStringsCaseSensitive:p.compareStringsCaseInsensitive;return p.forEachEntry(l,function(t,e){if(!p.startsWithDirectory(n,t,o)){var r=p.find(u,function(e){return 0===_(e.slice(0,t.length+1),t+"/")});if(void 0!==r){r=p.getRelativePathFromDirectory(t,r,o),r=p.resolvePath(e,r);if(!i.fileExists||i.fileExists(r)){r=a(r);if(r)return r}}}})||(t?p.forEach(u,a):void 0)}function g(e,t,r){var n=r.getCurrentDirectory(),i=p.hostGetCanonicalFileName(r),a=p.createMap(),o=!1;f(e,t,r,!0,function(e){a.set(e,i(e)),o=o||p.pathContainsNodeModules(e)});for(var s,c=[],u=p.getDirectoryPath(p.toPath(e,n,i));0!==a.size;){var l=function(e){var r,n=p.ensureTrailingDirectorySeparator(e);a.forEach(function(e,t){p.startsWith(e,n)&&(o&&!p.pathContainsNodeModules(t)||(r=r||[]).push(t),a.delete(t))}),r&&(1<r.length&&r.sort(d),c.push.apply(c,r));var t=p.getDirectoryPath(e);if(t===e)return s=e,"break";s=e=t}(u),u=s;if("break"===l)break}return a.size&&(1<(n=p.arrayFrom(a.values())).length&&n.sort(d),c.push.apply(c,n)),c}function m(e,t,r){for(var n in r)for(var i=0,a=r[n];i<a.length;i++){var o=a[i],s=p.removeFileExtension(p.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&&p.startsWith(t,o)&&p.endsWith(t,c)||!c&&t===p.removeTrailingDirectorySeparator(o)){c=t.substr(o.length,t.length-c.length);return n.replace("*",c)}}else if(s===t||s===e)return n}}function y(a,e,o,s,t){var c=e.getCanonicalFileName,r=e.sourceDirectory;if(o.fileExists&&o.readFile){var n=function(e){var t=0,r=0,n=0,i=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}({});var a=0,o=0,s=0;for(;0<=o;)switch(a=o,o=e.indexOf("/",a+1),s){case 0:e.indexOf(p.nodeModulesPathPart,a)===a&&(t=a,r=o,s=1);break;case 1:case 2:s=1===s&&"@"===e.charAt(a+1)?2:(n=o,3);break;case 3:s=e.indexOf(p.nodeModulesPathPart,a)===a?1:3}return i=a,1<s?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:n,fileNameIndex:i}:void 0}(a);if(n){var i=a;if(!t)for(var u=n.packageRootIndex,l=void 0;;){var _=function(e){var t=a.substring(0,e),r=p.combinePaths(t,"package.json"),n=a;if(o.fileExists(r)){var i=JSON.parse(o.readFile(r)),e=i.typesVersions?p.getPackageJsonTypesVersionsPaths(i.typesVersions):void 0;e&&(r=a.slice(t.length+1),void 0!==(e=m(p.removeFileExtension(r),v(r,0,s),e.paths))&&(n=p.combinePaths(t,e)));i=i.typings||i.types||i.main;if(p.isString(i)){i=p.toPath(i,t,c);if(p.removeFileExtension(i)===p.removeFileExtension(c(n)))return{packageRootPath:t,moduleFileToTry:n}}}return{moduleFileToTry:n}}(u),d=_.moduleFileToTry,_=_.packageRootPath;if(_){i=_;break}if(l=l||d,-1===(u=a.indexOf(p.directorySeparator,u+1))){i=function(e){e=p.removeFileExtension(e);return"/index"!==c(e.substring(n.fileNameIndex))||function(e,t){if(!e.fileExists)return;for(var r=p.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]),n=0,i=r;n<i.length;n++){var a=i[n],a=t+a;if(e.fileExists(a))return a}}(o,e.substring(0,n.fileNameIndex))?e:e.substring(0,n.fileNameIndex)}(l);break}}e=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),t=c(i.substring(0,n.topLevelNodeModulesIndex));if(p.startsWith(r,t)||e&&p.startsWith(c(e),t)){e=i.substring(n.topLevelPackageNameIndex+1),t=p.getPackageNameFromTypesPackageName(e);return p.getEmitModuleResolutionKind(s)!==p.ModuleResolutionKind.NodeJs&&t===e?void 0:t}}}}function h(t,e,r){return p.firstDefined(e,function(e){e=b(t,e,r);return x(e)?void 0:e})}function v(e,t,r){if(p.fileExtensionIs(e,".json"))return e;var n=p.removeFileExtension(e);switch(t){case 0:return p.removeSuffix(n,"/index");case 1:return n;case 2:return n+function(e,t){var r=p.extensionFromPath(e);switch(r){case".ts":case".d.ts":return".js";case".tsx":return 1===t.jsx?".jsx":".js";case".js":case".jsx":case".json":return r;case".tsbuildinfo":return p.Debug.fail("Extension .tsbuildinfo is unsupported:: FileName:: "+e);default:return p.Debug.assertNever(r)}}(e,r);default:return p.Debug.assertNever(t)}}function b(e,t,r){r=p.getRelativePathToDirectoryOrUrl(t,e,t,r,!1);return p.isRootedDiskPath(r)?void 0:r}function x(e){return p.startsWith(e,"..")}e=p.moduleSpecifiers||(p.moduleSpecifiers={}),(t={})[t.Relative=0]="Relative",t[t.NonRelative=1]="NonRelative",t[t.Auto=2]="Auto",(t={})[t.Minimal=0]="Minimal",t[t.Index=1]="Index",t[t.JsExtension=2]="JsExtension",e.updateModuleSpecifier=function(e,t,r,n,i){if((e=o(e,t,r,n,(n=e,e=i,{relativePreference:p.isExternalModuleNameRelative(e)?0:1,ending:p.hasJSFileExtension(e)?2:p.getEmitModuleResolutionKind(n)!==p.ModuleResolutionKind.NodeJs||p.endsWith(e,"index")?1:0})))!==i)return e},e.getModuleSpecifier=function(e,t,r,n,i,a){return void 0===a&&(a={}),o(e,r,n,i,c(a,e,t))},e.getNodeModulesPackageName=function(t,e,r,n){var i=u(e,n),r=g(e,r,n);return p.firstDefined(r,function(e){return y(e,i,n,t,!0)})},e.getModuleSpecifiers=function(e,t,r,n,i){var a=function(e){e=p.find(e.declarations,function(e){return p.isNonGlobalAmbientModule(e)&&(!p.isExternalModuleAugmentation(e)||!p.isExternalModuleNameRelative(p.getTextOfIdentifierOrLiteral(e.name)))});if(e)return e.name.text}(e);if(a)return[a];var o=u(r.path,n),e=p.getSourceFileOfNode(e.valueDeclaration||p.getNonAugmentationDeclaration(e)),e=g(r.path,e.originalFileName,n),s=c(i,t,r);return(r=p.mapDefined(e,function(e){return y(e,o,n,t)})).length?r:e.map(function(e){return l(e,o,t,s)})},e.countPathComponents=_,e.forEachFileNameOfModule=f}(ts=ts||{}),function(d){var i=d.sys?{getCurrentDirectory:function(){return d.sys.getCurrentDirectory()},getNewLine:function(){return d.sys.newLine},getCanonicalFileName:d.createGetCanonicalFileName(d.sys.useCaseSensitiveFileNames)}:void 0;function u(t,e){var r=t===d.sys?i:{getCurrentDirectory:function(){return t.getCurrentDirectory()},getNewLine:function(){return t.newLine},getCanonicalFileName:d.createGetCanonicalFileName(t.useCaseSensitiveFileNames)};if(!e)return function(e){return t.write(d.formatDiagnostic(e,r))};var n=new Array(1);return function(e){n[0]=e,t.write(d.formatDiagnosticsWithColorAndContext(n,r)+r.getNewLine()),n[0]=void 0}}function a(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&d.contains(d.screenStartingMessageCodes,t.code)&&(e.clearScreen(),1)}function o(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):(new Date).toLocaleTimeString()}function r(i,e){return e?function(e,t,r){a(i,e,r);r="["+d.formatColorAndReset(o(i),d.ForegroundColorEscapeSequences.Grey)+"] ";r+=""+d.flattenDiagnosticMessageText(e.messageText,i.newLine)+(t+t),i.write(r)}:function(e,t,r){var n="";a(i,e,r)||(n+=t),n+=o(i)+" - ",n+=""+d.flattenDiagnosticMessageText(e.messageText,i.newLine)+(e=e,t=t,d.contains(d.screenStartingMessageCodes,e.code)?t+t:t),i.write(n)}}function p(e){return d.countWhere(e,function(e){return e.category===d.DiagnosticCategory.Error})}function s(e){return 1===e?d.Diagnostics.Found_1_error_Watching_for_file_changes:d.Diagnostics.Found_0_errors_Watching_for_file_changes}function c(e,t){if(0===e)return"";e=d.createCompilerDiagnostic(1===e?d.Diagnostics.Found_1_error:d.Diagnostics.Found_0_errors,e);return""+t+d.flattenDiagnosticMessageText(e.messageText,t)+t+t}function f(e,t){(e.getCompilerOptions().listFiles||e.getCompilerOptions().listFilesOnly)&&d.forEach(e.getSourceFiles(),function(e){t(e.fileName)})}function l(e,t,r,n,i,a,o,s){var c=!!e.getCompilerOptions().listFilesOnly,u=e.getConfigFileParsingDiagnostics().slice(),l=u.length;d.addRange(u,e.getSyntacticDiagnostics(void 0,a)),u.length===l&&(d.addRange(u,e.getOptionsDiagnostics(a)),c||(d.addRange(u,e.getGlobalDiagnostics(a)),u.length===l&&d.addRange(u,e.getSemanticDiagnostics(void 0,a))));a=c?{emitSkipped:!0,diagnostics:d.emptyArray}:e.emit(void 0,i,a,o,s),o=a.emittedFiles,s=a.diagnostics;d.addRange(u,s);var _,u=d.sortAndDeduplicateDiagnostics(u);return u.forEach(t),r&&(_=e.getCurrentDirectory(),d.forEach(o,function(e){e=d.getNormalizedAbsolutePath(e,_);r("TSFILE: "+e)}),f(e,r)),n&&n(p(u)),{emitResult:a,diagnostics:u}}function _(e,t,r,n,i,a,o,s){o=l(e,t,r,n,i,a,o,s),s=o.emitResult,o=o.diagnostics;return s.emitSkipped&&0<o.length?d.ExitStatus.DiagnosticsPresent_OutputsSkipped:0<o.length?d.ExitStatus.DiagnosticsPresent_OutputsGenerated:d.ExitStatus.Success}function g(e,t){return void 0===e&&(e=d.sys),{onWatchStatusChange:t||r(e),watchFile:d.maybeBind(e,e.watchFile)||function(){return d.noopFileWatcher},watchDirectory:d.maybeBind(e,e.watchDirectory)||function(){return d.noopFileWatcher},setTimeout:d.maybeBind(e,e.setTimeout)||d.noop,clearTimeout:d.maybeBind(e,e.clearTimeout)||d.noop}}function m(a,e){var t=d.memoize(function(){return d.getDirectoryPath(d.normalizePath(a.getExecutingFilePath()))});return{useCaseSensitiveFileNames:function(){return a.useCaseSensitiveFileNames},getNewLine:function(){return a.newLine},getCurrentDirectory:d.memoize(function(){return a.getCurrentDirectory()}),getDefaultLibLocation:t,getDefaultLibFileName:function(e){return d.combinePaths(t(),d.getDefaultLibFileName(e))},fileExists:function(e){return a.fileExists(e)},readFile:function(e,t){return a.readFile(e,t)},directoryExists:function(e){return a.directoryExists(e)},getDirectories:function(e){return a.getDirectories(e)},readDirectory:function(e,t,r,n,i){return a.readDirectory(e,t,r,n,i)},realpath:d.maybeBind(a,a.realpath),getEnvironmentVariable:d.maybeBind(a,a.getEnvironmentVariable),trace:function(e){return a.write(e+a.newLine)},createDirectory:function(e){return a.createDirectory(e)},writeFile:function(e,t,r){return a.writeFile(e,t,r)},createHash:d.maybeBind(a,a.createHash),createProgram:e||d.createEmitAndSemanticDiagnosticsBuilderProgram}}function y(n,e,i,t){void 0===n&&(n=d.sys);function a(e){return n.write(e+n.newLine)}var o=m(n,e);return d.copyProperties(o,g(n,t)),o.afterProgramCreate=function(e){var t=e.getCompilerOptions(),r=d.getNewLineCharacter(t,function(){return n.newLine});l(e,i,a,function(e){return o.onWatchStatusChange(d.createCompilerDiagnostic(s(e),e),r,t,e)})},o}function h(e,t,r){t(r),e.exit(d.ExitStatus.DiagnosticsPresent_OutputsSkipped)}d.createDiagnosticReporter=u,d.screenStartingMessageCodes=[d.Diagnostics.Starting_compilation_in_watch_mode.code,d.Diagnostics.File_change_detected_Starting_incremental_compilation.code],d.getLocaleTimeString=o,d.createWatchStatusReporter=r,d.parseConfigFileWithSystem=function(e,t,r,n,i){var a=n;return a.onUnRecoverableConfigFileDiagnostic=function(e){return h(n,i,e)},r=d.getParsedCommandLineOfConfigFile(e,t,a,void 0,r),a.onUnRecoverableConfigFileDiagnostic=void 0,r},d.getErrorCountForSummary=p,d.getWatchErrorSummaryDiagnosticMessage=s,d.getErrorSummaryText=c,d.listFiles=f,d.emitFilesAndReportErrors=l,d.emitFilesAndReportErrorsAndGetExitStatus=_,d.noopFileWatcher={close:d.noop},d.createWatchHost=g,d.WatchType={ConfigFile:"Config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",TypeRoots:"Type roots"},d.createWatchFactory=function(t,e){var r=t.trace?e.extendedDiagnostics?d.WatchLogLevel.Verbose:e.diagnostics?d.WatchLogLevel.TriggerOnly:d.WatchLogLevel.None:d.WatchLogLevel.None,e=r!==d.WatchLogLevel.None?function(e){return t.trace(e)}:d.noop;return(r=d.getWatchFactory(r,e)).writeLog=e,r},d.createCompilerHostFromProgramHost=function(i,a,e){void 0===e&&(e=i);var t=i.useCaseSensitiveFileNames(),r=d.memoize(function(){return i.getNewLine()});return{getSourceFile:function(e,t,r){var n;try{d.performance.mark("beforeIORead"),n=i.readFile(e,a().charset),d.performance.mark("afterIORead"),d.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){r&&r(e.message),n=""}return void 0!==n?d.createSourceFile(e,n,t):void 0},getDefaultLibLocation:d.maybeBind(i,i.getDefaultLibLocation),getDefaultLibFileName:function(e){return i.getDefaultLibFileName(e)},writeFile:function(e,t,r,n){try{d.performance.mark("beforeIOWrite"),d.writeFileEnsuringDirectories(e,t,r,function(e,t,r){return i.writeFile(e,t,r)},function(e){return i.createDirectory(e)},function(e){return i.directoryExists(e)}),d.performance.mark("afterIOWrite"),d.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){n&&n(e.message)}},getCurrentDirectory:d.memoize(function(){return i.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return t},getCanonicalFileName:d.createGetCanonicalFileName(t),getNewLine:function(){return d.getNewLineCharacter(a(),r)},fileExists:function(e){return i.fileExists(e)},readFile:function(e){return i.readFile(e)},trace:d.maybeBind(i,i.trace),directoryExists:d.maybeBind(e,e.directoryExists),getDirectories:d.maybeBind(e,e.getDirectories),realpath:d.maybeBind(i,i.realpath),getEnvironmentVariable:d.maybeBind(i,i.getEnvironmentVariable)||function(){return""},createHash:d.maybeBind(i,i.createHash),readDirectory:d.maybeBind(i,i.readDirectory)}},d.setGetSourceFileAsHashVersioned=function(n,i){var a=n.getSourceFile,o=i.createHash||d.generateDjb2Hash;n.getSourceFile=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=a.call.apply(a,__spreadArrays([n],e));return r&&(r.version=o.call(i,r.text)),r}},d.createProgramHost=m,d.createWatchCompilerHostOfConfigFile=function(e){var t=e.configFileName,r=e.optionsToExtend,n=e.watchOptionsToExtend,i=e.extraFileExtensions,a=e.system,o=e.createProgram,s=e.reportDiagnostic,e=e.reportWatchStatus,c=s||u(a);return(e=y(a,o,c,e)).onUnRecoverableConfigFileDiagnostic=function(e){return h(a,c,e)},e.configFileName=t,e.optionsToExtend=r,e.watchOptionsToExtend=n,e.extraFileExtensions=i,e},d.createWatchCompilerHostOfFilesAndCompilerOptions=function(e){var t=e.rootFiles,r=e.options,n=e.watchOptions,i=e.projectReferences,a=e.system,o=e.createProgram,s=e.reportDiagnostic,e=e.reportWatchStatus;return(e=y(a,o,s||u(a),e)).rootFiles=t,e.options=r,e.watchOptions=n,e.projectReferences=i,e},d.performIncrementalCompilation=function(e){var t=e.system||d.sys,r=e.host||(e.host=d.createIncrementalCompilerHost(e.options,t)),n=d.createIncrementalProgram(e),i=_(n,e.reportDiagnostic||u(t),function(e){return r.trace&&r.trace(e)},e.reportErrorSummary||e.options.pretty?function(e){return t.write(c(e,t.newLine))}:void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(n),i}}(ts=ts||{}),function(ue){function le(e,t){if(!e.out&&!e.outFile){var r=ue.getTsBuildInfoEmitOutputFilePath(e);if(r){e=t.readFile(r);if(e){e=ue.getBuildInfo(e);if(e.version===ue.version&&e.program)return ue.createBuildProgramUsingProgramBuildInfo(e.program,r,t)}}}}function o(e,t){void 0===t&&(t=ue.sys);var r=ue.createCompilerHostWorker(e,void 0,t);return r.createHash=ue.maybeBind(t,t.createHash),ue.setGetSourceFileAsHashVersioned(r,t),ue.changeCompilerHostLikeToUseCache(r,function(e){return ue.toPath(e,r.getCurrentDirectory(),r.getCanonicalFileName)}),r}ue.readBuilderProgram=le,ue.createIncrementalCompilerHost=o,ue.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||ue.createEmitAndSemanticDiagnosticsBuilderProgram)(t,r,a,le(r,a),n,i)},ue.createWatchCompilerHost=function(e,t,r,n,i,a,o,s){return ue.isArray(e)?ue.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:e,options:t,watchOptions:s,projectReferences:o,system:r,createProgram:n,reportDiagnostic:i,reportWatchStatus:a}):ue.createWatchCompilerHostOfConfigFile({configFileName:e,optionsToExtend:t,watchOptionsToExtend:o,extraFileExtensions:s,system:r,createProgram:n,reportDiagnostic:i,reportWatchStatus:a})},ue.createWatchProgram=function(o){var n,a,e,t,s,r,c,u=ue.createMap(),l=!1,_=!1,i=o.useCaseSensitiveFileNames(),d=o.getCurrentDirectory(),p=o.configFileName,f=void 0===(F=o.optionsToExtend)?{}:F,g=o.watchOptionsToExtend,m=o.extraFileExtensions,y=o.createProgram,h=o.rootFiles,v=o.options,b=o.watchOptions,x=o.projectReferences,D=!1,S=!1,C=void 0===p?void 0:ue.createCachedDirectoryStructureHost(o,d,i),T=C||o,k=ue.parseConfigHostFromCompilerHostLike(o,T),E=K();p&&o.configFileParsingResult&&(re(o.configFileParsingResult),E=K()),Y(ue.Diagnostics.Starting_compilation_in_watch_mode),p&&!o.configFileParsingResult&&(E=ue.getNewLineCharacter(f,function(){return o.getNewLine()}),ue.Debug.assert(!h),te(),E=K());var N,A=ue.createWatchFactory(o,v),F=A.watchFile,P=A.watchFilePath,w=A.watchDirectory,I=A.writeLog,O=ue.createGetCanonicalFileName(i);I("Current directory: "+d+" CaseSensitiveFileNames: "+i),p&&(N=F(o,p,function(){ue.Debug.assert(!!p),n=ue.ConfigFileProgramReloadLevel.Full,Z()},ue.PollingInterval.High,b,ue.WatchType.ConfigFile));var M=ue.createCompilerHostFromProgramHost(o,function(){return v},T);ue.setGetSourceFileAsHashVersioned(M,o);var L=M.getSourceFile;M.getSourceFile=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return G.apply(void 0,__spreadArrays([e,q(e)],t))},M.getSourceFileByPath=G,M.getNewLine=function(){return E},M.fileExists=H,M.onReleaseOldSourceFile=function(e,t,r){var n=u.get(e.resolvedPath);void 0!==n&&(W(n)?(s=s||[]).push(e.path):n.sourceFile===e&&(n.fileWatcher&&n.fileWatcher.close(),u.delete(e.resolvedPath),r||R.removeResolutionsOfFile(e.path)))},M.toPath=q,M.getCompilationSettings=function(){return v},M.useSourceOfProjectReferenceRedirect=ue.maybeBind(o,o.useSourceOfProjectReferenceRedirect),M.watchDirectoryOfFailedLookupLocation=function(e,t,r){return w(o,e,t,r,b,ue.WatchType.FailedLookupLocations)},M.watchTypeRootsDirectory=function(e,t,r){return w(o,e,t,r,b,ue.WatchType.TypeRoots)},M.getCachedDirectoryStructureHost=function(){return C},M.onInvalidatedResolution=Z,M.onChangedAutomaticTypeDirectiveNames=function(){_=!0,Z()},M.fileIsOpen=ue.returnFalse,M.getCurrentProgram=U,M.writeLog=I;var R=ue.createResolutionCache(M,p?ue.getDirectoryPath(ue.getNormalizedAbsolutePath(p,d)):d,!1);M.resolveModuleNames=o.resolveModuleNames?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.resolveModuleNames.apply(o,e)}:function(e,t,r,n){return R.resolveModuleNames(e,t,r,n)},M.resolveTypeReferenceDirectives=o.resolveTypeReferenceDirectives?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.resolveTypeReferenceDirectives.apply(o,e)}:function(e,t,r){return R.resolveTypeReferenceDirectives(e,t,r)};var B=!!o.resolveModuleNames||!!o.resolveTypeReferenceDirectives,j=le(v,M);return V(),se(),p?{getCurrentProgram:z,getProgram:ee,close:J}:{getCurrentProgram:z,getProgram:ee,updateRootFileNames:function(e){ue.Debug.assert(!p,"Cannot update root file names with config file watch mode"),h=e,Z()},close:J};function J(){R.clear(),ue.clearMap(u,function(e){e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}),N&&(N.close(),N=void 0),e&&(ue.clearMap(e,ue.closeFileWatcherOf),e=void 0),a&&(ue.clearMap(a,ue.closeFileWatcher),a=void 0)}function z(){return j}function U(){return j&&j.getProgramOrUndefined()}function V(){I("Synchronizing program");var e=j;l&&(E=K(),e&&ue.changesAffectModuleResolution(e.getCompilerOptions(),v)&&R.clear());var t=R.createHasInvalidatedResolution(B);return ue.isProgramUptoDate(U(),h,v,X,H,t,_,x)?S&&(j=y(void 0,void 0,M,j,c,x),S=!1):function(e){I("CreatingProgramWith::"),I("  roots: "+JSON.stringify(h)),I("  options: "+JSON.stringify(v));var t=l||!U();if(S=l=!1,R.startCachingPerDirectoryResolution(),M.hasInvalidatedResolution=e,M.hasChangedAutomaticTypeDirectiveNames=_,_=!1,j=y(h,v,M,j,c,x),R.finishCachingPerDirectoryResolution(),ue.updateMissingFilePathsWatch(j.getProgram(),a=a||ue.createMap(),ae),t&&R.updateTypeRootsWatch(),s){for(var r=0,n=s;r<n.length;r++){var i=n[r];a.has(i)||u.delete(i)}s=void 0}}(t),o.afterProgramCreate&&e!==j&&o.afterProgramCreate(j),j}function K(){return ue.getNewLineCharacter(v||f,function(){return o.getNewLine()})}function q(e){return ue.toPath(e,d,O)}function W(e){return"boolean"==typeof e}function H(e){var t=q(e);return!W(u.get(t))&&T.fileExists(e)}function G(e,t,r,n,i){var a=u.get(t);if(!W(a)){if(void 0===a||i||"boolean"==typeof a.version){n=L(e,r,n);return a?n?(a.sourceFile=n,a.version=n.version,a.fileWatcher||(a.fileWatcher=P(o,e,ne,ue.PollingInterval.Low,b,t,ue.WatchType.SourceFile))):(a.fileWatcher&&a.fileWatcher.close(),u.set(t,!1)):n?(e=P(o,e,ne,ue.PollingInterval.Low,b,t,ue.WatchType.SourceFile),u.set(t,{sourceFile:n,version:n.version,fileWatcher:e})):u.set(t,!1),n}return a.sourceFile}}function Q(e){var t=u.get(e);void 0!==t&&(W(t)?u.set(e,{version:!1}):t.version=!1)}function X(e){e=u.get(e);return e&&e.version?e.version:void 0}function Y(e){o.onWatchStatusChange&&o.onWatchStatusChange(ue.createCompilerDiagnostic(e),E,v||f)}function Z(){o.setTimeout&&o.clearTimeout&&(t&&o.clearTimeout(t),I("Scheduling update"),t=o.setTimeout($,250))}function $(){t=void 0,Y(ue.Diagnostics.File_change_detected_Starting_incremental_compilation),ee()}function ee(){switch(n){case ue.ConfigFileProgramReloadLevel.Partial:ue.perfLogger.logStartUpdateProgram("PartialConfigReload"),function(){I("Reloading new file names and options");var e=ue.getFileNamesFromConfigSpecs(r,ue.getNormalizedAbsolutePath(ue.getDirectoryPath(p),d),v,k);ue.updateErrorForNoInputFiles(e,ue.getNormalizedAbsolutePath(p,d),r,c,D)&&(S=!0),h=e.fileNames,V()}();break;case ue.ConfigFileProgramReloadLevel.Full:ue.perfLogger.logStartUpdateProgram("FullConfigReload"),I("Reloading config file: "+p),n=ue.ConfigFileProgramReloadLevel.None,C&&C.clearCache(),te(),l=!0,V(),se();break;default:ue.perfLogger.logStartUpdateProgram("SynchronizeProgram"),V()}return ue.perfLogger.logStopUpdateProgram("Done"),j}function te(){re(ue.getParsedCommandLineOfConfigFile(p,f,k,void 0,g,m))}function re(e){h=e.fileNames,v=e.options,b=e.watchOptions,r=e.configFileSpecs,x=e.projectReferences,c=ue.getConfigFileParsingDiagnostics(e).slice(),D=ue.canJsonReportNoInutFiles(e.raw),S=!0}function ne(e,t,r){ie(e,r,t),t===ue.FileWatcherEventKind.Deleted&&u.has(r)&&R.invalidateResolutionOfFile(r),R.removeResolutionsFromProjectReferenceRedirects(r),Q(r),Z()}function ie(e,t,r){C&&C.addOrDeleteFile(e,t,r)}function ae(e){return P(o,e,oe,ue.PollingInterval.Medium,b,e,ue.WatchType.MissingFile)}function oe(e,t,r){ie(e,r,t),t===ue.FileWatcherEventKind.Created&&a.has(r)&&(a.get(r).close(),a.delete(r),Q(r),Z())}function se(){r?ue.updateWatchingWildcardDirectories(e=e||ue.createMap(),ue.createMapFromTemplate(r.wildcardDirectories),ce):e&&ue.clearMap(e,ue.closeFileWatcherOf)}function ce(r,e){return w(o,r,function(e){ue.Debug.assert(!!p);var t=q(e);C&&C.addOrDeleteFileOrDirectory(e,t),Q(t),(t=ue.removeIgnoredPath(t))&&(t===r||!ue.hasExtension(t)||ue.isSupportedSourceFileName(e,v)?n!==ue.ConfigFileProgramReloadLevel.Full&&(n=ue.ConfigFileProgramReloadLevel.Partial,Z()):I("Project: "+p+" Detected file add/remove of non supported extension: "+e))},e,b,ue.WatchType.WildcardDirectory)}}}(ts=ts||{}),function(t){var e;(e=t.UpToDateStatusType||(t.UpToDateStatusType={}))[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.UpstreamOutOfDate=7]="UpstreamOutOfDate",e[e.UpstreamBlocked=8]="UpstreamBlocked",e[e.ComputingUpstream=9]="ComputingUpstream",e[e.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",e[e.ContainerOnly=11]="ContainerOnly",t.resolveConfigFileProjectName=function(e){return t.fileExtensionIs(e,".json")?e:t.combinePaths(e,"tsconfig.json")}}(ts=ts||{}),function(F){var C,T,e,P=new Date(-864e13),w=new Date(864e13);function v(){return F.createMap()}function t(e,t){return r=e,n=t,e=F.createMap,(t=r.get(n))||(i=e(),r.set(n,i)),t||i;var r,n,i}function I(e,t){return e<t?t:e}function O(e){return F.fileExtensionIs(e,".d.ts")}function p(e){return!!e&&!!e.buildOrder}function c(e){return p(e)?e.buildOrder:e}function i(r,n){return function(e){var t=n?"["+F.formatColorAndReset(F.getLocaleTimeString(r),F.ForegroundColorEscapeSequences.Grey)+"] ":F.getLocaleTimeString(r)+" - ";t+=""+F.flattenDiagnosticMessageText(e.messageText,r.newLine)+(r.newLine+r.newLine),r.write(t)}}function a(r,e,t,n){e=F.createProgramHost(r,e);return e.getModifiedTime=r.getModifiedTime?function(e){return r.getModifiedTime(e)}:F.returnUndefined,e.setModifiedTime=r.setModifiedTime?function(e,t){return r.setModifiedTime(e,t)}:F.noop,e.deleteFile=r.deleteFile?function(e){return r.deleteFile(e)}:F.noop,e.reportDiagnostic=t||F.createDiagnosticReporter(r),e.reportSolutionBuilderStatus=n||i(r),e.now=F.maybeBind(r,r.now),e}function o(e,t,r,n,i){var a,o,s=t,c=t,u=s.getCurrentDirectory(),l=F.createGetCanonicalFileName(s.useCaseSensitiveFileNames()),_=(a=n,o={},F.commonOptionsWithBuild.forEach(function(e){F.hasProperty(a,e.name)&&(o[e.name]=a[e.name])}),o),d=F.createCompilerHostFromProgramHost(s,function(){return h.projectCompilerOptions});F.setGetSourceFileAsHashVersioned(d,s),d.getParsedCommandLine=function(e){return L(h,e,M(h,e))},d.resolveModuleNames=F.maybeBind(s,s.resolveModuleNames),d.resolveTypeReferenceDirectives=F.maybeBind(s,s.resolveTypeReferenceDirectives);var p,f=d.resolveModuleNames?void 0:F.createModuleResolutionCache(u,l);d.resolveModuleNames||(p=function(e,t,r){return F.resolveModuleName(e,t,h.projectCompilerOptions,d,f,r).resolvedModule},d.resolveModuleNames=function(e,t,r,n){return F.loadWithLocalCache(F.Debug.checkEachDefined(e),t,n,p)});var g=F.createWatchFactory(c,n),m=g.watchFile,y=g.watchFilePath,t=g.watchDirectory,g=g.writeLog,h={host:s,hostWithWatch:c,currentDirectory:u,getCanonicalFileName:l,parseConfigFileHost:F.parseConfigHostFromCompilerHostLike(s),writeFileName:s.trace?function(e){return s.trace(e)}:void 0,options:n,baseCompilerOptions:_,rootNames:r,baseWatchOptions:i,resolvedConfigFilePaths:F.createMap(),configFileCache:v(),projectStatus:v(),buildInfoChecked:v(),extendedConfigCache:F.createMap(),builderPrograms:v(),diagnostics:v(),projectPendingBuild:v(),projectErrorsReported:v(),compilerHost:d,moduleResolutionCache:f,buildOrder:void 0,readFileWithCache:function(e){return s.readFile(e)},projectCompilerOptions:_,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,currentInvalidatedProject:void 0,watch:e,allWatchedWildcardDirectories:v(),allWatchedInputFiles:v(),allWatchedConfigFiles:v(),timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:m,watchFilePath:y,watchDirectory:t,writeLog:g};return h}function k(e,t){return F.toPath(t,e.currentDirectory,e.getCanonicalFileName)}function M(e,t){var r=e.resolvedConfigFilePaths,n=r.get(t);if(void 0!==n)return n;e=k(e,t);return r.set(t,e),e}function l(e){return e.options}function L(e,t,r){var n,i=e.configFileCache,a=i.get(r);if(a)return l(a)?a:void 0;var o,s=e.parseConfigFileHost,c=e.baseCompilerOptions,u=e.baseWatchOptions,a=e.extendedConfigCache,e=e.host;return e.getParsedCommandLine?(o=e.getParsedCommandLine(t))||(n=F.createCompilerDiagnostic(F.Diagnostics.File_0_not_found,t)):(s.onUnRecoverableConfigFileDiagnostic=function(e){return n=e},o=F.getParsedCommandLineOfConfigFile(t,c,s,a,u),s.onUnRecoverableConfigFileDiagnostic=F.noop),i.set(r,o||n),o}function E(e,t){return F.resolveConfigFileProjectName(F.resolvePath(e.currentDirectory,t))}function s(u,e){for(var l,_,d=F.createMap(),p=F.createMap(),f=[],t=0,r=e;t<r.length;t++)!function e(t,r){var n=M(u,t);if(p.has(n))return;if(d.has(n))return void(r||(_=_||[]).push(F.createCompilerDiagnostic(F.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,f.join("\r\n"))));d.set(n,!0);f.push(t);var i=L(u,t,n);if(i&&i.projectReferences)for(var a=0,o=i.projectReferences;a<o.length;a++){var s=o[a],c=E(u,s.path);e(c,r||s.circular)}f.pop();p.set(n,!0);(l=l||[]).push(t)}(r[t]);return _?{buildOrder:l||F.emptyArray,circularDiagnostics:_}:l||F.emptyArray}function u(e){return e.buildOrder||function(t){var e=s(t,t.rootNames.map(function(e){return E(t,e)}));t.resolvedConfigFilePaths.clear();var r=F.arrayToSet(c(e),function(e){return M(t,e)}),n={onDeleteValue:F.noop};F.mutateMapSkippingNewValues(t.configFileCache,r,n),F.mutateMapSkippingNewValues(t.projectStatus,r,n),F.mutateMapSkippingNewValues(t.buildInfoChecked,r,n),F.mutateMapSkippingNewValues(t.builderPrograms,r,n),F.mutateMapSkippingNewValues(t.diagnostics,r,n),F.mutateMapSkippingNewValues(t.projectPendingBuild,r,n),F.mutateMapSkippingNewValues(t.projectErrorsReported,r,n),t.watch&&(F.mutateMapSkippingNewValues(t.allWatchedConfigFiles,r,{onDeleteValue:F.closeFileWatcher}),F.mutateMapSkippingNewValues(t.allWatchedWildcardDirectories,r,{onDeleteValue:function(e){return e.forEach(F.closeFileWatcherOf)}}),F.mutateMapSkippingNewValues(t.allWatchedInputFiles,r,{onDeleteValue:function(e){return e.forEach(F.closeFileWatcher)}}));return t.buildOrder=e}(e)}function d(t,e,r){var n=e&&E(t,e),e=u(t);if(p(e))return e;if(n){var i=M(t,n);if(-1===F.findIndex(e,function(e){return M(t,e)===i}))return}e=n?s(t,[n]):e;return F.Debug.assert(!p(e)),F.Debug.assert(!r||void 0!==n),F.Debug.assert(!r||e[e.length-1]===n),r?e.slice(0,e.length-1):e}function n(t){t.cache&&_(t);var r=t.compilerHost,e=t.host,n=t.readFileWithCache,i=r.getSourceFile,a=F.changeCompilerHostLikeToUseCache(e,function(e){return k(t,e)},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.call.apply(i,__spreadArrays([r],e))}),o=a.originalReadFile,s=a.originalFileExists,c=a.originalDirectoryExists,u=a.originalCreateDirectory,l=a.originalWriteFile,e=a.getSourceFileWithCache,a=a.readFileWithCache;t.readFileWithCache=a,r.getSourceFile=e,t.cache={originalReadFile:o,originalFileExists:s,originalDirectoryExists:c,originalCreateDirectory:u,originalWriteFile:l,originalReadFileWithCache:n,originalGetSourceFile:i}}function _(e){var t,r,n,i,a;e.cache&&(t=e.cache,r=e.host,n=e.compilerHost,i=e.extendedConfigCache,a=e.moduleResolutionCache,r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,n.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),a&&(a.directoryToModuleNameMap.clear(),a.moduleNameToDirectoryMap.clear()),e.cache=void 0)}function N(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function A(e,t,r){var n=e.projectPendingBuild,e=n.get(t);(void 0===e||e<r)&&n.set(t,r)}function f(t,e){t.allProjectBuildPending&&(t.allProjectBuildPending=!1,t.options.watch&&Y(t,F.Diagnostics.Starting_compilation_in_watch_mode),n(t),c(u(t)).forEach(function(e){return t.projectPendingBuild.set(M(t,e),F.ConfigFileProgramReloadLevel.None)}),e&&e.throwIfCancellationRequested())}function R(e,t){return e.projectPendingBuild.delete(t),e.currentInvalidatedProject=void 0,e.diagnostics.has(t)?F.ExitStatus.DiagnosticsPresent_OutputsSkipped:F.ExitStatus.Success}function B(t,d,s,p,c,f,u){var g,e;(e=g=g||{})[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.BuildInvalidatedProjectOfBundle=5]="BuildInvalidatedProjectOfBundle",e[e.QueueReferencingProjects=6]="QueueReferencingProjects",e[e.Done=7]="Done";var m,y,l,h=t===T.Build?g.CreateProgram:g.EmitBundle;return t===T.Build?{kind:t,project:s,projectPath:p,buildOrder:u,getCompilerOptions:function(){return f.options},getCurrentDirectory:function(){return d.currentDirectory},getBuilderProgram:function(){return o(F.identity)},getProgram:function(){return o(function(e){return e.getProgramOrUndefined()})},getSourceFile:function(t){return o(function(e){return e.getSourceFile(t)})},getSourceFiles:function(){return n(function(e){return e.getSourceFiles()})},getOptionsDiagnostics:function(t){return n(function(e){return e.getOptionsDiagnostics(t)})},getGlobalDiagnostics:function(t){return n(function(e){return e.getGlobalDiagnostics(t)})},getConfigFileParsingDiagnostics:function(){return n(function(e){return e.getConfigFileParsingDiagnostics()})},getSyntacticDiagnostics:function(t,r){return n(function(e){return e.getSyntacticDiagnostics(t,r)})},getAllDependencies:function(t){return n(function(e){return e.getAllDependencies(t)})},getSemanticDiagnostics:function(t,r){return n(function(e){return e.getSemanticDiagnostics(t,r)})},getSemanticDiagnosticsOfNextAffectedFile:function(t,r){return o(function(e){return e.getSemanticDiagnosticsOfNextAffectedFile&&e.getSemanticDiagnosticsOfNextAffectedFile(t,r)})},emit:function(t,r,n,i,a){return t||i?o(function(e){return e.emit(t,r,n,i,a)}):(S(g.SemanticDiagnostics,n),h===g.Emit?b(r,n,a):void 0)},done:r}:{kind:t,project:s,projectPath:p,buildOrder:u,getCompilerOptions:function(){return f.options},getCurrentDirectory:function(){return d.currentDirectory},emit:function(e,t){return h!==g.EmitBundle?l:D(e,t)},done:r};function r(e,t,r){return S(g.Done,e,t,r),R(d,p)}function o(e){return S(g.CreateProgram),m&&e(m)}function n(e){return o(e)||F.emptyArray}function _(){if(F.Debug.assert(void 0===m),d.options.dry)return X(d,F.Diagnostics.A_non_dry_build_would_build_project_0,s),y=C.Success,void(h=g.QueueReferencingProjects);if(d.options.verbose&&X(d,F.Diagnostics.Building_project_0,s),0===f.fileNames.length)return $(d,p,F.getConfigFileParsingDiagnostics(f)),y=C.None,void(h=g.QueueReferencingProjects);var e,t,r,n,i=d.host,a=d.compilerHost;d.projectCompilerOptions=f.options,t=s,r=f,(e=d).moduleResolutionCache&&(n=e.moduleResolutionCache,t=k(e,t),0===n.directoryToModuleNameMap.redirectsMap.size?(F.Debug.assert(0===n.moduleNameToDirectoryMap.redirectsMap.size),n.directoryToModuleNameMap.redirectsMap.set(t,n.directoryToModuleNameMap.ownMap),n.moduleNameToDirectoryMap.redirectsMap.set(t,n.moduleNameToDirectoryMap.ownMap)):(F.Debug.assert(0<n.moduleNameToDirectoryMap.redirectsMap.size),t={sourceFile:r.options.configFile,commandLine:r},n.directoryToModuleNameMap.setOwnMap(n.directoryToModuleNameMap.getOrCreateMapOfCacheRedirects(t)),n.moduleNameToDirectoryMap.setOwnMap(n.moduleNameToDirectoryMap.getOrCreateMapOfCacheRedirects(t))),n.directoryToModuleNameMap.setOwnOptions(r.options),n.moduleNameToDirectoryMap.setOwnOptions(r.options)),m=i.createProgram(f.fileNames,f.options,a,function(e,t,r){var n=e.options,i=e.builderPrograms,e=e.compilerHost;if(n.force)return;t=i.get(t);return t||F.readBuilderProgram(r.options,e)}(d,p,f),F.getConfigFileParsingDiagnostics(f),f.projectReferences),h++}function v(e,t,r){e.length?(y=J(d,p,m,f,e,t,r),h=g.QueueReferencingProjects):h++}function b(i,e,t){var r;F.Debug.assertIsDefined(m),F.Debug.assert(h===g.Emit),m.backupState();var n=[],t=F.emitFilesAndReportErrors(m,function(e){return(r=r||[]).push(e)},void 0,void 0,function(e,t,r){return n.push({name:e,text:t,writeByteOrderMark:r})},e,!1,t).emitResult;if(r)return m.restoreState(),y=J(d,p,m,f,r,C.DeclarationEmitErrors,"Declaration file"),h=g.QueueReferencingProjects,{emitSkipped:!0,diagnostics:t.diagnostics};var a=d.host,o=d.compilerHost,s=C.DeclarationOutputUnchanged,c=P,u=!1,l=F.createDiagnosticCollection(),_=F.createMap();return n.forEach(function(e){var t,r=e.name,n=e.text,e=e.writeByteOrderMark;!u&&O(r)&&(a.fileExists(r)&&d.readFileWithCache(r)===n?t=a.getModifiedTime(r):(s&=~C.DeclarationOutputUnchanged,u=!0)),_.set(k(d,r),r),F.writeFile(i?{writeFile:i}:o,l,r,n,e),void 0!==t&&(c=I(t,c))}),x(l,_,c,u,n.length?n[0].name:F.getFirstProjectOutput(f,!a.useCaseSensitiveFileNames()),s),t}function x(e,t,r,n,i,a){e=e.getDiagnostics();if(e.length)return y=J(d,p,m,f,e,C.EmitErrors,"Emit"),h=g.QueueReferencingProjects,e;d.writeFileName&&(t.forEach(function(e){return function(e,t,r){e=e.writeFileName;e&&t.options.listEmittedFiles&&e("TSFILE: "+r)}(d,f,e)}),m&&F.listFiles(m,d.writeFileName));t=V(d,f,r,F.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,t);return d.diagnostics.delete(p),d.projectStatus.set(p,{type:F.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:n?w:t,oldestOutputFileName:i}),j(d,p,m,f),d.projectCompilerOptions=d.baseCompilerOptions,h=g.QueueReferencingProjects,y=a,e}function D(n,e){if(F.Debug.assert(t===T.UpdateBundle),d.options.dry)return X(d,F.Diagnostics.A_non_dry_build_would_update_output_of_project_0,s),y=C.Success,void(h=g.QueueReferencingProjects);d.options.verbose&&X(d,F.Diagnostics.Updating_output_of_project_0,s);var i=d.compilerHost;d.projectCompilerOptions=f.options;e=F.emitUsingBuildInfo(f,i,function(e){e=E(d,e.path);return L(d,e,M(d,e))},e);if(F.isString(e))return X(d,F.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,s,Q(d,e)),h=g.BuildInvalidatedProjectOfBundle,l=B(T.Build,d,s,p,c,f,u);F.Debug.assert(!!e.length);var a=F.createDiagnosticCollection(),o=F.createMap();return e.forEach(function(e){var t=e.name,r=e.text,e=e.writeByteOrderMark;o.set(k(d,t),t),F.writeFile(n?{writeFile:n}:i,a,t,r,e)}),{emitSkipped:!1,diagnostics:x(a,o,P,!1,e[0].name,C.DeclarationOutputUnchanged)}}function S(e,t,r,n){for(;h<=e&&h<g.Done;){var i=h;switch(h){case g.CreateProgram:_();break;case g.SyntaxDiagnostics:a=t,F.Debug.assertIsDefined(m),v(__spreadArrays(m.getConfigFileParsingDiagnostics(),m.getOptionsDiagnostics(a),m.getGlobalDiagnostics(a),m.getSyntacticDiagnostics(void 0,a)),C.SyntaxErrors,"Syntactic");break;case g.SemanticDiagnostics:a=t,v(F.Debug.checkDefined(m).getSemanticDiagnostics(void 0,a),C.TypeErrors,"Semantic");break;case g.Emit:b(r,t,n);break;case g.EmitBundle:D(r,n);break;case g.BuildInvalidatedProjectOfBundle:F.Debug.checkDefined(l).done(t),h=g.Done;break;case g.QueueReferencingProjects:!function(e,t,r,n,i,a,o){if(!(o&C.AnyErrors)&&i.options.composite)for(var s=n+1;s<a.length;s++){var c=a[s],u=M(e,c);if(!e.projectPendingBuild.has(u)){c=L(e,c,u);if(c&&c.projectReferences)for(var l=0,_=c.projectReferences;l<_.length;l++){var d=_[l],p=E(e,d.path);if(M(e,p)===r){var f=e.projectStatus.get(u);if(f)switch(f.type){case F.UpToDateStatusType.UpToDate:if(o&C.DeclarationOutputUnchanged){d.prepend?e.projectStatus.set(u,{type:F.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:f.oldestOutputFileName,newerProjectName:t}):f.type=F.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case F.UpToDateStatusType.UpToDateWithUpstreamTypes:case F.UpToDateStatusType.OutOfDateWithPrepend:o&C.DeclarationOutputUnchanged||e.projectStatus.set(u,{type:F.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:f.type===F.UpToDateStatusType.OutOfDateWithPrepend?f.outOfDateOutputFileName:f.oldestOutputFileName,newerProjectName:t});break;case F.UpToDateStatusType.UpstreamBlocked:M(e,E(e,f.upstreamProjectName))===r&&N(e,u)}A(e,u,F.ConfigFileProgramReloadLevel.None);break}}}}}(d,s,p,c,f,u,F.Debug.checkDefined(y)),h++;break;case g.Done:default:F.assertType(h)}F.Debug.assert(i<h)}var a}}function g(e,t,r){if(e.projectPendingBuild.size&&!p(t)){if(e.currentInvalidatedProject)return F.arrayIsEqualTo(e.currentInvalidatedProject.buildOrder,t)?e.currentInvalidatedProject:void 0;for(var n,i=e.options,a=e.projectPendingBuild,o=0;o<t.length;o++){var s=t[o],c=M(e,s),u=e.projectPendingBuild.get(c);if(void 0!==u){r&&(r=!1,re(e,t));var l,_=L(e,s,c);if(_){u===F.ConfigFileProgramReloadLevel.Full?(K(e,s,c,_),W(e,s,c,_),H(e,s,c,_)):u===F.ConfigFileProgramReloadLevel.Partial&&(l=F.getFileNamesFromConfigSpecs(_.configFileSpecs,F.getDirectoryPath(s),_.options,e.parseConfigFileHost),F.updateErrorForNoInputFiles(l,s,_.configFileSpecs,_.errors,F.canJsonReportNoInutFiles(_.raw)),_.fileNames=l.fileNames,H(e,s,c,_));var d=U(e,_,c);if(n=s,u=d,(l=e).options.verbose&&function(e,t,r){switch(r.type){case F.UpToDateStatusType.OutOfDateWithSelf:return X(e,F.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Q(e,t),Q(e,r.outOfDateOutputFileName),Q(e,r.newerInputFileName)),0;case F.UpToDateStatusType.OutOfDateWithUpstream:return X(e,F.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Q(e,t),Q(e,r.outOfDateOutputFileName),Q(e,r.newerProjectName)),0;case F.UpToDateStatusType.OutputMissing:return X(e,F.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Q(e,t),Q(e,r.missingOutputFileName)),0;case F.UpToDateStatusType.UpToDate:if(void 0!==r.newestInputFileTime)return X(e,F.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,Q(e,t),Q(e,r.newestInputFileName||""),Q(e,r.oldestOutputFileName||"")),0;break;case F.UpToDateStatusType.OutOfDateWithPrepend:return X(e,F.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Q(e,t),Q(e,r.newerProjectName)),0;case F.UpToDateStatusType.UpToDateWithUpstreamTypes:return X(e,F.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Q(e,t)),0;case F.UpToDateStatusType.UpstreamOutOfDate:return X(e,F.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Q(e,t),Q(e,r.upstreamProjectName)),0;case F.UpToDateStatusType.UpstreamBlocked:return X(e,r.upstreamProjectBlocked?F.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:F.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Q(e,t),Q(e,r.upstreamProjectName)),0;case F.UpToDateStatusType.Unbuildable:return X(e,F.Diagnostics.Failed_to_parse_file_0_Colon_1,Q(e,t),r.reason),0;case F.UpToDateStatusType.TsVersionOutputOfDate:return X(e,F.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Q(e,t),r.version,F.version),0;case F.UpToDateStatusType.ContainerOnly:case F.UpToDateStatusType.ComputingUpstream:break;default:F.assertType(r)}}(l,n,u),!i.force){if(d.type===F.UpToDateStatusType.UpToDate){$(e,c,F.getConfigFileParsingDiagnostics(_)),a.delete(c),i.dry&&X(e,F.Diagnostics.Project_0_is_up_to_date,s);continue}if(d.type===F.UpToDateStatusType.UpToDateWithUpstreamTypes)return $(e,c,F.getConfigFileParsingDiagnostics(_)),function(e,t,r,n,i){var a=!0;return{kind:T.UpdateOutputFileStamps,project:t,projectPath:r,buildOrder:i,getCompilerOptions:function(){return n.options},getCurrentDirectory:function(){return e.currentDirectory},updateOutputFileStatmps:function(){m(e,n,r),a=!1},done:function(){return a&&m(e,n,r),R(e,r)}}}(e,s,c,_,t)}if(d.type!==F.UpToDateStatusType.UpstreamBlocked){if(d.type!==F.UpToDateStatusType.ContainerOnly)return B((l=d,n=_,u=(u=e).options,l.type!==F.UpToDateStatusType.OutOfDateWithPrepend||u.force||(0===n.fileNames.length||F.getConfigFileParsingDiagnostics(n).length||!F.isIncrementalCompilation(n.options))?T.Build:T.UpdateBundle),e,s,c,o,_,t);$(e,c,F.getConfigFileParsingDiagnostics(_)),a.delete(c)}else $(e,c,F.getConfigFileParsingDiagnostics(_)),a.delete(c),i.verbose&&X(e,d.upstreamProjectBlocked?F.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:F.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,s,d.upstreamProjectName)}else ee(e,c),a.delete(c)}}}}function j(e,t,r,n){var i=e.host,a=e.watch,e=e.builderPrograms;r?(i.afterProgramEmitAndDiagnostics&&i.afterProgramEmitAndDiagnostics(r),a&&(r.releaseProgram(),e.set(t,r))):i.afterEmitBundle&&i.afterEmitBundle(n)}function J(e,t,r,n,i,a,o){return $(e,t,i),r&&e.writeFileName&&F.listFiles(r,e.writeFileName),e.projectStatus.set(t,{type:F.UpToDateStatusType.Unbuildable,reason:o+" errors"}),j(e,t,r,n),e.projectCompilerOptions=e.baseCompilerOptions,a}function z(e,t,r,n){if(r<(e.host.getModifiedTime(t)||F.missingFileModifiedTime))return{type:F.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:n,newerInputFileName:t}}function U(e,t,r){if(void 0===t)return{type:F.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var n=e.projectStatus.get(r);if(void 0!==n)return n;t=function(t,e,r){for(var n=void 0,i=P,a=t.host,o=0,s=e.fileNames;o<s.length;o++){var c=s[o];if(!a.fileExists(c))return{type:F.UpToDateStatusType.Unbuildable,reason:c+" does not exist"};var u=a.getModifiedTime(c)||F.missingFileModifiedTime;i<u&&(n=c,i=u)}if(!e.fileNames.length&&!F.canJsonReportNoInutFiles(e.raw))return{type:F.UpToDateStatusType.ContainerOnly};for(var l,_=F.getAllProjectOutputs(e,!a.useCaseSensitiveFileNames()),d="(none)",p=w,f="(none)",g=P,m=P,y=!1,h=0,v=_;h<v.length;h++){var b=v[h];if(!a.fileExists(b)){l=b;break}var x=a.getModifiedTime(b)||F.missingFileModifiedTime;if(x<p&&(p=x,d=b),x<i){y=!0;break}g<x&&(g=x,f=b),O(b)&&(m=I(m,a.getModifiedTime(b)||F.missingFileModifiedTime))}var D,S=!1,C=!1;if(e.projectReferences){t.projectStatus.set(r,{type:F.UpToDateStatusType.ComputingUpstream});for(var T=0,k=e.projectReferences;T<k.length;T++){var E=k[T],C=C||!!E.prepend,N=F.resolveProjectReferencePath(E),A=M(t,N),A=U(t,L(t,N,A),A);if(A.type!==F.UpToDateStatusType.ComputingUpstream&&A.type!==F.UpToDateStatusType.ContainerOnly){if(A.type===F.UpToDateStatusType.Unbuildable||A.type===F.UpToDateStatusType.UpstreamBlocked)return{type:F.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:E.path,upstreamProjectBlocked:A.type===F.UpToDateStatusType.UpstreamBlocked};if(A.type!==F.UpToDateStatusType.UpToDate)return{type:F.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:E.path};if(!(l||A.newestInputFileTime&&A.newestInputFileTime<=p)){if(!(A.newestDeclarationFileContentChangedTime&&A.newestDeclarationFileContentChangedTime<=p))return F.Debug.assert(void 0!==d,"Should have an oldest output filename here"),{type:F.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:d,newerProjectName:E.path};S=!0,D=E.path}}}}if(void 0!==l)return{type:F.UpToDateStatusType.OutputMissing,missingOutputFileName:l};if(y)return{type:F.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:d,newerInputFileName:n};if(_=z(t,e.options.configFilePath,p,d))return _;if(_=F.forEach(e.options.configFile.extendedSourceFiles||F.emptyArray,function(e){return z(t,e,p,d)}))return _;if(!t.buildInfoChecked.has(r)){t.buildInfoChecked.set(r,!0);e=F.getTsBuildInfoEmitOutputFilePath(e.options);if(e){e=t.readFileWithCache(e),e=e&&F.getBuildInfo(e);if(e&&(e.bundle||e.program)&&e.version!==F.version)return{type:F.UpToDateStatusType.TsVersionOutputOfDate,version:e.version}}}return C&&S?{type:F.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:d,newerProjectName:D}:{type:S?F.UpToDateStatusType.UpToDateWithUpstreamTypes:F.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:m,newestInputFileTime:i,newestOutputFileTime:g,newestInputFileName:n,newestOutputFileName:f,oldestOutputFileName:d}}(e,t,r);return e.projectStatus.set(r,t),t}function V(e,t,r,n,i){var a=e.host,o=F.getAllProjectOutputs(t,!a.useCaseSensitiveFileNames());if(!i||o.length!==i.size)for(var s=!!e.options.verbose,c=a.now?a.now():new Date,u=0,l=o;u<l.length;u++){var _=l[u];i&&i.has(k(e,_))||(s&&(s=!1,X(e,n,t.options.configFilePath)),O(_)&&(r=I(r,a.getModifiedTime(_)||F.missingFileModifiedTime)),a.setModifiedTime(_,c))}return r}function m(e,t,r){if(e.options.dry)return X(e,F.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath),0;var n=V(e,t,P,F.Diagnostics.Updating_output_timestamps_of_project_0);e.projectStatus.set(r,{type:F.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:n,oldestOutputFileName:F.getFirstProjectOutput(t,!e.host.useCaseSensitiveFileNames())})}function y(t,e,r,n){var i=d(t,e,n);if(!i)return F.ExitStatus.InvalidProject_OutputsSkipped;f(t,r);for(var a=!0,o=0;;){var s=g(t,i,a);if(!s)break;a=!1,s.done(r),t.diagnostics.has(s.projectPath)||o++}return _(t),te(t,i),function(e,t){if(e.watchAllProjectsPending){e.watchAllProjectsPending=!1;for(var r=0,n=c(t);r<n.length;r++){var i=n[r],a=M(e,i),o=L(e,i,a);K(e,i,a,o),o&&(W(e,i,a,o),H(e,i,a,o))}}}(t,i),p(i)?F.ExitStatus.ProjectReferenceCycle_OutputsSkipped:i.some(function(e){return t.diagnostics.has(M(t,e))})?o?F.ExitStatus.DiagnosticsPresent_OutputsGenerated:F.ExitStatus.DiagnosticsPresent_OutputsSkipped:F.ExitStatus.Success}function h(e,t,r){t=d(e,t,r);if(!t)return F.ExitStatus.InvalidProject_OutputsSkipped;if(p(t))return Z(e,t.circularDiagnostics),F.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var r=e.options,n=e.host,i=r.dry?[]:void 0,a=0,o=t;a<o.length;a++){var s=o[a],c=M(e,s),s=L(e,s,c);if(void 0!==s)for(var u=0,l=F.getAllProjectOutputs(s,!n.useCaseSensitiveFileNames());u<l.length;u++){var _=l[u];n.fileExists(_)&&(i?i.push(_):(n.deleteFile(_),b(e,c,F.ConfigFileProgramReloadLevel.None)))}else ee(e,c)}return i&&X(e,F.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,i.map(function(e){return"\r\n * "+e}).join("")),F.ExitStatus.Success}function b(e,t,r){e.host.getParsedCommandLine&&r===F.ConfigFileProgramReloadLevel.Partial&&(r=F.ConfigFileProgramReloadLevel.Full),r===F.ConfigFileProgramReloadLevel.Full&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,N(e,t),A(e,t,r),n(e)}function x(e,t,r){e.reportFileChangeDetected=!0,b(e,t,r),D(e)}function D(e){var t=e.hostWithWatch;t.setTimeout&&t.clearTimeout&&(e.timerToBuildInvalidatedProject&&t.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=t.setTimeout(S,250,e))}function S(e){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),Y(e,F.Diagnostics.File_change_detected_Starting_incremental_compilation));var t=u(e),r=g(e,t,!1);r&&(r.done(),e.projectPendingBuild.size)?e.watch&&!e.timerToBuildInvalidatedProject&&D(e):(_(e),te(e,t))}function K(e,t,r,n){e.watch&&!e.allWatchedConfigFiles.has(r)&&e.allWatchedConfigFiles.set(r,e.watchFile(e.hostWithWatch,t,function(){x(e,r,F.ConfigFileProgramReloadLevel.Full)},F.PollingInterval.High,null==n?void 0:n.watchOptions,F.WatchType.ConfigFile,t))}function q(e,t,r){return 0===F.comparePaths(t,r,e.currentDirectory,!e.host.useCaseSensitiveFileNames())}function W(n,i,a,o){n.watch&&F.updateWatchingWildcardDirectories(t(n.allWatchedWildcardDirectories,a),F.createMapFromTemplate(o.configFileSpecs.wildcardDirectories),function(r,e){return n.watchDirectory(n.hostWithWatch,r,function(e){var t=k(n,e);t===k(n,r)||!F.hasExtension(t)||F.isSupportedSourceFileName(e,o.options)?!function(t,r,e){if(!e.options.noEmit&&(F.fileExtensionIs(r,".d.ts")||!F.fileExtensionIs(r,".ts")&&!F.fileExtensionIs(r,".tsx"))){var n=e.options.outFile||e.options.out;return n&&(q(t,r,n)||q(t,r,F.removeFileExtension(n)+".d.ts"))||(e.options.declarationDir&&F.containsPath(e.options.declarationDir,r,t.currentDirectory,!t.host.useCaseSensitiveFileNames())||(e.options.outDir&&F.containsPath(e.options.outDir,r,t.currentDirectory,!t.host.useCaseSensitiveFileNames())||!F.forEach(e.fileNames,function(e){return q(t,r,e)})))}}(n,e,o)?x(n,a,F.ConfigFileProgramReloadLevel.Partial):n.writeLog(e+" is output file"):n.writeLog("Project: "+i+" Detected file add/remove of non supported extension: "+e)},e,null==o?void 0:o.watchOptions,F.WatchType.WildcardDirectory,i)})}function H(r,n,i,a){r.watch&&F.mutateMap(t(r.allWatchedInputFiles,i),F.arrayToMap(a.fileNames,function(e){return k(r,e)}),{createNewValue:function(e,t){return r.watchFilePath(r.hostWithWatch,t,function(){return x(r,i,F.ConfigFileProgramReloadLevel.None)},F.PollingInterval.Low,null==a?void 0:a.watchOptions,e,F.WatchType.SourceFile,n)},onDeleteValue:F.closeFileWatcher})}function G(e,t,r,n,i){var a=o(e,t,r,n,i);return{build:function(e,t){return y(a,e,t)},clean:function(e){return h(a,e)},buildReferences:function(e,t){return y(a,e,t,!0)},cleanReferences:function(e){return h(a,e,!0)},getNextInvalidatedProject:function(e){return f(a,e),g(a,u(a),!1)},getBuildOrder:function(){return u(a)},getUpToDateStatusOfProject:function(e){var t=E(a,e),e=M(a,t);return U(a,L(a,t,e),e)},invalidateProject:function(e,t){return b(a,e,t||F.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return S(a)},getAllParsedConfigs:function(){return F.arrayFrom(F.mapDefinedIterator(a.configFileCache.values(),function(e){return l(e)?e:void 0}))},close:function(){return e=a,F.clearMap(e.allWatchedConfigFiles,F.closeFileWatcher),F.clearMap(e.allWatchedWildcardDirectories,function(e){return F.clearMap(e,F.closeFileWatcherOf)}),void F.clearMap(e.allWatchedInputFiles,function(e){return F.clearMap(e,F.closeFileWatcher)});var e}}}function Q(t,e){return F.convertToRelativePath(e,t.currentDirectory,function(e){return t.getCanonicalFileName(e)})}function X(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e.host.reportSolutionBuilderStatus(F.createCompilerDiagnostic.apply(void 0,__spreadArrays([t],r)))}function Y(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e.hostWithWatch.onWatchStatusChange&&e.hostWithWatch.onWatchStatusChange(F.createCompilerDiagnostic.apply(void 0,__spreadArrays([t],r)),e.host.getNewLine(),e.baseCompilerOptions)}function Z(e,t){var r=e.host;t.forEach(function(e){return r.reportDiagnostic(e)})}function $(e,t,r){Z(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function ee(e,t){$(e,t,[e.configFileCache.get(t)])}function te(t,e){var r,n,i;t.needsSummary&&(t.needsSummary=!1,r=t.watch||!!t.host.reportErrorSummary,n=t.diagnostics,i=0,p(e)?(re(t,e.buildOrder),Z(t,e.circularDiagnostics),r&&(i+=F.getErrorCountForSummary(e.circularDiagnostics))):(e.forEach(function(e){e=M(t,e);t.projectErrorsReported.has(e)||Z(t,n.get(e)||F.emptyArray)}),r&&n.forEach(function(e){return i+=F.getErrorCountForSummary(e)})),t.watch?Y(t,F.getWatchErrorSummaryDiagnosticMessage(i),i):t.host.reportErrorSummary&&t.host.reportErrorSummary(i))}function re(t,e){t.options.verbose&&X(t,F.Diagnostics.Projects_in_this_build_Colon_0,e.map(function(e){return"\r\n    * "+Q(t,e)}).join(""))}(e=C=C||{})[e.None=0]="None",e[e.Success=1]="Success",e[e.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",e[e.ConfigFileErrors=4]="ConfigFileErrors",e[e.SyntaxErrors=8]="SyntaxErrors",e[e.TypeErrors=16]="TypeErrors",e[e.DeclarationEmitErrors=32]="DeclarationEmitErrors",e[e.EmitErrors=64]="EmitErrors",e[e.AnyErrors=124]="AnyErrors",F.isCircularBuildOrder=p,F.getBuildOrderFromAnyBuildOrder=c,F.createBuilderStatusReporter=i,F.createSolutionBuilderHost=function(e,t,r,n,i){return void 0===e&&(e=F.sys),(n=a(e,t,r,n)).reportErrorSummary=i,n},F.createSolutionBuilderWithWatchHost=function(e,t,r,n,i){return void 0===e&&(e=F.sys),n=a(e,t,r,n),i=F.createWatchHost(e,i),F.copyProperties(n,i),n},F.createSolutionBuilder=function(e,t,r){return G(!1,e,t,r)},F.createSolutionBuilderWithWatch=function(e,t,r,n){return G(!0,e,t,r,n)},(e=T=F.InvalidatedProjectKind||(F.InvalidatedProjectKind={}))[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"}(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 e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()+"."+e.getMilliseconds()}}(ts=ts||{}),function(S){!function(t){function x(e,t){return new S.Version(S.getProperty(t,"ts"+S.versionMajorMinor)||S.getProperty(t,"latest")).compareTo(e.version)<=0}function D(e){return t.nodeCoreModules.has(e)?"node":e}var e;t.isTypingUpToDate=x,t.nodeCoreModuleList=["assert","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","http2","inspector","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"],t.nodeCoreModules=S.arrayToSet(t.nodeCoreModuleList),t.nonRelativeModuleNameForTypingCache=D,t.loadSafeList=function(t,e){return e=S.readConfigFile(e,function(e){return t.readFile(e)}),S.createMapFromTemplate(e.config)},t.loadTypesMap=function(t,e){if((e=S.readConfigFile(e,function(e){return t.readFile(e)})).config)return S.createMapFromTemplate(e.config.simpleMap)},t.discoverTypings=function(c,u,e,t,r,n,i,a,o){if(!i||!i.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var l=S.createMap();e=S.mapDefined(e,function(e){e=S.normalizePath(e);if(S.hasJSFileExtension(e))return e});var s=[];i.include&&h(i.include,"Explicitly included types");var _=i.exclude||[];(i=S.arrayToSet(e,S.getDirectoryPath)).set(t,!0),i.forEach(function(e,t){v(S.combinePaths(t,"package.json"),s),v(S.combinePaths(t,"bower.json"),s),b(S.combinePaths(t,"bower_components"),s),b(S.combinePaths(t,"node_modules"),s)}),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&&h(e,"Inferred typings from file names"),S.some(i,function(e){return S.fileExtensionIs(e,".jsx")})&&(u&&u("Inferred 'react' typings due to presence of '.jsx' extension"),y("react")),a&&h(S.deduplicate(a.map(D),S.equateStringsCaseSensitive,S.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),n.forEach(function(e,t){var r=o.get(t);l.has(t)&&void 0===l.get(t)&&void 0!==r&&x(e,r)&&l.set(t,e.typingLocation)});for(var d=0,p=_;d<p.length;d++){var f=p[d];l.delete(f)&&u&&u("Typing for "+f+" is in exclude list, will be ignored.")}var g=[],m=[];return l.forEach(function(e,t){void 0!==e?m.push(e):g.push(t)}),_={cachedTypingPaths:m,newTypingNames:g,filesToWatch:s},u&&u("Result: "+JSON.stringify(_)),_;function y(e){l.has(e)||l.set(e,void 0)}function h(e,t){u&&u(t+": "+JSON.stringify(e)),S.forEach(e,y)}function v(e,t){c.fileExists(e)&&(t.push(e),t=S.readConfigFile(e,function(e){return c.readFile(e)}).config,h(S.flatMap([t.dependencies,t.devDependencies,t.optionalDependencies,t.peerDependencies],S.getOwnKeys),"Typing names in '"+e+"' dependencies"))}function b(e,t){if(t.push(e),c.directoryExists(e)){t=c.readDirectory(e,[".json"],void 0,void 0,2);u&&u("Searching for typing names in "+e+"; all files: "+JSON.stringify(t));for(var r=[],n=0,i=t;n<i.length;n++){var a=i[n],o=S.normalizePath(a),s=S.getBaseFileName(o);"package.json"!==s&&"bower.json"!==s||(a=S.readConfigFile(o,function(e){return c.readFile(e)}).config,"package.json"===s&&a._requiredBy&&0===S.filter(a._requiredBy,function(e){return"#"===e[0]||"/"===e}).length||a.name&&((s=a.types||a.typings)?(o=S.getNormalizedAbsolutePath(s,S.getDirectoryPath(o)),u&&u("    Package '"+a.name+"' provides its own types."),l.set(a.name,o)):r.push(a.name)))}h(r,"    Found package names")}}},(e=t.NameValidationResult||(t.NameValidationResult={}))[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters";var a=214;function r(e,t,r,n){var i=n?"Scope":"Package";switch(t){case 1:return"'"+e+"':: "+i+" name '"+r+"' cannot be empty";case 2:return"'"+e+"':: "+i+" name '"+r+"' should be less than "+a+" characters";case 3:return"'"+e+"':: "+i+" name '"+r+"' cannot start with '.'";case 4:return"'"+e+"':: "+i+" name '"+r+"' cannot start with '_'";case 5:return"'"+e+"':: "+i+" name '"+r+"' contains non URI safe characters";case 0:return 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",e.emptyOptions={},(i=e.HighlightSpanKind||(e.HighlightSpanKind={})).none="none",i.definition="definition",i.reference="reference",i.writtenReference="writtenReference",(i=r=e.IndentStyle||(e.IndentStyle={}))[i.None=0]="None",i[i.Block=1]="Block",i[i.Smart=2]="Smart",(i=n=e.SemicolonPreference||(e.SemicolonPreference={})).Ignore="ignore",i.Insert="insert",i.Remove="remove",e.getDefaultFormatCodeSettings=o,e.testFormatSettings=o("\n"),(i=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}))[i.aliasName=0]="aliasName",i[i.className=1]="className",i[i.enumName=2]="enumName",i[i.fieldName=3]="fieldName",i[i.interfaceName=4]="interfaceName",i[i.keyword=5]="keyword",i[i.lineBreak=6]="lineBreak",i[i.numericLiteral=7]="numericLiteral",i[i.stringLiteral=8]="stringLiteral",i[i.localName=9]="localName",i[i.methodName=10]="methodName",i[i.moduleName=11]="moduleName",i[i.operator=12]="operator",i[i.parameterName=13]="parameterName",i[i.propertyName=14]="propertyName",i[i.punctuation=15]="punctuation",i[i.space=16]="space",i[i.text=17]="text",i[i.typeParameterName=18]="typeParameterName",i[i.enumMemberName=19]="enumMemberName",i[i.functionName=20]="functionName",i[i.regularExpressionLiteral=21]="regularExpressionLiteral",(i=e.OutliningSpanKind||(e.OutliningSpanKind={})).Comment="comment",i.Region="region",i.Code="code",i.Imports="imports",(i=e.OutputFileType||(e.OutputFileType={}))[i.JavaScript=0]="JavaScript",i[i.SourceMap=1]="SourceMap",i[i.Declaration=2]="Declaration",(i=e.EndOfLineState||(e.EndOfLineState={}))[i.None=0]="None",i[i.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",i[i.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",i[i.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",i[i.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",i[i.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",i[i.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",(i=e.TokenClass||(e.TokenClass={}))[i.Punctuation=0]="Punctuation",i[i.Keyword=1]="Keyword",i[i.Operator=2]="Operator",i[i.Comment=3]="Comment",i[i.Whitespace=4]="Whitespace",i[i.Identifier=5]="Identifier",i[i.NumberLiteral=6]="NumberLiteral",i[i.BigIntLiteral=7]="BigIntLiteral",i[i.StringLiteral=8]="StringLiteral",i[i.RegExpLiteral=9]="RegExpLiteral",(i=e.ScriptElementKind||(e.ScriptElementKind={})).unknown="",i.warning="warning",i.keyword="keyword",i.scriptElement="script",i.moduleElement="module",i.classElement="class",i.localClassElement="local class",i.interfaceElement="interface",i.typeElement="type",i.enumElement="enum",i.enumMemberElement="enum member",i.variableElement="var",i.localVariableElement="local var",i.functionElement="function",i.localFunctionElement="local function",i.memberFunctionElement="method",i.memberGetAccessorElement="getter",i.memberSetAccessorElement="setter",i.memberVariableElement="property",i.constructorImplementationElement="constructor",i.callSignatureElement="call",i.indexSignatureElement="index",i.constructSignatureElement="construct",i.parameterElement="parameter",i.typeParameterElement="type parameter",i.primitiveType="primitive type",i.label="label",i.alias="alias",i.constElement="const",i.letElement="let",i.directory="directory",i.externalModuleName="external module name",i.jsxAttribute="JSX attribute",i.string="string",(i=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})).none="",i.publicMemberModifier="public",i.privateMemberModifier="private",i.protectedMemberModifier="protected",i.exportedModifier="export",i.ambientModifier="declare",i.staticModifier="static",i.abstractModifier="abstract",i.optionalModifier="optional",i.dtsModifier=".d.ts",i.tsModifier=".ts",i.tsxModifier=".tsx",i.jsModifier=".js",i.jsxModifier=".jsx",i.jsonModifier=".json",(i=e.ClassificationTypeNames||(e.ClassificationTypeNames={})).comment="comment",i.identifier="identifier",i.keyword="keyword",i.numericLiteral="number",i.bigintLiteral="bigint",i.operator="operator",i.stringLiteral="string",i.whiteSpace="whitespace",i.text="text",i.punctuation="punctuation",i.className="class name",i.enumName="enum name",i.interfaceName="interface name",i.moduleName="module name",i.typeParameterName="type parameter name",i.typeAliasName="type alias name",i.parameterName="parameter name",i.docCommentTagName="doc comment tag name",i.jsxOpenTagName="jsx open tag name",i.jsxCloseTagName="jsx close tag name",i.jsxSelfClosingTagName="jsx self closing tag name",i.jsxAttribute="jsx attribute",i.jsxText="jsx text",i.jsxAttributeStringLiteralValue="jsx attribute string literal value",(e=e.ClassificationType||(e.ClassificationType={}))[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral"}(ts=ts||{}),function(g){function r(e){switch(e.kind){case 242:return g.isInJSFile(e)&&g.getJSDocEnumTag(e)?7:1;case 156:case 191:case 159:case 158:case 281:case 282:case 161:case 160:case 162:case 163:case 164:case 244:case 201:case 202:case 280:case 273:return 1;case 155:case 246:case 247:case 173:return 2;case 322:return void 0===e.name?3:2;case 284:case 245:return 3;case 249:return g.isAmbientModule(e)||1===g.getModuleInstanceState(e)?5:4;case 248:case 257:case 258:case 253:case 254:case 259:case 260:return 7;case 290:return 5}return 7}function n(e){for(;153===e.parent.kind;)e=e.parent;return g.isInternalModuleImportEqualsDeclaration(e.parent)&&e.parent.moduleReference===e}function i(e){return e.expression}function a(e){return e.tag}function o(e){return e.tagName}function s(e,t,r,n,i){e=(n?u:c)(e);return i&&(e=g.skipOuterExpressions(e)),!!e&&!!e.parent&&t(e.parent)&&r(e.parent)===e}function c(e){return _(e)?e.parent:e}function u(e){return _(e)||d(e)?e.parent:e}function t(e){var t;return g.isIdentifier(e)&&(null===(t=g.tryCast(e.parent,g.isBreakOrContinueStatement))||void 0===t?void 0:t.label)===e}function l(e){var t;return g.isIdentifier(e)&&(null===(t=g.tryCast(e.parent,g.isLabeledStatement))||void 0===t?void 0:t.label)===e}function _(e){var t;return(null===(t=g.tryCast(e.parent,g.isPropertyAccessExpression))||void 0===t?void 0:t.name)===e}function d(e){var t;return(null===(t=g.tryCast(e.parent,g.isElementAccessExpression))||void 0===t?void 0:t.argumentExpression)===e}g.scanner=g.createScanner(99,!0),(e=g.SemanticMeaning||(g.SemanticMeaning={}))[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",g.getMeaningFromDeclaration=r,g.getMeaningFromLocation=function(e){return 290===(e=F(e)).kind?1:259===e.parent.kind||265===e.parent.kind||258===e.parent.kind||255===e.parent.kind||g.isImportEqualsDeclaration(e.parent)&&e===e.parent.name?7:n(e)?function(e){e=153===e.kind?e:g.isQualifiedName(e.parent)&&e.parent.right===e?e.parent:void 0;return e&&253===e.parent.kind?7:4}(e):g.isDeclarationName(e)?r(e.parent):function(e){g.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent);switch(e.kind){case 104:return!g.isExpressionNode(e);case 183:return!0}switch(e.parent.kind){case 169:return!0;case 188:return!e.parent.isTypeOf;case 216:return!g.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent)}return!1}(e)?2:function(e){var t=e,r=!0;if(153===t.parent.kind){for(;t.parent&&153===t.parent.kind;)t=t.parent;r=t.right===e}return 169===t.parent.kind&&!r}(t=e)||function(e){var t=e,r=!0;if(194===t.parent.kind){for(;t.parent&&194===t.parent.kind;)t=t.parent;r=t.name===e}if(r||216!==t.parent.kind||279!==t.parent.parent.kind)return!1;r=t.parent.parent.parent;return 245===r.kind&&113===t.parent.parent.token||246===r.kind&&90===t.parent.parent.token}(t)?4:g.isTypeParameterDeclaration(e.parent)?(g.Debug.assert(g.isJSDocTemplateTag(e.parent.parent)),2):g.isLiteralTypeNode(e.parent)?3:1;var t},g.isInRightSideOfInternalImportEqualsDeclaration=n,g.isCallExpressionTarget=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(e,g.isCallExpression,i,t,r)},g.isNewExpressionTarget=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(e,g.isNewExpression,i,t,r)},g.isCallOrNewExpressionTarget=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(e,g.isCallOrNewExpression,i,t,r)},g.isTaggedTemplateTag=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(e,g.isTaggedTemplateExpression,a,t,r)},g.isDecoratorTarget=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(e,g.isDecorator,i,t,r)},g.isJsxOpeningLikeElementTagName=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(e,g.isJsxOpeningLikeElement,o,t,r)},g.climbPastPropertyAccess=c,g.climbPastPropertyOrElementAccess=u,g.getTargetLabel=function(e,t){for(;e;){if(238===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},g.hasPropertyAccessExpressionWithName=function(e,t){return!!g.isPropertyAccessExpression(e.expression)&&e.expression.name.text===t},g.isJumpStatementTarget=t,g.isLabelOfLabeledStatement=l,g.isLabelName=function(e){return l(e)||t(e)},g.isTagName=function(e){var t;return(null===(t=g.tryCast(e.parent,g.isJSDocTag))||void 0===t?void 0:t.tagName)===e},g.isRightSideOfQualifiedName=function(e){var t;return(null===(t=g.tryCast(e.parent,g.isQualifiedName))||void 0===t?void 0:t.right)===e},g.isRightSideOfPropertyAccess=_,g.isArgumentExpressionOfElementAccess=d,g.isNameOfModuleDeclaration=function(e){var t;return(null===(t=g.tryCast(e.parent,g.isModuleDeclaration))||void 0===t?void 0:t.name)===e},g.isNameOfFunctionDeclaration=function(e){var t;return g.isIdentifier(e)&&(null===(t=g.tryCast(e.parent,g.isFunctionLike))||void 0===t?void 0:t.name)===e},g.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(e){switch(e.parent.kind){case 159:case 158:case 281:case 284:case 161:case 160:case 163:case 164:case 249:return g.getNameOfDeclaration(e.parent)===e;case 195:return e.parent.argumentExpression===e;case 154:return!0;case 187:return 185===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 290:case 161:case 160:case 244:case 201:case 163:case 164:case 245:case 246:case 248:case 249:return e}}},g.getNodeKind=function e(t){switch(t.kind){case 290:return g.isExternalModule(t)?"module":"script";case 249:return"module";case 245:case 214:return"class";case 246:return"interface";case 247:case 315:case 322:return"type";case 248:return"enum";case 242:return o(t);case 191:return o(g.getRootDeclaration(t));case 202:case 244:case 201:return"function";case 163:return"getter";case 164:return"setter";case 161:case 160:return"method";case 281:var r=t.initializer;return g.isFunctionLike(r)?"method":"property";case 159:case 158:case 282:case 283:return"property";case 167:return"index";case 166:return"construct";case 165:return"call";case 162:return"constructor";case 155:return"type parameter";case 284:return"enum member";case 156:return g.hasModifier(t,92)?"property":"parameter";case 253:case 258:case 263:case 256:case 262:return"alias";case 209: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 75:return g.isImportClause(t.parent)?"alias":"";case 259: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 104:return!0;case 75:return g.identifierIsThisKeyword(e)&&156===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 84===e.kind}function C(e){return 80===e.kind}function T(e){return 94===e.kind}function k(e,t){if(!t)switch(e.kind){case 245:case 214:return function(e){if(g.isNamedDeclaration(e))return e.name;if(g.isClassDeclaration(e)){var t=g.find(e.modifiers,S);if(t)return t}if(g.isClassExpression(e)){e=g.find(e.getChildren(),C);if(e)return e}}(e);case 244:case 201: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(),T);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||84!==e.kind)?g.contains(n.modifiers,e):80===e.kind?g.isClassDeclaration(n)||g.isClassExpression(e):94===e.kind?g.isFunctionDeclaration(n)||g.isFunctionExpression(e):114===e.kind?g.isInterfaceDeclaration(n):88===e.kind?g.isEnumDeclaration(n):145===e.kind?g.isTypeAliasDeclaration(n):136===e.kind||135===e.kind?g.isModuleDeclaration(n):96===e.kind?g.isImportEqualsDeclaration(n):131===e.kind?g.isGetAccessorDeclaration(n):142===e.kind&&g.isSetAccessorDeclaration(n))&&(r=k(n,t)))return r;if((109===e.kind||81===e.kind||115===e.kind)&&g.isVariableDeclarationList(n)&&1===n.declarations.length){var i=n.declarations[0];if(g.isIdentifier(i.name))return i.name}if(145===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(123===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(96===e.kind&&g.isImportDeclaration(n)&&(r=E(n,t)))return r;if(89===e.kind){if(g.isExportDeclaration(n))if(r=N(n,t))return r;if(g.isExportAssignment(n))return g.skipOuterExpressions(n.expression)}if(139===e.kind&&g.isExternalModuleReference(n))return n.expression;if(149===e.kind&&(g.isImportDeclaration(n)||g.isExportDeclaration(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((90===e.kind||113===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(90===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(132===e.kind&&g.isInferTypeNode(n))return n.typeParameter.name;if(97===e.kind&&g.isTypeParameterDeclaration(n)&&g.isMappedTypeNode(n.parent))return n.name;if(134===e.kind&&g.isTypeOperatorNode(n)&&134===n.operator&&g.isTypeReferenceNode(n.type))return n.type.typeName;if(138===e.kind&&g.isTypeOperatorNode(n)&&138===n.operator&&g.isArrayTypeNode(n.type)&&g.isTypeReferenceNode(n.type.elementType))return n.type.elementType.typeName;if(!t){if((99===e.kind&&g.isNewExpression(n)||110===e.kind&&g.isVoidExpression(n)||108===e.kind&&g.isTypeOfExpression(n)||127===e.kind&&g.isAwaitExpression(n)||121===e.kind&&g.isYieldExpression(n)||85===e.kind&&g.isDeleteExpression(n))&&n.expression)return g.skipOuterExpressions(n.expression);if((97===e.kind||98===e.kind)&&g.isBinaryExpression(n)&&n.operatorToken===e)return g.skipOuterExpressions(n.right);if(123===e.kind&&g.isAsExpression(n)&&g.isTypeReferenceNode(n.type))return n.type.typeName;if(97===e.kind&&g.isForInStatement(n)||152===e.kind&&g.isForOfStatement(n))return g.skipOuterExpressions(n.expression)}return e}function F(e){return A(e,!1)}function P(e,t,r){return I(e,t,!1,r,!1)}function w(e,t){return I(e,t,!0,void 0,!1)}function I(e,t,r,n,i){var a=e;e:for(;;){for(var o=0,s=a.getChildren(e);o<s.length;o++){var c=s[o];if(t<(r?c.getFullStart():c.getStart(e,!0)))break;var u=c.getEnd();if(t<u||t===u&&(1===c.kind||i)){a=c;continue e}if(n&&u===t){c=M(t,e,c);if(c&&n(c))return c}}return a}}function O(n,e,i){return function r(e){if(g.isToken(e)&&e.pos===n.end)return e;return g.firstDefined(e.getChildren(i),function(e){var t=e.pos<=n.pos&&e.end>n.end||e.pos===n.end;return t&&q(e,i)?r(e):void 0})}(e)}function M(o,s,c,u){var e=function e(t){if(L(t)&&1!==t.kind)return t;var r=t.getChildren(s);for(var n=0;n<r.length;n++){var i=r[n];if(o<i.end){var a=i.getStart(s,!u),a=o<=a||!q(i,s)||j(i);if(a){var a=B(r,n,s);return a&&R(a,s)}return e(i)}}g.Debug.assert(void 0!==c||290===t.kind||1===t.kind||g.isJSDocCommentContainingNode(t));var t=B(r,r.length,s);return t&&R(t,s)}(c||s);return g.Debug.assert(!(e&&j(e))),e}function L(e){return g.isToken(e)&&!j(e)}function R(e,t){if(L(e))return e;e=e.getChildren(t),e=B(e,e.length,t);return e&&R(e,t)}function B(e,t,r){for(var n=t-1;0<=n;n--)if(j(e[n]))g.Debug.assert(0<n,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(q(e[n],r))return e[n]}function j(e){return g.isJsxText(e)&&e.containsOnlyTriviaWhiteSpaces}function J(e,t,r){for(var n=e.kind,i=0;;){var a=M(e.getFullStart(),r);if(!a)return;if((e=a).kind===t){if(0===i)return e;i--}else e.kind===n&&i++}}function z(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function U(e,t,r){r=r.getTypeAtLocation(e);return g.isOptionalChain(e.parent)&&(r=z(r,g.isOptionalChainRoot(e.parent),!0)),(g.isNewExpression(e.parent)?r.getConstructSignatures():r.getCallSignatures()).filter(function(e){return!!e.typeParameters&&e.typeParameters.length>=t})}function V(e,t){for(var r=e,n=0,i=0;r;){switch(r.kind){case 29:if((r=M(r.getFullStart(),t))&&28===r.kind&&(r=M(r.getFullStart(),t)),!r||!g.isIdentifier(r))return;if(!n)return g.isDeclarationName(r)?void 0:{called:r,nTypeArguments:i};n--;break;case 49:n=3;break;case 48:n=2;break;case 31:n++;break;case 19:if(!(r=J(r,18,t)))return;break;case 21:if(!(r=J(r,20,t)))return;break;case 23:if(!(r=J(r,22,t)))return;break;case 27:i++;break;case 38:case 75:case 10:case 8:case 9:case 106:case 91:case 108:case 90:case 134:case 24:case 51:case 57:case 58:break;default:if(g.isTypeNode(r))break;return}r=M(r.getFullStart(),t)}}function K(e,t,r){return g.formatting.getRangeOfEnclosingComment(e,t,void 0,r)}function q(e,t){return 1===e.kind?e.jsDoc:0!==e.getWidth(t)}function W(e,t,r){t=K(e,t,void 0);return!!t&&r===p.test(e.text.substring(t.pos,t.end))}function H(e,t,r){return g.createTextSpanFromBounds(e.getStart(t),(r||e).getEnd())}function G(e){if(!e.isUnterminated)return g.createTextSpanFromBounds(e.getStart()+1,e.getEnd()-1)}function Q(e,t){return{span:e,newText:t}}function X(e){return 145===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),getProbableSymlinks:g.maybeBind(e,e.getProbableSymlinks)||function(){return t.getProbableSymlinks()},getGlobalTypingsCacheLocation:g.maybeBind(e,e.getGlobalTypingsCacheLocation),getSourceFiles:function(){return t.getSourceFiles()},redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)}}}function Z(e,t){return __assign(__assign({},Y(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function $(e,t,r,n,i){return g.createImportDeclaration(void 0,void 0,e||t?g.createImportClause(e,t&&t.length?g.createNamedImports(t):void 0,i):void 0,"string"==typeof r?ee(r,n):r)}function ee(e,t){return g.createLiteral(e,0===t)}function te(e,t){return g.isStringDoubleQuoted(e,t)?1:0}function re(e){return"default"!==e.escapedName?e.escapedName:g.firstDefined(e.declarations,function(e){e=g.getNameOfDeclaration(e);return e&&75===e.kind?e.escapedText:void 0})}function ne(e,n,i,a){var t=g.createMap();return function r(e){if(!(96&e.flags&&g.addToSeen(t,g.getSymbolId(e))))return;return g.firstDefined(e.declarations,function(e){return g.firstDefined(g.getAllSuperTypeNodes(e),function(e){var t=i.getTypeAtLocation(e),e=t&&t.symbol&&i.getPropertyOfType(t,n);return t&&e&&(g.firstDefined(i.getRootSymbols(e),a)||r(t.symbol))})})}(e)}function ie(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function ae(e){return e.declarations&&0<e.declarations.length&&156===e.declarations[0].kind}g.getLineStartPositionForPosition=function(e,t){return g.getLineStarts(t)[t.getLineAndCharacterOfPosition(e).line]},g.rangeContainsRange=f,g.rangeContainsRangeExclusive=function(e,t){return m(e,t.pos)&&m(e,t.end)},g.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},g.rangeContainsPositionExclusive=m,g.startEndContainsRange=y,g.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},g.rangeOverlapsWithStartEnd=function(e,t,r){return h(e.pos,e.end,t,r)},g.nodeOverlapsWithStartEnd=function(e,t,r,n){return h(e.getStart(t),e.end,r,n)},g.startEndOverlapsWithStartEnd=h,g.positionBelongsToNode=function(e,t,r){return g.Debug.assert(e.pos<=t),t<e.end||!function e(t,r){if(void 0===t||g.nodeIsMissing(t))return!1;switch(t.kind){case 245:case 246:case 248:case 193:case 189:case 173:case 223:case 250:case 251:case 257:case 261:return v(t,19,r);case 280:return e(t.block,r);case 197:if(!t.arguments)return!0;case 196:case 200:case 182:return v(t,21,r);case 170:case 171:return e(t.type,r);case 162:case 163:case 164:case 244:case 201:case 161:case 160:case 166:case 165:case 202:return t.body?e(t.body,r):t.type?e(t.type,r):b(t,21,r);case 249:return!!t.body&&e(t.body,r);case 227:return t.elseStatement?e(t.elseStatement,r):e(t.thenStatement,r);case 226:return e(t.expression,r)||b(t,26,r);case 192:case 190:case 195:case 154:case 175:return v(t,23,r);case 167:return t.type?e(t.type,r):b(t,23,r);case 277:case 278:return!1;case 230:case 231:case 232:case 229:return e(t.statement,r);case 228:return b(t,111,r)?v(t,21,r):e(t.statement,r);case 172:return e(t.exprName,r);case 204:case 203:case 205:case 212:case 213:var n=t;return e(n.expression,r);case 198:return e(t.template,r);case 211:var n=g.lastOrUndefined(t.templateSpans);return e(n,r);case 221:return g.nodeIsPresent(t.literal);case 260:case 254:return g.nodeIsPresent(t.moduleSpecifier);case 207:return e(t.operand,r);case 209:return e(t.right,r);case 210:return e(t.whenFalse,r);default:return!0}}(e,r)},g.findListItemInfo=function(e){var t=D(e);if(t){var r=t.getChildren();return{listItemIndex:g.indexOfNode(r,e),list:t}}},g.hasChildOfKind=b,g.findChildOfKind=x,g.findContainingList=D,g.getAdjustedReferenceLocation=F,g.getAdjustedRenameLocation=function(e){return A(e,!0)},g.getTouchingPropertyName=function(e,t){return P(e,t,function(e){return g.isPropertyNameLiteral(e)||g.isKeyword(e.kind)||g.isPrivateIdentifier(e)})},g.getTouchingToken=P,g.getTokenAtPosition=w,g.findTokenOnLeftOfPosition=function(e,t){var r=w(e,t);return g.isToken(r)&&t>r.getStart(e)&&t<r.getEnd()?r:M(t,e)},g.findNextToken=O,g.findPrecedingToken=M,g.isInString=function(e,t,r){if(void 0===r&&(r=M(t,e)),r&&g.isStringTextContainingNode(r)){var n=r.getStart(e),e=r.getEnd();if(n<t&&t<e)return!0;if(t===e)return!!r.isUnterminated}return!1},g.isInsideJsxElementOrAttribute=function(e,t){return!!(t=w(e,t))&&(11===t.kind||(29===t.kind&&11===t.parent.kind||(29===t.kind&&276===t.parent.kind||(!(!t||19!==t.kind||276!==t.parent.kind)||29===t.kind&&269===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.findPrecedingMatchingToken=J,g.removeOptionality=z,g.isPossiblyTypeArgumentPosition=function e(t,r,n){t=V(t,r);return void 0!==t&&(g.isPartOfTypeNode(t.called)||0!==U(t.called,t.nTypeArguments,n).length||e(t.called,r,n))},g.getPossibleGenericSignatures=U,g.getPossibleTypeArgumentsInfo=V,g.isInComment=K,g.hasDocComment=function(e,t){return t=w(e,t),!!g.findAncestor(t,g.isJSDoc)},g.getNodeModifiers=function(e){var t=g.isDeclaration(e)?g.getCombinedModifierFlags(e):0,r=[];return 8&t&&r.push("private"),16&t&&r.push("protected"),4&t&&r.push("public"),32&t&&r.push("static"),128&t&&r.push("abstract"),1&t&&r.push("export"),8388608&e.flags&&r.push("declare"),259===e.kind&&r.push("export"),0<r.length?r.join(","):""},g.getTypeArgumentOrTypeParameterList=function(e){return 169===e.kind||196===e.kind?e.typeArguments:g.isFunctionLike(e)||245===e.kind||246===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<=74},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 119:case 117:case 118: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(192===t.kind||193===t.kind){if(209===t.parent.kind&&t.parent.left===t&&62===t.parent.operatorToken.kind)return!0;if(232===t.parent.kind&&t.parent.initializer===t)return!0;if(e((281===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=[125,124,151,128,91,134,137,100,140,141,138,143,144,106,110,146,147,148],g.isTypeKeyword=function(e){return g.contains(g.typeKeywords,e)},g.isTypeKeywordToken=X,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 154===e.kind?g.isStringOrNumericLiteralLike(e.expression)?e.expression.text:void 0:g.isPrivateIdentifier(e)?g.idText(e):g.getTextOfIdentifierOrLiteral(e)},g.programContainsModules=function(t){return t.getSourceFiles().some(function(e){return!(e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e)||!e.externalModuleIndicator&&!e.commonJsModuleIndicator)})},g.programContainsEs6Modules=function(t){return t.getSourceFiles().some(function(e){return!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&!!e.externalModuleIndicator})},g.compilerOptionsIndicateEs6Modules=function(e){return!!e.module||2<=e.target||!!e.noEmit},g.createModuleSpecifierResolutionHost=Y,g.getModuleSpecifierResolverHost=Z,g.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?$(e,t,r,n):void 0},g.makeImport=$,g.makeStringLiteral=ee,(e=g.QuotePreference||(g.QuotePreference={}))[e.Single=0]="Single",e[e.Double=1]="Double",g.quotePreferenceFromString=te,g.getQuotePreference=function(e,t){return t.quotePreference&&"auto"!==t.quotePreference?"single"===t.quotePreference?0:1:(t=e.imports&&g.find(e.imports,g.isStringLiteral))?te(t,e):1},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=re(e))?void 0:g.unescapeLeadingUnderscores(e)},g.symbolEscapedNameNoDefault=re,g.isObjectBindingElementWithoutPropertyName=function(e){return g.isBindingElement(e)&&g.isObjectBindingPattern(e.parent)&&g.isIdentifier(e.name)&&!e.propertyName},g.getPropertySymbolFromBindingElement=function(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},g.getPropertySymbolsFromBaseTypes=ne,g.isMemberSymbolInBaseType=function(e,t){return ne(e.parent,e.name,t,function(e){return!0})||!1},g.getParentNodeInSpan=function(e,t,r){var n,i,a;if(e)for(;e.parent;){if(g.isSourceFile(e.parent)||(n=r,i=e.parent,a=t,!(g.textSpanContainsPosition(n,i.getStart(a))&&i.getEnd()<=g.textSpanEnd(n))))return e;e=e.parent}},g.findModifier=function(e,t){return e.modifiers&&g.find(e.modifiers,function(e){return e.kind===t})},g.insertImports=function(e,t,r,n){var i=225===(g.isArray(r)?r[0]:r).kind?g.isRequireVariableDeclarationStatement:g.isAnyImportSyntax,a=g.findLast(t.statements,function(e){return i(e)});a?g.isArray(r)?e.insertNodesAfter(t,a,r):e.insertNodeAfter(t,a,r):g.isArray(r)?e.insertNodesAtTopOfFile(t,r,n):e.insertNodeAtTopOfFile(t,r,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.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(_e()),t=!0},write:e,writeComment:e,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:g.notImplemented,getIndent:function(){return n},increaseIndent:function(){n++},decreaseIndent:function(){n--},clear:c,trackSymbol:g.noop,reportInaccessibleThisError:g.noop,reportInaccessibleUniqueSymbolError:g.noop,reportPrivateInBaseOfClassExpression:g.noop};function o(){var e;a<i||t&&((e=g.getIndentString(n))&&(i+=e.length,r.push(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;if(4&t)return g.SymbolDisplayPartKind.propertyName;if(32768&t)return g.SymbolDisplayPartKind.propertyName;if(65536&t)return g.SymbolDisplayPartKind.propertyName;if(8&t)return g.SymbolDisplayPartKind.enumMemberName;if(16&t)return g.SymbolDisplayPartKind.functionName;if(32&t)return g.SymbolDisplayPartKind.className;if(64&t)return g.SymbolDisplayPartKind.interfaceName;if(384&t)return g.SymbolDisplayPartKind.enumName;if(1536&t)return g.SymbolDisplayPartKind.moduleName;if(8192&t)return g.SymbolDisplayPartKind.methodName;if(262144&t)return g.SymbolDisplayPartKind.typeParameterName;if(524288&t)return g.SymbolDisplayPartKind.aliasName;if(2097152&t)return g.SymbolDisplayPartKind.aliasName}return g.SymbolDisplayPartKind.text}(t))}function ce(e,t){return{text:e,kind:g.SymbolDisplayPartKind[t]}}function ue(e){return ce(g.tokenToString(e),g.SymbolDisplayPartKind.keyword)}function le(e){return ce(e,g.SymbolDisplayPartKind.text)}function _e(){return ce("\n",g.SymbolDisplayPartKind.lineBreak)}function de(e){try{return e(oe),oe.displayParts()}finally{oe.clear()}}function pe(e,t){return g.ensureScriptKind(e,t&&t.getScriptKind&&t.getScriptKind(e))}function fe(e){return 0!=(33554432&e.flags)}function ge(e,t){void 0===t&&(t=!0);e=e&&ye(e);return e&&!t&&he(e),e}function me(e,t,r,n,i){var a,o,s;return void 0===t&&(t=!0),r&&n&&g.isBindingElement(e)&&g.isIdentifier(e.name)&&g.isObjectBindingPattern(e.parent)?(s=(o=n.getSymbolAtLocation(e.name))&&r.get(String(g.getSymbolId(o))))&&s.text!==(e.name||e.propertyName).getText()&&(a=g.setOriginalNode(g.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,s,e.initializer),e)):r&&n&&g.isIdentifier(e)&&(s=(o=n.getSymbolAtLocation(e))&&r.get(String(g.getSymbolId(o))))&&(a=g.setOriginalNode(g.createIdentifier(s.text),e)),(a=a||ye(e,r,n,i))&&!t&&he(a),i&&a&&i(e,a),a}function ye(e,t,r,n){var i=t||r||n?g.visitEachChild(e,function(e){return me(e,!0,t,r,n)},g.nullTransformationContext):g.visitEachChild(e,ge,g.nullTransformationContext);if(i!==e)return i.parent=void 0,i;i=g.getSynthesizedClone(e);return g.isStringLiteral(i)?i.textSourceNode=e:g.isNumericLiteral(i)&&(i.numericLiteralFlags=e.numericLiteralFlags),g.setTextRange(i,e)}function he(e){ve(e),be(e)}function ve(e){xe(e,512,De)}function be(e){xe(e,1024,g.getLastChild)}function xe(e,t,r){g.addEmitFlags(e,t);e=r(e);e&&xe(e,t,r)}function De(e){return e.forEachChild(function(e){return e})}function Se(e,t,r,n,i){g.forEachLeadingCommentRange(r.text,e.pos,ke(t,r,n,i,g.addSyntheticLeadingComment))}function Ce(e,t,r,n,i){g.forEachTrailingCommentRange(r.text,e.end,ke(t,r,n,i,g.addSyntheticTrailingComment))}function Te(e,t,r,n,i){g.forEachTrailingCommentRange(r.text,e.pos,ke(t,r,n,i,g.addSyntheticLeadingComment))}function ke(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 Ee(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Ne(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Ae(e){return 165===e||166===e||167===e||158===e||160===e}function Fe(e){return 244===e||162===e||161===e||163===e||164===e}function Pe(e){return 249===e}function we(e){return 225===e||226===e||228===e||233===e||234===e||235===e||239===e||241===e||159===e||247===e||254===e||253===e||260===e||252===e||259===e}function Ie(e,t){return Me(e,e.fileExists,t)}function Oe(e){try{return e()}catch(e){return}}function Me(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return Oe(function(){return t&&t.apply(e,r)})}function Le(e,t){if(t.readFile){t=t.readFile(e);if(t){var r=function(e){try{return JSON.parse(e)}catch(e){return}}(t);if(!r)return!1;for(var n={},i=0,a=["dependencies","devDependencies","optionalDependencies","peerDependencies"];i<a.length;i++){var o=a[i],s=r[o];if(s){var c,u=g.createMap();for(c in s)u.set(c,s[c]);n[o]=u}}var l=[[1,n.dependencies],[2,n.devDependencies],[8,n.optionalDependencies],[4,n.peerDependencies]];return __assign(__assign({},n),{fileName:e,get:_,has:function(e,t){return!!_(e,t)}})}}function _(e,t){void 0===t&&(t=15);for(var r=0,n=l;r<n.length;r++){var i=n[r],a=i[0],i=i[1];if(i&&t&a){i=i.get(e);if(void 0!==i)return i}}}}function Re(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function Be(e){var t=e.getSourceFile();return!(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)&&(g.isInJSFile(e)||!g.findAncestor(e,g.isGlobalScopeAugmentation))}g.symbolPart=se,g.displayPart=ce,g.spacePart=function(){return ce(" ",g.SymbolDisplayPartKind.space)},g.keywordPart=ue,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.textOrKeywordPart=function(e){var t=g.stringToToken(e);return void 0===t?le(e):ue(t)},g.textPart=le,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=_e,g.mapToDisplayParts=de,g.typeToDisplayParts=function(t,r,n,i){return void 0===i&&(i=0),de(function(e){t.writeType(r,n,17408|i,e)})},g.symbolToDisplayParts=function(t,r,n,i,a){return void 0===a&&(a=0),de(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,de(function(e){t.writeSignature(r,n,i,void 0,e)})},g.isImportOrExportSpecifierName=function(e){return!!e.parent&&g.isImportOrExportSpecifier(e.parent)&&e.parent.propertyName===e},g.scriptKindIs=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=pe(e,t);return g.some(r,function(e){return e===i})},g.getScriptKind=pe,g.getSymbolTarget=function(e,t){for(var r=e;0!=(2097152&r.flags)||fe(r)&&r.target;)r=fe(r)&&r.target?r.target:g.skipAlias(r,t);return r},g.getUniqueSymbolId=function(e,t){return g.getSymbolId(g.skipAlias(e,t))},g.getFirstNonSpaceCharacterPosition=function(e,t){for(;g.isWhiteSpaceLike(e.charCodeAt(t));)t+=1;return t},g.getPrecedingNonSpaceCharacterPosition=function(e,t){for(;-1<t&&g.isWhiteSpaceSingleLine(e.charCodeAt(t));)--t;return t+1},g.getSynthesizedDeepClone=ge,g.getSynthesizedDeepCloneWithRenames=me,g.getSynthesizedDeepClones=function(e,t){return void 0===t&&(t=!0),e&&g.createNodeArray(e.map(function(e){return ge(e,t)}),e.hasTrailingComma)},g.suppressLeadingAndTrailingTrivia=he,g.suppressLeadingTrivia=ve,g.suppressTrailingTrivia=be,g.copyComments=function(e,t){var r=e.getSourceFile();(!function(e,t){for(var r=e.getFullStart(),n=e.getStart(),i=r;i<n;i++)if(10===t.charCodeAt(i))return!0;return!1}(e,r.text)?Te:Se)(e,t,r),Ce(e,t,r)},g.getUniqueName=function(e,t){for(var r=e,n=1;!g.isFileLevelUniqueName(t,r);n++)r=e+"_"+n;return r},g.getRenameLocation=function(e,t,r,n){for(var i=0,a=-1,o=0,s=e;o<s.length;o++){var c=s[o],u=c.fileName,c=c.textChanges;g.Debug.assert(u===t);for(var l=0,_=c;l<_.length;l++){var d=_[l],p=d.span,f=d.newText,d=function(e,t){if(g.startsWith(e,t))return 0;var r=e.indexOf(" "+t);-1===r&&(r=e.indexOf("."+t));-1===r&&(r=e.indexOf('"'+t));return-1===r?-1:r+1}(f,r);if(-1!==d&&(a=p.start+i+d,!n))return a;i+=f.length-p.length}}return g.Debug.assert(n),g.Debug.assert(0<=a),a},g.copyLeadingComments=Se,g.copyTrailingComments=Ce,g.copyTrailingAsLeadingComments=Te,g.needsParentheses=function(e){return g.isBinaryExpression(e)&&27===e.operatorToken.kind||g.isObjectLiteralExpression(e)},g.getContextualTypeFromParent=function(e,t){var r=e.parent;switch(r.kind){case 197:return t.getContextualType(r);case 209:var n=r.left,i=r.operatorToken,a=r.right;return Ee(i.kind)?t.getTypeAtLocation(e===a?n:a):t.getContextualType(e);case 277:return r.expression===e?Ne(r,t):void 0;default:return t.getContextualType(e)}},g.quote=function(e,t){var r=t.quotePreference||"auto",n=JSON.stringify(e);switch(r){case"auto":case"double":return n;case"single":return"'"+g.stripQuotes(n).replace("'","\\'").replace('\\"','"')+"'";default:return g.Debug.assertNever(r)}},g.isEqualityOperatorKind=Ee,g.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 211:case 198:return!0;default:return!1}},g.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},g.getSwitchedType=Ne,g.ANONYMOUS="anonymous function",g.getTypeNodeIfAccessible=function(e,t,r,n){function i(){o=!1}var a=r.getTypeChecker(),o=!0,n=a.typeToTypeNode(e,t,void 0,{trackSymbol:function(e,t,r){o=o&&0===a.isSymbolAccessible(e,t,r,!1).accessibility},reportInaccessibleThisError:i,reportPrivateInBaseOfClassExpression:i,reportInaccessibleUniqueSymbolError:i,moduleResolverHost:Z(r,n)});return o?n:void 0},g.syntaxRequiresTrailingCommaOrSemicolonOrASI=Ae,g.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=Fe,g.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Pe,g.syntaxRequiresTrailingSemicolonOrASI=we,g.syntaxMayBeASICandidate=g.or(Ae,Fe,Pe,we),g.positionIsASICandidate=function(t,e,r){return!!(e=g.findAncestor(e,function(e){return e.end!==t?"quit":g.syntaxMayBeASICandidate(e.kind)}))&&function(e,t){var r=e.getLastToken(t);if(r&&26===r.kind)return!1;if(Ae(e.kind)){if(r&&27===r.kind)return!1}else if(Pe(e.kind)){if((n=g.last(e.getChildren(t)))&&g.isModuleBlock(n))return!1}else if(Fe(e.kind)){if((n=g.last(e.getChildren(t)))&&g.isFunctionBlock(n))return!1}else if(!we(e.kind))return!1;if(228===e.kind)return!0;var n=O(e,g.findAncestor(e,function(e){return!e.parent}),t);return!n||19===n.kind||t.getLineAndCharacterOfPosition(e.getEnd()).line!==t.getLineAndCharacterOfPosition(n.getStart(t)).line}(e,r)},g.probablyUsesSemicolons=function(n){var i=0,a=0;return g.forEachChild(n,function e(t){var r;return we(t.kind)&&((r=t.getLastToken(n))&&26===r.kind?i++:a++),5<=i+a||g.forEachChild(t,e)}),0===i&&a<=1||.2<i/a},g.tryGetDirectories=function(e,t){return Me(e,e.getDirectories,t)||[]},g.tryReadDirectory=function(e,t,r,n,i){return Me(e,e.readDirectory,t,r,n,i)||g.emptyArray},g.tryFileExists=Ie,g.tryDirectoryExists=function(e,t){return Oe(function(){return g.directoryProbablyExists(t,e)})||!1},g.tryAndIgnoreErrors=Oe,g.tryIOAndConsumeErrors=Me,g.findPackageJsons=function(e,t,r){var n=[];return g.forEachAncestorDirectory(e,function(e){if(e===r)return!0;e=g.combinePaths(e,"package.json");Ie(t,e)&&n.push(e)}),n},g.findPackageJson=function(e,t){var r;return g.forEachAncestorDirectory(e,function(e){return"node_modules"===e||(!!(r=g.findConfigFile(e,function(e){return Ie(t,e)},"package.json"))||void 0)}),r},g.getPackageJsonsVisibleToFile=function(e,t){if(!t.fileExists)return[];var r=[];return g.forEachAncestorDirectory(g.getDirectoryPath(e),function(e){e=g.combinePaths(e,"package.json");!t.fileExists(e)||(e=Le(e,t))&&r.push(e)}),r},g.createPackageJsonInfo=Le,g.consumesNodeCoreModules=function(e){return g.some(e.imports,function(e){e=e.text;return g.JsTyping.nodeCoreModules.has(e)})},g.isInsideNodeModules=function(e){return g.contains(g.getPathComponents(e),"node_modules")},g.isDiagnosticWithLocation=Re,g.findDiagnosticForNode=function(e,t){var r=H(e);if(0<=(r=g.binarySearchKey(t,r,g.identity,g.compareTextSpans))){r=t[r];return g.Debug.assertEqual(r.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),g.cast(r,Re)}},g.getDiagnosticsWithinSpan=function(e,t){var r,n=g.binarySearchKey(t,e.start,function(e){return e.start},g.compareValues);for(n<0&&(n=~n);(null===(r=t[n-1])||void 0===r?void 0:r.start)===e.start;)n--;for(var i=[],a=g.textSpanEnd(e);;){var o=g.tryCast(t[n],Re);if(!o||o.start>a)break;g.textSpanContainsTextSpan(e,o)&&i.push(o),n++}return i},g.getRefactorContextSpan=function(e){var t=e.startPosition,e=e.endPosition;return g.createTextSpanFromBounds(t,void 0===e?t:e)},g.mapOneOrMany=function(e,t,r){return void 0===r&&(r=g.identity),e?g.isArray(e)?r(g.map(e,t)):t(e,0):void 0},g.firstOrOnly=function(e){return g.isArray(e)?g.first(e):e},g.getNameForExportedSymbol=function(e,t){return"export="===e.escapedName||"default"===e.escapedName?g.firstDefined(e.declarations,function(e){return g.isExportAssignment(e)&&g.isIdentifier(e.expression)?e.expression.text:void 0})||g.codefix.moduleSymbolToValidIdentifier(g.Debug.checkDefined(e.parent),t):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!Be(e)},g.isNonGlobalDeclaration=Be}(ts=ts||{}),function(h){h.createClassifier=function(){var y=h.createScanner(99,!1);function n(e,t,r){var n=0,i=0,a=[],o=function(e){switch(e){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return h.Debug.assertNever(e)}}(t),t=o.prefix,o=o.pushTemplate;e=t+e;var s=t.length;o&&a.push(15),y.setText(e);var c,u,l,_,d,p=0,f=[],g=0;do{n=y.scan(),h.isTrivia(n)||(function(){switch(n){case 43:case 67:v[i]||13!==y.reScanSlashToken()||(n=13);break;case 29:75===i&&g++;break;case 31:0<g&&g--;break;case 125:case 143:case 140:case 128:case 144:0<g&&!r&&(n=75);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 131:case 142:case 129:case 120:return!0;default:return!1}}(i,n))&&(n=75)}}(),i=n);var m=y.getTextPos();c=y.getTokenPos(),u=m,l=s,_=function(e){{if(h.isKeyword(e))return 3;if(function(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 98:case 97:case 123:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 73:case 72:case 74:case 69:case 70:case 71:case 63:case 64:case 65:case 67:case 68:case 62:case 27:case 60: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<=74)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 75:default:return h.isTemplateLiteralKind(e)?6:2}}(n),d=f,!void(8!==_&&(0===c&&0<l&&(c+=l),0<(u-=c)&&d.push(c-l,u,_))),m>=e.length&&(void 0!==(m=function(e,t,r){switch(t){case 10:if(!e.isUnterminated())return;for(var n=e.getTokenText(),i=n.length-1,a=0;92===n.charCodeAt(i-a);)a++;return 0==(1&a)?void 0:34===n.charCodeAt(0)?3:2;case 3:return e.isUnterminated()?1:void 0;default:if(h.isTemplateLiteralKind(t)){if(!e.isUnterminated())return;switch(t){case 17:return 5;case 14:return 4;default:return h.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 15===r?6:void 0}}(y,n,h.lastOrUndefined(a)))&&(p=m))}while(1!==n);return{endOfLineState:p,spans:f}}return{getClassificationsForLine:function(e,t,r){return function(e,t){for(var r=[],n=e.spans,i=0,a=0;a<n.length;a+=3){var o,s=n[a],c=n[a+1],u=n[a+2];0<=i&&(0<(o=s-i)&&r.push({length:o,classification:h.TokenClass.Whitespace})),r.push({length:c,classification:function(e){switch(e){case 1:return h.TokenClass.Comment;case 3:return h.TokenClass.Keyword;case 4:return h.TokenClass.NumberLiteral;case 25:return h.TokenClass.BigIntLiteral;case 5:return h.TokenClass.Operator;case 6:return h.TokenClass.StringLiteral;case 8:return h.TokenClass.Whitespace;case 10:return h.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return h.TokenClass.Identifier;default:return}}(u)}),i=s+c}t=t.length-i;0<t&&r.push({length:t,classification:h.TokenClass.Whitespace});return{entries:r,finalLexState:e.endOfLineState}}(n(e,t,r),e)},getEncodedLexicalClassifications:n}};var v=h.arrayToNumericMap([75,10,8,9,13,104,45,46,21,23,19,106,91],function(e){return e},function(){return!0});function m(e,t){switch(t){case 249:case 245:case 246:case 244:e.throwIfCancellationRequested()}}function a(a,o,s,c,u){var l=[];return s.forEachChild(function e(t){var r,n,i;t&&h.textSpanIntersectsWith(u,t.pos,t.getFullWidth())&&(m(o,t.kind),!h.isIdentifier(t)||h.nodeIsMissing(t)||!c.has(t.escapedText)||(i=(n=a.getSymbolAtLocation(t))&&function e(t,r,n){var i=t.getFlags();if(0!=(2885600&i))return 32&i?11:384&i?12:524288&i?16:1536&i?4&r||1&r&&_(t)?14:void 0:2097152&i?e(n.getAliasedSymbol(t),r,n):2&r?64&i?13:262144&i?15:void 0:void 0}(n,h.getMeaningFromLocation(t),a))&&(r=t.getStart(s),n=t.getEnd(),i=i,n-=r,h.Debug.assert(0<n,"Classification had non-positive length of "+n),l.push(r),l.push(n),l.push(i)),t.forEachChild(e))}),{spans:l,endOfLineState:0}}function _(e){return h.some(e.declarations,function(e){return h.isModuleDeclaration(e)&&1===h.getModuleInstanceState(e)})}function o(e){h.Debug.assert(e.spans.length%3==0);for(var t=e.spans,r=[],n=0;n<t.length;n+=3)r.push({textSpan:h.createTextSpan(t[n],t[n+1]),classificationType:function(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}(t[n+2])});return r}function n(i,u,e){var a=e.start,o=e.length,s=h.createScanner(99,!1,u.languageVariant,u.text),c=h.createScanner(99,!1,u.languageVariant,u.text),n=[];return g(u),{spans:n,endOfLineState:0};function l(e,t,r){n.push(e),n.push(t),n.push(r)}function _(e){for(s.setTextPos(e.pos);;){var t=s.getTextPos();if(!h.couldStartTrivia(u.text,t))return t;var r=s.scan(),n=s.getTextPos(),i=n-t;if(!h.isTrivia(r))return t;switch(r){case 4:case 5:continue;case 2:case 3:!function(e,t,r,n){if(3===t){var i=h.parseIsolatedJSDocComment(u.text,r,n);if(i&&i.jsDoc)return i.jsDoc.parent=e,function(e){var t=e.pos;if(e.tags)for(var r=0,n=e.tags;r<n.length;r++){var i=n[r];switch(i.pos!==t&&d(t,i.pos-t),l(i.pos,1,10),l(i.tagName.pos,i.tagName.end-i.tagName.pos,18),t=i.tagName.end,i.kind){case 317:!function(e){e.isNameFirst&&(d(t,e.name.pos-t),l(e.name.pos,e.name.end-e.name.pos,17),t=e.name.end),e.typeExpression&&(d(t,e.typeExpression.pos-t),g(e.typeExpression),t=e.typeExpression.end),e.isNameFirst||(d(t,e.name.pos-t),l(e.name.pos,e.name.end-e.name.pos,17),t=e.name.end)}(i);break;case 321:!function(){for(var e=0,t=i.getChildren();e<t.length;e++)g(t[e])}(),t=i.end;break;case 320:case 318:g(i.typeExpression),t=i.end}}t!==e.end&&d(t,e.end-t)}(i.jsDoc),0}else if(2===t&&function(e,t){var r=/(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,n=u.text.substr(e,t),n=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im.exec(n);if(!n)return!1;if(!(n[3]&&n[3]in h.commentPragmas))return!1;var i=e;d(i,n[1].length),l(i+=n[1].length,n[2].length,10),l(i+=n[2].length,n[3].length,21),i+=n[3].length;var a=n[4],o=i;for(;;){var s=r.exec(a);if(!s)break;var c=i+s.index;o<c&&(d(o,c-o),o=c),l(o,s[1].length,22),o+=s[1].length,s[2].length&&(d(o,s[2].length),o+=s[2].length),l(o,s[3].length,5),o+=s[3].length,s[4].length&&(d(o,s[4].length),o+=s[4].length),l(o,s[5].length,24),o+=s[5].length}(i+=n[4].length)>o&&d(o,i-o);n[5]&&(l(i,n[5].length,10),i+=n[5].length);t=e+t;i<t&&d(i,t-i);return!0}(r,n))return;d(r,n)}(e,r,t,i),s.setTextPos(n);continue;case 7:var a=u.text,o=a.charCodeAt(t);if(60===o||62===o){l(t,i,1);continue}h.Debug.assert(124===o||61===o),function(e,t,r){var n;for(n=t;n<r&&!h.isLineBreak(e.charCodeAt(n));n++);for(l(t,n-t,1),c.setTextPos(n);c.getTextPos()<r;)!function(){var e=c.getTextPos(),t=c.scan(),r=c.getTextPos();(t=f(t))&&l(e,r-e,t)}()}(a,t,n);break;case 6:break;default:h.Debug.assertNever(r)}}}function d(e,t){l(e,t,1)}function p(e){if(h.isJSDoc(e))return 1;if(h.nodeIsMissing(e))return 1;var t=function(e){switch(e.parent&&e.parent.kind){case 268:if(e.parent.tagName===e)return 19;break;case 269:if(e.parent.tagName===e)return 20;break;case 267:if(e.parent.tagName===e)return 21;break;case 273:if(e.parent.name===e)return 22}return}(e);if(h.isToken(e)||11===e.kind||void 0!==t){var r=11===e.kind?e.pos:_(e),n=e.end-r;return h.Debug.assert(0<=n),0<n&&((e=t||f(e.kind,e))&&l(r,n,e)),1}}function f(e,t){if(h.isKeyword(e))return 3;if((29===e||31===e)&&t&&h.getTypeArgumentOrTypeParameterList(t.parent))return 10;if(h.isPunctuation(e)){if(t){var r=t.parent;if(62===e&&(242===r.kind||159===r.kind||156===r.kind||273===r.kind))return 5;if(209===r.kind||207===r.kind||208===r.kind||210===r.kind)return 5}return 10}if(8===e)return 4;if(9===e)return 25;if(10===e)return t&&273===t.parent.kind?24:6;if(13===e)return 6;if(h.isTemplateLiteralKind(e))return 6;if(11===e)return 23;if(75===e){if(t)switch(t.parent.kind){case 245:return t.parent.name===t?11:void 0;case 155:return t.parent.name===t?15:void 0;case 246:return t.parent.name===t?13:void 0;case 248:return t.parent.name===t?12:void 0;case 249:return t.parent.name===t?14:void 0;case 156:return t.parent.name===t?h.isThisIdentifier(t)?3:17:void 0}return 2}}function g(e){if(e&&h.decodedTextSpanIntersectsWith(a,o,e.pos,e.getFullWidth())){m(i,e.kind);for(var t=0,r=e.getChildren(u);t<r.length;t++){var n=r[t];p(n)||g(n)}}}}h.getSemanticClassifications=function(e,t,r,n,i){return o(a(e,t,r,n,i))},h.getEncodedSemanticClassifications=a,h.getSyntacticClassifications=function(e,t,r){return o(n(e,t,r))},h.getEncodedSyntacticClassifications=n}(ts=ts||{}),function(E){var f;!function(e){function u(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(function(e){var t=e.name,r=e.kind,n=e.span;return{name:t,kind:r,kindModifiers:c(e.extension),sortText:f.SortText.LocationPriority,replacementSpan:n}})}}function c(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".tsbuildinfo":return E.Debug.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return E.Debug.assertNever(e)}}function l(e,t,r,n,i,a){var o,s,c,u,l,_,d=t.parent;switch(d.kind){case 187:switch(d.parent.kind){case 169:return{kind:2,types:h(n.getTypeArgumentConstraint(d)),isNewIdentifier:!1};case 185:return y(n.getTypeFromTypeNode(d.parent.objectType));case 188:return{kind:0,paths:x(e,t,i,a,n)};case 178:if(!E.isTypeReferenceNode(d.parent.parent))return;var p=(l=d.parent,_=d,E.mapDefined(l.types,function(e){return e!==_&&E.isLiteralTypeNode(e)&&E.isStringLiteral(e.literal)?e.literal.text:void 0}));return{kind:2,types:h(n.getTypeArgumentConstraint(d.parent)).filter(function(e){return!E.contains(p,e.value)}),isNewIdentifier:!1};default:return}case 281:return E.isObjectLiteralExpression(d.parent)&&d.name===t?y(n.getContextualType(d.parent)):m();case 195:var f=d.expression,g=d.argumentExpression;return t===g?y(n.getTypeAtLocation(f)):void 0;case 196:case 197:if(!E.isRequireCall(d,!1)&&!E.isImportCall(d)){var f=E.SignatureHelp.getArgumentInfoForCompletions(t,r,e);return f?(o=f,s=n,c=!1,u=E.createMap(),f=[],s.getResolvedSignature(o.invocation,f,o.argumentCount),{kind:2,types:E.flatMap(f,function(e){if(E.signatureHasRestParameter(e)||!(o.argumentCount>e.parameters.length)){e=s.getParameterType(e,o.argumentIndex);return c=c||!!(4&e.flags),h(e,u)}}),isNewIdentifier:c}):m()}case 254:case 260:case 265:return{kind:0,paths:x(e,t,i,a,n)};default:return m()}function m(){return{kind:2,types:h(E.getContextualTypeFromParent(t,n)),isNewIdentifier:!1}}}function y(e){return e&&{kind:1,symbols:e.getApparentProperties().filter(function(e){return!E.isPrivateIdentifierPropertyDeclaration((E.isTransientSymbol(e)&&e.syntheticOrigin?e.syntheticOrigin:e).valueDeclaration)}),hasIndexSignature:E.hasIndexSignature(e)}}function h(e,t){return void 0===t&&(t=E.createMap()),e?(e=E.skipConstraint(e)).isUnion()?E.flatMap(e.types,function(e){return h(e,t)}):!e.isStringLiteral()||1024&e.flags||!E.addToSeen(t,e.value)?E.emptyArray:[e]:E.emptyArray}function v(e,t,r){return{name:e,kind:t,extension:r}}function b(e){return v(e,"directory",void 0)}function _(e,t,r){var n,i,a=(n=e,i=t,e=Math.max(n.lastIndexOf(E.directorySeparator),n.lastIndexOf("\\")),t=-1!==e?e+1:0,0==(e=n.length-t)||E.isIdentifierText(n.substr(t,e),99)?void 0:E.createTextSpan(i+t,e));return r.map(function(e){return{name:e.name,kind:e.kind,extension:e.extension,span:a}})}function x(e,t,r,n,i){return _(t.text,t.getStart(e)+1,(a=e,e=t,t=r,r=n,n=i,i=E.normalizeSlashes(e.text),e=a.path,a=E.getDirectoryPath(e),function(e){if(e&&2<=e.length&&46===e.charCodeAt(0)){var t=3<=e.length&&46===e.charCodeAt(1)?2:1,t=e.charCodeAt(t);return 47===t||92===t}return!1}(i)||!t.baseUrl&&(E.isRootedDiskPath(i)||E.isUrl(i))?function(e,t,r,n,i){var a=m(r);return r.rootDirs?function(e,t,r,n,i,a,o){var s=i.project||a.getCurrentDirectory(),i=!(a.useCaseSensitiveFileNames&&a.useCaseSensitiveFileNames()),i=function(e,t,r,n){e=e.map(function(e){return E.normalizePath(E.isRootedDiskPath(e)?e:E.combinePaths(t,e))});var i=E.firstDefined(e,function(e){return E.containsPath(e,r,t,n)?r.substr(e.length):void 0});return E.deduplicate(__spreadArrays(e.map(function(e){return E.combinePaths(e,i)}),[r]),E.equateStringsCaseSensitive,E.compareStringsCaseSensitive)}(e,s,r,i);return E.flatMap(i,function(e){return D(t,e,n,a,o)})}(r.rootDirs,e,t,a,r,n,i):D(e,t,a,n,i)}(i,a,t,r,e):function(t,e,r,n,i){var a=r.baseUrl,o=r.paths,s=[],c=m(r);{var u;a&&(u=r.project||n.getCurrentDirectory(),a=E.normalizePath(E.combinePaths(u,a)),D(t,a,c,n,void 0,s),o&&S(s,t,a,c.extensions,o,n))}for(var o=C(t),l=0,_=function(t,e,r){r=r.getAmbientModules().map(function(e){return E.stripQuotes(e.name)}).filter(function(e){return E.startsWith(e,t)});if(void 0===e)return r;var n=E.ensureTrailingDirectorySeparator(e);return r.map(function(e){return E.removePrefix(e,n)})}(t,o,i);l<_.length;l++){var d=_[l];s.push(v(d,"external module name",void 0))}if(T(n,r,e,o,c,s),E.getEmitModuleResolutionKind(r)===E.ModuleResolutionKind.NodeJs){var p=!1;if(void 0===o)for(var f=0,g=function(e,t){if(!e.readFile||!e.fileExists)return E.emptyArray;for(var r=[],n=0,i=E.findPackageJsons(t,e);n<i.length;n++)for(var a=i[n],o=E.readJson(a,e),s=0,c=k;s<c.length;s++){var u=c[s],l=o[u];if(l)for(var _ in l)l.hasOwnProperty(_)&&!E.startsWith(_,"@types/")&&r.push(_)}return r}(n,e);f<g.length;f++)!function(t){s.some(function(e){return e.name===t})||(p=!0,s.push(v(t,"external module name",void 0)))}(g[f]);p||E.forEachAncestorDirectory(e,function(e){e=E.combinePaths(e,"node_modules");E.tryDirectoryExists(n,e)&&D(t,e,c,n,void 0,s)})}return s}(i,a,t,r,n)));var a}function m(e,t){return void 0===t&&(t=!1),{extensions:(r=e,e=E.getSupportedExtensions(r),r.resolveJsonModule&&E.getEmitModuleResolutionKind(r)===E.ModuleResolutionKind.NodeJs?e.concat(".json"):e),includeExtensions:t};var r}function D(e,t,r,n,i,a){var o=r.extensions,s=r.includeExtensions;void 0===a&&(a=[]),void 0===e&&(e=""),e=E.normalizeSlashes(e),E.hasTrailingDirectorySeparator(e)||(e=E.getDirectoryPath(e)),""===e&&(e="."+E.directorySeparator),e=E.ensureTrailingDirectorySeparator(e);var c=E.resolvePath(t,e),r=E.hasTrailingDirectorySeparator(c)?c:E.getDirectoryPath(c),u=!(n.useCaseSensitiveFileNames&&n.useCaseSensitiveFileNames());if(!E.tryDirectoryExists(n,r))return a;e=E.tryReadDirectory(n,r,o,void 0,["./*"]);if(e){for(var l=E.createMap(),_=0,d=e;_<d.length;_++){var p,f=d[_],f=E.normalizePath(f);i&&0===E.comparePaths(f,i,t,u)||(p=s||E.fileExtensionIs(f,".json")?E.getBaseFileName(f):E.removeFileExtension(E.getBaseFileName(f)),l.set(p,E.tryGetExtensionFromPath(f)))}l.forEach(function(e,t){a.push(v(t,"script",e))})}e=E.tryGetDirectories(n,r);if(e)for(var g=0,m=e;g<m.length;g++){var y=m[g],y=E.getBaseFileName(E.normalizePath(y));"@types"!==y&&a.push(b(y))}e=E.findPackageJson(r,n);return!e||"object"==typeof(e=E.readJson(e,n).typesVersions)&&(e=(e=E.getPackageJsonTypesVersionsPaths(e))&&e.paths,c=c.slice(E.ensureTrailingDirectorySeparator(r).length),e&&S(a,c,r,o,e,n)),a}function S(n,e,t,r,i,a){for(var o in i)if(E.hasProperty(i,o)){var s=i[o];if(s)for(var c=0,u=function(e,t,r,n,i,a){if(!E.endsWith(e,"*"))return E.stringContains(e,"*")?E.emptyArray:s(e);var e=e.slice(0,e.length-1),o=E.tryRemovePrefix(r,e);return void 0===o?s(e):E.flatMap(t,function(e){return function(e,t,r,n,i){if(!i.readDirectory)return;var a=E.hasZeroOrOneAsteriskCharacter(r)?E.tryParsePattern(r):void 0;if(!a)return;var o=E.resolvePath(a.prefix),s=E.hasTrailingDirectorySeparator(a.prefix)?o:E.getDirectoryPath(o),r=E.hasTrailingDirectorySeparator(a.prefix)?"":E.getBaseFileName(o),o=p(e),e=o?E.hasTrailingDirectorySeparator(e)?e:E.getDirectoryPath(e):void 0,s=o?E.combinePaths(s,r+e):s,c=E.normalizePath(a.suffix),u=E.normalizePath(E.combinePaths(t,s)),l=o?u:E.ensureTrailingDirectorySeparator(u)+r,r=c?"**/*":"./*",r=E.mapDefined(E.tryReadDirectory(i,u,n,void 0,[r]),function(e){var t=E.tryGetExtensionFromPath(e),e=_(e);return void 0===e?void 0:v(E.removeFileExtension(e),"script",t)}),i=E.mapDefined(E.tryGetDirectories(i,u).map(function(e){return E.combinePaths(u,e)}),function(e){e=_(e);return void 0===e?void 0:b(e)});return __spreadArrays(r,i);function _(e){var t,r,e=(t=E.normalizePath(e),r=l,e=c,E.startsWith(t,r)&&E.endsWith(t,e)?t.slice(r.length,t.length-e.length):void 0);return void 0===e?void 0:(e=e)[0]===E.directorySeparator?e.slice(1):e}}(o,n,e,i,a)});function s(e){return E.startsWith(e,r)?[b(e)]:E.emptyArray}}(o,s,e,t,r,a);c<u.length;c++){var l=u[c];!function(t,e,r){n.some(function(e){return e.name===t})||n.push(v(t,e,r))}(l.name,l.kind,l.extension)}}}function C(e){return p(e)?E.hasTrailingDirectorySeparator(e)?e:E.getDirectoryPath(e):void 0}function T(a,o,e,s,c,u){void 0===u&&(u=[]);for(var l=E.createMap(),t=0,r=E.tryAndIgnoreErrors(function(){return E.getEffectiveTypeRoots(o,a)})||E.emptyArray;t<r.length;t++)d(r[t]);for(var n=0,i=E.findPackageJsons(e,a);n<i.length;n++){var _=i[n];d(E.combinePaths(E.getDirectoryPath(_),"node_modules/@types"))}return u;function d(e){if(E.tryDirectoryExists(a,e))for(var t=0,r=E.tryGetDirectories(a,e);t<r.length;t++){var n=r[t],i=E.unmangleScopedPackageName(n);o.types&&!E.contains(o.types,i)||(void 0===s?l.has(i)||(u.push(v(i,"external module name",void 0)),l.set(i,!0)):(n=E.combinePaths(e,n),void 0!==(i=E.tryRemoveDirectoryPrefix(s,i,E.hostGetCanonicalFileName(a)))&&D(i,n,c,a,void 0,u)))}}}e.getStringLiteralCompletions=function(e,t,r,n,i,a,o,s){var c;if(E.isInReferenceComment(e,t))return(c=function(e,t,r,n){var i=E.getTokenAtPosition(e,t),a=E.getLeadingCommentRanges(e.text,i.pos),o=a&&E.find(a,function(e){return t>=e.pos&&t<=e.end});if(!o)return;var s=e.text.slice(o.pos,t),c=d.exec(s);if(!c)return;i=c[1],a=c[2],s=c[3],c=E.getDirectoryPath(e.path),r="path"===a?D(s,c,m(r,!0),n,e.path):"types"===a?T(n,r,c,C(s),m(r)):E.Debug.fail();return _(s,o.pos+i.length,r)}(e,t,i,a))&&u(c);if(E.isInString(e,t,r)&&r&&E.isStringLiteralLike(r))return function(e,t,r,n,i,a){if(void 0===e)return;switch(e.kind){case 0:return u(e.paths);case 1:var o=[];return f.getCompletionEntriesFromSymbols(e.symbols,o,t,r,r,n,99,i,4,a),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,entries:o};case 2:o=e.types.map(function(e){return{name:e.value,kindModifiers:"",kind:"string",sortText:"0",replacementSpan:E.getReplacementSpanForContextToken(t)}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,entries:o};default:return E.Debug.assertNever(e)}}(c=l(e,r,t,n,i,a),r,e,n,o,s)},e.getStringLiteralCompletionDetails=function(e,t,r,n,i,a,o,s){if(n&&E.isStringLiteralLike(n)){o=l(t,n,r,i,a,o);return o&&function(t,e,r,n,i,a){switch(r.kind){case 0:return(o=E.find(r.paths,function(e){return e.name===t}))&&f.createCompletionDetails(t,c(o.extension),o.kind,[E.textPart(t)]);case 1:var o;return(o=E.find(r.symbols,function(e){return e.name===t}))&&f.createCompletionDetailsForSymbol(o,i,n,e,a);case 2:return E.find(r.types,function(e){return e.value===t})?f.createCompletionDetails(t,"","type",[E.textPart(t)]):void 0;default:return E.Debug.assertNever(r)}}(e,n,o,t,i,s)}},(e={})[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types";var d=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,k=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function p(e){return E.stringContains(e,E.directorySeparator)}}((f=E.Completions||(E.Completions={})).StringCompletions||(f.StringCompletions={}))}(ts=ts||{}),function(ce){!function(h){var $,t,e;function C(e){return!!(e&&4&e.kind)}function _(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function A(e,t){return ce.isSourceFileJS(e)&&!ce.isCheckJsEnabledForFile(e,t)}function F(e,t){return"object"==typeof e?ce.pseudoBigIntToString(e)+"n":ce.isString(e)?ce.quote(e,t):JSON.stringify(e)}function T(e,t){return/^\d+$/.test(e)?e:ce.quote(e,t)}function k(e){return C(e)?ce.stripQuotes(e.moduleSymbol.name):1===(null==e?void 0:e.kind)?t.ThisProperty:void 0}function P(e,t,r,n,i,a,o,s,c,u,l,_,d,p,f,g){for(var m=ce.timestamp(),y=ce.createMap(),h=0,v=e;h<v.length;h++){var b,x=v[h],D=f?f[ce.getSymbolId(x)]:void 0,S=E(x,o,D,c,!!_);S&&(b=S.name,S=S.needsConvertPropertyAccess,y.get(b)||(S=function(e,t,r,n,i,a,o,s,c,u,l,_,d){var p,f=ce.getReplacementSpanForContextToken(r),g=c&&!!(16&c.kind),r=c&&!!(2&c.kind)||s;if(c&&1&c.kind)p=s?"this"+(g?"?.":"")+"["+T(o,d)+"]":"this"+(g?"?.":".")+o;else if((r||g)&&l){p=r?s?"["+T(o,d)+"]":"["+o+"]":o,(g||l.questionDotToken)&&(p="?."+p);r=ce.findChildOfKind(l,24,i)||ce.findChildOfKind(l,28,i);if(!r)return;var m=(ce.startsWith(o,l.name.text)?l.name:r).end,f=ce.createTextSpanFromBounds(r.getStart(i),m)}if(_&&(void 0===p&&(p=o),p="{"+p+"}","boolean"!=typeof _&&(f=ce.createTextSpanFromNode(_,i))),c&&8&c.kind&&l&&(void 0===p&&(p=o),m="",(_=ce.findPrecedingToken(l.pos,i))&&ce.positionIsASICandidate(_.end,_.parent,i)&&(m=";"),m+="(await "+l.expression.getText()+")",p=s?""+m+p:m+(g?"?.":".")+p,f=ce.createTextSpanFromBounds(l.getStart(i),l.end)),void 0===p||d.includeCompletionsWithInsertText)return{name:o,kind:ce.SymbolDisplay.getSymbolKind(a,e,n),kindModifiers:ce.SymbolDisplay.getSymbolModifiers(e),sortText:t,source:k(c),hasAction:c&&C(c)||void 0,isRecommended:(a=a,(e=e)===(u=u)||!!(1048576&e.flags)&&a.getExportSymbolOfSymbol(e)===u||void 0),insertText:p,replacementSpan:f}}(x,g&&g[ce.getSymbolId(x)]||$.LocationPriority,r,n,i,a,b,S,D,p,l,d,u))&&(x=!(D||void 0===x.parent&&!ce.some(x.declarations,function(e){return e.getSourceFile()===n.getSourceFile()})),y.set(b,x),t.push(S)))}return s("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(ce.timestamp()-m)),{has:function(e){return y.has(e)},add:function(e){return y.set(e,!0)}}}function v(e,t,r,n,i,a,o){var s=e.getCompilerOptions(),c=g(e,t,r,A(r,s),n,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},i,a);if(!c)return{type:"none"};if(0!==c.kind)return{type:"request",request:c};var n=c.symbols,a=c.literals,u=c.location,l=c.completionKind,_=c.symbolToOriginInfoMap,d=c.previousToken,p=c.isJsxInitializer,f=c.isTypeOnlyLocation,a=ce.find(a,function(e){return F(e,o)===i.name});return void 0!==a?{type:"literal",literal:a}:ce.firstDefined(n,function(e){var t=_[ce.getSymbolId(e)],r=E(e,s.target,t,l,c.isJsxIdentifierExpected);return r&&r.name===i.name&&k(t)===i.source?{type:"symbol",symbol:e,location:u,symbolToOriginInfoMap:_,previousToken:d,isJsxInitializer:p,isTypeOnlyLocation:f}:void 0})||{type:"none"}}function b(e,t,r){return u(e,"",t,[ce.displayPart(e,r)])}function x(t,e,r,n,i,a,o){var s=e.runWithCancellationToken(i,function(e){return ce.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(e,t,r,n,n,7)}),c=s.displayParts,e=s.documentation,i=s.symbolKind,s=s.tags;return u(t.name,ce.SymbolDisplay.getSymbolModifiers(t),i,c,e,s,a,o)}function u(e,t,r,n,i,a,o,s){return{name:e,kindModifiers:t,kind:r,displayParts:n,documentation:i,tags:a,codeActions:o,source:s}}function ee(e,t,r){var n=r.getAccessibleSymbolChain(e,t,67108863,!1);return n?ce.first(n):e.parent&&(e.parent.declarations.some(function(e){return 290===e.kind})?e:ee(e.parent,t,r))}function g(p,f,g,l,u,m,y,_){var h=p.getTypeChecker(),e=ce.timestamp(),t=ce.getTokenAtPosition(g,u);f("getCompletionData: Get current token: "+(ce.timestamp()-e)),e=ce.timestamp();var r=ce.isInComment(g,u,t);f("getCompletionData: Is inside comment: "+(ce.timestamp()-e));var v=!1,d=!1;if(r){if(ce.hasDocComment(g,u)){if(64===g.text.charCodeAt(u-1))return{kind:1};var n=ce.getLineStartPositionForPosition(u,g);if(!g.text.substring(n,u).match(/[^\*|\s|(/\*\*)]/))return{kind:2}}n=function(e,t){e=ce.findAncestor(e,ce.isJSDoc);return e&&e.tags&&(ce.rangeContainsPosition(e,t)?ce.findLast(e.tags,function(e){return e.pos<t}):void 0)}(t,u);if(n){if(n.tagName.pos<=u&&u<=n.tagName.end)return{kind:1};if(function(e){switch(e.kind){case 317:case 323:case 318:case 320:case 322:return!0;default:return!1}}(n)&&n.typeExpression&&294===n.typeExpression.kind&&((t=ce.getTokenAtPosition(g,u))&&(ce.isDeclarationName(t)||323===t.parent.kind&&t.parent.name===t)||(v=Z(n.typeExpression))),!v&&ce.isJSDocParameterTag(n)&&(ce.nodeIsMissing(n.name)||n.name.pos<=u&&u<=n.name.end))return{kind:3,tag:n}}if(!v)return void f("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}e=ce.timestamp();var b=ce.findPrecedingToken(u,g,void 0);f("getCompletionData: Get previous token 1: "+(ce.timestamp()-e));var x=b;x&&u<=x.end&&(ce.isIdentifierOrPrivateIdentifier(x)||ce.isKeyword(x.kind))&&(R=ce.timestamp(),x=ce.findPrecedingToken(x.getFullStart(),g,void 0),f("getCompletionData: Get previous token 2: "+(ce.timestamp()-R)));var i,a,o,D=t,S=!1,C=!1,s=!1,c=!1,T=!1,k=!1,E=ce.getTouchingPropertyName(g,u);if(x){if(a=x,o=ce.timestamp(),a=function(e){return(ce.isRegularExpressionLiteral(e)||ce.isStringTextContainingNode(e))&&(ce.rangeContainsPositionExclusive(ce.createTextRangeFromSpan(ce.createTextSpanFromNode(e)),u)||u===e.end&&(!!e.isUnterminated||ce.isRegularExpressionLiteral(e)))}(a)||function(e){var t=e.parent,r=t.kind;switch(e.kind){case 27:return 242===r||function(e){return 243===e.parent.kind&&!ce.isPossiblyTypeArgumentPosition(e,g,h)}(e)||225===r||248===r||G(r)||246===r||190===r||247===r||ce.isClassLike(t)&&!!t.typeParameters&&t.typeParameters.end>=e.pos;case 24:return 190===r;case 58:return 191===r;case 22:return 190===r;case 20:return 280===r||G(r);case 18:return 248===r;case 29:return 245===r||214===r||246===r||247===r||ce.isFunctionLikeKind(r);case 120:return 159===r&&!ce.isClassLike(t.parent);case 25:return 156===r||!!t.parent&&190===t.parent.kind;case 119:case 117:case 118:return 156===r&&!ce.isConstructorDeclaration(t.parent);case 123:return 258===r||263===r||256===r;case 131:case 142:return!oe(e);case 80:case 88:case 114:case 94:case 109:case 96:case 115:case 81:case 145:return!0;case 41:return ce.isFunctionLike(e.parent)&&!ce.isMethodDeclaration(e.parent)}if(re(ne(e))&&oe(e))return!1;if(H(e)&&(!ce.isIdentifier(e)||ce.isParameterPropertyModifier(ne(e))||Z(e)))return!1;switch(ne(e)){case 122:case 80:case 81:case 130:case 88:case 94:case 114:case 115:case 117:case 118:case 119:case 120:case 109:return!0;case 126:return ce.isPropertyDeclaration(e.parent)}return ce.isDeclarationName(e)&&!ce.isJsxAttribute(e.parent)&&!(ce.isClassLike(e.parent)&&(e!==b||u>b.end))}(a)||function(e){if(8!==e.kind)return!1;e=e.getFullText();return"."===e.charAt(e.length-1)}(a)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(268===e.parent.kind)return 268!==E.parent.kind;if(269===e.parent.kind||267===e.parent.kind)return!!e.parent.parent&&266===e.parent.parent.kind}return!1}(a),f("getCompletionsAtPosition: isCompletionListBlocker: "+(ce.timestamp()-o)),a)return void f("Returning an empty list because completion was requested in an invalid position.");var N=x.parent;if(24===x.kind||28===x.kind)switch(S=24===x.kind,C=28===x.kind,N.kind){case 194:if((D=(i=N).expression).end===x.pos&&ce.isCallExpression(D)&&D.getChildCount(g)&&21!==ce.last(D.getChildren(g)).kind)return;break;case 153:D=N.left;break;case 249:D=N.name;break;case 188:case 219:D=N;break;default:return}else if(1===g.languageVariant){if(N&&194===N.kind&&(N=(x=N).parent),t.parent===E)switch(t.kind){case 31:266!==t.parent.kind&&268!==t.parent.kind||(E=t);break;case 43:267===t.parent.kind&&(E=t)}switch(N.kind){case 269:43===x.kind&&(c=!0,E=x);break;case 209:if(!se(N))break;case 267:case 266:case 268:k=!0,29===x.kind&&(s=!0,E=x);break;case 273:switch(b.kind){case 62:T=!0;break;case 75:k=!0,N!==b.parent&&!N.initializer&&ce.findChildOfKind(N,62,g)&&(T=b)}}}}var e=ce.timestamp(),A=5,F=!1,P=0,w=[],I=[],O=[],M=_.getImportSuggestionsCache&&_.getImportSuggestionsCache(),L=q();if(S||C)!function(){A=2;var e,t,r,n=ce.isLiteralImportTypeNode(D),i=v||n&&!D.isTypeOf||ce.isPartOfTypeNode(D.parent)||ce.isPossiblyTypeArgumentPosition(x,g,h),a=ce.isInRightSideOfInternalImportEqualsDeclaration(D);if(ce.isEntityName(D)||n){var o=ce.isModuleDeclaration(D.parent);o&&(F=!0);var s=h.getSymbolAtLocation(D);if(s&&1920&(s=ce.skipAlias(s,h)).flags){var c=h.getExportsOfModule(s);ce.Debug.assertEachIsDefined(c,"getExportsOfModule() should all be defined");for(var u=function(e){return h.isValidPropertyAccess(n?D:D.parent,e.name)},l=function(e){return W(e)},_=o?function(e){return!!(1920&e.flags)&&!e.declarations.every(function(e){return e.parent===D.parent})}:a?function(e){return l(e)||u(e)}:i?l:u,d=0,p=c;d<p.length;d++){var f=p[d];_(f)&&w.push(f)}return!i&&s.declarations&&s.declarations.some(function(e){return 290!==e.kind&&249!==e.kind&&248!==e.kind})&&(e=h.getTypeOfSymbolAtLocation(s,D).getNonOptionalType(),t=!1,e.isNullableType()&&((r=S&&!C&&!1!==m.includeAutomaticOptionalChainCompletions)||C)&&(e=e.getNonNullableType(),r&&(t=!0)),U(e,!!(32768&D.flags),t))}}if(ce.isMetaProperty(D)&&(99===D.keywordToken||96===D.keywordToken)&&x===D.getChildAt(1)){s=99===D.keywordToken?"target":"meta";return w.push(h.createSymbol(4,ce.escapeLeadingUnderscores(s)))}i||(e=h.getTypeAtLocation(D).getNonOptionalType(),t=!1,e.isNullableType()&&((r=S&&!C&&!1!==m.includeAutomaticOptionalChainCompletions)||C)&&(e=e.getNonNullableType(),r&&(t=!0)),U(e,!!(32768&D.flags),t))}();else if(s){var R=h.getJsxIntrinsicTagNamesAt(E);ce.Debug.assertEachIsDefined(R,"getJsxIntrinsicTagNames() should all be defined"),K(),w=R.concat(w),A=3,P=0}else if(c){var B=x.parent.parent.openingElement.tagName,B=h.getSymbolAtLocation(B);B&&(w=[B]),A=3,P=0}else if(!K())return;f("getCompletionData: Semantic work: "+(ce.timestamp()-e));var j,J,z,B=b&&function(e,t,r,n){var i=e.parent;switch(e.kind){case 75:return ce.getContextualTypeFromParent(e,n);case 62:switch(i.kind){case 242:return n.getContextualType(i.initializer);case 209:return n.getTypeAtLocation(i.left);case 273:return n.getContextualTypeForJsxAttribute(i);default:return}case 99:return n.getContextualType(i);case 78:return ce.getSwitchedType(ce.cast(i,ce.isCaseClause),n);case 18:return ce.isJsxExpression(i)&&266!==i.parent.kind?n.getContextualTypeForJsxAttribute(i.parent):void 0;default:var a=ce.SignatureHelp.getArgumentInfoForCompletions(e,t,r);return a?n.getContextualTypeForArgumentAtIndex(a.invocation,a.argumentIndex+(27===e.kind?1:0)):ce.isEqualityOperatorKind(e.kind)&&ce.isBinaryExpression(i)&&ce.isEqualityOperatorKind(i.operatorToken.kind)?n.getTypeAtLocation(i.left):n.getContextualType(e)}}(b,u,g,h),e=ce.mapDefined(B&&(B.isUnion()?B.types:[B]),function(e){return e.isLiteral()?e.value:void 0}),J=b&&B&&(j=b,J=B,z=h,ce.firstDefined(J&&(J.isUnion()?J.types:[J]),function(e){e=e&&e.symbol;return e&&424&e.flags&&!ce.isAbstractConstructorSymbol(e)?ee(e,j,z):void 0}));return{kind:0,symbols:w,completionKind:A,isInSnippetScope:d,propertyAccessToConvert:i,isNewIdentifierLocation:F,location:E,keywordFilters:P,literals:e,symbolToOriginInfoMap:I,recommendedCompletion:J,previousToken:b,isJsxInitializer:T,insideJsDocTagTypeExpression:v,symbolToSortTextMap:O,isTypeOnlyLocation:L,isJsxIdentifierExpected:k};function U(e,t,r){F=!!e.getStringIndexType(),C&&ce.some(e.getCallSignatures())&&(F=!0);var n=188===D.kind?D:D.parent;if(l)w.push.apply(w,ae(e,h));else for(var i=0,a=e.getApparentProperties();i<a.length;i++){var o=a[i];h.isValidPropertyAccessForCompletions(n,e,o)&&V(o,!1,r)}if(t&&m.includeCompletionsWithInsertText){var s=h.getPromisedTypeOfPromise(e);if(s)for(var c=0,u=s.getApparentProperties();c<u.length;c++){o=u[c];h.isValidPropertyAccessForCompletions(n,s,o)&&V(o,!0,r)}}}function V(e,t,r){var n,i=ce.firstDefined(e.declarations,function(e){return ce.tryCast(ce.getNameOfDeclaration(e),ce.isComputedPropertyName)});function a(e){m.includeCompletionsWithInsertText&&(t&&!I[ce.getSymbolId(e)]?I[ce.getSymbolId(e)]={kind:o(8)}:r&&(I[ce.getSymbolId(e)]={kind:16}))}function o(e){return r?16|e:e}i?(n=(i=(n=function e(t){return ce.isIdentifier(t)?t:ce.isPropertyAccessExpression(t)?e(t.expression):void 0}(i.expression))&&h.getSymbolAtLocation(n))&&ee(i,x,h))&&!I[ce.getSymbolId(n)]?(w.push(n),i=n.parent,I[ce.getSymbolId(n)]=i&&ce.isExternalModuleSymbol(i)?{kind:o(6),moduleSymbol:i,isDefaultExport:!1}:{kind:o(2)}):m.includeCompletionsWithInsertText&&(a(e),w.push(e)):(a(e),w.push(e))}function K(){return 1===(function(){var e,t,r=function(e){if(e){var t=e.parent;switch(e.kind){case 18:case 27:if(ce.isObjectLiteralExpression(t)||ce.isObjectBindingPattern(t))return t;break;case 41:return ce.isMethodDeclaration(t)?ce.tryCast(t.parent,ce.isObjectLiteralExpression):void 0;case 75:return"async"===e.text&&ce.isShorthandPropertyAssignment(e.parent)?e.parent.parent:void 0}}return}(x);if(!r)return 0;if(A=0,193===r.kind){var n=h.getContextualType(r),i=n&&h.getContextualType(r,4);if(!n||!i)return 2;F=ce.hasIndexSignature(n||i),e=ie(n,i,r,h),t=r.properties}else{ce.Debug.assert(189===r.kind),F=!1;n=ce.getRootDeclaration(r.parent);if(!ce.isVariableLike(n))return ce.Debug.fail("Root declaration is not variable-like.");i=ce.hasInitializer(n)||ce.hasType(n)||232===n.parent.parent.kind;if(i||156!==n.kind||(ce.isExpression(n.parent)?i=!!h.getContextualType(n.parent):161!==n.parent.kind&&164!==n.parent.kind||(i=ce.isExpression(n.parent.parent)&&!!h.getContextualType(n.parent.parent))),i){var a=h.getTypeAtLocation(r);if(!a)return 2;var o=ce.getContainingClass(r);e=h.getPropertiesOfType(a).filter(function(e){return!(24&ce.getDeclarationModifierFlagsFromSymbol(e))||o&&ce.contains(a.symbol.declarations,o)}),t=r.elements}}e&&0<e.length&&(w=function(e,t){if(0===t.length)return e;for(var r=ce.createMap(),n=ce.createUnderscoreEscapedMap(),i=0,a=t;i<a.length;i++){var o,s=a[i];281!==s.kind&&282!==s.kind&&191!==s.kind&&161!==s.kind&&163!==s.kind&&164!==s.kind&&283!==s.kind||Z(s)||(o=void 0,ce.isSpreadAssignment(s)?Q(s,r):ce.isBindingElement(s)&&s.propertyName?75===s.propertyName.kind&&(o=s.propertyName.escapedText):(s=ce.getNameOfDeclaration(s),o=s&&ce.isPropertyNameLiteral(s)?ce.getEscapedTextOfIdentifierOrLiteral(s):void 0),n.set(o,!0))}e=e.filter(function(e){return!n.get(e.escapedName)});return Y(r,e),e}(e,ce.Debug.checkDefined(t)));return X(),1}()||function(){var e=!x||18!==x.kind&&27!==x.kind?void 0:ce.tryCast(x.parent,ce.isNamedImportsOrExports);if(!e)return 0;var t=(257===e.kind?e.parent:e).parent.moduleSpecifier;if(!t)return 257===e.kind?2:0;t=h.getSymbolAtLocation(t);if(!t)return 2;A=3,F=!1;var t=h.getExportsAndPropertiesOfModule(t),r=ce.arrayToSet(e.elements,function(e){return Z(e)?void 0:(e.propertyName||e.name).escapedText});return w=t.filter(function(e){return"default"!==e.escapedName&&!r.get(e.escapedName)}),1}()||function(){var e=!x||18!==x.kind&&27!==x.kind?void 0:ce.tryCast(x.parent,ce.isNamedExports);if(!e)return 0;var n=ce.findAncestor(e,ce.or(ce.isSourceFile,ce.isModuleDeclaration));return F=!(A=5),null===(e=n.locals)||void 0===e||e.forEach(function(e,t){var r;w.push(e),null!==(r=null===(r=n.symbol)||void 0===r?void 0:r.exports)&&void 0!==r&&r.has(t)&&(O[ce.getSymbolId(e)]=$.OptionalMember)}),1}()||(function(e){if(e){var t=e.parent;switch(e.kind){case 20:case 27:return ce.isConstructorDeclaration(e.parent)?e.parent:void 0;default:if(H(e))return t.parent}}return}(x)?(A=5,F=!0,P=4,1):0)||function(){var t=function(e,t,r,n){switch(r.kind){case 324:return ce.tryCast(r.parent,ce.isObjectTypeDeclaration);case 1:var i=ce.tryCast(ce.lastOrUndefined(ce.cast(r.parent,ce.isSourceFile).statements),ce.isObjectTypeDeclaration);if(i&&!ce.findChildOfKind(i,19,e))return i;break;case 75:if(ce.isPropertyDeclaration(r.parent)&&r.parent.initializer===r)return;if(oe(r))return ce.findAncestor(r,ce.isObjectTypeDeclaration)}if(!t)return;switch(t.kind){case 62:return;case 26:case 19:return oe(r)&&r.parent.name===r?r.parent.parent:ce.tryCast(r,ce.isObjectTypeDeclaration);case 18:case 27:return ce.tryCast(t.parent,ce.isObjectTypeDeclaration);default:if(!oe(t))return ce.getLineAndCharacterOfPosition(e,t.getEnd()).line!==ce.getLineAndCharacterOfPosition(e,n).line&&ce.isObjectTypeDeclaration(r)?r:void 0;var a=ce.isClassLike(t.parent.parent)?re:te;return a(t.kind)||41===t.kind||ce.isIdentifier(t)&&a(ce.stringToToken(t.text))?t.parent.parent:void 0}}(g,x,E,u);if(!t)return 0;if(A=3,F=!0,P=41===x.kind?0:ce.isClassLike(t)?2:3,!ce.isClassLike(t))return 1;var e=(26===x.kind?x.parent:x).parent,r=ce.isClassElement(e)?ce.getModifierFlags(e):0;if(75===x.kind&&!Z(x))switch(x.getText()){case"private":r|=8;break;case"static":r|=32}8&r||(e=ce.flatMap(ce.getAllSuperTypeNodes(t),function(e){e=h.getTypeAtLocation(e);return e&&h.getPropertiesOfType(32&r?h.getTypeOfSymbolAtLocation(e.symbol,t):e)}),w=function(e,t,r){for(var n=ce.createUnderscoreEscapedMap(),i=0,a=t;i<a.length;i++){var o=a[i];159!==o.kind&&161!==o.kind&&163!==o.kind&&164!==o.kind||Z(o)||ce.hasModifier(o,8)||ce.hasModifier(o,32)!==!!(32&r)||(o=ce.getPropertyNameForPropertyNameNode(o.name))&&n.set(o,!0)}return e.filter(function(e){return!(n.has(e.escapedName)||!e.declarations||8&ce.getDeclarationModifierFlagsFromSymbol(e)||ce.isPrivateIdentifierPropertyDeclaration(e.valueDeclaration))})}(e,t.members,r));return 1}()||function(){var e=function(e){if(e){var t=e.parent;switch(e.kind){case 31:case 30:case 43:case 75:case 194:case 274:case 273:case 275:if(t&&(267===t.kind||268===t.kind)){if(31===e.kind){var r=ce.findPrecedingToken(e.pos,g,void 0);if(!t.typeArguments||r&&43===r.kind)break}return t}if(273===t.kind)return t.parent.parent;break;case 10:if(t&&(273===t.kind||275===t.kind))return t.parent.parent;break;case 19:if(t&&276===t.kind&&t.parent&&273===t.parent.kind)return t.parent.parent.parent;if(t&&275===t.kind)return t.parent.parent}}return}(x),t=e&&h.getContextualType(e.attributes);if(!t)return 0;var r=e&&h.getContextualType(e.attributes,4);return w=function(e,t){for(var r=ce.createUnderscoreEscapedMap(),n=ce.createMap(),i=0,a=t;i<a.length;i++){var o=a[i];Z(o)||(273===o.kind?r.set(o.name.escapedText,!0):ce.isJsxSpreadAttribute(o)&&Q(o,n))}e=e.filter(function(e){return!r.get(e.escapedName)});return Y(n,e),e}(ie(t,r,e.attributes,h),e.attributes.properties),X(),F=!(A=3),1}()||(function(){P=function(e){if(e){var t,e=ce.findAncestor(e.parent,function(e){return ce.isClassLike(e)?"quit":!(!ce.isFunctionLikeDeclaration(e)||t!==e.body)||(t=e,!1)});return e&&e}}(x)?5:1,A=1,F=function(e){if(e){var t=e.parent.kind;switch(ne(e)){case 27:return 196===t||162===t||197===t||192===t||209===t||170===t;case 20:return 196===t||162===t||197===t||200===t||182===t;case 22:return 192===t||167===t||154===t;case 135:case 136:return!0;case 24:return 249===t;case 18:return 245===t;case 62:return 242===t||209===t;case 15:return 211===t;case 16:return 221===t;case 119:case 117:case 118:return 159===t}}return!1}(x),b!==x&&ce.Debug.assert(!!b,"Expected 'contextToken' to be defined when different from 'previousToken'.");var e=b!==x?b.getStart():u,t=function(e,t,r){var n=e;for(;n&&!ce.positionBelongsToNode(n,t,r);)n=n.parent;return n}(x,e,g)||g;d=function(e){switch(e.kind){case 290:case 211:case 276:case 223:return!0;default:return ce.isStatement(e)}}(t);e=2887656|(L?0:111551);w=h.getSymbolsInScope(t,e),ce.Debug.assertEachIsDefined(w,"getSymbolsInScope() should all be defined");for(var r=0,n=w;r<n.length;r++){var i=n[r];h.isArgumentsSymbol(i)||ce.some(i.declarations,function(e){return e.getSourceFile()===g})||(O[ce.getSymbolId(i)]=$.GlobalsOrKeywords)}if(m.includeCompletionsWithInsertText&&290!==t.kind){var a=h.tryGetThisTypeAt(t,!1);if(a&&!function(e,t,r){var n=r.resolveName("self",void 0,111551,!1);if(n&&r.getTypeOfSymbolAtLocation(n,t)===e)return!0;n=r.resolveName("global",void 0,111551,!1);if(n&&r.getTypeOfSymbolAtLocation(n,t)===e)return!0;n=r.resolveName("globalThis",void 0,111551,!1);if(n&&r.getTypeOfSymbolAtLocation(n,t)===e)return!0;return!1}(a,g,h))for(var o=0,s=ae(a,h);o<s.length;o++){i=s[o];I[ce.getSymbolId(i)]={kind:1},w.push(i),O[ce.getSymbolId(i)]=$.SuggestedClassMembers}}{var c;m.includeCompletionsForModuleExports&&(g.externalModuleIndicator||g.commonJsModuleIndicator||ce.compilerOptionsIndicateEs6Modules(p.getCompilerOptions())||ce.programContainsModules(p))&&(c=b&&ce.isIdentifier(b)?b.text.toLowerCase():"",a=function(i,e){var t=M&&M.get(g.fileName,h,y&&e.getProjectVersion?e.getProjectVersion():void 0);if(t)return f("getSymbolsFromOtherSourceFileExports: Using cached list"),t;t=ce.timestamp();f("getSymbolsFromOtherSourceFileExports: Recomputing list"+(y?" for details entry":""));var s=ce.createMap(),c=ce.createMap(),u=ce.createMap(),l=ce.createMap(),a=[],_=ce.createMap();return ce.codefix.forEachExternalModuleToImportFrom(p,e,g,!y,function(e){if(!y||!y.source||ce.stripQuotes(e.name)===y.source){var t=h.resolveExternalModuleSymbol(e);if(ce.addToSeen(s,ce.getSymbolId(t))){t!==e&&ce.every(t.declarations,ce.isNonGlobalDeclaration)&&d(t,e,!0);for(var r=0,n=h.getExportsAndPropertiesOfModule(e);r<n.length;r++){var i,a=n[r],o=ce.getSymbolId(a).toString();ce.addToSeen(c,o)&&(ce.some(a.declarations,function(e){return ce.isExportSpecifier(e)&&!!e.propertyName&&ce.isIdentifierANonContextualKeyword(e.name)})||((i=h.getMergedSymbol(a.parent)!==t)||ce.some(a.declarations,function(e){return ce.isExportSpecifier(e)&&!e.propertyName&&!!e.parent.parent.moduleSpecifier})?(i=i?a:function(e,t,r){var n=t;for(;2097152&n.flags&&(n=e.getImmediateAliasedSymbol(n));)if(r(n))return n}(h,a,function(e){return ce.some(e.declarations,function(e){return ce.isExportSpecifier(e)||!!e.localSymbol})}))&&(i=ce.getSymbolId(i).toString(),_.has(i)||u.has(i)?ce.addToSeen(u,o):(l.set(i,{alias:a,moduleSymbol:e}),u.set(o,!0))):(l.delete(o),d(a,e))))}}}}),l.forEach(function(e){return d(e.alias,e.moduleSymbol)}),f("getSymbolsFromOtherSourceFileExports: "+(ce.timestamp()-t)),a;function d(e,t,r){void 0===r&&(r=!1);var n="default"===e.escapedName;n&&(e=ce.getLocalSymbolForExportDefault(e)||e),h.isUndefinedSymbol(e)||(ce.addToSeen(_,ce.getSymbolId(e)),n={kind:4,moduleSymbol:t,isDefaultExport:n},a.push({symbol:e,symbolName:ce.getNameForExportedSymbol(e,i),origin:n,skipFilter:r}))}}(p.getCompilerOptions().target,_),!y&&M&&M.set(g.fileName,a,_.getProjectVersion&&_.getProjectVersion()),a.forEach(function(e){var t=e.symbol,r=e.symbolName,n=e.skipFilter,e=e.origin;if(y){if(y.source&&ce.stripQuotes(e.moduleSymbol.name)!==y.source)return}else if(!n&&!function(e,t){if(0===t.length)return!0;for(var r=0,n=0;n<e.length;n++)if(e.charCodeAt(n)===t.charCodeAt(r)&&++r===t.length)return!0;return!1}(r.toLowerCase(),c))return;r=ce.getSymbolId(t);w.push(t),I[r]=e,O[r]=$.AutoImportSuggestions}))}!function(e){var t=q();t&&(P=ce.isAssertionExpression(x.parent)?6:7),ce.filterMutate(e,function(e){if(!ce.isSourceFile(E)){if(ce.isExportAssignment(E.parent))return!0;if(e=ce.skipAlias(e,h),ce.isInRightSideOfInternalImportEqualsDeclaration(E))return!!(1920&e.flags);if(t)return W(e)}return!!(111551&ce.getCombinedLocalAndExportSymbolFlags(e))})}(w)}(),1))}function q(){return v||!((e=x)&&108===e.kind&&(172===e.parent.kind||ce.isTypeOfExpression(e.parent)))&&(ce.isPossiblyTypeArgumentPosition(x,g,h)||ce.isPartOfTypeNode(E)||function(e){if(e){var t=e.parent.kind;switch(e.kind){case 58:return 159===t||158===t||156===t||242===t||ce.isFunctionLikeKind(t);case 62:return 247===t;case 123:return 217===t;case 29:return 169===t||199===t;case 90:return 155===t}}return!1}(x));var e}function W(e,t){void 0===t&&(t=ce.createMap());e=ce.skipAlias(e.exportSymbol||e,h);return!!(788968&e.flags)||!!(1536&e.flags)&&ce.addToSeen(t,ce.getSymbolId(e))&&h.getExportsOfModule(e).some(function(e){return W(e,t)})}function H(e){return e.parent&&ce.isParameter(e.parent)&&ce.isConstructorDeclaration(e.parent.parent)&&(ce.isParameterPropertyModifier(e.kind)||ce.isDeclarationName(e))}function G(e){return ce.isFunctionLikeKind(e)&&162!==e}function Q(e,t){var r=e.expression,e=h.getSymbolAtLocation(r),r=e&&h.getTypeOfSymbolAtLocation(e,r),r=r&&r.properties;r&&r.forEach(function(e){t.set(e.name,!0)})}function X(){w.forEach(function(e){16777216&e.flags&&(O[ce.getSymbolId(e)]=O[ce.getSymbolId(e)]||$.OptionalMember)})}function Y(e,t){if(0!==e.size)for(var r=0,n=t;r<n.length;r++){var i=n[r];e.has(i.name)&&(O[ce.getSymbolId(i)]=$.MemberDeclaredBySpreadAssignment)}}function Z(e){return e.getStart(g)<=u&&u<=e.getEnd()}}function E(e,t,r,n,i){var a=C(r)?ce.getNameForExportedSymbol(e,t):e.name;if(!(void 0===a||1536&e.flags&&ce.isSingleOrDoubleQuote(a.charCodeAt(0))||ce.isKnownSymbol(e))){var o={name:a,needsConvertPropertyAccess:!1};if(ce.isIdentifierText(a,t,i?1:0)||e.valueDeclaration&&ce.isPrivateIdentifierPropertyDeclaration(e.valueDeclaration))return o;switch(n){case 3:return;case 0:return{name:JSON.stringify(a),needsConvertPropertyAccess:!1};case 2:case 1:return 32===a.charCodeAt(0)?void 0:{name:a,needsConvertPropertyAccess:!0};case 5:case 4:return o;default:ce.Debug.assertNever(n)}}}(e=$=h.SortText||(h.SortText={})).LocationPriority="0",e.OptionalMember="1",e.MemberDeclaredBySpreadAssignment="2",e.SuggestedClassMembers="3",e.GlobalsOrKeywords="4",e.AutoImportSuggestions="5",e.JavascriptIdentifiers="6",(t=h.CompletionSource||(h.CompletionSource={})).ThisProperty="ThisProperty/",(e={})[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",(e={})[e.None=0]="None",e[e.All=1]="All",e[e.ClassElementKeywords=2]="ClassElementKeywords",e[e.InterfaceElementKeywords=3]="InterfaceElementKeywords",e[e.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",e[e.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",e[e.TypeAssertionKeywords=6]="TypeAssertionKeywords",e[e.TypeKeywords=7]="TypeKeywords",e[e.Last=7]="Last",(e={})[e.Continue=0]="Continue",e[e.Success=1]="Success",e[e.Fail=2]="Fail",h.createImportSuggestionsForFileCache=function(){var i,a,o;return{isEmpty:function(){return!i},clear:function(){a=o=i=void 0},set:function(e,t,r){i=t,o=e,r&&(a=r)},get:function(e,n,t){if(e===o)return t?a===t?i:void 0:(ce.forEach(i,function(e){var t,r;null!==(t=e.symbol.declarations)&&void 0!==t&&t.length&&(e.symbol=n.getMergedSymbol(e.origin.isDefaultExport&&null!==(r=e.symbol.declarations[0].localSymbol)&&void 0!==r?r:e.symbol.declarations[0].symbol)),null!==(r=e.origin.moduleSymbol.declarations)&&void 0!==r&&r.length&&(e.origin.moduleSymbol=n.getMergedSymbol(e.origin.moduleSymbol.declarations[0].symbol))}),i)}}},h.getCompletionsAtPosition=function(e,t,r,n,i,a,o){var s=t.getTypeChecker(),c=t.getCompilerOptions(),u=ce.findPrecedingToken(i,n);if(!o||ce.isInString(n,i,u)||function(e,t,r,n){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&ce.isStringLiteralOrTemplate(r)&&n===r.getStart(e)+1;case"#":return!!r&&ce.isPrivateIdentifier(r)&&!!ce.getContainingClass(r);case"<":return!!r&&29===r.kind&&(!ce.isBinaryExpression(r.parent)||se(r.parent));case"/":return!!r&&(ce.isStringLiteralLike(r)?!!ce.tryGetImportFromModuleSpecifier(r):43===r.kind&&ce.isJsxClosingElement(r.parent));default:return ce.Debug.assertNever(t)}}(n,o,u,i)){o=h.StringCompletions.getStringLiteralCompletions(n,i,u,s,c,e,r,a);if(o)return o;if(u&&ce.isBreakOrContinueStatement(u.parent)&&(77===u.kind||82===u.kind||75===u.kind))return function(e){e=function(e){var t=[],r=ce.createMap(),n=e;for(;n&&!ce.isFunctionLike(n);){var i;ce.isLabeledStatement(n)&&(i=n.label.text,r.has(i)||(r.set(i,!0),t.push({name:i,kindModifiers:"",kind:"label",sortText:$.LocationPriority}))),n=n.parent}return t}(e);if(e.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}(u.parent);var l=g(t,r,n,A(n,c),i,a,void 0,e);if(l)switch(l.kind){case 0:return function(e,t,r,n,i,a){var o=i.symbols,s=i.completionKind,c=i.isInSnippetScope,u=i.isNewIdentifierLocation,l=i.location,_=i.propertyAccessToConvert,d=i.keywordFilters,p=i.literals,f=i.symbolToOriginInfoMap,g=i.recommendedCompletion,m=i.isJsxInitializer,y=i.insideJsDocTagTypeExpression,h=i.symbolToSortTextMap;if(l&&l.parent&&ce.isJsxClosingElement(l.parent)){var v=l.parent.parent.openingElement.tagName,b=!!ce.findChildOfKind(l.parent,31,e);return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[{name:v.getFullText(e)+(b?"":">"),kind:"class",kindModifiers:void 0,sortText:$.LocationPriority}]}}var x=[];if(A(e,r)){b=P(o,x,void 0,l,e,t,r.target,n,s,a,_,i.isJsxIdentifierExpected,m,g,f,h);!function(r,n,i,a){ce.getNameTable(e).forEach(function(e,t){e!==r&&(t=ce.unescapeLeadingUnderscores(t),!n.has(t)&&ce.isIdentifierText(t,i)&&(n.add(t),a.push({name:t,kind:"warning",kindModifiers:"",sortText:$.JavascriptIdentifiers,isFromUncheckedFile:!0})))})}(l.pos,b,r.target,x)}else{if(!(u||o&&0!==o.length||0!==d))return;P(o,x,void 0,l,e,t,r.target,n,s,a,_,i.isJsxIdentifierExpected,m,g,f,h)}if(0!==d)for(var D=ce.arrayToSet(x,function(e){return e.name}),S=0,C=function(e,t){if(!t)return I(e);t=e+7+1;return w[t]||(w[t]=I(e).filter(function(e){return!function(e){switch(e){case 122:case 125:case 151:case 128:case 130:case 88:case 150:case 113:case 132:case 114:case 133:case 134:case 135:case 136:case 137:case 140:case 141:case 117:case 118:case 119:case 138:case 143:case 144:case 145:case 147:case 148:return!0;default:return!1}}(ce.stringToToken(e.name))}))}(d,!y&&ce.isSourceFileJS(e));S<C.length;S++){var T=C[S];D.has(T.name)||x.push(T)}for(var k=0,E=p;k<E.length;k++){var N=E[k];x.push(function(e,t){return{name:F(e,t),kind:"string",kindModifiers:"",sortText:$.LocationPriority}}(N,a))}return{isGlobalCompletion:c,isMemberCompletion:function(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}(s),isNewIdentifierLocation:u,entries:x}}(n,s,c,r,l,a);case 1:return _(ce.JsDoc.getJSDocTagNameCompletions());case 2:return _(ce.JsDoc.getJSDocTagCompletions());case 3:return _(ce.JsDoc.getJSDocParameterNameCompletions(l.tag));default:return ce.Debug.assertNever(l)}}},h.getCompletionEntriesFromSymbols=P,h.getCompletionEntryDetails=function(e,t,r,n,i,a,o,s,c){var u=e.getTypeChecker(),l=e.getCompilerOptions(),_=i.name,d=ce.findPrecedingToken(n,r);if(ce.isInString(r,n,d))return h.StringCompletions.getStringLiteralCompletionDetails(_,r,n,d,u,l,a,c);var p=v(e,t,r,n,i,a,s);switch(p.type){case"request":var f=p.request;switch(f.kind){case 1:return ce.JsDoc.getJSDocTagNameCompletionDetails(_);case 2:return ce.JsDoc.getJSDocTagCompletionDetails(_);case 3:return ce.JsDoc.getJSDocParameterNameCompletionDetails(_);default:return ce.Debug.assertNever(f)}case"symbol":var g=p.symbol,m=p.location,y=function(e,t,r,n,i,a,o,s,c,u,l){e=e[ce.getSymbolId(t)];if(!e||!C(e))return{codeActions:void 0,sourceDisplay:void 0};e=e.moduleSymbol,n=n.getMergedSymbol(ce.skipAlias(t.exportSymbol||t,n)),s=ce.codefix.getImportCompletionAction(n,e,o,ce.getNameForExportedSymbol(t,a.target),i,r,u,c&&ce.isIdentifier(c)?c.getStart(o):s,l),l=s.moduleSpecifier,s=s.codeAction;return{sourceDisplay:[ce.textPart(l)],codeActions:[s]}}(p.symbolToOriginInfoMap,g,e,u,a,l,r,n,p.previousToken,o,s);return x(g,u,r,m,c,y.codeActions,y.sourceDisplay);case"literal":y=p.literal;return b(F(y,s),"string","string"==typeof y?ce.SymbolDisplayPartKind.stringLiteral:ce.SymbolDisplayPartKind.numericLiteral);case"none":return D().some(function(e){return e.name===_})?b(_,"keyword",ce.SymbolDisplayPartKind.keyword):void 0;default:ce.Debug.assertNever(p)}},h.createCompletionDetailsForSymbol=x,h.createCompletionDetails=u,h.getCompletionEntrySymbol=function(e,t,r,n,i,a,o){return"symbol"===(o=v(e,t,r,n,i,a,o)).type?o.symbol:void 0},(e={})[e.Data=0]="Data",e[e.JsDocTagName=1]="JsDocTagName",e[e.JsDocTag=2]="JsDocTag",e[e.JsDocParameterName=3]="JsDocParameterName",(e=h.CompletionKind||(h.CompletionKind={}))[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None";var w=[],D=ce.memoize(function(){for(var e=[],t=77;t<=152;t++)e.push({name:ce.tokenToString(t),kind:"keyword",kindModifiers:"",sortText:$.GlobalsOrKeywords});return e});function I(r){return w[r]||(w[r]=D().filter(function(e){var t=ce.stringToToken(e.name);switch(r){case 0:return!1;case 1:return n(t)||130===t||135===t||145===t||136===t||123===t||ce.isTypeKeyword(t)&&146!==t;case 5:return n(t);case 2:return re(t);case 3:return te(t);case 4:return ce.isParameterPropertyModifier(t);case 6:return ce.isTypeKeyword(t)||81===t;case 7:return ce.isTypeKeyword(t);default:return ce.Debug.assertNever(r)}}))}function te(e){return 138===e}function re(e){switch(e){case 122:case 129:case 131:case 142:case 126:case 130:return!0;default:return ce.isClassMemberModifier(e)}}function n(e){return 126===e||127===e||!ce.isContextualKeyword(e)&&!re(e)}function ne(e){return ce.isIdentifier(e)?e.originalKeywordKind||0:e.kind}function ie(e,t,r,n){var i=t&&t!==e,t=!i||3&t.flags?e:n.getUnionType([e,t]),t=t.isUnion()?n.getAllPossiblePropertiesOfTypes(t.types.filter(function(e){return!(131068&e.flags||n.isArrayLikeType(e)||ce.typeHasCallOrConstructSignatures(e,n)||n.isTypeInvalidDueToUnionDiscriminant(e,r))})):t.getApparentProperties();return i?t.filter(function(e){return ce.some(e.declarations,function(e){return e.parent!==r})}):t}function ae(e,t){return e.isUnion()?ce.Debug.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):ce.Debug.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function oe(e){return e.parent&&ce.isClassOrTypeElement(e.parent)&&ce.isObjectTypeDeclaration(e.parent.parent)}function se(e){e=e.left;return ce.nodeIsMissing(e)}}(ce.Completions||(ce.Completions={}))}(ts=ts||{}),function(u){function l(e,t){return{fileName:t.fileName,textSpan:u.createTextSpanFromNode(e,t),kind:"none"}}function n(e){return u.isThrowStatement(e)?[e]:u.isTryStatement(e)?u.concatenate(e.catchClause?n(e.catchClause):e.tryBlock&&n(e.tryBlock),e.finallyBlock&&n(e.finallyBlock)):u.isFunctionLike(e)?void 0:t(e,n)}function i(e){return u.isBreakOrContinueStatement(e)?[e]:u.isFunctionLike(e)?void 0:t(e,i)}function t(e,t){var r=[];return e.forEachChild(function(e){e=t(e);void 0!==e&&r.push.apply(r,u.toArray(e))}),r}function a(e,t){t=r(t);return t&&t===e}function r(n){return u.findAncestor(n,function(e){switch(e.kind){case 237:if(233===n.kind)return!1;case 230:case 231:case 232:case 229:case 228:return!n.label||(t=e,r=n.label.escapedText,!!u.findAncestor(t.parent,function(e){return u.isLabeledStatement(e)?e.label.escapedText===r:"quit"}));default:return u.isFunctionLike(e)&&"quit"}var t,r})}function _(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return t&&u.contains(r,t.kind)&&(e.push(t),1)}function s(t){var r=[];if(_(r,t.getFirstToken(),93,111,86)&&228===t.kind)for(var e=t.getChildren(),n=e.length-1;0<=n&&!_(r,e[n],111);n--);return u.forEach(i(t.statement),function(e){a(t,e)&&_(r,e.getFirstToken(),77,82)}),r}function c(e){var t=r(e);if(t)switch(t.kind){case 230:case 231:case 232:case 228:case 229:return s(t);case 237:return d(t)}}function d(t){var r=[];return _(r,t.getFirstToken(),103),u.forEach(t.caseBlock.clauses,function(e){_(r,e.getFirstToken(),78,84),u.forEach(i(e),function(e){a(t,e)&&_(r,e.getFirstToken(),77)})}),r}function p(e,t){var r=[];return _(r,e.getFirstToken(),107),e.catchClause&&_(r,e.catchClause.getFirstToken(),79),e.finallyBlock&&_(r,u.findChildOfKind(e,92,t),92),r}function f(e,t){e=function(e){for(var t=e;t.parent;){var r=t.parent;if(u.isFunctionBlock(r)||290===r.kind)return r;if(u.isTryStatement(r)&&r.tryBlock===t&&r.catchClause)return t;t=r}}(e);if(e){var r=[];return u.forEach(n(e),function(e){r.push(u.findChildOfKind(e,105,t))}),u.isFunctionBlock(e)&&u.forEachReturnStatement(e,function(e){r.push(u.findChildOfKind(e,101,t))}),r}}function g(e,t){e=u.getContainingFunction(e);if(e){var r=[];return u.forEachReturnStatement(u.cast(e.body,u.isBlock),function(e){r.push(u.findChildOfKind(e,101,t))}),u.forEach(n(e.body),function(e){r.push(u.findChildOfKind(e,105,t))}),r}}function m(e){e=u.getContainingFunction(e);if(e){var t=[];return e.modifiers&&e.modifiers.forEach(function(e){_(t,e,126)}),u.forEachChild(e,function(e){y(e,function(e){u.isAwaitExpression(e)&&_(t,e.getFirstToken(),127)})}),t}}function y(e,t){t(e),u.isFunctionLike(e)||u.isClassLike(e)||u.isInterfaceDeclaration(e)||u.isModuleDeclaration(e)||u.isTypeAliasDeclaration(e)||u.isTypeNode(e)||u.forEachChild(e,function(e){return y(e,t)})}(u.DocumentHighlights||(u.DocumentHighlights={})).getDocumentHighlights=function(e,t,r,n,i){var a=u.getTouchingPropertyName(r,n);if(a.parent&&(u.isJsxOpeningElement(a.parent)&&a.parent.tagName===a||u.isJsxClosingElement(a.parent))){var o=a.parent.parent,o=[o.openingElement,o.closingElement].map(function(e){return l(e.tagName,r)});return[{fileName:r.fileName,highlightSpans:o}]}return function(e,t,n,r,i){var a=u.arrayToSet(i,function(e){return e.fileName}),r=u.FindAllReferences.getReferenceEntriesForNode(e,t,n,i,r,void 0,a);if(!r)return;r=u.arrayToMultiMap(r.map(u.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return u.arrayFrom(r.entries(),function(e){var t,r=e[0],e=e[1];return a.has(r)||(u.Debug.assert(n.redirectTargetsMap.has(r)),t=n.getSourceFile(r),r=u.find(i,function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===t}).fileName,u.Debug.assert(a.has(r))),{fileName:r,highlightSpans:e}})}(n,a,e,t,i)||function(e,t){e=function(e,n){switch(e.kind){case 95:case 87:return u.isIfStatement(e.parent)?function(e,t){for(var r=function(e,t){var r=[];for(;u.isIfStatement(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){var n=e.getChildren(t);_(r,n[0],95);for(var i=n.length-1;0<=i&&!_(r,n[i],87);i--);if(!e.elseStatement||!u.isIfStatement(e.elseStatement))break;e=e.elseStatement}return r}(e,t),n=[],i=0;i<r.length;i++){if(87===r[i].kind&&i<r.length-1){for(var a=r[i],o=r[i+1],s=!0,c=o.getStart(t)-1;c>=a.end;c--)if(!u.isWhiteSpaceSingleLine(t.text.charCodeAt(c))){s=!1;break}if(s){n.push({fileName:t.fileName,textSpan:u.createTextSpanFromBounds(a.getStart(),o.end),kind:"reference"}),i++;continue}}n.push(l(r[i],t))}return n}(e.parent,n):void 0;case 101:return i(e.parent,u.isReturnStatement,g);case 105:return i(e.parent,u.isThrowStatement,f);case 107:case 79:case 92:return i((79===e.kind?e.parent:e).parent,u.isTryStatement,p);case 103:return i(e.parent,u.isSwitchStatement,d);case 78:case 84:return u.isDefaultClause(e.parent)||u.isCaseClause(e.parent)?i(e.parent.parent.parent,u.isSwitchStatement,d):void 0;case 77:case 82:return i(e.parent,u.isBreakOrContinueStatement,c);case 93:case 111:case 86:return i(e.parent,function(e){return u.isIterationStatement(e,!0)},s);case 129:return t(u.isConstructorDeclaration,[129]);case 131:case 142:return t(u.isAccessor,[131,142]);case 127:return i(e.parent,u.isAwaitExpression,m);case 126:return a(m(e));case 121:return a(function(e){e=u.getContainingFunction(e);if(!e)return;var t=[];return u.forEachChild(e,function(e){y(e,function(e){u.isYieldExpression(e)&&_(t,e.getFirstToken(),121)})}),t}(e));default:return u.isModifierKind(e.kind)&&(u.isDeclaration(e.parent)||u.isVariableStatement(e.parent))?a(function(t,e){return u.mapDefined(function(e,t){var r=e.parent;switch(r.kind){case 250:case 290:case 223:case 277:case 278:return 128&t&&u.isClassDeclaration(e)?__spreadArrays(e.members,[e]):r.statements;case 162:case 161:case 244:return __spreadArrays(r.parameters,u.isClassLike(r.parent)?r.parent.members:[]);case 245:case 214:case 246:case 173:var n=r.members;if(92&t){var i=u.find(r.members,u.isConstructorDeclaration);if(i)return __spreadArrays(n,i.parameters)}else if(128&t)return __spreadArrays(n,[r]);return n;default:u.Debug.assertNever(r,"Invalid container kind.")}}(e,u.modifierToFlag(t)),function(e){return u.findModifier(e,t)})}(e.kind,e.parent)):void 0}function t(t,r){return i(e.parent,t,function(e){return u.mapDefined(e.symbol.declarations,function(e){return t(e)?u.find(e.getChildren(n),function(e){return u.contains(r,e.kind)}):void 0})})}function i(e,t,r){return t(e)?a(r(e,n)):void 0}function a(e){return e&&e.map(function(e){return l(e,n)})}}(e,t);return e&&[{fileName:t.fileName,highlightSpans:e}]}(a,r)}}(ts=ts||{}),function(p){function r(e,a,_){void 0===a&&(a="");var d=p.createMap(),o=p.createGetCanonicalFileName(!!e);function s(e,t,r,n,i,a,o){return u(e,t,r,n,i,a,!0,o)}function c(e,t,r,n,i,a,o){return u(e,t,r,n,i,a,!1,o)}function u(e,t,r,n,i,a,o,s){var c,u=p.getOrUpdate(d,n,p.createMap),l=u.get(t),r=6===s?100:r.target||1;return!l&&_&&(c=_.getDocument(n,t))&&(p.Debug.assert(o),l={sourceFile:c,languageServiceRefCount:0},u.set(t,l)),l?(l.sourceFile.version!==a&&(l.sourceFile=p.updateLanguageServiceSourceFile(l.sourceFile,i,a,i.getChangeRange(l.sourceFile.scriptSnapshot)),_&&_.setDocument(n,t,l.sourceFile)),o&&l.languageServiceRefCount++):(c=p.createLanguageServiceSourceFile(e,i,r,a,!1,s),_&&_.setDocument(n,t,c),l={sourceFile:c,languageServiceRefCount:1},u.set(t,l)),p.Debug.assert(0!==l.languageServiceRefCount),l.sourceFile}function r(e,t){var r=p.Debug.checkDefined(d.get(t)),t=r.get(e);t.languageServiceRefCount--,p.Debug.assert(0<=t.languageServiceRefCount),0===t.languageServiceRefCount&&r.delete(e)}return{acquireDocument:function(e,t,r,n,i){return s(e,p.toPath(e,a,o),t,l(t),r,n,i)},acquireDocumentWithKey:s,updateDocument:function(e,t,r,n,i){return c(e,p.toPath(e,a,o),t,l(t),r,n,i)},updateDocumentWithKey:c,releaseDocument:function(e,t){return r(p.toPath(e,a,o),l(t))},releaseDocumentWithKey:r,getLanguageServiceRefCounts:function(r){return p.arrayFrom(d.entries(),function(e){var t=e[0],e=e[1].get(r);return[t,e&&e.languageServiceRefCount]})},reportStats:function(){var e=p.arrayFrom(d.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=d.get(e),r=[];return t.forEach(function(e,t){r.push({name:t,refCount:e.languageServiceRefCount})}),r.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:r}});return JSON.stringify(e,void 0,2)},getKeyForCompilationSettings:l}}function l(t){return p.sourceFileAffectingCompilerOptions.map(function(e){return p.getCompilerOptionValue(t,e)}).join("|")}p.createDocumentRegistry=function(e,t){return r(e,t)},p.createDocumentRegistryInternal=r}(ts=ts||{}),function(C){var e,t;function T(e,t){return C.forEach((290===e.kind?e:e.body).statements,function(e){return t(e)||n(e)&&C.forEach(e.body&&e.body.statements,t)})}function g(e,r){if(e.externalModuleIndicator||void 0!==e.imports)for(var t=0,n=e.imports;t<n.length;t++){var i=n[t];r(C.importFromModuleSpecifier(i),i)}else T(e,function(e){switch(e.kind){case 260:case 254:(t=e).moduleSpecifier&&C.isStringLiteral(t.moduleSpecifier)&&r(t,t.moduleSpecifier);break;case 253:var t;N(t=e)&&r(t,t.moduleReference.expression)}})}function r(e,t,r){e=e.parent;if(e){e=r.getMergedSymbol(e);return C.isExternalModuleSymbol(e)?{exportingModuleSymbol:e,exportKind:t}:void 0}}function k(e,t){return t.getMergedSymbol(E(e).symbol)}function E(e){if(196===e.kind)return e.getSourceFile();e=e.parent;return 290===e.kind?e:(C.Debug.assert(250===e.kind),C.cast(e.parent,n))}function n(e){return 249===e.kind&&10===e.name.kind}function N(e){return 265===e.moduleReference.kind&&10===e.moduleReference.expression.kind}(e=C.FindAllReferences||(C.FindAllReferences={})).createImportTracker=function(v,b,x,D){var S=function(e,n,t){for(var i=C.createMap(),r=0,a=e;r<a.length;r++){var o=a[r];t&&t.throwIfCancellationRequested(),g(o,function(e,t){var r=n.getSymbolAtLocation(t);r&&(t=C.getSymbolId(r).toString(),(r=i.get(t))||i.set(t,r=[]),r.push(e))})}return i}(v,x,D);return function(e,t,r){var n,i,a,o,s,c,u,l,_,d,p,f,g,o=(n=v,i=b,a=S,s=x,c=D,u=(o=t).exportingModuleSymbol,l=o.exportKind,_=C.nodeSeenTracker(),d=C.nodeSeenTracker(),p=[],f=!!u.globalExports,g=f?void 0:[],function e(t){var t=h(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 196:if(!f){var a=i.parent;if(2===l&&242===a.kind){var o=a.name;if(75===o.kind){p.push(o);break}}y(i.getSourceFile())}break;case 75:break;case 253:m(i,i.name,C.hasModifier(i,1),!1);break;case 254:p.push(i);var o=i.importClause&&i.importClause.namedBindings;o&&256===o.kind?m(i,o.name,!1,!0):!f&&C.isDefaultImport(i)&&y(E(i));break;case 260:i.exportClause?p.push(i):e(k(i,s));break;case 188:p.push(i);break;default:C.Debug.failBadSyntaxKind(i,"Unexpected import kind.")}}}(u),{directImports:p,indirectUsers:function(){if(f)return n;for(var e=0,t=u.declarations;e<t.length;e++){var r=t[e];C.isExternalModuleAugmentation(r)&&i.has(r.getSourceFile().fileName)&&y(r)}return g.map(C.getSourceFileOfNode)}()});function m(e,t,r,n){var i,a;2===l?n||p.push(e):f||(e=E(e),C.Debug.assert(290===e.kind||249===e.kind),(r||(r=e,t=t,a=(i=s).getSymbolAtLocation(t),!!T(r,function(e){if(C.isExportDeclaration(e)){var t=e.exportClause;return!e.moduleSpecifier&&t&&C.isNamedExports(t)&&t.elements.some(function(e){return i.getExportSpecifierLocalTargetSymbol(e)===a})}}))?function e(t){if(!y(t))return;t=s.getMergedSymbol(t.symbol);C.Debug.assert(!!(1536&t.flags));var t=h(t);if(t)for(var r=0,n=t;r<n.length;r++){var i=n[r];C.isImportTypeNode(i)||e(E(i))}}:y)(e))}function y(e){C.Debug.assert(!f);var t=d(e);return t&&g.push(e),t}function h(e){return a.get(C.getSymbolId(e).toString())}return __assign({indirectUsers:o.indirectUsers},function(e,o,n,s,c){var r=[],u=[];function l(e,t){r.push([e,t])}if(e)for(var t=0,i=e;t<i.length;t++)!function(e){if(253===e.kind)return N(e)&&a(e.name);if(75===e.kind)return a(e),0;if(188===e.kind)return e.qualifier?(t=C.getFirstIdentifier(e.qualifier)).escapedText===C.symbolName(o)&&u.push(t):2===n&&u.push(e.argument.literal);if(10===e.moduleSpecifier.kind){if(260===e.kind)return e.exportClause&&C.isNamedExports(e.exportClause)&&_(e.exportClause);var t=e.importClause||{name:void 0,namedBindings:void 0},e=t.name,r=t.namedBindings;if(r)switch(r.kind){case 256:a(r.name);break;case 257:0!==n&&1!==n||_(r);break;default:C.Debug.assertNever(r)}!e||1!==n&&2!==n||c&&e.escapedText!==C.symbolEscapedNameNoDefault(o)||(t=s.getSymbolAtLocation(e),l(e,t))}}(i[t]);return{importSearches:r,singleReferences:u};function a(e){2!==n||c&&!d(e.escapedText)||l(e,s.getSymbolAtLocation(e))}function _(e){if(e)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t],i=n.name,a=n.propertyName;d((a||i).escapedText)&&(a?(u.push(a),c&&i.escapedText!==o.escapedName||l(i,s.getSymbolAtLocation(i))):l(i,263===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,x,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(290===c.kind){for(var u=0,l=s.referencedFiles;u<l.length;u++){var _=l[u];e.getSourceFileFromReference(s,_)===c&&n.push({kind:"reference",referencingFile:s,ref:_})}for(var d=0,p=s.typeReferenceDirectives;d<p.length;d++){var _=p[d],f=e.getResolvedTypeReferenceDirectives().get(_.fileName);void 0!==f&&f.resolvedFileName===c.fileName&&n.push({kind:"reference",referencingFile:s,ref:_})}}g(s,function(e,t){i.getSymbolAtLocation(t)===r&&n.push({kind:"import",literal:t})})}return n},e.getImportOrExportSymbol=function(s,c,u,l){return l?e():e()||function(){if(!function(e){var t=e.parent;switch(t.kind){case 253:return t.name===e&&N(t);case 258:return!t.propertyName;case 255:case 256:return C.Debug.assert(t.name===e),1;default:return}}(s))return;var e=u.getImmediateAliasedSymbol(c);if(!e)return;"export="===(e=function(e,t){if(e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r];if(C.isExportSpecifier(i)&&!i.propertyName&&!i.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(i)}return e}(e,u)).escapedName&&(e=function(e,t){if(2097152&e.flags)return C.Debug.checkDefined(t.getImmediateAliasedSymbol(e));e=e.valueDeclaration;{if(C.isExportAssignment(e))return C.Debug.checkDefined(e.expression.symbol);if(C.isBinaryExpression(e))return C.Debug.checkDefined(e.right.symbol);if(C.isSourceFile(e))return C.Debug.checkDefined(e.symbol)}return C.Debug.fail()}(e,u));var t=C.symbolEscapedNameNoDefault(e);if(void 0===t||"default"===t||t===c.escapedName)return{kind:0,symbol:e}}();function e(){var t=s.parent,e=t.parent;if(c.exportSymbol)return 194===t.kind?c.declarations.some(function(e){return e===t})&&C.isBinaryExpression(e)?o(e,!1):void 0:_(c.exportSymbol,d(t));var r,n,i,r=(r=t,n=s,(i=C.isVariableDeclaration(r)?r:C.isBindingElement(r)?C.walkUpBindingElementsAndPatterns(r):void 0)?r.name===n&&!C.isCatchClause(i.parent)&&C.isVariableStatement(i.parent.parent)?i.parent.parent:void 0:r);return r&&C.hasModifier(r,1)?C.isImportEqualsDeclaration(r)&&r.moduleReference===s?l?void 0:{kind:0,symbol:u.getSymbolAtLocation(r.name)}:_(c,d(r)):C.isExportAssignment(t)?a(t):C.isExportAssignment(e)?a(e):C.isBinaryExpression(t)?o(t,!0):C.isBinaryExpression(e)?o(e,!0):C.isJSDocTypedefTag(t)?_(c,0):void 0;function a(e){var t=C.Debug.checkDefined(e.symbol.parent,"Expected export symbol to have a parent"),e=e.isExportEquals?2:1;return{kind:1,symbol:c,exportInfo:{exportingModuleSymbol:t,exportKind:e}}}function o(e,t){var r;switch(C.getAssignmentDeclarationKind(e)){case 1:r=0;break;case 2:r=2;break;default:return}e=t?u.getSymbolAtLocation(C.getNameOfAccessExpression(C.cast(e.left,C.isAccessExpression))):c;return e&&_(e,r)}}function _(e,t){t=r(e,t,u);return t&&{kind:1,symbol:e,exportInfo:t}}function d(e){return C.hasModifier(e,512)?1:0}},e.getExportInfo=r}(ts=ts||{}),function(I){var O,e,c;function M(e,t){return void 0===t&&(t=1),{kind:t,node:e.name||e,context:function(e){if(I.isDeclaration(e))return _(e);if(!e.parent)return;if(!I.isDeclaration(e.parent)&&!I.isExportAssignment(e.parent)){if(I.isInJSFile(e)){var t=I.isBinaryExpression(e.parent)?e.parent:I.isAccessExpression(e.parent)&&I.isBinaryExpression(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(t&&0!==I.getAssignmentDeclarationKind(t))return _(t)}if(I.isJsxOpeningElement(e.parent)||I.isJsxClosingElement(e.parent))return e.parent.parent;if(I.isJsxSelfClosingElement(e.parent)||I.isLabeledStatement(e.parent)||I.isBreakOrContinueStatement(e.parent))return e.parent;if(I.isStringLiteralLike(e)){t=I.tryGetImportFromModuleSpecifier(e);if(t){var r=I.findAncestor(t,function(e){return I.isDeclaration(e)||I.isStatement(e)||I.isJSDocTag(e)});return I.isDeclaration(r)?_(r):r}}r=I.findAncestor(e,I.isComputedPropertyName);return r?_(r.parent):void 0}if(e.parent.name===e||I.isConstructorDeclaration(e.parent)||I.isExportAssignment(e.parent)||(I.isImportOrExportSpecifier(e.parent)||I.isBindingElement(e.parent))&&e.parent.propertyName===e||84===e.kind&&I.hasModifier(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 242:return I.isVariableDeclarationList(e.parent)&&1===e.parent.declarations.length?I.isVariableStatement(e.parent.parent)?e.parent.parent:I.isForInOrOfStatement(e.parent.parent)?_(e.parent.parent):e.parent:e;case 191:return _(e.parent.parent);case 258:return e.parent.parent.parent;case 263:case 256:return e.parent.parent;case 255:return e.parent;case 209:return I.isExpressionStatement(e.parent)?e.parent:e;case 232:case 231:return{start:e.initializer,end:e.expression};case 281:case 282:return I.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent)?_(I.findAncestor(e.parent,function(e){return I.isBinaryExpression(e)||I.isForInOrOfStatement(e)})):e;default:return e}}function d(e,t,r){if(r){t=n(r)?m(r.start,t,r.end):m(r,t);return t.start!==e.start||t.length!==e.length?{contextSpan:t}:void 0}}function l(e,t,r,n,i){if(290!==n.kind){var a=e.getTypeChecker();if(282===n.parent.kind){var o=[];return c.getReferenceEntriesForShorthandPropertyAssignment(n,a,function(e){return o.push(M(e))}),o}if(102===n.kind||I.isSuperProperty(n.parent)){a=a.getSymbolAtLocation(n);return a.valueDeclaration&&[M(a.valueDeclaration)]}return s(i,n,e,r,t,{implementations:!0,use:1})}}function s(e,t,r,n,i,a,o){return void 0===a&&(a={}),void 0===o&&(o=I.arrayToSet(n,function(e){return e.fileName})),u(c.getReferencedSymbolsForNode(e,t,r,n,i,a,o))}function u(e){return e&&I.flatMap(e,function(e){return e.references})}function p(e,t,r){var n=c.getIntersectingMeaningFromDeclarations(r,e),r=e.declarations&&I.firstOrUndefined(e.declarations)||r,n=I.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,r.getSourceFile(),r,r,n);return{displayParts:n.displayParts,kind:n.symbolKind}}function f(e){var t=g(e);if(0===e.kind)return __assign(__assign({},t),{isWriteAccess:!1,isDefinition:!1});var r=e.kind,e=e.node;return __assign(__assign({},t),{isWriteAccess:i(e),isDefinition:84===(e=e).kind||!!I.getDeclarationFromName(e)||I.isLiteralComputedPropertyDeclarationName(e)||129===e.kind&&I.isConstructorDeclaration(e.parent),isInString:2===r||void 0})}function g(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};var t=e.node.getSourceFile(),r=m(e.node,t);return __assign({textSpan:r,fileName:t.fileName},d(r,t,e.context))}function m(e,t,r){var n=e.getStart(t),t=(r||e).getEnd();return I.isStringLiteralLike(e)&&(I.Debug.assert(void 0===r),n+=1,--t),I.createTextSpanFromBounds(n,t)}function L(e){return 0===e.kind?e.textSpan:m(e.node,e.node.getSourceFile())}function i(e){var t=I.getDeclarationFromName(e);return!!t&&function(e){if(8388608&e.flags)return!0;switch(e.kind){case 209:case 191:case 245:case 214:case 84:case 248:case 284:case 263:case 255:case 253:case 258:case 246:case 315:case 322:case 273:case 249:case 252:case 256:case 262:case 156:case 282:case 247:case 155:return!0;case 281:return!I.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent);case 244:case 201:case 162:case 161:case 163:case 164:return!!e.body;case 242:case 159:return!!e.initializer||I.isCatchClause(e.parent);case 160:case 158:case 323:case 317:return!1;default:return I.Debug.failBadSyntaxKind(e)}}(t)||84===e.kind||I.isWriteAccess(e)}O=I.FindAllReferences||(I.FindAllReferences={}),(e=O.DefinitionKind||(O.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=O.EntryKind||(O.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",O.nodeEntry=M,O.isContextWithStartAndEndNode=n,O.getContextNode=_,O.toContextSpan=d,(e=O.FindReferencesUse||(O.FindReferencesUse={}))[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",O.findReferencedSymbols=function(e,t,r,n,i){var s=I.getTouchingPropertyName(n,i),r=c.getReferencedSymbolsForNode(i,s,e,r,t,{use:1}),a=e.getTypeChecker();return r&&r.length?I.mapDefined(r,function(e){var o=e.definition,e=e.references;return o&&{definition:a.runWithCancellationToken(t,function(e){return c=o,u=e,l=s,t=function(){switch(c.type){case 0:var e=p(o=c.symbol,u,l),t=e.displayParts,r=e.kind,n=t.map(function(e){return e.text}).join(""),e=o.declarations?I.first(o.declarations):void 0;return{node:e?I.getNameOfDeclaration(e)||e:l,name:n,kind:r,displayParts:t,context:_(e)};case 1:var i=c.node;return{node:i,name:i.text,kind:"label",displayParts:[I.displayPart(i.text,I.SymbolDisplayPartKind.text)]};case 2:var i=c.node,a=I.tokenToString(i.kind);return{node:i,name:a,kind:"keyword",displayParts:[{text:a,kind:"keyword"}]};case 3:var o,a=c.node,s=(o=u.getSymbolAtLocation(a))&&I.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(u,o,a.getSourceFile(),I.getContainerNode(a),a).displayParts||[I.textPart("this")];return{node:a,name:"this",kind:"var",displayParts:s};case 4:s=c.node;return{node:s,name:s.text,kind:"var",displayParts:[I.displayPart(I.getTextOfNode(s),I.SymbolDisplayPartKind.stringLiteral)]};default:return I.Debug.assertNever(c)}}(),r=t.node,n=t.name,i=t.kind,a=t.displayParts,e=t.context,t=r.getSourceFile(),r=m(I.isComputedPropertyName(r)?r.expression:r,t),__assign({containerKind:"",containerName:"",fileName:t.fileName,kind:i,name:n,textSpan:r,displayParts:a},d(r,t,e));var c,u,l,t,r,n,i,a}),references:e.map(f)}}):void 0},O.getImplementationsAtPosition=function(e,t,r,n,i){var a,n=I.getTouchingPropertyName(n,i),i=l(e,t,r,n,i);if(194===n.parent.kind||191===n.parent.kind||195===n.parent.kind||102===n.kind)a=i&&__spreadArrays(i);else for(var o=i&&__spreadArrays(i),s=I.createMap();o&&o.length;){var c=o.shift();I.addToSeen(s,I.getNodeId(c.node))&&(a=I.append(a,c),(c=l(e,t,r,c.node,c.node.pos))&&o.push.apply(o,c))}var u=e.getTypeChecker();return I.map(a,function(e){return function(e,t){var r=g(e);{if(0===e.kind)return __assign(__assign({},r),{kind:"",displayParts:[]});e=e.node;return __assign(__assign({},r),function(e,t){var r=t.getSymbolAtLocation(I.isDeclaration(e)&&e.name?e.name:e);return r?p(r,t,e):193===e.kind?{kind:"interface",displayParts:[I.punctuationPart(20),I.textPart("object literal"),I.punctuationPart(21)]}:214===e.kind?{kind:"local class",displayParts:[I.punctuationPart(20),I.textPart("anonymous local class"),I.punctuationPart(21)]}:{kind:I.getNodeKind(e),displayParts:[]}}(e,t))}}(e,u)})},O.findReferenceOrRenameEntries=function(t,e,r,n,i,a,o){return I.map(u(c.getReferencedSymbolsForNode(i,n,t,r,e,a)),function(e){return o(e,n,t.getTypeChecker())})},O.getReferenceEntriesForNode=s,O.toRenameLocation=function(e,t,r,n){return __assign(__assign({},g(e)),n&&function(e,t,r){if(0!==e.kind&&I.isIdentifier(t)){var n=e.node,i=e.kind,a=t.text,o=I.isShorthandPropertyAssignment(n.parent);if(o||I.isObjectBindingElementWithoutPropertyName(n.parent)&&n.parent.name===n){var s={prefixText:a+": "},n={suffixText:": "+a};return 3!==i&&(4===i||o)?n:s}if(I.isImportSpecifier(e.node.parent)&&!e.node.parent.propertyName){s=I.isExportSpecifier(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return I.contains(s.declarations,e.node.parent)?{prefixText:a+" as "}:I.emptyOptions}if(I.isExportSpecifier(e.node.parent)&&!e.node.parent.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:a+" as "}:{suffixText:" as "+a}}return I.emptyOptions}(e,t,r))},O.toReferenceEntry=f,O.toHighlightSpan=function(e){var t=g(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};var r=i(e.node),e=__assign({textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:2===e.kind||void 0},t.contextSpan&&{contextSpan:t.contextSpan});return{fileName:t.fileName,span:e}},O.getTextSpanOfEntry=L,function(e){function g(e,t,r){if(e.parent&&I.isNamespaceExportDeclaration(e.parent)){t=r.getAliasedSymbol(t),r=r.getMergedSymbol(t);if(t!==r)return r}}function l(e,t,r,n,i,a){var o=1536&e.flags&&e.declarations&&I.find(e.declarations,I.isSourceFile);if(o){var s=e.exports.get("export="),c=d(t,e,!!s,r,a);if(!s||!a.has(o.fileName))return c;o=t.getTypeChecker();return _(t,c,f(e=I.skipAlias(s,o),void 0,r,a,o,n,i))}}function _(i){for(var a,e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];for(var r=0,n=e;r<n.length;r++){var o=n[r];if(o&&o.length)if(a)for(var s=0,c=o;s<c.length;s++)!function(e){if(!e.definition||0!==e.definition.type)return a.push(e);var t=e.definition.symbol,r=I.findIndex(a,function(e){return!!e.definition&&0===e.definition.type&&e.definition.symbol===t});if(-1===r)return a.push(e);var n=a[r];a[r]={definition:n.definition,references:n.references.concat(e.references).sort(function(e,t){var r=u(i,e),n=u(i,t);if(r!==n)return I.compareValues(r,n);e=L(e),t=L(t);return e.start!==t.start?I.compareValues(e.start,t.start):I.compareValues(e.length,t.length)})}}(c[s]);else a=o}return a}function u(e,t){t=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(t)}function d(e,t,r,n,i){I.Debug.assert(!!t.valueDeclaration);var a=I.mapDefined(O.findModuleReferences(e,n,t),function(e){if("import"!==e.kind)return{kind:0,fileName:e.referencingFile.fileName,textSpan:I.createTextSpanFromRange(e.ref)};var t=e.literal.parent;if(I.isLiteralTypeNode(t)){t=I.cast(t.parent,I.isImportTypeNode);if(r&&!t.qualifier)return}return M(e.literal)});if(t.declarations)for(var o=0,s=t.declarations;o<s.length;o++)switch((l=s[o]).kind){case 290:break;case 249:i.has(l.getSourceFile().fileName)&&a.push(M(l.name));break;default:I.Debug.assert(!!(33554432&t.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}n=t.exports.get("export=");if(n)for(var c=0,u=n.declarations;c<u.length;c++){var l,_=(l=u[c]).getSourceFile();i.has(_.fileName)&&(_=I.isBinaryExpression(l)&&I.isPropertyAccessExpression(l.left)?l.left.expression:I.isExportAssignment(l)?I.Debug.checkDefined(I.findChildOfKind(l,89,_)):I.getNameOfDeclaration(l)||l,a.push(M(_)))}return a.length?[{definition:{type:0,symbol:t},references:a}]:I.emptyArray}function p(e){return 138===e.kind&&I.isTypeOperatorNode(e.parent)&&138===e.parent.operator}function f(e,t,r,n,i,a,o){var s,c,u,l=t&&function(t,r,n,e){var i=r.parent;if(I.isExportSpecifier(i)&&e)return k(r,t,i,n);return I.firstDefined(t.declarations,function(e){if(!e.parent){if(33554432&t.flags)return;I.Debug.fail("Unexpected symbol at "+I.Debug.formatSyntaxKind(r.kind)+": "+I.Debug.formatSymbol(t))}return I.isTypeLiteralNode(e.parent)&&I.isUnionTypeNode(e.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(e.parent.parent),t.name):void 0})}(e,t,i,!w(o))||e,_=t?F(t,l):7,d=[],a=new y(r,n,t?function(e){switch(e.kind){case 129:return 1;case 75:if(I.isClassLike(e.parent))return I.Debug.assert(e.parent.name===e),2;default:return 0}}(t):0,i,a,_,o,d),_=w(o)?I.find(l.declarations,I.isExportSpecifier):void 0;return _?T(_.name,l,_,a.createSearch(t,e,void 0),a,!0,!0):t&&84===t.kind?(E(t,l,a),h(t,l,{exportingModuleSymbol:I.Debug.checkDefined(l.parent,"Expected export symbol to have a parent"),exportKind:1},a)):(s=a.createSearch(t,l,void 0,{allSearchSymbols:t?(_=l,e=t,t=i,i=2===o.use,s=!!o.providePrefixAndSuffixTextForRename,c=!!o.implementations,u=[],A(_,e,t,i,!(i&&s),function(e,t,r){u.push(r||t||e)},function(){return!c}),u):[l]}),m(l,a,s)),d}function m(e,t,r){e=function(e){var t=e.declarations,r=e.flags,n=e.parent,i=e.valueDeclaration;if(i&&(201===i.kind||214===i.kind))return i;if(!t)return;if(8196&r){r=I.find(t,function(e){return I.hasModifier(e,8)||I.isPrivateIdentifierPropertyDeclaration(e)});return r?I.getAncestor(r,245):void 0}if(t.some(I.isObjectBindingElementWithoutPropertyName))return;var a,e=n&&!(262144&e.flags);if(e&&(!I.isExternalModuleSymbol(n)||n.globalExports))return;for(var o=0,s=t;o<s.length;o++){var c=s[o],c=I.getContainerNode(c);if(a&&a!==c)return;if(!c||290===c.kind&&!I.isExternalOrCommonJsModule(c))return;a=c}return e?a.getSourceFile():a}(e);if(e)o(e,e.getSourceFile(),r,t,!(I.isSourceFile(e)&&!I.contains(t.sourceFiles,e)));else for(var n=0,i=t.sourceFiles;n<i.length;n++){var a=i[n];t.cancellationToken.throwIfCancellationRequested(),b(a,r,t)}}var t;e.getReferencedSymbolsForNode=function(e,t,r,n,i,a,o){if(void 0===a&&(a={}),void 0===o&&(o=I.arrayToSet(n,function(e){return e.fileName})),1===a.use?t=I.getAdjustedReferenceLocation(t):2===a.use&&(t=I.getAdjustedRenameLocation(t)),I.isSourceFile(t)){var s=I.GoToDefinition.getReferenceAtPosition(t,e,r),c=s&&r.getTypeChecker().getMergedSymbol(s.file.symbol);return c&&d(r,c,!1,n,o)}if(!a.implementations){var u=function(e,t,r){if(I.isTypeKeyword(e.kind))return(110!==e.kind||!I.isVoidExpression(e.parent))&&(138!==e.kind||p(e))?function(e,t,r,n){e=I.flatMap(e,function(e){return r.throwIfCancellationRequested(),I.mapDefined(x(e,I.tokenToString(t),e),function(e){if(e.kind===t&&(!n||n(e)))return M(e)})});return e.length?[{definition:{type:2,node:e[0].node},references:e}]:void 0}(t,e.kind,r,138===e.kind?p:void 0):void 0;{if(I.isJumpStatementTarget(e)){var n=I.getTargetLabel(e.parent,e.text);return n&&D(n.parent,n)}if(I.isLabelOfLabeledStatement(e))return D(e.parent,e)}if(I.isThis(e))return function(e,t,r){var n=I.getThisContainer(e,!1),i=32;switch(n.kind){case 161:case 160:if(I.isObjectLiteralMethod(n))break;case 159:case 158:case 162:case 163:case 164:i&=I.getModifierFlags(n),n=n.parent;break;case 290:if(I.isExternalModule(n)||N(e))return;case 244:case 201:break;default:return}t=I.flatMap(290===n.kind?t:[n.getSourceFile()],function(e){return r.throwIfCancellationRequested(),x(e,"this",I.isSourceFile(n)?e:n).filter(function(e){if(!I.isThis(e))return!1;var t=I.getThisContainer(e,!1);switch(n.kind){case 201:case 244:return n.symbol===t.symbol;case 161:case 160:return I.isObjectLiteralMethod(n)&&n.symbol===t.symbol;case 214:case 245:return t.parent&&n.symbol===t.parent.symbol&&(32&I.getModifierFlags(t))===i;case 290:return 290===t.kind&&!I.isExternalModule(t)&&!N(e)}})}).map(function(e){return M(e)});return[{definition:{type:3,node:I.firstDefined(t,function(e){return I.isParameter(e.node.parent)?e.node:void 0})||e},references:t}]}(e,t,r);return 102!==e.kind?void 0:function(e){var r=I.getSuperContainer(e,!1);if(!r)return;var n=32;switch(r.kind){case 159:case 158:case 161:case 160:case 162:case 163:case 164:n&=I.getModifierFlags(r),r=r.parent;break;default:return}e=r.getSourceFile(),e=I.mapDefined(x(e,"super",r),function(e){if(102===e.kind){var t=I.getSuperContainer(e,!1);return t&&(32&I.getModifierFlags(t))===n&&t.parent.symbol===r.symbol?M(e):void 0}});return[{definition:{type:0,symbol:r.symbol},references:e}]}(e)}(t,n,i);if(u)return u}return e=r.getTypeChecker(),(s=e.getSymbolAtLocation(t))?"export="===s.escapedName?d(r,s.parent,!1,n,o):!(c=l(s,r,n,i,a,o))||33554432&s.flags?(u=(u=g(t,s,e))&&l(u,r,n,i,a,o),_(r,c,f(s,t,n,o,e,i,a),u)):c:!a.implementations&&I.isStringLiteral(t)?function(t,e,r){e=I.flatMap(e,function(e){return r.throwIfCancellationRequested(),I.mapDefined(x(e,t.text),function(e){return I.isStringLiteral(e)&&e.text===t.text?M(e,2):void 0})});return[{definition:{type:4,node:t},references:e}]}(t,n,i):void 0},(t={})[t.None=0]="None",t[t.Constructor=1]="Constructor",t[t.Class=2]="Class";var y=(r.prototype.includesSourceFile=function(e){return this.sourceFilesSet.has(e.fileName)},r.prototype.getImportSearches=function(e,t){return this.importTracker||(this.importTracker=O.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?I.stripQuotes(I.symbolName(I.getLocalSymbolForExportDefault(t)||function(e){if(33555968&e.flags){e=e.declarations&&I.find(e.declarations,function(e){return!I.isSourceFile(e)&&!I.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:I.escapeLeadingUnderscores(i),parents:this.options.implementations&&e?function(e,t,r){e=I.isRightSideOfPropertyAccess(e)?e.parent:void 0,e=e&&r.getTypeAtLocation(e.expression),e=I.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 I.contains(a,e)}}},r.prototype.referenceAdder=function(e){var t=I.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(M(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=I.getNodeId(e),r=this.sourceFileToSeenSymbols[e]||(this.sourceFileToSeenSymbols[e]=I.createMap()),n=!1,i=0,a=t;i<a.length;i++)var o=a[i],n=I.addToSeen(r,I.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=I.createMap(),this.markSeenContainingTypeReference=I.nodeSeenTracker(),this.markSeenReExportRHS=I.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}function h(e,t,r,n){var i,a,o=n.getImportSearches(t,r),s=o.importSearches,c=o.singleReferences,o=o.indirectUsers;if(c.length)for(var u=n.referenceAdder(t),l=0,_=c;l<_.length;l++){var d=_[l];!C(i=d,a=n)||2===a.options.use&&(!I.isIdentifier(i)||I.isImportOrExportSpecifier(i.parent)&&"default"===i.escapedText)||u(d)}for(var p=0,f=s;p<f.length;p++){var g=f[p],m=g[0],g=g[1];S(m.getSourceFile(),n.createSearch(m,g,1),n)}if(o.length){var y=void 0;switch(r.exportKind){case 0:y=n.createSearch(e,t,1);break;case 1:y=2===n.options.use?void 0:n.createSearch(e,t,1,{text:"default"})}if(y)for(var h=0,v=o;h<v.length;h++)b(v[h],y,n)}}function v(e,t){if(e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r],a=i.getSourceFile();S(a,t.createSearch(i,e,0),t,t.includesSourceFile(a))}}function b(e,t,r){void 0!==I.getNameTable(e).get(t.escapedText)&&S(e,t,r)}function i(e,t,r,n,i){void 0===i&&(i=r);var a=I.isParameterPropertyDeclaration(e.parent,e.parent.parent)?I.first(t.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):t.getSymbolAtLocation(e);if(a)for(var o=0,s=x(r,a.name,i);o<s.length;o++){var c=s[o];if(I.isIdentifier(c)&&c!==e&&c.escapedText===e.escapedText){var u=t.getSymbolAtLocation(c);if(u===a||t.getShorthandAssignmentValueSymbol(c.parent)===a||I.isExportSpecifier(c.parent)&&k(c,u,c.parent,t)===a){c=n(c);if(c)return c}}}}function x(t,e,r){return void 0===r&&(r=t),s(t,e,r).map(function(e){return I.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&&I.isIdentifierPart(i.charCodeAt(s-1),99)||c!==a&&I.isIdentifierPart(i.charCodeAt(c),99)||n.push(s),s=i.indexOf(t,s+o+1)}return n}function D(e,t){var r=e.getSourceFile(),n=t.text,e=I.mapDefined(x(r,n,e),function(e){return e===t||I.isJumpStatementTarget(e)&&I.getTargetLabel(e,n)===t?M(e):void 0});return[{definition:{type:1,node:t},references:e}]}function S(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),o(e,e,t,r,n),0}function o(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=s(t,r.text,e);a<o.length;a++)!function(e,t,r,n,i){var a=I.getTouchingPropertyName(e,t);if(!function(e,t){switch(e.kind){case 76:case 75:return e.text.length===t.length;case 14:case 10:var r=e;return(I.isLiteralNameOfPropertyDeclarationOrIndexAccess(r)||I.isNameOfModuleDeclaration(e)||I.isExpressionOfExternalModuleImportEqualsDeclaration(e)||I.isCallExpression(e.parent)&&I.isBindableObjectDefinePropertyCall(e.parent)&&e.parent.arguments[1]===e)&&r.text.length===t.length;case 8:return I.isLiteralNameOfPropertyDeclarationOrIndexAccess(e)&&e.text.length===t.length;case 84:return"default".length===t.length;default:return}}(a,r.text))return!n.options.implementations&&(n.options.findInStrings&&I.isInString(e,t)||n.options.findInComments&&I.isInNonReferenceComment(e,t))&&n.addStringOrCommentReference(e.fileName,I.createTextSpan(t,r.text.length));if(C(a,n)){var o=n.checker.getSymbolAtLocation(a);if(o&&(t=a.parent,!I.isImportSpecifier(t)||t.propertyName!==a)){if(I.isExportSpecifier(t))return I.Debug.assert(75===a.kind),T(a,o,t,r,n,i),0;var s=function(i,e,t,r){var n=r.checker;return A(e,t,n,!1,2!==r.options.use||!!r.options.providePrefixAndSuffixTextForRename,function(e,t,r,n){return i.includes(r||t||e)?{symbol:!t||6&I.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=I.getSymbolId(e)+","+I.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 I.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&&I.getNameOfDeclaration(i);33554432&n||!i||!t.includes(e)||E(i,e,r)}(o,r,n),0;switch(n.specialSearchKind){case 0:i&&E(a,s,n);break;case 1:!function(e,t,r,n){function i(){return n.referenceAdder(r.symbol)}I.isNewExpressionTarget(e)&&E(e,r.symbol,n),I.isClassLike(e.parent)?(I.Debug.assert(84===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=I.findChildOfKind(o,129,t);I.Debug.assert(162===o.kind&&!!s),r(s)}e.exports&&e.exports.forEach(function(e){e=e.valueDeclaration;!e||161!==e.kind||(e=e.body)&&P(e,104,function(e){I.isNewExpressionTarget(e)&&r(e)})})}(r.symbol,t,i())):(e=function(e){return I.tryGetClassExtendingExpressionWithTypeArguments(I.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];I.Debug.assert(162===i.kind);i=i.body;i&&P(i,102,function(e){I.isCallExpressionTarget(e)&&t(e)})}}(e,i()),function(e,t){var r;!function(e){return!!c(e.symbol)}(e)&&(r=e.symbol,e=t.createSearch(void 0,r,void 0),m(r,t,e))}(e,n))}(a,e,r,n);break;case 2:!function(e,t,r){E(e,t.symbol,r);var n=e.parent;if(2!==r.options.use&&I.isClassLike(n)){I.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];I.isMethodOrAccessor(s)&&I.hasModifier(s,32)&&s.body&&s.body.forEachChild(function e(t){104===t.kind?i(t):I.isFunctionLike(t)||I.isClassLike(t)||t.forEachChild(e)})}}}(a,r,n);break;default:I.Debug.assertNever(n.specialSearchKind)}!function(e,t,r,n){(t=O.getImportOrExportSymbol(e,t,n.checker,1===r.comingFrom))&&(r=t.symbol,0===t.kind?w(n.options)||v(r,n):h(e,r,t.exportInfo,n))}(a,o,r,n)}}}(t,o[a],r,n,i)}function C(e,t){return I.getMeaningFromLocation(e)&t.searchMeaning}function T(e,t,r,n,i,a,o){I.Debug.assert(!o||!!i.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var s=r.parent,c=r.propertyName,u=r.name,s=s.parent,l=k(e,t,r,i.checker);function _(){a&&E(e,l,i)}(o||n.includes(l))&&(c?e===c?(s.moduleSpecifier||_(),a&&2!==i.options.use&&i.markSeenReExportRHS(u)&&E(u,I.Debug.checkDefined(r.symbol),i)):i.markSeenReExportRHS(e)&&_():2===i.options.use&&"default"===u.escapedText||_(),w(i.options)&&!o||(u=84===e.originalKeywordKind||84===r.name.originalKeywordKind?1:0,o=I.Debug.checkDefined(r.symbol),(u=O.getExportInfo(o,u,i.checker))&&h(e,o,u,i)),1===n.comingFrom||!s.moduleSpecifier||c||w(i.options)||(r=i.checker.getExportSpecifierLocalTargetSymbol(r))&&v(r,i))}function k(e,t,r,n){return i=e,o=(a=r).parent,e=a.propertyName,a=a.name,I.Debug.assert(e===i||a===i),(e?e===i:!o.parent.moduleSpecifier)&&n.getExportSpecifierLocalTargetSymbol(r)||t;var i,a,o}function E(e,t,r){var n="kind"in t?t:{kind:void 0,symbol:t},t=n.kind,n=n.symbol,n=r.referenceAdder(n);r.options.implementations?function(e,t,r){if(I.isDeclarationName(e)&&function(e){return 8388608&e.flags?!(I.isInterfaceDeclaration(e)||I.isTypeAliasDeclaration(e)):I.isVariableLike(e)?I.hasInitializer(e):I.isFunctionLikeDeclaration(e)?!!e.body:I.isClassLike(e)||I.isModuleOrEnumDeclaration(e)}(e.parent))return t(e);if(75===e.kind){282===e.parent.kind&&a(e,r.checker,t);var n=function e(t){return I.isIdentifier(t)||I.isPropertyAccessExpression(t)?e(t.parent):I.isExpressionWithTypeArguments(t)?I.tryCast(t.parent.parent,I.isClassLike):void 0}(e);if(n)return t(n);n=I.findAncestor(e,function(e){return!I.isQualifiedName(e.parent)&&!I.isTypeNode(e.parent)&&!I.isTypeElement(e.parent)}),e=n.parent,I.hasType(e)&&e.type===n&&r.markSeenContainingTypeReference(e)&&(I.hasInitializer(e)?i(e.initializer):I.isFunctionLike(e)&&e.body?223===(r=e.body).kind?I.forEachReturnStatement(r,function(e){e.expression&&i(e.expression)}):i(r):I.isAssertionExpression(e)&&i(e.expression))}function i(e){!function e(t){switch(t.kind){case 200:return e(t.expression);case 202:case 201:case 193:case 214:case 192:return!0;default:return!1}}(e)||t(e)}}(e,n,r):n(e,t)}function c(e){return e.members&&e.members.get("__constructor")}function N(e){return 75===e.kind&&156===e.parent.kind&&e.parent.name===e}function A(e,t,i,r,n,a,o){var s=I.getContainingObjectLiteralElement(t);if(s){var c=i.getShorthandAssignmentValueSymbol(t.parent);if(c&&r)return a(c,void 0,void 0,3);var u=i.getContextualType(s.parent),s=u&&I.firstDefined(I.getPropertySymbolsFromContextualType(s,i,u,!0),function(e){return p(e,4)});if(s)return s;u=(u=t,s=i,I.isArrayLiteralOrObjectLiteralDestructuringPattern(u.parent.parent)?s.getPropertySymbolOfDestructuringAssignment(u):void 0),u=u&&a(u,void 0,void 0,4);if(u)return u;c=c&&a(c,void 0,void 0,3);if(c)return c}c=g(t,e,i);if(c){var l=a(c,void 0,void 0,1);if(l)return l}l=p(e);if(l)return l;if(e.valueDeclaration&&I.isParameterPropertyDeclaration(e.valueDeclaration,e.valueDeclaration.parent)){var _=i.getSymbolsOfParameterPropertyDeclaration(I.cast(e.valueDeclaration,I.isParameter),e.name);return I.Debug.assert(2===_.length&&!!(1&_[0].flags)&&!!(4&_[1].flags)),p(1&e.flags?_[1]:_[0])}_=I.getDeclarationOfKind(e,263);if(!r||_&&!_.propertyName){_=_&&i.getExportSpecifierLocalTargetSymbol(_);if(_){_=a(_,void 0,void 0,1);if(_)return _}}if(r)return I.Debug.assert(r),n?(d=f(e,i))&&p(d,4):void 0;var d=void 0;return(d=n?I.isObjectBindingElementWithoutPropertyName(t.parent)?I.getPropertySymbolFromBindingElement(i,t.parent):void 0:f(e,i))&&p(d,4);function p(r,n){return I.firstDefined(i.getRootSymbols(r),function(t){return a(r,t,void 0,n)||(t.parent&&96&t.parent.flags&&o(t)?I.getPropertySymbolsFromBaseTypes(t.parent,t.name,i,function(e){return a(r,t,e,n)}):void 0)})}function f(e,t){e=I.getDeclarationOfKind(e,191);if(e&&I.isObjectBindingElementWithoutPropertyName(e))return I.getPropertySymbolFromBindingElement(t,e)}}function F(e,t){var r=I.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=I.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&I.getMeaningFromDeclaration(a)&&r(a)}}function P(e,t,r){I.forEachChild(e,function(e){e.kind===t&&r(e),P(e,t,r)})}function w(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}e.eachExportReference=function(e,t,r,n,i,a,o,s){for(var i=(r=O.createImportTracker(e,I.arrayToSet(e,function(e){return e.fileName}),t,r)(n,{exportKind:o?1:0,exportingModuleSymbol:i},!1)).importSearches,r=r.indirectUsers,c=0,u=i;c<u.length;c++)s(u[c][0]);for(var l=0,_=r;l<_.length;l++)for(var d=0,p=x(_[l],o?"default":a);d<p.length;d++){var f=p[d];I.isIdentifier(f)&&!I.isImportOrExportSpecifier(f.parent)&&t.getSymbolAtLocation(f)===n&&s(f)}},e.isSymbolReferencedInFile=function(e,t,r,n){return void 0===n&&(n=r),i(e,t,r,function(){return!0},n)||!1},e.eachSymbolReferenceInFile=i,e.eachSignatureCall=function(e,t,r,n){if(e.name&&I.isIdentifier(e.name))for(var i=I.Debug.checkDefined(r.getSymbolAtLocation(e.name)),a=0,o=t;a<o.length;a++)for(var s=0,c=x(o[a],i.name);s<c.length;s++){var u,l,_=c[s];I.isIdentifier(_)&&_!==e.name&&_.escapedText===e.name.escapedText&&(l=(u=I.climbPastPropertyAccess(_)).parent,!I.isCallExpression(l)||l.expression!==u||(_=r.getSymbolAtLocation(_))&&r.getRootSymbols(_).some(function(e){return e===i})&&n(l))}},e.getIntersectingMeaningFromDeclarations=F,e.getReferenceEntriesForShorthandPropertyAssignment=a}(c=O.Core||(O.Core={}))}(ts=ts||{}),function(u){var e;function o(e){return(u.isFunctionExpression(e)||u.isArrowFunction(e)||u.isClassExpression(e))&&u.isVariableDeclaration(e.parent)&&e===e.parent.initializer&&u.isIdentifier(e.parent.name)&&!!(2&u.getCombinedNodeFlags(e.parent))}function s(e){return u.isSourceFile(e)||u.isModuleDeclaration(e)||u.isFunctionDeclaration(e)||u.isFunctionExpression(e)||u.isClassDeclaration(e)||u.isClassExpression(e)||u.isMethodDeclaration(e)||u.isMethodSignature(e)||u.isGetAccessorDeclaration(e)||u.isSetAccessorDeclaration(e)}function l(e){return u.isSourceFile(e)||u.isModuleDeclaration(e)&&u.isIdentifier(e.name)||u.isFunctionDeclaration(e)||u.isClassDeclaration(e)||u.isMethodDeclaration(e)||u.isMethodSignature(e)||u.isGetAccessorDeclaration(e)||u.isSetAccessorDeclaration(e)||(t=e,(u.isFunctionExpression(t)||u.isClassExpression(t))&&u.isNamedDeclaration(t))||o(e);var t}function n(e){return u.isSourceFile(e)?e:u.isNamedDeclaration(e)?e.name:o(e)?e.parent.name:u.Debug.checkDefined(e.modifiers&&u.find(e.modifiers,c))}function c(e){return 84===e.kind}function _(e,t){t=n(t);return t&&e.getSymbolAtLocation(t)}function d(e,t){if(t.body)return t;if(u.isConstructorDeclaration(t))return u.getFirstConstructorWithBody(t.parent);if(u.isFunctionDeclaration(t)||u.isMethodDeclaration(t)){e=_(e,t);return e&&e.valueDeclaration&&u.isFunctionLikeDeclaration(e.valueDeclaration)&&e.valueDeclaration.body?e.valueDeclaration:void 0}return t}function i(e,t){var r,n=_(e,t);if(n&&n.declarations){var t=u.indicesOf(n.declarations),i=u.map(n.declarations,function(e){return{file:e.getSourceFile().fileName,pos:e.pos}});t.sort(function(e,t){return u.compareStringsCaseSensitive(i[e].file,i[t].file)||i[e].pos-i[t].pos});for(var a=void 0,o=0,s=u.map(t,function(e){return n.declarations[e]});o<s.length;o++){var c=s[o];l(c)&&(a&&a.parent===c.parent&&a.end===c.pos||(r=u.append(r,c)),a=c)}}return r}function p(e,t){var r;return u.isFunctionLikeDeclaration(t)?null!==(r=null!==(r=d(e,t))&&void 0!==r?r:i(e,t))&&void 0!==r?r:t:null!==(e=i(e,t))&&void 0!==e?e:t}function f(e,t){for(var r,n=e.getTypeChecker(),i=!1;;){if(l(t))return p(n,t);if(s(t))return(r=u.findAncestor(t,l))&&p(n,r);if(u.isDeclarationName(t))return l(t.parent)?p(n,t.parent):s(t.parent)?(r=u.findAncestor(t.parent,l))&&p(n,r):u.isVariableDeclaration(t.parent)&&t.parent.initializer&&o(t.parent.initializer)?t.parent.initializer:void 0;if(u.isConstructorDeclaration(t))return l(t.parent)?t.parent:void 0;if(!i){var a=n.getSymbolAtLocation(t);if(a&&(2097152&a.flags&&(a=n.getAliasedSymbol(a)),a.valueDeclaration)){i=!0,t=a.valueDeclaration;continue}}return}}function a(e,t){var r=t.getSourceFile(),n=function(e,t){if(u.isSourceFile(t))return{text:t.fileName,pos:0,end:0};if((u.isFunctionDeclaration(t)||u.isClassDeclaration(t))&&!u.isNamedDeclaration(t)){var r=t.modifiers&&u.find(t.modifiers,c);if(r)return{text:"default",pos:r.getStart(),end:r.getEnd()}}var n,i=o(t)?t.parent.name:u.Debug.checkDefined(u.getNameOfDeclaration(t),"Expected call hierarchy item to have a name"),a=u.isIdentifier(i)?u.idText(i):u.isStringOrNumericLiteralLike(i)?i.text:u.isComputedPropertyName(i)&&u.isStringOrNumericLiteralLike(i.expression)?i.expression.text:void 0;return void 0!==a||(e=(r=e.getTypeChecker()).getSymbolAtLocation(i))&&(a=r.symbolToString(e,t)),void 0===a&&(n=u.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),a=u.usingSingleLineStringWriter(function(e){return n.writeNode(4,t,t.getSourceFile(),e)})),{text:a,pos:i.getStart(),end:i.getEnd()}}(e,t),i=u.getNodeKind(t),e=u.createTextSpanFromBounds(u.skipTrivia(r.text,t.getFullStart(),!1,!0),t.getEnd()),t=u.createTextSpanFromBounds(n.pos,n.end);return{file:r.fileName,kind:i,name:n.text,span:e,selectionSpan:t}}function g(e){return void 0!==e}function m(e){if(1===e.kind){var t=e.node;if(u.isCallOrNewExpressionTarget(t,!0,!0)||u.isTaggedTemplateTag(t,!0,!0)||u.isDecoratorTarget(t,!0,!0)||u.isJsxOpeningLikeElementTagName(t,!0,!0)||u.isRightSideOfPropertyAccess(t)||u.isArgumentExpressionOfElementAccess(t)){e=t.getSourceFile();return{declaration:u.findAncestor(t,l)||e,range:u.createTextRangeFromNode(t,e)}}}}function y(e){return""+u.getNodeId(e.declaration)}function h(s,c){function a(e){var t=u.isTaggedTemplateExpression(e)?e.tag:u.isJsxOpeningLikeElement(e)?e.tagName:u.isAccessExpression(e)?e:e.expression,r=f(s,t);if(r){var n=u.createTextRangeFromNode(t,e.getSourceFile());if(u.isArray(r))for(var i=0,a=r;i<a.length;i++){var o=a[i];c.push({declaration:o,range:n})}else c.push({declaration:r,range:n})}}return function e(t){if(t&&!(8388608&t.flags))if(l(t)){if(u.isClassLike(t))for(var r=0,n=t.members;r<n.length;r++){var i=n[r];i.name&&u.isComputedPropertyName(i.name)&&e(i.name.expression)}}else{switch(t.kind){case 75:case 253:case 254:case 260:case 246:case 247:return;case 199:case 217:return void e(t.expression);case 242:case 156:return e(t.name),void e(t.initializer);case 196:case 197:return a(t),e(t.expression),void u.forEach(t.arguments,e);case 198:return a(t),e(t.tag),void e(t.template);case 268:case 267:return a(t),e(t.tagName),void e(t.attributes);case 157:return a(t),void e(t.expression);case 194:case 195:a(t),u.forEachChild(t,e)}u.isPartOfTypeNode(t)||u.forEachChild(t,e)}}}function r(e,t){var r,n,i,a,o=[],s=h(e,o);switch(t.kind){case 290:i=t,a=s,u.forEach(i.statements,a);break;case 249:r=t,n=s,!u.hasModifier(r,2)&&r.body&&u.isModuleBlock(r.body)&&u.forEach(r.body.statements,n);break;case 244:case 201:case 202:case 161:case 163:case 164:r=e.getTypeChecker(),n=s,(r=d(r,r=t))&&(u.forEach(r.parameters,n),n(r.body));break;case 245:case 214:!function(e,t){u.forEach(e.decorators,t);var r=u.getClassExtendsHeritageElement(e);r&&t(r.expression);for(var n=0,i=e.members;n<i.length;n++){var a=i[n];u.forEach(a.decorators,t),u.isPropertyDeclaration(a)?t(a.initializer):u.isConstructorDeclaration(a)&&a.body&&(u.forEach(a.parameters,t),t(a.body))}}(t,s);break;default:u.Debug.assertNever(t)}return o}(e=u.CallHierarchy||(u.CallHierarchy={})).resolveCallHierarchyDeclaration=f,e.createCallHierarchyItem=a,e.getIncomingCalls=function(t,e,r){return u.isSourceFile(e)||u.isModuleDeclaration(e)?[]:(e=n(e),(e=u.filter(u.FindAllReferences.findReferenceOrRenameEntries(t,r,t.getSourceFiles(),e,0,{use:1},m),g))?u.group(e,y,function(e){return{from:a(t,(e=e)[0].declaration),fromSpans:u.map(e,function(e){return u.createTextSpanFromRange(e.range)})}}):[])},e.getOutgoingCalls=function(t,e){return 8388608&e.flags||u.isMethodSignature(e)?[]:u.group(r(t,e),y,function(e){return{to:a(t,(e=e)[0].declaration),fromSpans:u.map(e,function(e){return u.createTextSpanFromRange(e.range)})}})}}(ts=ts||{}),function(x){function n(e,n,i,a){var o=i(e);return function(e){var t=a&&a.tryGetSourcePosition({fileName:e,pos:0}),r=function(e){if(i(e)===o)return n;e=x.tryRemoveDirectoryPrefix(e,o,i);return void 0===e?void 0:n+"/"+e}(t?t.fileName:e);return t?void 0===r?void 0:function(e,t,r,n){n=x.getRelativePathFromFile(e,t,n);return D(x.getDirectoryPath(r),n)}(t.fileName,r,e,i):r}}function D(e,t){return x.ensurePathIsNonModuleName((e=e,t=t,x.normalizePath(x.combinePaths(e,t))))}function S(e,r,n){if(e){if(e.resolvedModule){var t=a(e.resolvedModule.resolvedFileName);if(t)return t}t=x.forEach(e.failedLookupLocations,function(e){var t=r(e);return t&&x.find(n,function(e){return e.fileName===t})?i(e):void 0})||x.forEach(e.failedLookupLocations,i);return t||e.resolvedModule&&{newFileName:e.resolvedModule.resolvedFileName,updated:!1}}function i(e){return x.endsWith(e,"/package.json")?void 0:a(e)}function a(e){e=r(e);return e&&{newFileName:e,updated:!0}}}function C(e,t){return x.createRange(e.getStart(t)+1,e.end-1)}function T(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,C(e,d),a(t)),!0)}function a(e){return x.getRelativePathFromDirectory(_,e,!l)}var t,o,r,s,c,u,l,_,d;t=p,o=e,r=v,s=f,c=g,u=m.getCurrentDirectory(),l=y,(d=t.getCompilerOptions().configFile)&&(_=x.getDirectoryPath(d.fileName),(t=x.getTsConfigObjectLiteralExpression(d))&&T(t,function(e,t){switch(t){case"files":case"include":case"exclude":var r;!n(e)&&"include"===t&&x.isArrayLiteralExpression(e.initializer)&&(r=x.mapDefined(e.initializer.elements,function(e){return x.isStringLiteral(e)?e.text:void 0}),r=x.getFileMatcherPatterns(_,[],r,l,u),x.getRegexFromPattern(x.Debug.checkDefined(r.includeFilePattern),l).test(s)&&!x.getRegexFromPattern(x.Debug.checkDefined(r.includeFilePattern),l).test(c)&&o.insertNodeAfter(d,x.last(e.initializer.elements),x.createStringLiteral(a(c))));break;case"compilerOptions":T(e.initializer,function(e,t){var r=x.getOptionFromName(t);r&&(r.isFilePath||"list"===r.type&&r.element.isFilePath)?n(e):"paths"===t&&T(e.initializer,function(e){if(x.isArrayLiteralExpression(e.initializer))for(var t=0,r=e.initializer.elements;t<r.length;t++)i(r[t])})})}})),function(c,u,l,_,d,p){for(var f=c.getSourceFiles(),e=function(r){var e=l(r.path),n=void 0!==e?e:r.path,t=x.getDirectoryPath(n),i=_(r.fileName),a=i||r.fileName,o=x.getDirectoryPath(a),s=void 0!==e||void 0!==i;!function(e,t,r,n){for(var i=0,a=e.referencedFiles||x.emptyArray;i<a.length;i++){var o=a[i];void 0!==(u=r(o.fileName))&&u!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,u)}for(var s=0,c=e.imports;s<c.length;s++){var u,l=c[s];void 0!==(u=n(l))&&u!==l.text&&t.replaceRangeWithText(e,C(l,e),u)}}(r,u,function(e){if(x.pathIsRelative(e)){e=D(o,e),e=l(e);return void 0===e?void 0:x.ensurePathIsNonModuleName(x.getRelativePathFromDirectory(t,e,p))}},function(e){var t=c.getTypeChecker().getSymbolAtLocation(e);if(!t||!t.declarations.some(function(e){return x.isAmbientModule(e)})){t=void 0!==i?S(x.resolveModuleName(e.text,a,c.getCompilerOptions(),d),l,f):function(e,t,r,n,i,a){{if(e){var o=x.find(e.declarations,x.isSourceFile).fileName,e=a(o);return void 0===e?{newFileName:o,updated:!1}:{newFileName:e,updated:!0}}return S(i.resolveModuleNames?i.getResolvedModuleWithFailedLookupLocationsFromCache&&i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName):n.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName),a,n.getSourceFiles())}}(t,e,r,c,d,l);return void 0!==t&&(t.updated||s&&x.pathIsRelative(e.text))?x.moduleSpecifiers.updateModuleSpecifier(c.getCompilerOptions(),n,t.newFileName,x.createModuleSpecifierResolutionHost(c,d),e.text):void 0}})},t=0,r=f;t<r.length;t++){var n=r[t];e(n)}}(p,e,v,b,m,h)})},x.getPathUpdater=n}(ts=ts||{}),function(d){var e;function i(e,t,r){var n,i=p(t,r,e);if(i)return[(n=i.fileName,{fileName:i.file.fileName,textSpan:d.createTextSpanFromBounds(0,0),kind:"script",name:n,containerName:void 0,containerKind:void 0})];var a=d.getTouchingPropertyName(t,r);if(a!==t){var r=a.parent,o=e.getTypeChecker();if(d.isJumpStatementTarget(a)){var s=d.getTargetLabel(a.parent,a.text);return s?[m(o,s,"label",a.text,void 0)]:void 0}t=function(e,t){var r=t.getSymbolAtLocation(e);if(r&&2097152&r.flags&&function(e,t){if(75!==e.kind)return!1;if(e.parent===t)return!0;switch(t.kind){case 255:case 253:return!0;case 258:return 257===t.parent.kind;default:return!1}}(e,r.declarations[0])){var n=t.getAliasedSymbol(r);if(n.declarations)return n}if(r&&d.isInJSFile(e)){e=d.forEach(r.declarations,function(e){return d.isVariableDeclaration(e)&&e.initializer&&d.isRequireCall(e.initializer,!0)?e.initializer:void 0});if(e){e=t.getSymbolAtLocation(e.arguments[0]);if(e)return t.resolveExternalModuleSymbol(e)}}return r}(a,o);if(!t)return function(e,t){if(!d.isPropertyAccessExpression(e.parent)||e.parent.name!==e)return;e=t.getTypeAtLocation(e.parent.expression);return d.mapDefined(e.isUnionOrIntersection()?e.types:[e],function(e){e=t.getIndexInfoOfType(e,0);return e&&e.declaration&&y(t,e.declaration)})}(a,o);var c=function(e,t){t=function(e){var t=function e(t){return d.isRightSideOfPropertyAccess(t)?e(t.parent):t}(e),e=t.parent;return e&&d.isCallLikeExpression(e)&&d.getInvokedExpression(e)===t?e:void 0}(t),t=t&&e.getResolvedSignature(t);return d.tryCast(t&&t.declaration,function(e){return d.isFunctionLike(e)&&!d.isFunctionTypeNode(e)})}(o,a);if(c&&(!d.isJsxOpeningLikeElement(a.parent)||!function(e){switch(e.kind){case 162:case 171:case 166:return!0;default:return!1}}(c))){e=y(o,c);if(o.getRootSymbols(t).some(function(e){return(t=e)===(e=c).symbol||t===e.symbol.parent||!d.isCallLikeExpression(e.parent)&&t===e.parent.symbol;var t})||t.declarations&&t.declarations.some(function(e){return d.isVariableDeclaration(e)&&!!e.initializer&&d.isRequireCall(e.initializer,!1)}))return[e];s=f(o,t,a,c)||d.emptyArray;return 102===a.kind?__spreadArrays([e],s):__spreadArrays(s,[e])}if(282===a.parent.kind){var u=o.getShorthandAssignmentValueSymbol(t.valueDeclaration);return u?u.declarations.map(function(e){return g(e,o,u,a)}):[]}if(d.isPropertyName(a)&&d.isBindingElement(r)&&d.isObjectBindingPattern(r.parent)&&a===(r.propertyName||r.name)){var l=d.getNameFromPropertyName(a),_=o.getTypeAtLocation(r.parent);return void 0===l?d.emptyArray:d.flatMap(_.isUnion()?_.types:[_],function(e){e=e.getProperty(l);return e&&f(o,e,a)})}r=d.getContainingObjectLiteralElement(a);if(r){_=r&&o.getContextualType(r.parent);if(_)return d.flatMap(d.getPropertySymbolsFromContextualType(r,o,_,!1),function(e){return f(o,e,a)})}return f(o,t,a)}}function p(e,t,r){var n=o(e.referencedFiles,t);if(n)return(a=r.getSourceFileFromReference(e,n))&&{fileName:n.fileName,file:a};var i=o(e.typeReferenceDirectives,t);if(i){n=r.getResolvedTypeReferenceDirectives().get(i.fileName);return(a=n&&r.getSourceFile(n.resolvedFileName))&&{fileName:i.fileName,file:a}}var a,t=o(e.libReferenceDirectives,t);return t?(a=r.getLibFileFromReference(t))&&{fileName:t.fileName,file:a}:void 0}function a(e,t,r){return d.flatMap(!e.isUnion()||32&e.flags?[e]:e.types,function(e){return e.symbol&&f(t,e.symbol,r)})}function f(r,n,i,t){var e=d.filter(n.declarations,function(e){return e!==t&&(!d.isAssignmentDeclaration(e)||e===n.valueDeclaration)})||void 0;return function(){if(32&n.flags&&!(19&n.flags)&&(d.isNewExpressionTarget(i)||129===i.kind))return a((d.find(e,d.isClassLike)||d.Debug.fail("Expected declaration to have at least one class-like declaration")).members,!0)}()||(d.isCallOrNewExpressionTarget(i)||d.isNameOfFunctionDeclaration(i)?a(e,!1):void 0)||d.map(e,function(e){return g(e,r,n,i)});function a(e,t){if(e){e=e.filter(t?d.isConstructorDeclaration:d.isFunctionLike),t=e.filter(function(e){return!!e.body});return e.length?0!==t.length?t.map(function(e){return g(e,r,n,i)}):[g(d.last(e),r,n,i)]:void 0}}}function g(e,t,r,n){var i=t.symbolToString(r),a=d.SymbolDisplay.getSymbolKind(t,r,n),n=r.parent?t.symbolToString(r.parent,n):"";return m(t,e,a,i,n)}function m(e,t,r,n,i){var a=d.getNameOfDeclaration(t)||t,o=a.getSourceFile(),a=d.createTextSpanFromNode(a,o);return __assign(__assign({fileName:o.fileName,textSpan:a,kind:r,name:n,containerKind:void 0,containerName:i},d.FindAllReferences.toContextSpan(a,o,d.FindAllReferences.getContextNode(t))),{isLocal:!e.isDeclarationVisible(t)})}function y(e,t){return g(t,e,t.symbol,t)}function o(e,t){return d.find(e,function(e){return d.textRangeContainsPositionInclusive(e,t)})}(e=d.GoToDefinition||(d.GoToDefinition={})).getDefinitionAtPosition=i,e.getReferenceAtPosition=p,e.getTypeDefinitionAtPosition=function(e,t,r){var n=d.getTouchingPropertyName(t,r);if(n!==t){r=e.getSymbolAtLocation(n);if(r){t=e.getTypeOfSymbolAtLocation(r,n),r=function(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&d.isVariableDeclaration(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){t=t.getCallSignatures();if(1===t.length)return r.getReturnTypeOfSignature(d.first(t))}return}(r,t,e),r=r&&a(r,e,n);return r&&0!==r.length?r:a(t,e,n)}}},e.getDefinitionAndBoundSpan=function(e,t,r){var n=i(e,t,r);if(n&&0!==n.length){e=o(t.referencedFiles,r)||o(t.typeReferenceDirectives,r)||o(t.libReferenceDirectives,r);if(e)return{definitions:n,textSpan:d.createTextSpanFromRange(e)};r=d.getTouchingPropertyName(t,r);return{definitions:n,textSpan:d.createTextSpan(r.getStart(),r.getWidth())}}},e.findReferenceInPosition=o}(ts=ts||{}),function(l){var e,t,r,n;function i(e){return{name:e,kind:"",kindModifiers:"",displayParts:[l.textPart(e)],documentation:l.emptyArray,tags:void 0,codeActions:void 0}}function _(e){switch(e.kind){case 244:case 201:case 161:case 162:case 160:return{commentOwner:e,parameters:e.parameters};case 281:return _(e.initializer);case 245:case 246:case 158:case 248:case 284:case 247:return{commentOwner:e};case 225:var t=e.declarationList.declarations;return{commentOwner:e,parameters:1===t.length&&t[0].initializer?function(e){for(;200===e.kind;)e=e.expression;switch(e.kind){case 201:case 202:return e.parameters;case 214:var t=l.find(e.members,l.isConstructorDeclaration);return t?t.parameters:l.emptyArray}return l.emptyArray}(t[0].initializer):void 0};case 290:return"quit";case 249:return 249===e.parent.kind?void 0:{commentOwner:e};case 226:return _(e.expression);case 209:var r=e;return 0===l.getAssignmentDeclarationKind(r)?"quit":{commentOwner:e,parameters:l.isFunctionLike(r.right)?r.right.parameters:l.emptyArray};case 159:r=e.initializer;if(r&&(l.isFunctionExpression(r)||l.isArrowFunction(r)))return{commentOwner:e,parameters:r.parameters}}}e=l.JsDoc||(l.JsDoc={}),n=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],e.getJsDocCommentsFromDeclarations=function(e){var i=[];return l.forEachUnique(e,function(e){for(var t=0,r=function(e){switch(e.kind){case 317:case 323:return[e];case 315:case 322:return[e,e.parent];default:return l.getJSDocCommentsAndTags(e)}}(e);t<r.length;t++){var n=r[t].comment;void 0!==n&&(i.length&&i.push(l.lineBreakPart()),i.push(l.textPart(n)))}}),i},e.getJsDocTagsFromDeclarations=function(e){var i=[];return l.forEachUnique(e,function(e){for(var t=0,r=l.getJSDocTags(e);t<r.length;t++){var n=r[t];i.push({name:n.tagName.text,text:function(e){var t=e.comment;switch(e.kind){case 308:case 307:return n(e.class);case 321:return function(e){return i(e.map(function(e){return e.getText()}).join(", "))}(e.typeParameters);case 320:return n(e.typeExpression);case 322:case 315:case 323:case 317:var r=e.name;return r?n(r):t;default:return t}function n(e){return i(e.getText())}function i(e){return void 0===t?e:e+" "+t}}(n)})}}),i},e.getJSDocTagNameCompletions=function(){return t=t||l.map(n,function(e){return{name:e,kind:"keyword",kindModifiers:"",sortText:"0"}})},e.getJSDocTagNameCompletionDetails=i,e.getJSDocTagCompletions=function(){return r=r||l.map(n,function(e){return{name:"@"+e,kind:"keyword",kindModifiers:"",sortText:"0"}})},e.getJSDocTagCompletionDetails=i,e.getJSDocParameterNameCompletions=function(r){if(!l.isIdentifier(r.name))return l.emptyArray;var n=r.name.text,i=r.parent,e=i.parent;return l.isFunctionLike(e)?l.mapDefined(e.parameters,function(e){if(l.isIdentifier(e.name)){var t=e.name.text;if(!i.tags.some(function(e){return e!==r&&l.isJSDocParameterTag(e)&&l.isIdentifier(e.name)&&e.name.escapedText===t})&&(void 0===n||l.startsWith(t,n)))return{name:t,kind:"parameter",kindModifiers:"",sortText:"0"}}}):[]},e.getJSDocParameterNameCompletionDetails=function(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[l.textPart(e)],documentation:l.emptyArray,tags:void 0,codeActions:void 0}},e.getDocCommentTemplateAtPosition=function(e,t,r){var n=l.getTokenAtPosition(t,r);if(!(u=l.findAncestor(n,l.isJSDoc))||void 0===u.comment&&!l.length(u.tags)){var i=n.getStart(t);if(u||!(i<r)){u=(a=n,l.forEachAncestor(a,_));if(u){var n=u.commentOwner,a=u.parameters;if(!(n.getStart(t)<r)){if(!a||0===a.length)return{newText:"/** */",caretOffset:3};var o,s,c,u=function(e,t){for(var r=e.text,e=l.getLineStartPositionForPosition(t,e),n=e;n<=t&&l.isWhiteSpaceSingleLine(r.charCodeAt(n));n++);return r.slice(e,n)}(t,r),n="/**"+e+u+" * ";return{newText:n+e+(a=a,o=l.hasJSFileExtension(t.fileName),s=u,c=e,a.map(function(e,t){var r=e.name,e=e.dotDotDotToken,t=75===r.kind?r.text:"param"+t;return s+" * @param "+(o?e?"{...any} ":"{any} ":"")+t+c}).join(""))+u+" */"+(i===r?e+u:""),caretOffset:n.length}}}}}}}(ts=ts||{}),function(_){function d(e,t){return p(e,t)||_.isPropertyAccessExpression(e)&&(t.push(e.name.text),!0)&&d(e.expression,t)}function p(e,t){return _.isPropertyNameLiteral(e)&&(t.push(_.getTextOfIdentifierOrLiteral(e)),!0)}function f(e,t){return _.compareValues(e.matchKind,t.matchKind)||_.compareStringsCaseSensitiveUI(e.name,t.name)}function g(e){var t=e.declaration,r=_.getContainerNode(t),n=r&&_.getNameOfDeclaration(r);return{name:e.name,kind:_.getNodeKind(t),kindModifiers:_.getNodeModifiers(t),matchKind:_.PatternMatchKind[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:_.createTextSpanFromNode(t),containerName:n?n.text:"",containerKind:n?_.getNodeKind(r):""}}(_.NavigateTo||(_.NavigateTo={})).getNavigateToItems=function(e,n,t,r,i,a){var o=_.createPatternMatcher(r);if(!o)return _.emptyArray;for(var s=[],c=function(r){if(t.throwIfCancellationRequested(),a&&r.isDeclarationFile)return"continue";r.getNamedDeclarations().forEach(function(e,t){!function(e,t,r,n,i,a){var o=e.getMatchForLastSegmentOfPattern(t);if(o)for(var s=0,c=r;s<c.length;s++){var u,l=c[s];!function(e,t){switch(e.kind){case 255:case 258:case 253:var r=t.getSymbolAtLocation(e.name),n=t.getAliasedSymbol(r);return r.escapedName!==n.escapedName;default:return!0}}(l,n)||(e.patternContainsDots?(u=e.getFullMatch(function(e){var t=[],r=_.getNameOfDeclaration(e);if(r&&154===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)||154===e.kind&&d(e.expression,t))}(n,t))return _.emptyArray;n=_.getContainerNode(n)}return t.reverse()}(l),t))&&a.push({name:t,fileName:i,matchKind:u.kind,isCaseSensitive:u.isCaseSensitive,declaration:l}):a.push({name:t,fileName:i,matchKind:o.kind,isCaseSensitive:o.isCaseSensitive,declaration:l}))}}(o,t,e,n,r.fileName,s)})},u=0,l=e;u<l.length;u++)c(l[u]);return s.sort(f),(void 0===i?s:s.slice(0,i)).map(g)}}(ts=ts||{}),function(J){!function(e){var S,n,i,C,r=/\s+/g,a=150,o=[],s=[],t=[];function c(){o=[],i=S=n=void 0,t=[]}function u(e){return j(e.getText(n))}function l(e){return e.node.kind}function _(e,t){e.children?e.children.push(t):e.children=[t]}function d(e){J.Debug.assert(!o.length);var t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};i=t;for(var r=0,n=e.statements;r<n.length;r++)w(n[r]);return F(),J.Debug.assert(!i&&!o.length),t}function T(e,t){_(i,p(e,t))}function p(e,t){return{node:e,name:t||(J.isDeclaration(e)||J.isExpression(e)?J.getNameOfDeclaration(e):void 0),additionalNodes:void 0,parent:i,children:void 0,indent:i.indent+1}}function k(e){(C=C||J.createMap()).set(e,!0)}function E(e){for(var t=0;t<e;t++)F()}function N(e,t){for(var r=[];!J.isPropertyNameLiteral(t);){var n=J.getNameOrArgument(t),i=J.getElementOrPropertyAccessName(t);t=t.expression,"prototype"===i||J.isPrivateIdentifier(n)||r.push(n)}r.push(t);for(var a=r.length-1;0<a;a--)A(e,n=r[a]);return[r.length-1,r[0]]}function A(e,t){t=p(e,t);_(i,t),o.push(i),s.push(C),i=t}function F(){i.children&&(f(i.children,i),h(i.children)),i=o.pop(),C=s.pop()}function P(e,t,r){A(e,r),w(t),F()}function w(e){var t;if(S.throwIfCancellationRequested(),e&&!J.isToken(e))switch(e.kind){case 162:var r=e;P(r,r.body);for(var n=0,i=r.parameters;n<i.length;n++){var a=i[n];J.isParameterPropertyDeclaration(a,r)&&T(a)}break;case 161:case 163:case 164:case 160:J.hasDynamicName(e)||P(e,e.body);break;case 159:case 158:J.hasDynamicName(e)||T(e);break;case 255:var o=e;o.name&&T(o.name);o=o.namedBindings;if(o)if(256===o.kind)T(o);else for(var s=0,c=o.elements;s<c.length;s++)T(c[s]);break;case 282:P(e,e.name);break;case 283:var u=e.expression;J.isIdentifier(u)?T(e,u):T(e);break;case 191:case 281:case 242:var u=e.name,l=e.initializer;J.isBindingPattern(u)?w(u):l&&function(e){switch(e.kind){case 202:case 201:case 214:return!0;default:return!1}}(l)?(A(e),J.forEachChild(l,w),F()):P(e,l);break;case 244:l=e.name;l&&J.isIdentifier(l)&&k(l.text),P(e,e.body);break;case 202:case 201:P(e,e.body);break;case 248:A(e);for(var _=0,d=e.members;_<d.length;_++){var p=d[_];(t=p).name&&154!==t.name.kind&&T(p)}F();break;case 245:case 214:case 246:A(e);for(var f=0,g=e.members;f<g.length;f++)w(p=g[f]);F();break;case 249:P(e,function e(t){return t.body&&J.isModuleDeclaration(t.body)?e(t.body):t}(e).body);break;case 259:case 263:case 253:case 167:case 165:case 166:case 247:T(e);break;case 196:case 209:var m=J.getAssignmentDeclarationKind(e);switch(m){case 1:case 2:return void P(e,e.right);case 6:case 3:var y=(D=e).left,h=3===m?y.expression:y,v=0,b=void 0;return b=J.isIdentifier(h.expression)?(k(h.expression.text),h.expression):(v=(x=N(D,h.expression))[0],x[1]),6===m?J.isObjectLiteralExpression(D.right)&&0<D.right.properties.length&&(A(D,b),J.forEachChild(D.right,w),F()):J.isFunctionExpression(D.right)||J.isArrowFunction(D.right)?P(e,D.right,b):(A(D,b),P(e,D.right,y.name),F()),void 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,J.setTextRange(J.createIdentifier(x.text),x)),w(e.arguments[2]),F(),F(),void E(v);case 5:var D,v=(y=(D=e).left).expression;if(J.isIdentifier(v)&&"prototype"!==J.getElementOrPropertyAccessName(y)&&C&&C.has(v.text))return void(J.isFunctionExpression(D.right)||J.isArrowFunction(D.right)?P(e,D.right,v):J.isBindableStaticAccessExpression(y)&&(A(D,v),P(D.left,D.right,J.getNameOrArgument(y)),F()));break;case 4:case 0:case 8:break;default:J.Debug.assertNever(m)}default:J.hasJSDocNodes(e)&&J.forEach(e.jsDoc,function(e){J.forEach(e.tags,function(e){J.isJSDocTypeAlias(e)&&T(e)})}),J.forEachChild(e,w)}}function f(e,s){var c=J.createMap();J.filterMutate(e,function(e,t){var r=e.name||J.getNameOfDeclaration(e.node),n=r&&u(r);if(!n)return!0;r=c.get(n);if(!r)return c.set(n,e),!0;if(r instanceof Array){for(var i,a=0,o=r;a<o.length;a++)if(m(i=o[a],e,t,s))return!1;return r.push(e),!0}return!m(i=r,e,t,s)&&(c.set(n,[i,e]),!0)})}e.getNavigationBarItems=function(e,t){S=t,n=e;try{return J.map((r=d(e),o=[],function e(t){if(a(t)&&(o.push(t),t.children))for(var r=0,n=t.children;r<n.length;r++){var i=n[r];e(i)}}(r),o),I)}finally{c()}function a(e){if(e.children)return 1;switch(l(e)){case 245:case 214:case 248:case 246:case 249:case 290:case 247:case 322:case 315:return 1;case 202:case 244:case 201:return function(e){if(!e.node.body)return;switch(l(e.parent)){case 250:case 290:case 161:case 162:return 1;default:return}}(e);default:return}}var r,o},e.getNavigationTree=function(e,t){S=t,n=e;try{return D(d(e))}finally{c()}};var g=((e={})[5]=!0,e[3]=!0,e[7]=!0,e[9]=!0,e[0]=!1,e[1]=!1,e[2]=!1,e[8]=!1,e[6]=!0,e[4]=!1,e);function m(e,t,r,n){return function(e,t,r,n){function i(e){return J.isFunctionExpression(e)||J.isFunctionDeclaration(e)||J.isVariableDeclaration(e)}var a=J.isBinaryExpression(t.node)||J.isCallExpression(t.node)?J.getAssignmentDeclarationKind(t.node):0,o=J.isBinaryExpression(e.node)||J.isCallExpression(e.node)?J.getAssignmentDeclarationKind(e.node):0;if(g[a]&&g[o]||i(e.node)&&g[a]||i(t.node)&&g[o]||J.isClassDeclaration(e.node)&&g[a]||J.isClassDeclaration(t.node)&&g[o]||J.isClassDeclaration(e.node)&&i(t.node)||J.isClassDeclaration(t.node)&&i(e.node)){var s=e.additionalNodes&&J.lastOrUndefined(e.additionalNodes)||e.node;!J.isClassDeclaration(e.node)&&!J.isClassDeclaration(t.node)||i(e.node)||i(t.node)?(void 0!==(o=i(e.node)?e.node:i(t.node)?t.node:void 0)?((c=p(J.setTextRange(J.createConstructor(void 0,void 0,[],void 0),o))).indent=e.indent+1,c.children=(e.node===o?e:t).children,e.children=e.node===o?J.concatenate([c],t.children||[t]):J.concatenate(e.children||[e],[c])):(e.children||t.children)&&(e.children=J.concatenate(e.children||[e],t.children||[t]),e.children&&(f(e.children,e),h(e.children))),s=e.node=J.setTextRange(J.createClassDeclaration(void 0,void 0,e.name||J.createIdentifier("__class__"),void 0,void 0,[]),e.node)):(e.children=J.concatenate(e.children,t.children),e.children&&f(e.children,e));var c=t.node;return n.children[r-1].node.end===s.end?J.setTextRange(s,{pos:s.pos,end:c.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(J.setTextRange(J.createClassDeclaration(void 0,void 0,e.name||J.createIdentifier("__class__"),void 0,void 0,[]),t.node))),1}return 0!==a}(e,t,r,n)||function(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&(!y(e,r)||!y(t,r)))return!1;switch(e.kind){case 159:case 161:case 163:case 164:return J.hasModifier(e,32)===J.hasModifier(t,32);case 249:return function e(t,r){return t.body.kind===r.body.kind&&(249!==t.body.kind||e(t.body,r.body))}(e,t);default:return!0}}(e.node,t.node,n)&&(n=t,(t=e).additionalNodes=t.additionalNodes||[],t.additionalNodes.push(n.node),n.additionalNodes&&(e=t.additionalNodes).push.apply(e,n.additionalNodes),t.children=J.concatenate(t.children,n.children),t.children&&(f(t.children,t),h(t.children)),1)}function y(e,t){e=(J.isModuleBlock(e.parent)?e.parent:e).parent;return e===t.node||J.contains(t.additionalNodes,e)}function h(e){e.sort(v)}function v(e,t){return J.compareStringsCaseSensitiveUI(b(e.node),b(t.node))||J.compareValues(l(e),l(t))}function b(e){if(249===e.kind)return M(e);var t=J.getNameOfDeclaration(e);if(t&&J.isPropertyName(t)){t=J.getPropertyNameForPropertyNameNode(t);return t&&J.unescapeLeadingUnderscores(t)}switch(e.kind){case 201:case 202:case 214:return B(e);default:return}}function x(e,t){if(249===e.kind)return j(M(e));if(t){t=J.isIdentifier(t)?t.text:J.isElementAccessExpression(t)?"["+u(t.argumentExpression)+"]":u(t);if(0<t.length)return j(t)}switch(e.kind){case 290:var r=e;return J.isExternalModule(r)?'"'+J.escapeString(J.getBaseFileName(J.removeFileExtension(J.normalizePath(r.fileName))))+'"':"<global>";case 259:return J.isExportAssignment(e)&&e.isExportEquals?"export=":"default";case 202:case 244:case 201:case 245:case 214:return 512&J.getModifierFlags(e)?"default":B(e);case 162:return"constructor";case 166:return"new()";case 165:return"()";case 167:return"[]";default:return"<unknown>"}}function D(e){return{text:x(e.node,e.name),kind:J.getNodeKind(e.node),kindModifiers:R(e.node),spans:O(e),nameSpan:e.name&&L(e.name),childItems:J.map(e.children,D)}}function I(e){return{text:x(e.node,e.name),kind:J.getNodeKind(e.node),kindModifiers:R(e.node),spans:O(e),childItems:J.map(e.children,function(e){return{text:x(e.node,e.name),kind:J.getNodeKind(e.node),kindModifiers:J.getNodeModifiers(e.node),spans:O(e),childItems:t,indent:0,bolded:!1,grayed:!1}})||t,indent:e.indent,bolded:!1,grayed:!1}}function O(e){var t=[L(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r<n.length;r++){var i=n[r];t.push(L(i))}return t}function M(e){if(J.isAmbientModule(e))return J.getTextOfNode(e.name);var t=[];for(t.push(J.getTextOfIdentifierOrLiteral(e.name));e.body&&249===e.body.kind;)e=e.body,t.push(J.getTextOfIdentifierOrLiteral(e.name));return t.join(".")}function L(e){return 290===e.kind?J.createTextSpanFromRange(e):J.createTextSpanFromNode(e,n)}function R(e){return e.parent&&242===e.parent.kind&&(e=e.parent),J.getNodeModifiers(e)}function B(e){var t=e.parent;if(e.name&&0<J.getFullWidth(e.name))return j(J.declarationNameToString(e.name));if(J.isVariableDeclaration(t))return j(J.declarationNameToString(t.name));if(J.isBinaryExpression(t)&&62===t.operatorToken.kind)return u(t.left).replace(r,"");if(J.isPropertyAssignment(t))return u(t.name);if(512&J.getModifierFlags(e))return"default";if(J.isClassLike(e))return"<class>";if(J.isCallExpression(t)){e=function e(t){{if(J.isIdentifier(t))return t.text;if(J.isPropertyAccessExpression(t)){var r=e(t.expression),t=t.name.text;return void 0===r?t:r+"."+t}}}(t.expression);if(void 0!==e)return(e=j(e)).length>a?e+" callback":e+"("+j(J.mapDefined(t.arguments,function(e){return J.isStringLiteralLike(e)?e.getText(n):void 0}).join(", "))+") callback"}return"<function>"}function j(e){return(e=e.length>a?e.substring(0,a)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(J.NavigationBar||(J.NavigationBar={}))}(ts=ts||{}),function(b){var e;function _(e){return void 0!==e&&b.isStringLiteralLike(e)?e.text:void 0}function d(e){if(0===e.length)return e;var t=function(e){for(var t,r={defaultImports:[],namespaceImports:[],namedImports:[]},n={defaultImports:[],namespaceImports:[],namedImports:[]},i=0,a=e;i<a.length;i++){var o,s,c,u=a[i];void 0!==u.importClause?(o=u.importClause.isTypeOnly?r:n,c=u.importClause,s=c.name,c=c.namedBindings,s&&o.defaultImports.push(u),c&&(b.isNamespaceImport(c)?o.namespaceImports:o.namedImports).push(u)):t=t||u}return{importWithoutClause:t,typeOnlyImports:r,regularImports:n}}(e),e=t.importWithoutClause,r=t.typeOnlyImports,t=t.regularImports,n=[];e&&n.push(e);for(var i=0,a=[t,r];i<a.length;i++){var o=a[i],s=o===r,c=o.defaultImports,u=o.namespaceImports,l=o.namedImports;if(s||1!==c.length||1!==u.length||0!==l.length){for(var _=0,d=b.stableSort(u,function(e,t){return S(e.importClause.namedBindings.name,t.importClause.namedBindings.name)});_<d.length;_++){var p=d[_];n.push(x(p,void 0,p.importClause.namedBindings))}if(0!==c.length||0!==l.length){var f=void 0,g=[];if(1===c.length)f=c[0].importClause.name;else for(var m=0,y=c;m<y.length;m++){v=y[m];g.push(b.createImportSpecifier(b.createIdentifier("default"),v.importClause.name))}g.push.apply(g,b.flatMap(l,function(e){return e.importClause.namedBindings.elements}));var h=D(g),o=(0<c.length?c:l)[0],h=0===h.length?f?void 0:b.createNamedImports(b.emptyArray):0===l.length?b.createNamedImports(h):b.updateNamedImports(l[0].importClause.namedBindings,h);s&&f&&h?(n.push(x(o,f,void 0)),n.push(x(null!==(l=l[0])&&void 0!==l?l:o,void 0,h))):n.push(x(o,f,h))}}else{var v=c[0];n.push(x(v,v.importClause.name,u[0].importClause.namedBindings))}}return n}function p(e){if(0===e.length)return e;var t=function(e){for(var t,r=[],n=[],i=0,a=e;i<a.length;i++){var o=a[i];void 0===o.exportClause?t=t||o:(o.isTypeOnly?n:r).push(o)}return{exportWithoutClause:t,namedExports:r,typeOnlyExports:n}}(e),r=t.exportWithoutClause,e=t.namedExports,t=t.typeOnlyExports,n=[];r&&n.push(r);for(var i=0,a=[e,t];i<a.length;i++){var o,s=a[i];0!==s.length&&((o=[]).push.apply(o,b.flatMap(s,function(e){return e.exportClause&&b.isNamedExports(e.exportClause)?e.exportClause.elements:b.emptyArray})),o=D(o),s=s[0],n.push(b.updateExportDeclaration(s,s.decorators,s.modifiers,s.exportClause&&(b.isNamedExports(s.exportClause)?b.updateNamedExports(s.exportClause,o):b.updateNamespaceExport(s.exportClause,s.exportClause.name)),s.moduleSpecifier,s.isTypeOnly)))}return n}function x(e,t,r){return b.updateImportDeclaration(e,e.decorators,e.modifiers,b.updateImportClause(e.importClause,t,r,e.importClause.isTypeOnly),e.moduleSpecifier)}function D(e){return b.stableSort(e,function(e,t){return S(e.propertyName||e.name,t.propertyName||t.name)||S(e.name,t.name)})}function f(e,t){e=_(e),t=_(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)}(e=b.OrganizeImports||(b.OrganizeImports={})).organizeImports=function(i,a,o,t,e){function r(e){return d(function(e,t,r){for(var n=r.getTypeChecker(),i=n.getJsxNamespace(t),a=!!(2&t.transformFlags),o=[],s=0,c=e;s<c.length;s++){var u,l,_=c[s],d=_.importClause,p=_.moduleSpecifier;d?(u=d.name,l=d.namedBindings,u&&!f(u)&&(u=void 0),l&&(b.isNamespaceImport(l)?f(l.name)||(l=void 0):(d=l.elements.filter(function(e){return f(e.name)})).length<l.elements.length&&(l=d.length?b.updateNamedImports(l,d):void 0)),u||l?o.push(x(_,u,l)):function(e,t){var r=b.isStringLiteral(t)&&t.text;return b.isString(r)&&b.some(e.moduleAugmentations,function(e){return b.isStringLiteral(e)&&e.text===r})}(t,p)&&(t.isDeclarationFile?o.push(b.createImportDeclaration(_.decorators,_.modifiers,void 0,p)):o.push(_))):o.push(_)}return o;function f(e){return a&&e.text===i||b.FindAllReferences.Core.isSymbolReferencedInFile(e,n,t)}}(e,i,t))}var s=b.textChanges.ChangeTracker.fromContext({host:o,formatContext:a,preferences:e});l(i.statements.filter(b.isImportDeclaration),r),l(i.statements.filter(b.isExportDeclaration),p);for(var n=0,c=i.statements.filter(b.isAmbientModule);n<c.length;n++){var u=c[n];u.body&&(l(u.body.statements.filter(b.isImportDeclaration),r),l(u.body.statements.filter(b.isExportDeclaration),p))}return s.getChanges();function l(e,t){if(0!==b.length(e)){b.suppressLeadingTrivia(e[0]);var r=b.group(e,function(e){return _(e.moduleSpecifier)}),r=b.stableSort(r,function(e,t){return f(e[0].moduleSpecifier,t[0].moduleSpecifier)}),r=b.flatMap(r,function(e){return _(e[0].moduleSpecifier)?t(e):e});0===r.length?s.delete(i,e[0]):s.replaceNodeWithNodes(i,e[0],r,{leadingTriviaOption:b.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:b.textChanges.TrailingTriviaOption.Include,suffix:b.getNewLineOrDefaultFromHost(o,a.options)});for(var n=1;n<e.length;n++)s.deleteNode(i,e[n])}}},e.coalesceImports=d,e.coalesceExports=p,e.compareModuleSpecifiers=f}(ts=ts||{}),function(y){!function(){(y.OutliningElementsCollector||(y.OutliningElementsCollector={})).collectElements=function(e,t){var r=[];return function(r,n,i){for(var a=40,e=0,t=__spreadArrays(r.statements,[r.endOfFileToken]),o=t.length;e<o;){for(;e<o&&!y.isAnyImportSyntax(t[e]);)u(t[e]),e++;if(e===o)break;for(var s=e;e<o&&y.isAnyImportSyntax(t[e]);)l(t[e],r,n,i),e++;var c=e-1;c!==s&&i.push(m(y.findChildOfKind(t[s],96,r).getStart(r),t[c].getEnd(),"imports"))}function u(e){var t;0!==a&&(n.throwIfCancellationRequested(),!y.isDeclaration(e)&&1!==e.kind||l(e,r,n,i),function(e){if(!y.isFunctionExpression(e)&&!y.isArrowFunction(e))return!1;var t=y.findAncestor(e,y.isVariableStatement);return!!t&&y.getSingleInitializerOfVariableStatementOrPropertyDeclaration(t)===e}(e)&&l(e.parent.parent.parent,r,n,i),(t=function(a,o){switch(a.kind){case 223:if(y.isFunctionLike(a.parent))return function(e,t,r){var n=y.isNodeArrayMultiLine(e.parameters,r)?y.findChildOfKind(e,20,r):y.findChildOfKind(t,18,r),t=y.findChildOfKind(t,19,r);return n&&t&&_(n,t,e,r,202!==e.kind)}(a.parent,a,o);switch(a.parent.kind){case 228:case 231:case 232:case 230:case 227:case 229:case 236:case 280:return r(a.parent);case 240:var e=a.parent;if(e.tryBlock===a)return r(a.parent);if(e.finallyBlock===a){e=y.findChildOfKind(e,92,o);if(e)return r(e)}default:return d(y.createTextSpanFromNode(a,o),"code")}case 250:return r(a.parent);case 245:case 214:case 246:case 248:case 251:case 173:return r(a);case 277:case 278:return function(e){return e.length?d(y.createTextSpanFromRange(e),"code"):void 0}(a.statements);case 193:return t(a);case 192:return t(a,22);case 266:return function(e){var t=y.createTextSpanFromBounds(e.openingElement.getStart(o),e.closingElement.getEnd()),e=e.openingElement.tagName.getText(o);return d(t,"code",t,!1,"<"+e+">...</"+e+">")}(a);case 270:return function(e){e=y.createTextSpanFromBounds(e.openingFragment.getStart(o),e.closingFragment.getEnd());return d(e,"code",e,!1,"<>...</>")}(a);case 267:case 268:return function(e){return 0!==e.properties.length?m(e.getStart(o),e.getEnd(),"code"):void 0}(a.attributes);case 211:case 14:return function(e){return 14!==e.kind||0!==e.text.length?m(e.getStart(o),e.getEnd(),"code"):void 0}(a)}function t(e,t){return void 0===t&&(t=18),r(e,!1,!y.isArrayLiteralExpression(e.parent)&&!y.isCallExpression(e.parent),t)}function r(e,t,r,n,i){void 0===t&&(t=!1),void 0===r&&(r=!0),void 0===n&&(n=18),void 0===i&&(i=18===n?19:23);n=y.findChildOfKind(a,n,o),i=y.findChildOfKind(a,i,o);return n&&i&&_(n,i,e,o,t,r)}}(e,r))&&i.push(t),a--,y.isCallExpression(e)?(a++,u(e.expression),a--,e.arguments.forEach(u),null!==(t=e.typeArguments)&&void 0!==t&&t.forEach(u)):y.isIfStatement(e)&&e.elseStatement&&y.isIfStatement(e.elseStatement)?(u(e.expression),u(e.thenStatement),a++,u(e.elseStatement),a--):e.forEachChild(u),a++)}}(e,t,r),function(e,t){for(var r=[],n=e.getLineStarts(),i=0,a=n;i<a.length;i++){var o,s=a[i],c=e.getLineEndOfPosition(s),u=g(e.text.substring(s,c));u&&!y.isInComment(e,s)&&(u[1]?(o=r.pop())&&(o.textSpan.length=c-o.textSpan.start,o.hintSpan.length=c-o.textSpan.start,t.push(o)):(c=y.createTextSpanFromBounds(e.text.indexOf("//",s),c),r.push(d(c,"region",c,!1,u[2]||"#region"))))}}(e,r),r.sort(function(e,t){return e.textSpan.start-t.textSpan.start})};var t=/^\s*\/\/\s*#(end)?region(?:\s+(.*))?(?:\r)?$/;function g(e){return t.exec(e)}function l(e,t,r,n){e=y.getLeadingCommentRangesOfNode(e,t);if(e){for(var i=-1,a=-1,o=0,s=t.getFullText(),c=0,u=e;c<u.length;c++){var l=u[c],_=l.kind,d=l.pos,p=l.end;switch(r.throwIfCancellationRequested(),_){case 2:if(g(s.slice(d,p))){f(),o=0;break}0===o&&(i=d),a=p,o++;break;case 3:f(),n.push(m(d,p,"comment")),o=0;break;default:y.Debug.assertNever(_)}}f()}function f(){1<o&&n.push(m(i,a,"comment"))}}function m(e,t,r){return d(y.createTextSpanFromBounds(e,t),r)}function _(e,t,r,n,i,a){return void 0===i&&(i=!1),void 0===a&&(a=!0),d(y.createTextSpanFromBounds(a?e.getFullStart():e.getStart(n),t.getEnd()),"code",y.createTextSpanFromNode(r,n),i)}function d(e,t,r,n,i){return void 0===r&&(r=e),void 0===n&&(n=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}}()}(ts=ts||{}),function(d){var s,e;function c(e,t){return{kind:e,isCaseSensitive:t}}function u(e,t){var r=t.get(e);return r||t.set(e,r=i(e)),r}function l(e,t,r){var n=function(n,e){for(var t=n.length-e.length,r=0;r<=t;r++){var i=function(r){if(S(e,function(e,t){return h(n.charCodeAt(t+r))===e}))return{value:r}}(r);if("object"==typeof i)return i.value}return-1}(e,t.textLowerCase);if(0===n)return c(t.text.length===e.length?s.exact:s.prefix,d.startsWith(e,t.text));if(t.isLowerCase){if(-1!==n){for(var i=0,a=u(e,r);i<a.length;i++){var o=a[i];if(f(e,o,t.text,!0))return c(s.substring,f(e,o,t.text,!1))}return t.text.length<e.length&&m(e.charCodeAt(n))?c(s.substring,!1):void 0}}else{if(0<e.indexOf(t.text))return c(s.substring,!0);if(0<t.characterSpans.length){r=u(e,r),r=!!g(e,r,t,!1)||!g(e,r,t,!0)&&void 0;if(void 0!==r)return c(s.camelCase,r)}}}function _(e,t,r){if(S(t.totalTextChunk.text,function(e){return 32!==e&&42!==e})){var n=l(e,t.totalTextChunk,r);if(n)return n}for(var i=0,a=t.subWordTextChunks;i<a.length;i++)var o=p(o,l(e,a[i],r));return o}function p(e,t){return d.min(e,t,r)}function r(e,t){return void 0===e?1:void 0===t?-1:d.compareValues(e.kind,t.kind)||d.compareBooleans(!e.isCaseSensitive,!t.isCaseSensitive)}function f(r,n,i,a,o){return void 0===o&&(o={start:0,length:i.length}),o.length<=n.length&&D(0,o.length,function(e){return t=i.charCodeAt(o.start+e),e=r.charCodeAt(n.start+e),a?h(t)===h(e):t===e;var t})}function g(e,t,r,n){for(var i,a=r.characterSpans,o=0,s=0;;){if(s===a.length)return 1;if(o===t.length)return;for(var c=t[o],u=!1;s<a.length;s++){var l=a[s];if(u&&(!m(r.text.charCodeAt(a[s-1].start))||!m(r.text.charCodeAt(a[s].start))))break;if(!f(e,c,r.text,n,l))break;u=!0,i=void 0===i||i,c=d.createTextSpan(c.start+l.length,c.length-l.length)}u||void 0===i||(i=!1),o++}}function m(e){if(65<=e&&e<=90)return!0;if(e<127||!d.isUnicodeIdentifierStart(e,99))return!1;e=String.fromCharCode(e);return e===e.toUpperCase()}function y(e){if(97<=e&&e<=122)return!0;if(e<127||!d.isUnicodeIdentifierStart(e,99))return!1;e=String.fromCharCode(e);return e===e.toLowerCase()}function h(e){return 65<=e&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function v(e){return 48<=e&&e<=57}function a(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:n(e)}}function n(e){return t(e,!1)}function i(e){return t(e,!0)}function t(e,t){for(var r,n,i,a=[],o=0,s=1;s<e.length;s++){var c=v(e.charCodeAt(s-1)),u=v(e.charCodeAt(s)),l=(n=t,l=s,i=void 0,i=m((r=e).charCodeAt(l-1)),m(r.charCodeAt(l))&&(!n||!i)),_=t&&(n=e,(_=s)!==(i=o)&&_+1<n.length&&m(n.charCodeAt(_))&&y(n.charCodeAt(_+1))&&S(n,m,i,_));(b(e.charCodeAt(s-1))||b(e.charCodeAt(s))||c!==u||l||_)&&(x(e,o,s)||a.push(d.createTextSpan(o,s-o)),o=s)}return x(e,o,e.length)||a.push(d.createTextSpan(o,e.length-o)),a}function b(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function x(e,t,r){return S(e,function(e){return b(e)&&95!==e},t,r)}function D(e,t,r){for(var n=e;n<t;n++)if(!r(n))return!1;return!0}function S(t,r,e,n){return void 0===e&&(e=0),void 0===n&&(n=t.length),D(e,n,function(e){return r(t.charCodeAt(e),e)})}(e=s=d.PatternMatchKind||(d.PatternMatchKind={}))[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",d.createPatternMatcher=function(e){var r=d.createMap(),n=e.trim().split(".").map(function(e){return{totalTextChunk:a(e=e.trim()),subWordTextChunks:function(e){for(var t=[],r=0,n=0,i=0;i<e.length;i++)!function(e){return m(e)||y(e)||v(e)||95===e||36===e}(e.charCodeAt(i))?0<n&&(t.push(a(e.substr(r,n))),n=0):(0===n&&(r=i),n++);0<n&&t.push(a(e.substr(r,n)));return t}(e)}});if(!n.some(function(e){return!e.subWordTextChunks.length}))return{getFullMatch:function(e,t){return function(e,t,r,n){var i;if(!_(t,d.last(r),n))return;if(r.length-1>e.length)return;for(var a=r.length-2,o=e.length-1;0<=a;--a,--o)i=p(i,_(e[o],r[a],n));return i}(e,t,n,r)},getMatchForLastSegmentOfPattern:function(e){return _(e,d.last(n),r)},patternContainsDots:1<n.length}},d.breakIntoCharacterSpans=n,d.breakIntoWordSpans=i}(ts=ts||{}),function(D){D.preProcessFile=function(e,t,r){void 0===t&&(t=!0),void 0===r&&(r=!1);var n,i,a,o={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},s=[],c=0,u=!1;function l(){return i=a,18===(a=D.scanner.scan())?c++:19===a&&c--,a}function _(){var e=D.scanner.getTokenValue(),t=D.scanner.getTokenPos();return{fileName:e,pos:t,end:t+e.length}}function d(){s.push(_()),p()}function p(){0===c&&(u=!0)}function f(){var e=D.scanner.getToken();return 130===e&&(135===l()&&10===l()&&(n=n||[]).push({ref:_(),depth:c}),1)}function g(e,t){void 0===t&&(t=!1);e=e?l():D.scanner.getToken();return 139===e&&(20===(e=l())&&(10===(e=l())||t&&14===e)&&d(),1)}if(t&&function(){for(D.scanner.setText(e),l();1!==D.scanner.getToken();)f()||function(){if(24!==i){var e=D.scanner.getToken();if(96===e){if(20===(e=l())){if(10===(e=l())||14===e)return d(),1}else{if(10===e)return d(),1;if(145===e&&D.scanner.lookAhead(function(){var e=D.scanner.scan();return 149!==e&&(41===e||18===e||75===e||D.isKeyword(e))})&&(e=l()),75===e||D.isKeyword(e))if(149===(e=l())){if(10===(e=l()))return d(),1}else if(62===e){if(g(!0))return 1}else{if(27!==e)return 1;e=l()}if(18===e){for(e=l();19!==e&&1!==e;)e=l();19===e&&149===(e=l())&&10===(e=l())&&d()}else 41===e&&123===(e=l())&&(75!==(e=l())&&!D.isKeyword(e)||149!==(e=l())||10!==(e=l())||d())}return 1}}}()||function(){if(89===(e=D.scanner.getToken())){if(p(),145===(e=l())&&D.scanner.lookAhead(function(){var e=D.scanner.scan();return 41===e||18===e})&&(e=l()),18===e){for(e=l();19!==e&&1!==e;)e=l();19===e&&149===(e=l())&&10===(e=l())&&d()}else if(41===e)149===(e=l())&&10===(e=l())&&d();else if(96===e){var e=l();if(145===e&&D.scanner.lookAhead(function(){var e=D.scanner.scan();return 75===e||D.isKeyword(e)})&&(e=l()),(75===e||D.isKeyword(e))&&(e=l(),62===e&&g(!0)))return 1}return 1}}()||r&&(g(!1,!0)||function(){var e=D.scanner.getToken();if(75===e&&"define"===D.scanner.getTokenValue()){if(20!==(e=l()))return 1;if(10===(e=l())||14===e){if(27!==(e=l()))return 1;e=l()}if(22!==e)return 1;for(e=l();23!==e&&1!==e;)10!==e&&14!==e||d(),e=l();return 1}}())||l();D.scanner.setText(void 0)}(),D.processCommentPragmas(o,e),D.processPragmasIntoFields(o,D.noop),u){if(n)for(var m=0,y=n;m<y.length;m++){var h=y[m];s.push(h.ref)}return{referencedFiles:o.referencedFiles,typeReferenceDirectives:o.typeReferenceDirectives,libReferenceDirectives:o.libReferenceDirectives,importedFiles:s,isLibFile:!!o.hasNoDefaultLib,ambientExternalModules:void 0}}var v=void 0;if(n)for(var b=0,x=n;b<x.length;b++)0===(h=x[b]).depth?(v=v||[]).push(h.ref.fileName):s.push(h.ref);return{referencedFiles:o.referencedFiles,typeReferenceDirectives:o.typeReferenceDirectives,libReferenceDirectives:o.libReferenceDirectives,importedFiles:s,isLibFile:!!o.hasNoDefaultLib,ambientExternalModules:v}}}(ts=ts||{}),function(s){function c(e){return{canRename:!1,localizedErrorMessage:s.getLocaleSpecificMessage(e)}}(s.Rename||(s.Rename={})).getRenameInfo=function(t,e,r,n){if(function(e){switch(e.kind){case 75:case 76:case 10:case 14:case 104:return!0;case 8:return s.isLiteralNameOfPropertyDeclarationOrIndexAccess(e);default:return!1}}(r=s.getAdjustedRenameLocation(s.getTouchingPropertyName(e,r)))){n=function(e,t,r,n,i){var a=t.getSymbolAtLocation(e);if(!a)return;var o=a.declarations;if(!o||0===o.length)return;if(o.some(n))return c(s.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(s.isIdentifier(e)&&84===e.originalKeywordKind&&a.parent&&1536&a.parent.flags)return;if(s.isStringLiteralLike(e)&&s.tryGetImportFromModuleSpecifier(e))return i&&i.allowRenameOfImportPath?function(e,t,r){if(!s.isExternalModuleNameRelative(e.text))return c(s.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var n=s.find(r.declarations,s.isSourceFile);if(!n)return;var i=s.endsWith(e.text,"/index")||s.endsWith(e.text,"/index.js")?void 0:s.tryRemoveSuffix(s.removeFileExtension(n.fileName),"/index"),r=void 0===i?n.fileName:i,n=void 0===i?"module":"directory",i=e.text.lastIndexOf("/")+1,i=s.createTextSpan(e.getStart(t)+1+i,e.text.length-i);return{canRename:!0,fileToRename:r,kind:n,displayName:r,fullDisplayName:r,kindModifiers:"",triggerSpan:i}}(e,r,a):void 0;o=s.SymbolDisplay.getSymbolKind(t,a,e),n=s.isImportOrExportSpecifierName(e)||s.isStringOrNumericLiteralLike(e)&&154===e.parent.kind?s.stripQuotes(s.getTextOfIdentifierOrLiteral(e)):void 0,i=n||t.symbolToString(a),t=n||t.getFullyQualifiedName(a);return function(e,t,r,n,i,a){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:n,triggerSpan:function(e,t){var r=e.getStart(t),t=e.getWidth(t);s.isStringLiteralLike(e)&&(r+=1,t-=2);return s.createTextSpan(r,t)}(i,a)}}(i,t,o,s.SymbolDisplay.getSymbolModifiers(a),e,r)}(r,t.getTypeChecker(),e,function(e){return t.isSourceFileDefaultLibrary(e.getSourceFile())},n);if(n)return n}return c(s.Diagnostics.You_cannot_rename_this_element)}}(ts=ts||{}),function(m){!function(){(m.SmartSelectionRange||(m.SmartSelectionRange={})).getSmartSelectionRange=function(r,e){var n={textSpan:m.createTextSpanFromBounds(e.getFullStart(),e.getEnd())},t=e;e:for(;;){var i=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||138===e.kind||e===t.questionToken||57===e.kind}),e=p(e,function(e){e=e.kind;return 22===e||155===e||23===e});return[r,g(f(e,function(e){return 58===e.kind})),i]}if(m.isPropertySignature(t))return f(n=p(t.getChildren(),function(e){return e===t.name||m.contains(t.modifiers,e)}),function(e){return 58===e.kind});if(m.isParameter(t)){var a=p(t.getChildren(),function(e){return e===t.dotDotDotToken||e===t.name});return f(p(a,function(e){return e===a[0]||e===t.questionToken}),function(e){return 62===e.kind})}if(m.isBindingElement(t))return f(t.getChildren(),function(e){return 62===e.kind});return t.getChildren()}(t);if(!i.length)break;for(var a=0;a<i.length;a++){var o=i[a-1],s=i[a],c=i[a+1];if(s.getStart(e)>r)break e;if(function(e,t,r){if(m.Debug.assert(r.pos<=t),t<r.end)return!0;return r.getEnd()===t&&m.getTouchingPropertyName(e,t).pos<r.end}(e,r,s)){if(m.isBlock(s)||m.isTemplateSpan(s)||m.isTemplateHead(s)||m.isTemplateTail(s)||o&&m.isTemplateHead(o)||m.isVariableDeclarationList(s)&&m.isVariableStatement(t)||m.isSyntaxList(s)&&m.isVariableDeclarationList(t)||m.isVariableDeclaration(s)&&m.isSyntaxList(t)&&1===i.length){t=s;break}m.isTemplateSpan(t)&&c&&m.isTemplateMiddleOrTemplateTail(c)&&_(s.getFullStart()-"${".length,c.getStart()+"}".length);var u=m.isSyntaxList(s)&&function(e){e=e&&e.kind;return 18===e||22===e||20===e||268===e}(o)&&function(e){e=e&&e.kind;return 19===e||23===e||21===e||269===e}(c)&&!m.positionsAreOnSameLine(o.getStart(),c.getStart(),e),l=m.hasJSDocNodes(s)&&s.jsDoc[0].getStart(),o=u?o.getEnd():s.getStart(),c=u?c.getStart():s.getEnd();m.isNumber(l)&&_(l,c),_(o,c),(m.isStringLiteral(s)||m.isTemplateLiteral(s))&&_(o+1,c-1),t=s;break}if(a===i.length-1)break e}}return n;function _(e,t){e!==t&&(t=m.createTextSpanFromBounds(e,t),n&&(m.textSpansEqual(t,n.textSpan)||!m.textSpanIntersectsWithPosition(t,r))||(n=__assign({textSpan:t},n&&{parent:n})))}};var d=m.or(m.isImportDeclaration,m.isImportEqualsDeclaration);function p(e,t){for(var r,n=[],i=0,a=e;i<a.length;i++){var o=a[i];t(o)?(r=r||[]).push(o):(r&&(n.push(g(r)),r=void 0),n.push(o))}return r&&n.push(g(r)),n}function f(e,t,r){if(void 0===r&&(r=!0),e.length<2)return e;var n=m.findIndex(e,t);if(-1===n)return e;var i=e.slice(0,n),a=e[n],t=m.last(e),r=r&&26===t.kind,e=e.slice(n+1,r?e.length-1:void 0),e=m.compact([i.length?g(i):void 0,a,e.length?g(e):void 0]);return r?e.concat(t):e}function g(e){m.Debug.assertGreaterThanOrEqual(e.length,1);var t=m.createNode(324,e[0].pos,m.last(e).end);return t._children=e,t}}()}(ts=ts||{}),function(x){!function(e){var t;function _(e,t,r){for(var n=e.getFullStart(),i=e.parent;i;){var a=x.findPrecedingToken(n,t,i,!0);if(a)return x.rangeContainsRange(r,a);i=i.parent}return x.Debug.fail("Could not find preceding token")}function p(e,t){var r=function(e,t){{if(29===e.kind||20===e.kind)return{list:function(e,t,r){r=e.getChildren(r),t=r.indexOf(t);return x.Debug.assert(0<=t&&r.length>t+1),r[t+1]}(e.parent,e,t),argumentIndex:0};t=x.findContainingList(e);return t&&{list:t,argumentIndex:function(e,t){for(var r=0,n=0,i=e.getChildren();n<i.length;n++){var a=i[n];if(a===t)break;27!==a.kind&&r++}return r}(t,e)}}}(e,t);if(r){var n=r.list,e=r.argumentIndex,r=function(e){var t=e.getChildren(),e=x.countWhere(t,function(e){return 27!==e.kind});0<t.length&&27===x.last(t).kind&&e++;return e}(n);return 0!==e&&x.Debug.assertLessThan(e,r),{list:n,argumentIndex:e,argumentCount:r,argumentsSpan:(r=t,n=(t=n).getFullStart(),t=x.skipTrivia(r.text,t.getEnd(),!1),x.createTextSpan(n,t-n))}}}function d(e,t,r){var n=e.parent;if(x.isCallOrNewExpression(n)){var i=n,a=p(e,r);if(a){var o=a.list,s=a.argumentIndex,c=a.argumentCount,u=a.argumentsSpan;return{isTypeParameterList:!!n.typeArguments&&n.typeArguments.pos===o.pos,invocation:{kind:0,node:i},argumentsSpan:u,argumentIndex:s,argumentCount:c}}}else if(x.isNoSubstitutionTemplateLiteral(e)&&x.isTaggedTemplateExpression(n)){if(x.isInsideTemplateLiteral(e,t,r))return g(n,0,r)}else{if(x.isTemplateHead(e)&&198===n.parent.kind){var l=n.parent;return x.Debug.assert(211===n.kind),g(l,s=x.isInsideTemplateLiteral(e,t,r)?0:1,r)}if(x.isTemplateSpan(n)&&x.isTaggedTemplateExpression(n.parent.parent)){c=n,l=n.parent.parent;if(!x.isTemplateTail(e)||x.isInsideTemplateLiteral(e,t,r))return g(l,s=function(e,t,r,n){if(x.Debug.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),x.isTemplateLiteralToken(t))return x.isInsideTemplateLiteral(t,r,n)?0:e+2;return e+1}(c.parent.templateSpans.indexOf(c),e,t,r),r)}else{if(x.isJsxOpeningLikeElement(n)){var _=n.attributes.pos,d=x.skipTrivia(r.text,n.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:n},argumentsSpan:x.createTextSpan(_,d-_),argumentIndex:0,argumentCount:1}}d=x.getPossibleTypeArgumentsInfo(e,r);if(d){_=d.called,d=d.nTypeArguments;return{isTypeParameterList:!0,invocation:i={kind:1,called:_},argumentsSpan:u=x.createTextSpanFromBounds(_.getStart(r),e.end),argumentIndex:d,argumentCount:d+1}}}}}function f(e){return x.isBinaryExpression(e.left)?f(e.left)+1:2}function g(e,t,r){var n=x.isNoSubstitutionTemplateLiteral(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&x.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();211===r.kind&&0===x.last(r.templateSpans).literal.getFullWidth()&&(e=x.skipTrivia(t.text,e,!1));return x.createTextSpan(n,e-n)}(e,r),argumentIndex:t,argumentCount:n}}function s(e){return 0===e.kind?x.getInvokedExpression(e.node):e.called}function m(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=x.findTokenOnLeftOfPosition(c,t);if(a){var o=!!r&&"characterTyped"===r.kind;if(!o||!x.isInString(c,t,a)&&!x.isInComment(c,t)){var r=!!r&&"invoked"===r.kind,u=function(e,i,a,o,t){for(var r=function(e){x.Debug.assert(x.rangeContainsRange(e.parent,e),"Not a subspan",function(){return"Child: "+x.Debug.formatSyntaxKind(e.kind)+", parent: "+x.Debug.formatSyntaxKind(e.parent.kind)});var t,r,n,n=(r=i,function(e,t,r){var n=function(e,t,r){if(20!==e.kind&&27!==e.kind)return;var n=e.parent;switch(n.kind){case 200:case 161:case 201:case 202:var i=p(e,t);if(!i)return;var a=i.argumentIndex,o=i.argumentCount,s=i.argumentsSpan,i=x.isMethodDeclaration(n)?r.getContextualTypeForObjectLiteralElement(n):r.getContextualType(n);return i&&{contextualType:i,argumentIndex:a,argumentCount:o,argumentsSpan:s};case 209:a=function e(t){return x.isBinaryExpression(t.parent)?e(t.parent):t}(n),o=r.getContextualType(a),s=20===e.kind?0:f(n)-1,a=f(a);return o&&{contextualType:o,argumentIndex:s,argumentCount:a,argumentsSpan:x.createTextSpanFromNode(n)};default:return}}(e,t,r);if(!n)return;var i=n.contextualType,a=n.argumentIndex,t=n.argumentCount,r=n.argumentsSpan,n=i.getCallSignatures();return 1!==n.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:x.first(n),node:e,symbol:function(e){return"__type"===e.name&&x.firstDefined(e.declarations,function(e){return x.isFunctionTypeNode(e)?e.parent.symbol:void 0})||e}(i.symbol)},argumentsSpan:r,argumentIndex:a,argumentCount:t}}(t=e,n=a,o)||d(t,r,n));if(n)return{value:n}},n=e;!x.isSourceFile(n)&&(t||!x.isBlock(n));n=n.parent){var s=r(n);if("object"==typeof s)return s.value}return}(a,t,c,i,r);if(u){n.throwIfCancellationRequested();var l=function(e,t,r,n,i){var a=e.invocation,o=e.argumentCount;switch(a.kind){case 0:if(i&&!function(e,t,r){if(!x.isCallOrNewExpression(t))return!1;var n=t.getChildren(r);switch(e.kind){case 20:return x.contains(n,e);case 27:var i=x.findContainingList(e);return!!i&&x.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,x.isIdentifier(c)?c.parent:c))return;if(0!==(s=x.getPossibleGenericSignatures(c,o,t)).length)return{kind:0,candidates:s,resolvedSignature:x.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 x.Debug.assertNever(a)}}(u,i,c,a,o);return n.throwIfCancellationRequested(),l?i.runWithCancellationToken(n,function(e){return 0===l.kind?h(l.candidates,l.resolvedSignature,u,c,e):(t=l.symbol,n=c,i=e,a=(r=u).argumentCount,o=r.argumentsSpan,s=r.invocation,e=r.argumentIndex,(r=i.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(t))?{items:[function(e,t,r,n,i){var a=x.symbolToDisplayParts(r,e),o=x.createPrinter({removeComments:!0}),s=t.map(function(e){return b(e,r,n,i,o)}),t=e.getDocumentationComment(r),e=e.getJsDocTags();return{isVariadic:!1,prefixDisplayParts:__spreadArrays(a,[x.punctuationPart(29)]),suffixDisplayParts:[x.punctuationPart(31)],separatorDisplayParts:v,parameters:s,documentation:t,tags:e}}(t,r,i,m(s),n)],applicableSpan:o,selectedItemIndex:0,argumentIndex:e,argumentCount:a}:void 0);var t,r,n,i,a,o,s}):x.isSourceFileJS(c)?function(n,e,i){if(2===n.invocation.kind)return;var t=s(n.invocation),a=x.isIdentifier(t)?t.text:x.isPropertyAccessExpression(t)?t.name.text:void 0,o=e.getTypeChecker();return void 0===a?void 0:x.firstDefined(e.getSourceFiles(),function(r){return x.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 h(t,t[0],n,r,e)})})})}(u,e,n):void 0}}}},(t={})[t.Candidate=0]="Candidate",t[t.Type=1]="Type",e.getArgumentInfoForCompletions=function(e,t,r){return!(r=d(e,t,r))||r.isTypeParameterList||0!==r.invocation.kind?void 0:{invocation:r.invocation.node,argumentCount:r.argumentCount,argumentIndex:r.argumentIndex}};var y=70246400;function h(e,t,r,c,u){var l=r.isTypeParameterList,n=r.argumentCount,i=r.argumentsSpan,a=r.invocation,r=r.argumentIndex,_=m(a),a=2===a.kind?a.symbol:u.getSymbolAtLocation(s(a)),d=a?x.symbolToDisplayParts(u,a,void 0,void 0):x.emptyArray,a=e.map(function(e){return r=d,s=((n=l)?function(r,n,i,a){var e=(r.target||r).typeParameters,o=x.createPrinter({removeComments:!0}),t=(e||x.emptyArray).map(function(e){return b(e,n,i,a,o)}),e=x.mapToDisplayParts(function(e){var t=r.thisParameter?[n.symbolToParameterDeclaration(r.thisParameter,i,y)]:[],t=x.createNodeArray(__spreadArrays(t,n.getExpandedParameters(r).map(function(e){return n.symbolToParameterDeclaration(e,i,y)})));o.writeList(2576,t,a,e)});return{isVariadic:!1,parameters:t,prefix:[x.punctuationPart(29)],suffix:__spreadArrays([x.punctuationPart(31)],e)}}:function(r,s,c,u){var e=s.hasEffectiveRestParameter(r),l=x.createPrinter({removeComments:!0}),t=x.mapToDisplayParts(function(e){var t;r.typeParameters&&r.typeParameters.length&&(t=x.createNodeArray(r.typeParameters.map(function(e){return s.typeParameterToDeclaration(e,c,y)})),l.writeList(53776,t,u,e))}),n=s.getExpandedParameters(r).map(function(e){return r=e,n=s,i=c,a=u,o=l,t=x.mapToDisplayParts(function(e){var t=n.symbolToParameterDeclaration(r,i,y);o.writeNode(4,t,a,e)}),e=n.isOptionalParameter(r.valueDeclaration),{name:r.name,documentation:r.getDocumentationComment(n),displayParts:t,isOptional:e};var r,n,i,a,o,t});return{isVariadic:e,parameters:n,prefix:__spreadArrays(t,[x.punctuationPart(20)]),suffix:[x.punctuationPart(21)]}})(t=e,i=u,a=_,o=c),e=s.isVariadic,n=s.parameters,o=s.prefix,s=s.suffix,o=__spreadArrays(r,o),a=__spreadArrays(s,function(r,n,i){return x.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)})}(t,a,i)),i=t.getDocumentationComment(i),t=t.getJsDocTags(),{isVariadic:e,prefixDisplayParts:o,suffixDisplayParts:a,separatorDisplayParts:v,parameters:n,documentation:i,tags:t};var t,r,n,i,a,o,s});0!==r&&x.Debug.assertLessThan(r,n);t=e.indexOf(t);return x.Debug.assert(-1!==t),{items:a,applicableSpan:i,selectedItemIndex:t,argumentIndex:r,argumentCount:n}}var v=[x.punctuationPart(27),x.spacePart()];function b(r,n,i,a,o){var e=x.mapToDisplayParts(function(e){var t=n.typeParameterToDeclaration(r,i,y);o.writeNode(4,t,a,e)});return{name:r.symbol.name,documentation:r.symbol.getDocumentationComment(n),displayParts:e,isOptional:!1}}}(x.SignatureHelp||(x.SignatureHelp={}))}(ts=ts||{}),function(d){var _=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function p(e,t,r){t=d.tryParseRawSourceMap(t);if(t&&t.sources&&t.file&&t.mappings&&(!t.sourcesContent||!t.sourcesContent.some(d.isString)))return d.createDocumentPositionMapper(e,t,r)}d.getSourceMapper=function(a){var o=d.createGetCanonicalFileName(a.useCaseSensitiveFileNames()),n=a.getCurrentDirectory(),i=d.createMap(),s=d.createMap();return{tryGetSourcePosition:function e(t){if(!d.isDeclarationFileName(t.fileName))return;var r=l(t.fileName);if(!r)return;var r=u(t.fileName).getSourcePosition(t);return r&&r!==t?e(r)||r:void 0},tryGetGeneratedPosition:function(e){if(d.isDeclarationFileName(e.fileName))return;var t=l(e.fileName);if(!t)return;var r=a.getProgram();if(r.isSourceOfProjectReferenceRedirect(t.fileName))return;t=r.getCompilerOptions(),t=t.outFile||t.out,r=t?d.removeFileExtension(t)+".d.ts":d.getDeclarationEmitOutputFilePathWorker(e.fileName,r.getCompilerOptions(),n,r.getCommonSourceDirectory(),o);if(void 0===r)return;r=u(r,e.fileName).getGeneratedPosition(e);return r===e?void 0:r},toLineColumnOffset:function(e,t){return _(e).getLineAndCharacterOfPosition(t)},clearCache:function(){i.clear(),s.clear()}};function c(e){return d.toPath(e,n,o)}function u(e,t){var r,n=c(e),i=s.get(n);return i||(a.getDocumentPositionMapper?r=a.getDocumentPositionMapper(e,t):a.readFile&&(r=(t=_(e))&&d.getDocumentPositionMapper({getSourceFileLike:_,getCanonicalFileName:o,log:function(e){return a.log(e)}},e,d.getLineInfo(t.text,d.getLineStarts(t)),function(e){return!a.fileExists||a.fileExists(e)?a.readFile(e):void 0})),s.set(n,r||d.identitySourceMapConsumer),r||d.identitySourceMapConsumer)}function l(e){var t=a.getProgram();if(t){e=c(e),t=t.getSourceFileByPath(e);return t&&t.resolvedPath===e?t:void 0}}function t(e){var t=c(e),e=i.get(t);if(void 0!==e)return e||void 0;if(a.readFile&&(!a.fileExists||a.fileExists(t))){var r,e=a.readFile(t),r=!!e&&{text:e,lineMap:r,getLineAndCharacterOfPosition:function(e){return d.computeLineAndCharacterOfPosition(d.getLineStarts(this),e)}};return i.set(t,r),r||void 0}i.set(t,!1)}function _(e){return a.getSourceFileLike?a.getSourceFileLike(e):l(e)||t(e)}},d.getDocumentPositionMapper=function(e,t,r,n){var i=d.tryGetSourceMappingURL(r);if(i){r=_.exec(i);if(r){if(r[1]){var a=r[1];return p(e,d.base64decode(d.sys,a),t)}i=void 0}}a=[],i&&a.push(i),a.push(t+".map");for(var o=i&&d.getNormalizedAbsolutePath(i,d.getDirectoryPath(t)),s=0,c=a;s<c.length;s++){var u=c[s],l=d.getNormalizedAbsolutePath(u,d.getDirectoryPath(t)),u=n(l,o);if(d.isString(u))return p(e,u,l);if(void 0!==u)return u||void 0}}}(ts=ts||{}),function(_){var d=_.createMap();function p(e,t,r){var n;n=e,t=t,!_.isAsyncFunction(n)&&n.body&&_.isBlock(n.body)&&function(e){return!!_.forEachReturnStatement(e,i)}(n.body)&&function(e,t){e=t.getTypeAtLocation(e),e=t.getSignaturesOfType(e,0),e=e.length?t.getReturnTypeOfSignature(e[0]):void 0;return!!e&&!!t.getPromisedTypeOfPromise(e)}(n,t)&&!d.has(a(e))&&r.push(_.createDiagnosticForNode(!e.name&&_.isVariableDeclaration(e.parent)&&_.isIdentifier(e.parent.name)?e.parent.name:e,_.Diagnostics.This_may_be_converted_to_an_async_function))}function i(e){return _.isReturnStatement(e)&&!!e.expression&&t(e.expression)}function t(e){if(!r(e)||!e.arguments.every(n))return!1;for(var t=e.expression;r(t)||_.isPropertyAccessExpression(t);){if(_.isCallExpression(t)&&!t.arguments.every(n))return!1;t=t.expression}return!0}function r(e){return _.isCallExpression(e)&&(_.hasPropertyAccessExpressionWithName(e,"then")&&(!(2<(t=e).arguments.length)&&(t.arguments.length<2||_.some(t.arguments,function(e){return 100===e.kind||_.isIdentifier(e)&&"undefined"===e.text})))||_.hasPropertyAccessExpressionWithName(e,"catch"));var t}function n(e){switch(e.kind){case 244:case 201:case 202:d.set(a(e),!0);case 100:case 75:return!0;default:return!1}}function a(e){return e.pos.toString()+":"+e.end.toString()}function f(e){var t;if(201!==e.kind)return 244===e.kind&&(null!==(t=e.symbol.members)&&void 0!==t&&t.size);if(_.isVariableDeclaration(e.parent)&&null!==(r=e.symbol.members)&&void 0!==r&&r.size)return 1;var r=_.getDeclarationOfExpando(e),e=null==r?void 0:r.symbol;return e&&(null!==(r=e.exports)&&void 0!==r&&r.size||null!==(e=e.members)&&void 0!==e&&e.size)}_.computeSuggestionDiagnostics=function(n,e,t){e.getSemanticDiagnostics(n,t);var r,i=[],a=e.getTypeChecker();n.commonJsModuleIndicator&&(_.programContainsEs6Modules(e)||_.compilerOptionsIndicateEs6Modules(e.getCompilerOptions()))&&n.statements.some(function(e){switch(e.kind){case 225: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 226:var t=e.expression;if(!_.isBinaryExpression(t))return _.isRequireCall(t,!0);t=_.getAssignmentDeclarationKind(t);return 1===t||2===t;default:return!1}})&&i.push(_.createDiagnosticForNode((r=n.commonJsModuleIndicator,_.isBinaryExpression(r)?r.left:r),_.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var o=_.isSourceFileJS(n);if(d.clear(),function e(t){{var r;o?f(t)&&i.push(_.createDiagnosticForNode(_.isVariableDeclaration(t.parent)?t.parent.name:t,_.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration)):(_.isVariableStatement(t)&&t.parent===n&&2&t.declarationList.flags&&1===t.declarationList.declarations.length&&((r=t.declarationList.declarations[0].initializer)&&_.isRequireCall(r,!0)&&i.push(_.createDiagnosticForNode(r,_.Diagnostics.require_call_may_be_converted_to_an_import))),_.codefix.parameterShouldGetTypeFromJSDoc(t)&&i.push(_.createDiagnosticForNode(t.name||t,_.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types)))}_.isFunctionLikeDeclaration(t)&&p(t,a,i);t.forEachChild(e)}(n),_.getAllowSyntheticDefaultImports(e.getCompilerOptions()))for(var s=0,c=n.imports;s<c.length;s++){var u=c[s],l=function(e){switch(e.kind){case 254:var t=e.importClause,r=e.moduleSpecifier;return t&&!t.name&&t.namedBindings&&256===t.namedBindings.kind&&_.isStringLiteral(r)?t.namedBindings.name:void 0;case 253:return e.name;default:return}}(_.importFromModuleSpecifier(u));l&&((u=(u=_.getResolvedModule(n,u.text))&&e.getSourceFile(u.resolvedFileName))&&u.externalModuleIndicator&&_.isExportAssignment(u.externalModuleIndicator)&&u.externalModuleIndicator.isExportEquals&&i.push(_.createDiagnosticForNode(l,_.Diagnostics.Import_may_be_converted_to_a_default_import)))}return _.addRange(i,n.bindSuggestionDiagnostics),_.addRange(i,e.getSuggestionDiagnostics(n,t)),i.sort(function(e,t){return e.start-t.start})},_.isReturnStatementWithFixablePromiseHandler=i,_.isFixablePromiseHandler=t}(ts=ts||{}),function(z){var e,U;function V(e,t,r){e=K(e,t,r);if(""!==e)return e;r=z.getCombinedLocalAndExportSymbolFlags(t);return 32&r?z.getDeclarationOfKind(t,214)?"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 K(e,t,r){var n=e.getRootSymbols(t);if(1===n.length&&8192&z.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(104===r.kind&&z.isExpression(r))return"parameter";n=z.getCombinedLocalAndExportSymbolFlags(t);if(3&n)return z.isFirstDeclarationOfSymbolParameter(t)?"parameter":t.valueDeclaration&&z.isVarConst(t.valueDeclaration)?"const":z.forEach(t.declarations,z.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=z.forEach(e.getRootSymbols(t),function(e){e=e.getFlags();if(98311&e)return"property";z.Debug.assert(!!(8208&e))});return n?n:e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property"}switch(r.parent&&r.parent.kind){case 268:case 266:case 267:return 75===r.kind?"property":"JSX attribute";case 273:return"JSX attribute";default:return"property"}}return""}function i(e){return!e.parent&&z.forEach(e.declarations,function(e){if(201===e.kind)return!0;if(242!==e.kind&&244!==e.kind)return!1;for(var t=e.parent;!z.isFunctionBlock(t);t=t.parent)if(290===t.kind||250===t.kind)return!1;return!0})}e=z.SymbolDisplay||(z.SymbolDisplay={}),U=70246400,e.getSymbolKind=V,e.getSymbolModifiers=function(e){var t=e&&e.declarations&&0<e.declarations.length?z.getNodeModifiers(e.declarations[0]):"",e=e&&16777216&e.flags?"optional":"";return t&&e?t+","+e:t||e},e.getSymbolDisplayPartsDocumentationAndSymbolKind=function e(i,r,n,a,t,o,s){void 0===o&&(o=z.getMeaningFromLocation(t));var c,u,l,_,d,p=[],f=[],g=[],m=z.getCombinedLocalAndExportSymbolFlags(r),y=1&o?K(i,r,t):"",h=!1,v=104===t.kind&&z.isInExpressionContext(t),b=!1;if(104===t.kind&&!v)return{displayParts:[z.keywordPart(104)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==y||32&m||2097152&m){"getter"!==y&&"setter"!==y||(y="property");var x=void 0,D=v?i.getTypeAtLocation(t):i.getTypeOfSymbolAtLocation(r.exportSymbol||r,t);!t.parent||194!==t.parent.kind||((C=t.parent.name)===t||C&&0===C.getFullWidth())&&(t=t.parent);var S,C=void 0;if(z.isCallOrNewExpression(t)?C=t:(z.isCallExpressionTarget(t)||z.isNewExpressionTarget(t)||t.parent&&z.isJsxOpeningLikeElement(t.parent)&&z.isFunctionLike(r.valueDeclaration))&&(C=t.parent),C){x=i.getResolvedSignature(C);var T=197===C.kind||z.isCallExpression(C)&&102===C.expression.kind,k=T?D.getConstructSignatures():D.getCallSignatures();if(z.contains(k,x.target)||z.contains(k,x)||(x=k.length?k[0]:void 0),x){switch(T&&32&m?(y="constructor",R(D.symbol,y)):2097152&m?(B(y="alias"),p.push(z.spacePart()),T&&(p.push(z.keywordPart(99)),p.push(z.spacePart())),L(r)):R(r,y),y){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":p.push(z.punctuationPart(58)),p.push(z.spacePart()),16&z.getObjectFlags(D)||!D.symbol||(z.addRange(p,z.symbolToDisplayParts(i,D.symbol,a,void 0,5)),p.push(z.lineBreakPart())),T&&(p.push(z.keywordPart(99)),p.push(z.spacePart())),j(x,k,262144);break;default:j(x,k)}h=!0,b=1<k.length}}else(z.isNameOfFunctionDeclaration(t)&&!(98304&m)||129===t.kind&&162===t.parent.kind)&&(S=t.parent,r.declarations&&z.find(r.declarations,function(e){return e===(129===t.kind?S.parent:S)})&&(k=162===S.kind?D.getNonNullableType().getConstructSignatures():D.getNonNullableType().getCallSignatures(),x=i.isImplementationOfOverload(S)?k[0]:i.getSignatureFromDeclaration(S),162===S.kind?(y="constructor",R(D.symbol,y)):R(165!==S.kind||2048&D.symbol.flags||4096&D.symbol.flags?r:D.symbol,y),j(x,k),h=!0,b=1<k.length))}if(32&m&&!h&&!v&&(O(),z.getDeclarationOfKind(r,214)?B("local class"):p.push(z.keywordPart(80)),p.push(z.spacePart()),L(r),J(r,n)),64&m&&2&o&&(I(),p.push(z.keywordPart(114)),p.push(z.spacePart()),L(r),J(r,n)),524288&m&&2&o&&(I(),p.push(z.keywordPart(145)),p.push(z.spacePart()),L(r),J(r,n),p.push(z.spacePart()),p.push(z.operatorPart(62)),p.push(z.spacePart()),z.addRange(p,z.typeToDisplayParts(i,i.getDeclaredTypeOfSymbol(r),a,8388608))),384&m&&(I(),z.some(r.declarations,function(e){return z.isEnumDeclaration(e)&&z.isEnumConst(e)})&&(p.push(z.keywordPart(81)),p.push(z.spacePart())),p.push(z.keywordPart(88)),p.push(z.spacePart()),L(r)),1536&m&&!v&&(I(),u=(N=z.getDeclarationOfKind(r,249))&&N.name&&75===N.name.kind,p.push(z.keywordPart(u?136:135)),p.push(z.spacePart()),L(r)),262144&m&&2&o)if(I(),p.push(z.punctuationPart(20)),p.push(z.textPart("type parameter")),p.push(z.punctuationPart(21)),p.push(z.spacePart()),L(r),r.parent)M(),L(r.parent,a),J(r.parent,a);else{var E=z.getDeclarationOfKind(r,155);if(void 0===E)return z.Debug.fail();(N=E.parent)&&(z.isFunctionLikeKind(N.kind)?(M(),x=i.getSignatureFromDeclaration(N),166===N.kind?(p.push(z.keywordPart(99)),p.push(z.spacePart())):165!==N.kind&&N.name&&L(N.symbol),z.addRange(p,z.signatureToDisplayParts(i,x,n,32))):247===N.kind&&(M(),p.push(z.keywordPart(145)),p.push(z.spacePart()),L(N.symbol),J(N.symbol,n)))}if(8&m&&(R(r,y="enum member"),284!==(N=r.declarations[0]).kind||void 0!==(l=i.getConstantValue(N))&&(p.push(z.spacePart()),p.push(z.operatorPart(62)),p.push(z.spacePart()),p.push(z.displayPart(z.getTextOfConstantValue(l),"number"==typeof l?z.SymbolDisplayPartKind.numericLiteral:z.SymbolDisplayPartKind.stringLiteral)))),2097152&m){switch(I(),h||(u=i.getAliasedSymbol(r))!==r&&u.declarations&&0<u.declarations.length&&(E=u.declarations[0],(l=z.getNameOfDeclaration(E))&&(d=z.isModuleWithStringLiteralName(E)&&z.hasModifier(E,2),_="default"!==r.name&&!d,d=e(i,u,z.getSourceFileOfNode(E),E,l,o,_?r:u),p.push.apply(p,d.displayParts),p.push(z.lineBreakPart()),_=d.documentation,d=d.tags)),r.declarations[0].kind){case 252:p.push(z.keywordPart(89)),p.push(z.spacePart()),p.push(z.keywordPart(136));break;case 259:p.push(z.keywordPart(89)),p.push(z.spacePart()),p.push(z.keywordPart(r.declarations[0].isExportEquals?62:84));break;case 263:p.push(z.keywordPart(89));break;default:p.push(z.keywordPart(96))}p.push(z.spacePart()),L(r),z.forEach(r.declarations,function(e){if(253===e.kind)return z.isExternalModuleImportEqualsDeclaration(e)?(p.push(z.spacePart()),p.push(z.operatorPart(62)),p.push(z.spacePart()),p.push(z.keywordPart(139)),p.push(z.punctuationPart(20)),p.push(z.displayPart(z.getTextOfNode(z.getExternalModuleImportEqualsDeclarationExpression(e)),z.SymbolDisplayPartKind.stringLiteral)),p.push(z.punctuationPart(21))):(e=i.getSymbolAtLocation(e.moduleReference))&&(p.push(z.spacePart()),p.push(z.operatorPart(62)),p.push(z.spacePart()),L(e,a)),!0})}if(h||(""!==y?D&&(v?(I(),p.push(z.keywordPart(104))):R(r,y),"property"===y||"JSX attribute"===y||3&m||"local var"===y||v?(p.push(z.punctuationPart(58)),p.push(z.spacePart()),D.symbol&&262144&D.symbol.flags?(v=z.mapToDisplayParts(function(e){var t=i.typeParameterToDeclaration(D,a,U);w().writeNode(4,t,z.getSourceFileOfNode(z.getParseTreeNode(a)),e)}),z.addRange(p,v)):z.addRange(p,z.typeToDisplayParts(i,D,a))):(16&m||8192&m||16384&m||131072&m||98304&m||"method"===y)&&(k=D.getNonNullableType().getCallSignatures()).length&&(j(k[0],k),b=1<k.length)):y=V(i,r,t)),0!==f.length||b||(f=r.getDocumentationComment(i)),0===f.length&&4&m&&r.parent&&z.forEach(r.parent.declarations,function(e){return 290===e.kind}))for(var N,A=0,F=r.declarations;A<F.length;A++)if((N=F[A]).parent&&209===N.parent.kind){var P=i.getSymbolAtLocation(N.parent.right);if(P&&(f=P.getDocumentationComment(i),g=P.getJsDocTags(),0<f.length))break}return 0!==g.length||b||(g=r.getJsDocTags()),0===f.length&&_&&(f=_),0===g.length&&d&&(g=d),{displayParts:p,documentation:f,symbolKind:y,tags:0===g.length?void 0:g};function w(){return c=c||z.createPrinter({removeComments:!0})}function I(){p.length&&p.push(z.lineBreakPart()),O()}function O(){s&&(B("alias"),p.push(z.spacePart()))}function M(){p.push(z.spacePart()),p.push(z.keywordPart(97)),p.push(z.spacePart())}function L(e,t){s&&e===r&&(e=s),t=z.symbolToDisplayParts(i,e,t||n,void 0,7),z.addRange(p,t),16777216&r.flags&&p.push(z.punctuationPart(57))}function R(e,t){I(),t&&(B(t),e&&!z.some(e.declarations,function(e){return z.isArrowFunction(e)||(z.isFunctionExpression(e)||z.isClassExpression(e))&&!e.name})&&(p.push(z.spacePart()),L(e)))}function B(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":return void p.push(z.textOrKeywordPart(e));default:return p.push(z.punctuationPart(20)),p.push(z.textOrKeywordPart(e)),void p.push(z.punctuationPart(21))}}function j(e,t,r){void 0===r&&(r=0),z.addRange(p,z.signatureToDisplayParts(i,e,a,32|r)),1<t.length&&(p.push(z.spacePart()),p.push(z.punctuationPart(20)),p.push(z.operatorPart(39)),p.push(z.displayPart((t.length-1).toString(),z.SymbolDisplayPartKind.numericLiteral)),p.push(z.spacePart()),p.push(z.textPart(2===t.length?"overload":"overloads")),p.push(z.punctuationPart(21))),f=e.getDocumentationComment(i),g=e.getJsDocTags(),1<t.length&&0===f.length&&0===g.length&&(f=t[0].getDocumentationComment(i),g=t[0].getJsDocTags())}function J(r,n){var e=z.mapToDisplayParts(function(e){var t=i.symbolToTypeParameterDeclarations(r,n,U);w().writeList(53776,t,z.getSourceFileOfNode(z.getParseTreeNode(n)),e)});z.addRange(p,e)}}}(ts=ts||{}),function(f){function a(e,t){var r,n=[],i=t.compilerOptions?g(t.compilerOptions,n):{},a=f.getDefaultCompilerOptions();for(r in a)f.hasProperty(a,r)&&void 0===i[r]&&(i[r]=a[r]);for(var o=0,s=f.transpileOptionValueCompilerOptions;o<s.length;o++){var c=s[o];i[c.name]=c.transpileOptionValue}i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;var u=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),l=f.createSourceFile(u,e,i.target);t.moduleName&&(l.moduleName=t.moduleName),t.renamedDependencies&&(l.renamedDependencies=f.createMapFromTemplate(t.renamedDependencies));var _,d,p=f.getNewLineCharacter(i),e={getSourceFile:function(e){return e===f.normalizePath(u)?l:void 0},writeFile:function(e,t){f.fileExtensionIs(e,".map")?(f.Debug.assertEqual(d,void 0,"Unexpected multiple source map outputs, file:",e),d=t):(f.Debug.assertEqual(_,void 0,"Unexpected multiple outputs, file:",e),_=t)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return p},fileExists:function(e){return e===u},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},e=f.createProgram([u],i,e);return t.reportDiagnostics&&(f.addRange(n,e.getSyntacticDiagnostics(l)),f.addRange(n,e.getOptionsDiagnostics())),e.emit(void 0,void 0,void 0,void 0,t.transformers),void 0===_?f.Debug.fail("Output generation failed"):{outputText:_,diagnostics:n,sourceMapText:d}}var i;function g(r,n){i=i||f.filter(f.optionDeclarations,function(e){return"object"==typeof e.type&&!f.forEachEntry(e.type,function(e){return"number"!=typeof e})}),r=f.cloneCompilerOptions(r);for(var e=0,t=i;e<t.length;e++)!function(e){var t;f.hasProperty(r,e.name)&&(t=r[e.name],f.isString(t)?r[e.name]=f.parseCustomTypeOption(e,t,n):f.forEachEntry(e.type,function(e){return e===t})||n.push(f.createCompilerDiagnosticForInvalidCustomType(e)))}(t[e]);return r}f.transpileModule=a,f.transpile=function(e,t,r,n,i){return i=a(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!n,moduleName:i}),f.addRange(n,i.diagnostics),i.outputText},f.fixupCompilerOptions=g}(ts=ts||{}),function(a){!function(e){(t=e.FormattingRequestKind||(e.FormattingRequestKind={}))[t.FormatDocument=0]="FormatDocument",t[t.FormatSelection=1]="FormatSelection",t[t.FormatOnEnter=2]="FormatOnEnter",t[t.FormatOnSemicolon=3]="FormatOnSemicolon",t[t.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",t[t.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace";var t=(r.prototype.updateContext=function(e,t,r,n,i){this.currentTokenSpan=a.Debug.checkDefined(e),this.currentTokenParent=a.Debug.checkDefined(t),this.nextTokenSpan=a.Debug.checkDefined(r),this.nextTokenParent=a.Debug.checkDefined(n),this.contextNode=a.Debug.checkDefined(i),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},r.prototype.ContextNodeAllOnSameLine=function(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},r.prototype.NextNodeAllOnSameLine=function(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},r.prototype.TokensAreOnSameLine=function(){var e,t;return void 0===this.tokensAreOnSameLine&&(e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line,this.tokensAreOnSameLine=e===t),this.tokensAreOnSameLine},r.prototype.ContextNodeBlockIsOnOneLine=function(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},r.prototype.NextNodeBlockIsOnOneLine=function(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},r.prototype.NodeIsOnOneLine=function(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line},r.prototype.BlockIsOnOneLine=function(e){var t=a.findChildOfKind(e,18,this.sourceFile),e=a.findChildOfKind(e,19,this.sourceFile);return!(!t||!e)&&this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line},r);function r(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}e.FormattingContext=t}(a.formatting||(a.formatting={}))}(ts=ts||{}),function(g){var m,e,y,h;m=g.formatting||(g.formatting={}),y=g.createScanner(99,!1,0),h=g.createScanner(99,!1,1),(e={})[e.Scan=0]="Scan",e[e.RescanGreaterThanToken=1]="RescanGreaterThanToken",e[e.RescanSlashToken=2]="RescanSlashToken",e[e.RescanTemplateToken=3]="RescanTemplateToken",e[e.RescanJsxIdentifier=4]="RescanJsxIdentifier",e[e.RescanJsxText=5]="RescanJsxText",e[e.RescanJsxAttributeValue=6]="RescanJsxAttributeValue",m.getFormattingScanner=function(e,t,r,i,n){var a=1===t?h:y;a.setText(e),a.setTextPos(r);var o,s,c,u,l=!0,n=n({advance:function(){_=void 0,a.getStartPos()!==r?l=!!s&&4===g.last(s).kind:a.scan();o=void 0,s=void 0;var e=a.getStartPos();for(;e<i;){var t=a.getToken();if(!g.isTrivia(t))break;a.scan();t={pos:e,end:a.getStartPos(),kind:t};e=a.getStartPos(),o=g.append(o,t)}c=a.getStartPos()},readTokenInfo:function(e){g.Debug.assert(d());var t=function(e){switch(e.kind){case 33:case 70:case 71:case 49:case 48:return!0}return!1}(e)?1:13===e.kind?2:function(e){return 16===e.kind||17===e.kind}(e)?3:function(e){if(e.parent)switch(e.parent.kind){case 273:case 268:case 269:case 267:return g.isKeyword(e.kind)||75===e.kind}return!1}(e)?4:function(e){if(g.isJsxText(e)){e=g.findAncestor(e.parent,function(e){return g.isJsxElement(e)});return e?!g.isParenthesizedExpression(e.parent):!1}return!1}(e)?5:function(e){return e.parent&&g.isJsxAttribute(e.parent)&&e.parent.initializer===e}(e)?6:0;if(_&&t===u)return f(_,e);a.getStartPos()!==c&&(g.Debug.assert(void 0!==_),a.setTextPos(c),a.scan());var r=function(e,t){var r=a.getToken();switch(u=0,t){case 1:if(31!==r)break;u=1;var n=a.reScanGreaterToken();return g.Debug.assert(e.kind===n),n;case 2:if(function(e){return 43===e||67===e}(r)){u=2;n=a.reScanSlashToken();return g.Debug.assert(e.kind===n),n}break;case 3:if(19===r)return u=3,a.reScanTemplateToken(!1);break;case 4:return u=4,a.scanJsxIdentifier();case 5:return u=5,a.reScanJsxToken();case 6:return u=6,a.reScanJsxAttributeValue();case 0:break;default:g.Debug.assertNever(t)}return r}(e,t),t=m.createTextRangeWithKind(a.getStartPos(),a.getTextPos(),r);s=s&&void 0;for(;a.getStartPos()<i&&(r=a.scan(),g.isTrivia(r));){var n=m.createTextRangeWithKind(a.getStartPos(),a.getTextPos(),r);if((s=s||[]).push(n),4===r){a.scan();break}}return f(_={leadingTrivia:o,trailingTrivia:s,token:t},e)},readEOFTokenRange:function(){return g.Debug.assert(p()),m.createTextRangeWithKind(a.getStartPos(),a.getTextPos(),1)},isOnToken:d,isOnEOF:p,getCurrentLeadingTrivia:function(){return o},lastTrailingTriviaWasNewLine:function(){return l},skipToEndOf:function(e){a.setTextPos(e.end),c=a.getStartPos(),u=void 0,_=void 0,l=!1,o=void 0,s=void 0}}),_=void 0;return a.setText(void 0),n;function d(){var e=_?_.token.kind:a.getToken();return(_?_.token.pos:a.getStartPos())<i&&1!==e&&!g.isTrivia(e)}function p(){return 1===(_?_.token.kind:a.getToken())}function f(e,t){return g.isToken(t)&&e.token.kind!==t.kind&&(e.token.kind=t.kind),e}}}(ts=ts||{}),function(e){var t;(t=e.formatting||(e.formatting={})).anyContext=e.emptyArray,(e=t.RuleAction||(t.RuleAction={}))[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",(t=t.RuleFlags||(t.RuleFlags={}))[t.None=0]="None",t[t.CanDeleteNewLines=1]="CanDeleteNewLines"}(ts=ts||{}),function(p){var f;function g(e,t,r,n,i,a){return void 0===a&&(a=0),{leftTokenRange:o(t),rightTokenRange:o(r),rule:{debugName:e,context:n,action:i,flags:a}}}function m(e){return{tokens:e,isSpecific:!0}}function o(e){return"number"==typeof e?m([e]):p.isArray(e)?m(e):e}function y(e,t,r){void 0===r&&(r=[]);for(var n=[],i=e;i<=t;i++)p.contains(r,i)||n.push(i);return m(n)}function h(t,r){return function(e){return e.options&&e.options[t]===r}}function v(t){return function(e){return e.options&&e.options.hasOwnProperty(t)&&!!e.options[t]}}function b(t){return function(e){return e.options&&e.options.hasOwnProperty(t)&&!e.options[t]}}function x(t){return function(e){return!e.options||!e.options.hasOwnProperty(t)||!e.options[t]}}function D(t){return function(e){return!e.options||!e.options.hasOwnProperty(t)||!e.options[t]||e.TokensAreOnSameLine()}}function S(t){return function(e){return!e.options||!e.options.hasOwnProperty(t)||!!e.options[t]}}function C(e){return 230===e.contextNode.kind}function T(e){return!C(e)}function k(e){switch(e.contextNode.kind){case 209:return 27!==e.contextNode.operatorToken.kind;case 210:case 180:case 217:case 263:case 258:case 168:case 178:case 179:return!0;case 191:case 247:case 253:case 242:case 156:case 284:case 159:case 158:return 62===e.currentTokenSpan.kind||62===e.nextTokenSpan.kind;case 231:case 155:return 97===e.currentTokenSpan.kind||97===e.nextTokenSpan.kind||62===e.currentTokenSpan.kind||62===e.nextTokenSpan.kind;case 232:return 152===e.currentTokenSpan.kind||152===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 159===e||158===e||156===e||242===e||p.isFunctionLikeKind(e)}function F(e){return 210===e.contextNode.kind||180===e.contextNode.kind}function P(e){return e.TokensAreOnSameLine()||M(e)}function w(e){return 189===e.contextNode.kind||186===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 223:case 251:case 193:case 250:return!0}return!1}function L(e){switch(e.contextNode.kind){case 244:case 161:case 160:case 163:case 164:case 165:case 201:case 162:case 202:case 246:return!0}return!1}function R(e){return!L(e)}function B(e){return 244===e.contextNode.kind||201===e.contextNode.kind}function j(e){return n(e.contextNode)}function n(e){switch(e.kind){case 245:case 214:case 246:case 248:case 173:case 249:case 260:case 261:case 254:case 257:return!0}return!1}function J(e){switch(e.currentTokenParent.kind){case 245:case 249:case 248:case 280:case 250:case 237:return!0;case 223:var t=e.currentTokenParent.parent;if(!t||202!==t.kind&&201!==t.kind)return!0}return!1}function z(e){switch(e.contextNode.kind){case 227:case 237:case 230:case 231:case 232:case 229:case 240:case 228:case 236:case 280:return!0;default:return!1}}function U(e){return 193===e.contextNode.kind}function V(e){return 196===e.contextNode.kind||197===e.contextNode.kind}function K(e){return 27!==e.currentTokenSpan.kind}function q(e){return 23!==e.nextTokenSpan.kind}function W(e){return 21!==e.nextTokenSpan.kind}function H(e){return 202===e.contextNode.kind}function G(e){return 188===e.contextNode.kind}function Q(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function X(e){return 266!==e.contextNode.kind&&270!==e.contextNode.kind}function Y(e){return 276===e.contextNode.kind||275===e.contextNode.kind}function Z(e){return 273===e.nextTokenParent.kind}function $(e){return 273===e.contextNode.kind}function ee(e){return 267===e.contextNode.kind}function te(e){return!L(e)&&!M(e)}function re(e){return e.TokensAreOnSameLine()&&!!e.contextNode.decorators&&i(e.currentTokenParent)&&!i(e.nextTokenParent)}function i(e){for(;p.isExpressionNode(e);)e=e.parent;return 157===e.kind}function ne(e){return 243===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function ie(e){return 2!==e.formattingRequestKind}function ae(e){return 249===e.contextNode.kind}function oe(e){return 173===e.contextNode.kind}function se(e){return 166===e.contextNode.kind}function a(e,t){if(29!==e.kind&&31!==e.kind)return!1;switch(t.kind){case 169:case 199:case 247:case 245:case 214:case 246:case 244:case 201:case 202:case 161:case 160:case 165:case 166:case 196:case 197:case 216:return!0;default:return!1}}function ce(e){return a(e.currentTokenSpan,e.currentTokenParent)||a(e.nextTokenSpan,e.nextTokenParent)}function ue(e){return 199===e.contextNode.kind}function le(e){return 110===e.currentTokenSpan.kind&&205===e.currentTokenParent.kind}function _e(e){return 212===e.contextNode.kind&&void 0!==e.contextNode.expression}function de(e){return 218===e.contextNode.kind}function pe(e){return!function(e){switch(e.contextNode.kind){case 227:case 230:case 231:case 232:case 228:case 229:return!0;default:return!1}}(e)}function fe(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:222!==t&&26!==t&&(246===e.contextNode.kind||247===e.contextNode.kind?!p.isPropertySignature(e.currentTokenParent)||!!e.currentTokenParent.type||20!==t:p.isPropertyDeclaration(e.currentTokenParent)?!e.currentTokenParent.initializer:230!==e.currentTokenParent.kind&&224!==e.currentTokenParent.kind&&222!==e.currentTokenParent.kind&&22!==t&&20!==t&&39!==t&&40!==t&&43!==t&&13!==t&&27!==t&&211!==t&&15!==t&&14!==t&&24!==t)}function ge(e){return p.positionIsASICandidate(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}(f=p.formatting||(p.formatting={})).getAllRules=function(){for(var r=[],e=0;e<=152;e++)1!==e&&r.push(e);function t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{tokens:r.filter(function(t){return!e.some(function(e){return e===t})}),isSpecific:!1}}var n={tokens:r,isSpecific:!1},i=m(__spreadArrays(r,[3])),a=m(__spreadArrays(r,[1])),o=y(77,152),s=y(29,74),c=[97,98,152,123,133],u=__spreadArrays([75],p.typeKeywords),l=i,_=m([75,3,80,89,96]),d=m([21,3,86,107,92,87]),u=[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],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",96,20,[Q,G],16),g("NoSpaceAfterUnaryPrefixOperator",[45,46,54,53],[8,9,75,20,22,18,104,99],[Q,E],16),g("NoSpaceAfterUnaryPreincrementOperator",45,[75,20,104,99],[Q],16),g("NoSpaceAfterUnaryPredecrementOperator",46,[75,20,104,99],[Q],16),g("NoSpaceBeforeUnaryPostincrementOperator",[75,21,23,99],45,[Q,pe],16),g("NoSpaceBeforeUnaryPostdecrementOperator",[75,21,23,99],46,[Q,pe],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,87,[Q],4),g("SpaceBetweenCloseBraceAndWhile",19,111,[Q],4),g("NoSpaceBetweenEmptyBraceBrackets",18,19,[Q,U],16),g("SpaceAfterConditionalClosingParen",21,22,[z],4),g("NoSpaceBetweenFunctionKeywordAndStar",94,41,[B],16),g("SpaceAfterStarInGeneratorDeclaration",41,75,[B],4),g("SpaceAfterFunctionInFuncDecl",94,n,[L],4),g("NewLineAfterOpenBraceInBlockContext",18,n,[O],8),g("SpaceAfterGetSetInMember",[131,142],75,[L],4),g("NoSpaceBetweenYieldKeywordAndStar",121,41,[Q,_e],16),g("SpaceBetweenYieldOrYieldStarAndOperand",[121,41],n,[Q,_e],4),g("NoSpaceBetweenReturnAndSemicolon",101,26,[Q],16),g("SpaceAfterCertainKeywords",[109,105,99,85,101,108,127],n,[Q],4),g("SpaceAfterLetConstInVariableDeclaration",[115,81],n,[Q,ne],4),g("NoSpaceBeforeOpenParenInFuncCall",n,20,[Q,V,K],16),g("SpaceBeforeBinaryKeywordOperator",n,c,[Q,k],4),g("SpaceAfterBinaryKeywordOperator",c,n,[Q,k],4),g("SpaceAfterVoidOperator",110,n,[Q,le],4),g("SpaceBetweenAsyncAndOpenParen",126,20,[H,Q],4),g("SpaceBetweenAsyncAndFunctionKeyword",126,[94,75],[Q],4),g("NoSpaceBetweenTagAndTemplateString",[75,21],[14,15],[Q],16),g("SpaceBeforeJsxAttribute",n,75,[Z,Q],4),g("SpaceBeforeSlashInJsxOpeningElement",n,43,[ee,Q],4),g("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[ee,Q],16),g("NoSpaceBeforeEqualInJsxAttribute",n,62,[$,Q],16),g("NoSpaceAfterEqualInJsxAttribute",62,n,[$,Q],16),g("NoSpaceAfterModuleImport",[135,139],20,[Q],16),g("SpaceAfterCertainTypeScriptKeywords",[122,80,130,84,88,89,90,131,113,96,114,135,136,117,119,118,138,142,120,145,149,134,132],n,[Q],4),g("SpaceBeforeCertainTypeScriptKeywords",n,[90,113,149],[Q],4),g("SpaceAfterModuleName",10,18,[ae],4),g("SpaceBeforeArrow",n,38,[Q],4),g("SpaceAfterArrow",38,n,[Q],4),g("NoSpaceAfterEllipsis",25,75,[Q],16),g("NoSpaceAfterOptionalParameters",57,[21,27],[Q,E],16),g("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[Q,oe],16),g("NoSpaceBeforeOpenAngularBracket",u,29,[Q,ce],16),g("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[Q,ce],16),g("NoSpaceAfterOpenAngularBracket",29,n,[Q,ce],16),g("NoSpaceBeforeCloseAngularBracket",n,31,[Q,ce],16),g("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[Q,ce,R],16),g("SpaceBeforeAt",[21,75],59,[Q],4),g("NoSpaceAfterAt",59,n,[Q],16),g("SpaceAfterDecorator",n,[122,75,89,84,80,120,119,117,118,131,142,22,41],[re],4),g("NoSpaceBeforeNonNullAssertionOperator",n,53,[Q,de],16),g("NoSpaceAfterNewKeywordOnConstructorSignature",99,20,[Q,se],16),g("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[Q],4)],a=[g("SpaceAfterConstructor",129,20,[v("insertSpaceAfterConstructor"),Q],4),g("NoSpaceAfterConstructor",129,20,[x("insertSpaceAfterConstructor"),Q],16),g("SpaceAfterComma",27,n,[v("insertSpaceAfterCommaDelimiter"),Q,X,q,W],4),g("NoSpaceAfterComma",27,n,[x("insertSpaceAfterCommaDelimiter"),Q,X],16),g("SpaceAfterAnonymousFunctionKeyword",[94,41],20,[v("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),L],4),g("NoSpaceAfterAnonymousFunctionKeyword",[94,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,U],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"),Q],4),g("SpaceBeforeTemplateMiddleAndTail",n,[16,17],[v("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Q],4),g("NoSpaceAfterTemplateHeadAndMiddle",[15,16],n,[x("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Q],16),g("NoSpaceBeforeTemplateMiddleAndTail",n,[16,17],[x("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Q],16),g("SpaceAfterOpenBraceInJsxExpression",18,n,[v("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Q,Y],4),g("SpaceBeforeCloseBraceInJsxExpression",n,19,[v("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Q,Y],4),g("NoSpaceAfterOpenBraceInJsxExpression",18,n,[x("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Q,Y],16),g("NoSpaceBeforeCloseBraceInJsxExpression",n,19,[x("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Q,Y],16),g("SpaceAfterSemicolonInFor",26,n,[v("insertSpaceAfterSemicolonInForStatements"),Q,C],4),g("NoSpaceAfterSemicolonInFor",26,n,[x("insertSpaceAfterSemicolonInForStatements"),Q,C],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",l,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,58,[v("insertSpaceBeforeTypeAnnotation"),Q,A],4),g("NoSpaceBeforeTypeAnnotation",n,58,[x("insertSpaceBeforeTypeAnnotation"),Q,A],16),g("NoOptionalSemicolon",26,a,[h("semicolons",p.SemicolonPreference.Remove),fe],32),g("OptionalSemicolon",n,a,[h("semicolons",p.SemicolonPreference.Insert),ge],64)],n=[g("NoSpaceBeforeSemicolon",n,26,[Q],16),g("SpaceBeforeOpenBraceInControl",d,18,[D("placeOpenBraceOnNewLineForControlBlocks"),z,ie,P],4,1),g("SpaceBeforeOpenBraceInFunction",l,18,[D("placeOpenBraceOnNewLineForFunctions"),L,M,ie,P],4,1),g("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",_,18,[D("placeOpenBraceOnNewLineForFunctions"),j,ie,P],4,1),g("NoSpaceBeforeComma",n,27,[Q],16),g("NoSpaceBeforeOpenBracket",t(126,78),22,[Q],16),g("NoSpaceAfterCloseBracket",23,n,[Q,te],16),g("SpaceAfterSemicolon",26,n,[Q],4),g("SpaceBetweenForAndAwaitKeyword",93,127,[Q],4),g("SpaceBetweenStatements",[21,86,87,78],n,[Q,X,T],4),g("SpaceAfterTryFinally",[107,92],18,[Q],4)];return __spreadArrays(u,a,n)}}(ts=ts||{}),function(b){!function(f){var r;function g(e,t){return b.Debug.assert(e<=152&&t<=152,"Must compute formatting context from tokens"),e*v+t}f.getFormatContext=function(e,t){return{options:e,getRules:function(){void 0===r&&(r=function(e){var c=function(e){for(var t=new Array(v*v),r=new Array(t.length),n=0,i=e;n<i.length;n++)for(var a=i[n],o=a.leftTokenRange.isSpecific&&a.rightTokenRange.isSpecific,s=0,c=a.leftTokenRange.tokens;s<c.length;s++)for(var u=c[s],l=0,_=a.rightTokenRange.tokens;l<_.length;l++){var d=_[l],d=g(u,d),p=t[d];void 0===p&&(p=t[d]=[]),function(e,t,r,n){var i=3&e.action?t?m.StopRulesSpecific:m.StopRulesAny:e.context!==f.anyContext?t?m.ContextRulesSpecific:m.ContextRulesAny:t?m.NoContextRulesSpecific:m.NoContextRulesAny,t=r[n]||0;p.splice(function(e,t){for(var r=0,n=0;n<=t;n+=y)r+=e&h,e>>=y;return r}(t,i),0,e),r[n]=function(e,t){var r=1+(e>>t&h);return b.Debug.assert((r&h)==r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(h<<t)|r<<t}(t,i)}(a.rule,o,r,d)}return t}(e);return function(t){var e=c[g(t.currentTokenSpan.kind,t.nextTokenSpan.kind)];if(e){for(var r=[],n=0,i=0,a=e;i<a.length;i++){var o=a[i],s=~function(e){var t=0;1&e&&(t|=28);2&e&&(t|=96);28&e&&(t|=28);96&e&&(t|=96);return t}(n);o.action&s&&b.every(o.context,function(e){return e(t)})&&(r.push(o),n|=o.action)}if(r.length)return r}}}(f.getAllRules()));return r}(),host:t}};var m,e,y=5,h=31,v=153;(e=m=m||{})[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=+y]="StopRulesAny",e[e.ContextRulesSpecific=2*y]="ContextRulesSpecific",e[e.ContextRulesAny=3*y]="ContextRulesAny",e[e.NoContextRulesSpecific=4*y]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*y]="NoContextRulesAny"}(b.formatting||(b.formatting={}))}(ts=ts||{}),function(L){var R,e,a,o,s;function i(e,t,r){r=L.findPrecedingToken(e,r);return r&&r.kind===t&&e===r.getEnd()?r:void 0}function c(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!function(e,t){switch(e.kind){case 245:case 246:return L.rangeContainsRange(e.members,t);case 249:var r=e.body;return!!r&&250===r.kind&&L.rangeContainsRange(r.statements,t);case 290:case 223:case 250:return L.rangeContainsRange(e.statements,t);case 280:return L.rangeContainsRange(e.block.statements,t)}return!1}(t.parent,t);)t=t.parent;return t}function u(n,i){return function e(t){var r=L.forEachChild(t,function(e){return L.startEndContainsRange(e.getStart(i),e.end,n)&&e});if(r){var r=e(r);if(r)return r}return t}(i)}function n(e,t,r,n){return e?l({pos:L.getLineStartPositionForPosition(e.getStart(t),t),end:e.end},t,r,n):[]}function l(t,r,n,i){var e,a,o,s,c=u(t,r);return R.getFormattingScanner(r.text,r.languageVariant,(a=t,o=r,(s=(e=c).getStart(o))===a.pos&&e.end===a.end?s:!(o=L.findPrecedingToken(a.pos,o))||o.end>=a.pos?e.pos:o.end),t.end,function(e){return _(t,c,R.SmartIndenter.getIndentationForNode(c,t,r,n.options),function(e,t,r){for(var n,i=-1;e;){var a=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==i&&a!==i)break;if(R.SmartIndenter.shouldIndentChildNode(t,e,n,r))return t.indentSize;i=a,e=(n=e).parent}return 0}(c,n.options,r),e,n,i,function(e,t){if(!e.length)return i;var r=e.filter(function(e){return L.rangeOverlapsWithStartEnd(t,e.start,e.start+e.length)}).sort(function(e,t){return e.start-t.start});if(!r.length)return i;var n=0;return function(e){for(;;){if(n>=r.length)return!1;var t=r[n];if(e.end<=t.start)return!1;if(L.startEndOverlapsWithStartEnd(e.pos,e.end,t.start,t.start+t.length))return!0;n++}};function i(){return!1}}(r.parseDiagnostics,t),r)})}function _(h,t,e,r,v,n,i,b,x){var D,c,u,S,a,o,C=n.options,l=n.getRules,_=n.host,d=new R.FormattingContext(x,i,C),T=-1,p=[];return v.advance(),v.isOnToken()&&(i=n=x.getLineAndCharacterOfPosition(t.getStart(x)).line,t.decorators&&(i=x.getLineAndCharacterOfPosition(L.getNonDecoratorTokenPosOfNode(t,x)).line),function p(g,e,t,r,n,i){if(!L.rangeOverlapsWithStartEnd(h,g.getStart(x),g.getEnd()))return;var a=N(g,t,n,i);var f=e;L.forEachChild(g,function(e){m(e,-1,g,a,t,r,!1)},function(e){s(e,g,t,a)});for(;v.isOnToken();){var o=v.readTokenInfo(g);if(o.token.end>g.end)break;11!==g.kind?y(o,g,a,g):v.advance()}g.parent||!v.isOnEOF()||(i=v.readEOFTokenRange()).end<=g.end&&D&&w(i,x.getLineAndCharacterOfPosition(i.pos).line,g,D,u,c,e,a);function m(t,e,r,n,i,a,o,s){var c=t.getStart(x),u=x.getLineAndCharacterOfPosition(c).line,l=u;t.decorators&&(l=x.getLineAndCharacterOfPosition(L.getNonDecoratorTokenPosOfNode(t,x)).line);var _=-1;if(o&&L.rangeContainsRange(h,r)&&-1!==(_=k(c,t.end,i,h,e))&&(e=_),!L.rangeOverlapsWithStartEnd(h,t.pos,t.end))return t.end<h.pos&&v.skipToEndOf(t),e;if(0===t.getFullWidth())return e;for(;v.isOnToken();){var d=v.readTokenInfo(g);if(d.token.end>c)break;y(d,g,n,g)}if(!v.isOnToken())return e;if(L.isToken(t)&&11!==t.kind){var d=v.readTokenInfo(t);return L.Debug.assert(d.token.end===t.end,"Token end is child end"),y(d,g,n,t),e}var a=157===t.kind?u:a,_=E(t,u,_,g,n,a);return p(t,f,u,l,_.indentation,_.delta),11!==t.kind||(a={pos:t.getStart(),end:t.getEnd()}).pos!==a.end&&(u=r.getChildren(x),l=L.findIndex(u,function(e){return e.pos===t.pos}),(l=u[l-1])&&x.getLineAndCharacterOfPosition(a.end).line!==x.getLineAndCharacterOfPosition(l.end).line&&(l=x.getLineAndCharacterOfPosition(a.pos).line===x.getLineAndCharacterOfPosition(l.end).line,O(a,_.indentation,l,!1,!0))),f=g,s&&192===r.kind&&-1===e&&(e=_.indentation),e}function s(e,t,r,n){L.Debug.assert(L.isNodeArray(e));var i=B(t,e),a=n,o=r;if(0!==i)for(;v.isOnToken();){var s,c,u=v.readTokenInfo(t);if(u.token.end>e.pos)break;u.token.kind===i?(o=x.getLineAndCharacterOfPosition(u.token.pos).line,y(u,t,n,t),s=void 0,s=-1!==T?T:(c=L.getLineStartPositionForPosition(u.token.pos,x),R.SmartIndenter.findFirstNonWhitespaceColumn(c,u.token.pos,x,C)),a=N(t,r,s,C.indentSize)):y(u,t,n,t)}for(var l=-1,_=0;_<e.length;_++){var d=e[_];l=m(d,l,g,a,o,o,!0,0===_)}var p,f=j(i);0!==f&&v.isOnToken()&&(27===(u=v.readTokenInfo(t)).token.kind&&L.isCallLikeExpression(t)&&(p=x.getLineAndCharacterOfPosition(u.token.pos).line,o!==p&&(v.advance(),u=v.isOnToken()?v.readTokenInfo(t):void 0)),u&&u.token.kind===f&&L.rangeContainsRange(t,u.token)&&y(u,t,a,t,!0))}function y(e,t,r,n,i){L.Debug.assert(L.rangeContainsRange(t,e.token));var a=v.lastTrailingTriviaWasNewLine(),o=!1;e.leadingTrivia&&F(e.leadingTrivia,t,f,r);var s,c,u,l=0,_=L.rangeContainsRange(h,e.token),d=x.getLineAndCharacterOfPosition(e.token.pos);_&&(s=b(e.token),c=D,l=P(e.token,d,t,f,r),s||(o=0===l?(c=c&&x.getLineAndCharacterOfPosition(c.end).line,a&&d.line!==c):1===l)),e.trailingTrivia&&F(e.trailingTrivia,t,f,r),o&&(_=_&&!b(e.token)?r.getIndentationForToken(d.line,e.token.kind,n,!!i):-1,i=!0,e.leadingTrivia&&(u=r.getIndentationForComment(e.token.kind,_,n),i=A(e.leadingTrivia,u,i,function(e){return I(e.pos,u,!1),0})),-1!==_&&i&&(I(e.token.pos,_,1===l),S=d.line,T=_)),v.advance(),f=t}}(t,t,n,i,e,r)),v.isOnToken()||(r=v.getCurrentLeadingTrivia())&&(A(r,e,!1,function(e){return P(e,x.getLineAndCharacterOfPosition(e.pos),t,t,void 0)}),!1!==C.trimTrailingWhitespace&&(a=D?D.end:h.pos,o=x.getLineAndCharacterOfPosition(a).line,a=x.getLineAndCharacterOfPosition(h.end).line,f(o,a+1,D))),p;function k(e,t,r,n,i){if(L.rangeOverlapsWithStartEnd(n,e,t)||L.rangeContainsStartEnd(n,e,t)){if(-1!==i)return i}else{t=x.getLineAndCharacterOfPosition(e).line,i=L.getLineStartPositionForPosition(e,x),i=R.SmartIndenter.findFirstNonWhitespaceColumn(i,e,x,C);if(t!==r||e===i){e=R.SmartIndenter.getBaseIndentation(C);return i<e?e:i}}return-1}function E(e,t,r,n,i,a){var o=R.SmartIndenter.shouldIndentChildNode(C,e)?C.indentSize:0;return a===t?{indentation:t===S?T:i.getIndentation(),delta:Math.min(C.indentSize,i.getDelta(e)+o)}:-1===r?20===e.kind&&t===S?{indentation:T,delta:i.getDelta(e)}:R.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(n,e,t,x)||R.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(n,e,t,x)?{indentation:i.getIndentation(),delta:o}:{indentation:i.getIndentation()+i.getDelta(e),delta:o}:{indentation:r,delta:o}}function N(i,a,o,r){return{getIndentationForComment:function(e,t,r){switch(e){case 19:case 23:case 21:return o+s(r)}return-1!==t?t:o},getIndentationForToken:function(e,t,r,n){return!n&&function(e,t,r){switch(t){case 18:case 19:case 21:case 87:case 111:case 59:return!1;case 43:case 31:switch(r.kind){case 268:case 269:case 267:return!1}break;case 22:case 23:if(186!==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 245:return 80;case 246:return 114;case 244:return 94;case 248:return 248;case 163:return 131;case 164:return 142;case 161:if(e.asteriskToken)return 41;case 159:case 156:var t=L.getNameOfDeclaration(e);if(t)return t.kind}}(i))}(e,t,r)?o+s(r):o},getIndentation:function(){return o},getDelta:s,recomputeIndentation:function(e,t){R.SmartIndenter.shouldIndentChildNode(C,t,i,x)&&(o+=e?C.indentSize:-C.indentSize,r=R.SmartIndenter.shouldIndentChildNode(C,i)?C.indentSize:0)}};function s(e){return R.SmartIndenter.nodeWillIndentChild(C,i,e,x,!0)?r:0}}function A(e,t,r,n){for(var i=0,a=e;i<a.length;i++){var o=a[i],s=L.rangeContainsRange(h,o);switch(o.kind){case 3:s&&O(o,t,!r),r=!1;break;case 2:r&&s&&n(o),r=!1;break;case 4:r=!0}}return r}function F(e,t,r,n){for(var i=0,a=e;i<a.length;i++){var o=a[i];L.isComment(o.kind)&&L.rangeContainsRange(h,o)&&P(o,x.getLineAndCharacterOfPosition(o.pos),t,r,n)}}function P(e,t,r,n,i){var a=0;return b(e)||(D?a=w(e,t.line,r,D,u,c,n,i):f(x.getLineAndCharacterOfPosition(h.pos).line,t.line)),D=e,c=r,u=t.line,a}function w(t,r,n,i,a,e,o,s){d.updateContext(i,e,t,n,o);var e=l(d),c=!1!==d.options.trimTrailingWhitespace,u=0;return e?L.forEachRight(e,function(e){switch(u=function(e,t,r,n,i){var a=i!==r;switch(e.action){case 1:return 0;case 16:if(t.end!==n.pos)return y(t.end,n.pos-t.end),a?2:0;break;case 32:y(t.pos,t.end-t.pos);break;case 8:if(1!==e.flags&&r!==i)return 0;if(1!=i-r)return M(t.end,n.pos-t.end,L.getNewLineOrDefaultFromHost(_,C)),a?0:1;break;case 4:if(1!==e.flags&&r!==i)return 0;if(1!=n.pos-t.end||32!==x.text.charCodeAt(t.end))return M(t.end,n.pos-t.end," "),a?2:0;break;case 64:!function(e,t){t&&p.push(L.createTextChangeFromStartLength(e,0,t))}(t.end,";")}return 0}(e,i,a,t,r)){case 2:n.getStart(x)===t.pos&&s.recomputeIndentation(!1,o);break;case 1:n.getStart(x)===t.pos&&s.recomputeIndentation(!0,o);break;default:L.Debug.assert(0===u)}c=c&&!(16&e.action)&&1!==e.flags}):c=c&&1!==t.kind,r!==a&&c&&f(a,r,i),u}function I(e,t,r){var n,i=J(t,C);r?M(e,0,i):(n=x.getLineAndCharacterOfPosition(e),t===function(e,t){for(var r=0,n=0;n<t;n++)9===x.text.charCodeAt(e+n)?r+=C.tabSize-r%C.tabSize:r++;return r}(r=L.getStartPositionOfLine(n.line,x),n.character)&&(e=r,(t=i)===x.text.substr(e,t.length))||M(r,n.character,i))}function O(e,t,r,n,i){void 0===n&&(n=!0);var a=x.getLineAndCharacterOfPosition(e.pos).line,o=x.getLineAndCharacterOfPosition(e.end).line;if(a!==o){for(var s=[],c=e.pos,u=a;u<o;u++){var l=L.getEndLinePosition(u,x);s.push({pos:c,end:l}),c=L.getStartPositionOfLine(u+1,x)}if(n&&s.push({pos:c,end:e.end}),0!==s.length){var n=L.getStartPositionOfLine(a,x),_=R.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(n,s[0].pos,x,C);if(t!==_.column||i){n=0;r&&(n=1,a++);for(var d=t-_.column,p=n;p<s.length;p++,a++){var f=L.getStartPositionOfLine(a,x),g=0===p?_:R.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(s[p].pos,s[p].end,x,C);if(i){if(L.isLineBreak(x.text.charCodeAt(L.getStartPositionOfLine(a,x))))continue;d=t-g.column}var m=g.column+d;0<m?(m=J(m,C),M(f,g.character,m)):y(f,g.character)}}}}else r||I(e.pos,t,!1)}function f(e,t,r){for(var n=e;n<t;n++){var i,a=L.getStartPositionOfLine(n,x),o=L.getEndLinePosition(n,x);r&&(L.isComment(r.kind)||L.isStringOrRegularExpressionOrTemplateLiteral(r.kind))&&r.pos<=o&&r.end>o||-1!==(i=function(e,t){var r=t;for(;e<=r&&L.isWhiteSpaceSingleLine(x.text.charCodeAt(r));)r--;return r===t?-1:r+1}(a,o))&&(L.Debug.assert(i===a||!L.isWhiteSpaceSingleLine(x.text.charCodeAt(i-1))),y(i,o+1-i))}}function y(e,t){t&&p.push(L.createTextChangeFromStartLength(e,t,""))}function M(e,t,r){(t||r)&&p.push(L.createTextChangeFromStartLength(e,t,r))}}function B(e,t){switch(e.kind){case 162:case 244:case 201:case 161:case 160:case 202:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 196:case 197:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 169:if(e.typeArguments===t)return 29;break;case 173:return 18}return 0}function j(e){switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0}function J(e,t){if((!a||a.tabSize!==t.tabSize||a.indentSize!==t.indentSize)&&(a={tabSize:t.tabSize,indentSize:t.indentSize},o=s=void 0),t.convertTabsToSpaces){var r=void 0,n=Math.floor(e/t.indentSize),i=e%t.indentSize;return void 0===(s=s||[])[n]?(r=L.repeatString(" ",t.indentSize*n),s[n]=r):r=s[n],i?r+L.repeatString(" ",i):r}r=Math.floor(e/t.tabSize),e-=r*t.tabSize,t=void 0;return void 0===(o=o||[])[r]?o[r]=t=L.repeatString("\t",r):t=o[r],e?t+L.repeatString(" ",e):t}(R=L.formatting||(L.formatting={})).createTextRangeWithKind=function(e,t,r){return t={pos:e,end:t,kind:r},L.Debug.isDebugging&&Object.defineProperty(t,"__debugKind",{get:function(){return L.Debug.formatSyntaxKind(r)}}),t},(e={})[e.Unknown=-1]="Unknown",R.formatOnEnter=function(e,t,r){if(0===(e=t.getLineAndCharacterOfPosition(e).line))return[];for(var n=L.getEndLinePosition(e,t);L.isWhiteSpaceSingleLine(t.text.charCodeAt(n));)n--;return L.isLineBreak(t.text.charCodeAt(n))&&n--,l({pos:L.getStartPositionOfLine(e-1,t),end:n+1},t,r,2)},R.formatOnSemicolon=function(e,t,r){return n(c(i(e,26,t)),t,r,3)},R.formatOnOpeningCurly=function(e,t,r){var n=i(e,18,t);return n?(n=c(n.parent),l({pos:L.getLineStartPositionForPosition(n.getStart(t),t),end:e},t,r,4)):[]},R.formatOnClosingCurly=function(e,t,r){return n(c(i(e,19,t)),t,r,5)},R.formatDocument=function(e,t){return l({pos:0,end:e.text.length},e,t,0)},R.formatSelection=function(e,t,r,n){return l({pos:L.getLineStartPositionForPosition(e,r),end:t},r,n,1)},R.formatNodeGivenIndentation=function(t,r,e,n,i,a){var o={pos:0,end:r.text.length};return R.getFormattingScanner(r.text,e,o.pos,o.end,function(e){return _(o,t,n,i,e,a,1,function(e){return!1},r)})},(e={})[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved",R.getRangeOfEnclosingComment=function(t,r,e,n){void 0===n&&(n=L.getTokenAtPosition(t,r));var i=L.findAncestor(n,L.isJSDoc);if(i&&(n=i.parent),!(n.getStart(t)<=r&&r<n.getEnd())){e=(e=null===e?void 0:void 0===e?L.findPrecedingToken(r,t):e)&&L.getTrailingCommentRanges(t.text,e.end),n=L.getLeadingCommentRangesOfNode(n,t),n=L.concatenate(e,n);return n&&L.find(n,function(e){return L.rangeContainsPositionExclusive(e,r)||r===e.end&&(2===e.kind||r===t.getFullWidth())})}},R.getIndentationString=J}(ts=ts||{}),function(y){var u,e,t;function h(e){return e.baseIndentSize||0}function l(e,t,r,n,i,a,o){for(var s,c,u,l,_=e.parent;_;){var d,p=!0;r&&(p=(d=e.getStart(i))<r.pos||d>r.end);var f=function(e,t,r){t=x(t,r),e=t?t.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(e)}(_,e,i),g=f.line===t.line||b(_,e,t.line,i);if(p){var m=D(e,i,o,!g);if(-1!==m)return m+n;if(s=e,c=_,u=t,l=g,d=i,p=o,-1!==(m=!y.isDeclaration(s)&&!y.isStatementButNotDeclaration(s)||290!==c.kind&&l?-1:S(u,d,p)))return m+n}C(o,_,e,i,a)&&!g&&(n+=o.indentSize);g=v(_,e,t.line,i),_=(e=_).parent;t=g?i.getLineAndCharacterOfPosition(e.getStart(i)):f}return n+h(o)}function _(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function v(e,t,r,n){if(!y.isCallExpression(e)||!y.contains(e.arguments,t))return!1;e=e.expression.getEnd();return y.getLineAndCharacterOfPosition(n,e).line===r}function b(e,t,r,n){if(227!==e.kind||e.elseStatement!==t)return!1;e=y.findChildOfKind(e,87,n);return y.Debug.assert(void 0!==e),_(e,n).line===r}function x(e,t){return e.parent&&d(e.getStart(t),e.getEnd(),e.parent,t)}function d(t,r,n,i){switch(n.kind){case 169:return e(n.typeArguments);case 193:return e(n.properties);case 192:return e(n.elements);case 173:return e(n.members);case 244:case 201:case 202:case 161:case 160:case 165:case 162:case 171:case 166:return e(n.typeParameters)||e(n.parameters);case 245:case 214:case 246:case 247:case 321:return e(n.typeParameters);case 197:case 196:return e(n.typeArguments)||e(n.arguments);case 243:return e(n.declarations);case 257:case 261:return e(n.elements);case 189:case 190:return e(n.elements)}function e(e){return e&&y.rangeContainsStartEnd(function(e,t,r){for(var n=e.getChildren(r),i=1;i<n.length-1;i++)if(n[i].pos===t.pos&&n[i].end===t.end)return{pos:n[i-1].end,end:n[i+1].getStart(r)};return t}(n,e,i),t,r)?e:void 0}}function p(e,t,r){return e?S(t.getLineAndCharacterOfPosition(e.pos),t,r):-1}function D(e,t,r,n){if(e.parent&&243===e.parent.kind)return-1;var i=x(e,t);if(i){e=i.indexOf(e);if(-1!==e){e=f(i,e,t,r);if(-1!==e)return e}return p(i,t,r)+(n?r.indentSize:0)}return-1}function f(e,t,r,n){y.Debug.assert(0<=t&&t<e.length);for(var i=_(e[t],r),a=t-1;0<=a;a--)if(27!==e[a].kind){if(r.getLineAndCharacterOfPosition(e[a].end).line!==i.line)return S(i,r,n);i=_(e[a],r)}return-1}function S(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return m(n,n+e.character,t,r)}function g(e,t,r,n){for(var i=0,a=0,o=e;o<t;o++){var s=r.text.charCodeAt(o);if(!y.isWhiteSpaceSingleLine(s))break;9===s?a+=n.tabSize+a%n.tabSize:a++,i++}return{column:a,character:i}}function m(e,t,r,n){return g(e,t,r,n).column}function a(e,t,r,n,i){var a,o,s,c=r?r.kind:0;switch(t.kind){case 226:case 245:case 214:case 246:case 248:case 247:case 192:case 223:case 250:case 193:case 173:case 186:case 175:case 251:case 278:case 277:case 200:case 194:case 196:case 197:case 225:case 259:case 235:case 210:case 190:case 189:case 268:case 271:case 267:case 276:case 160:case 165:case 166:case 156:case 170:case 171:case 182:case 198:case 206:case 261:case 257:case 263:case 258:case 159:return!0;case 242:case 281:case 209:if(!e.indentMultiLineObjectLiteralBeginningOnBlankLine&&n&&193===c)return a=n,o=r,s=y.skipTrivia(a.text,o.pos),s=a.getLineAndCharacterOfPosition(s).line,o=a.getLineAndCharacterOfPosition(o.end).line,s===o;if(209!==t.kind)return!0;break;case 228:case 229:case 231:case 232:case 230:case 227:case 244:case 201:case 161:case 202:case 162:case 163:case 164:return 223!==c;case 260:return 261!==c;case 254:return 255!==c||!!r.namedBindings&&257!==r.namedBindings.kind;case 266:return 269!==c;case 270:return 272!==c;case 179:case 178:if(173===c)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 235:case 239:case 233:case 234:return 223!==t.kind;default:return}}(r.kind,t))}u=y.formatting||(y.formatting={}),e=u.SmartIndenter||(u.SmartIndenter={}),(t={})[t.Unknown=-1]="Unknown",e.getIndentation=function(e,t,r,n){if(void 0===n&&(n=!1),e>t.text.length)return h(r);if(r.indentStyle===y.IndentStyle.None)return 0;var i,a=y.findPrecedingToken(e,t,void 0,!0);if((i=u.getRangeOfEnclosingComment(t,e,a||null))&&3===i.kind)return function(e,t,r,n){var i=y.getLineAndCharacterOfPosition(e,t).line-1,n=y.getLineAndCharacterOfPosition(e,n.pos).line;if(y.Debug.assert(0<=n),i<=n)return m(y.getStartPositionOfLine(n,e),t,e,r);i=y.getStartPositionOfLine(i,e),t=g(i,t,e,r),r=t.column,t=t.character;return 0!==r&&42===e.text.charCodeAt(i+t)?r-1:r}(t,e,r,i);if(!a)return h(r);if(y.isStringOrRegularExpressionOrTemplateLiteral(a.kind)&&a.getStart(t)<=e&&e<a.end)return 0;var o,s=t.getLineAndCharacterOfPosition(e).line;if(r.indentStyle===y.IndentStyle.Block)return function(e,t,r){var n=t;for(;0<n;){var i=e.text.charCodeAt(n);if(!y.isWhiteSpaceLike(i))break;n--}return m(y.getLineStartPositionForPosition(n,e),n,e,r)}(t,e,r);if(27===a.kind&&209!==a.parent.kind){var c=function(e,t,r){e=y.findListItemInfo(e);return e&&0<e.listItemIndex?f(e.list.getChildren(),e.listItemIndex-1,t,r):-1}(a,t,r);if(-1!==c)return c}return(c=(o=e,i=a.parent,c=t,i&&d(o,o,i,c)))&&!y.rangeContainsRange(c,a)?p(c,t,r)+r.indentSize:function(e,t,r,n,i,a){var o,s=r;for(;s;){if(y.positionBelongsToNode(s,t,e)&&C(a,s,o,e,!0)){var c=_(s,e),u=function(e,t,r,n){t=y.findNextToken(e,t,n);if(!t)return 0;{if(18===t.kind)return 1;if(19===t.kind){n=_(t,n).line;return r===n?2:0}}return 0}(r,s,n,e),u=0!==u?i&&2===u?a.indentSize:0:n!==c.line?a.indentSize:0;return l(s,c,void 0,u,e,!0,a)}u=D(s,e,a,!0);if(-1!==u)return u;s=(o=s).parent}return h(a)}(t,e,a,s,n,r)},e.getIndentationForNode=function(e,t,r,n){var i=r.getLineAndCharacterOfPosition(e.getStart(r));return l(e,i,t,0,r,!1,n)},e.getBaseIndentation=h,(t={})[t.Unknown=0]="Unknown",t[t.OpenBrace=1]="OpenBrace",t[t.CloseBrace=2]="CloseBrace",e.isArgumentAndStartLineOverlapsExpressionBeingCalled=v,e.childStartsOnTheSameLineWithElseInIfStatement=b,e.argumentStartsOnSameLineAsPreviousArgument=function(e,t,r,n){if(y.isCallOrNewExpression(e)){if(!e.arguments)return!1;var i=y.find(e.arguments,function(e){return e.pos===t.pos});if(!i)return!1;i=e.arguments.indexOf(i);if(0===i)return!1;i=e.arguments[i-1];if(r===y.getLineAndCharacterOfPosition(n,i.getEnd()).line)return!0}return!1},e.getContainingList=x,e.findFirstNonWhitespaceCharacterAndColumn=g,e.findFirstNonWhitespaceColumn=m,e.nodeWillIndentChild=a,e.shouldIndentChildNode=C}(ts=ts||{}),function(F){!function(e){function a(e){e=e.__pos;return F.Debug.assert("number"==typeof e),e}function s(e,t){F.Debug.assert("number"==typeof t),e.__pos=t}function o(e){e=e.__end;return F.Debug.assert("number"==typeof e),e}function c(e,t){F.Debug.assert("number"==typeof t),e.__end=t}var u,l;function _(e,t){return F.skipTrivia(e,t,!1,!0)}(t=u=e.LeadingTriviaOption||(e.LeadingTriviaOption={}))[t.Exclude=0]="Exclude",t[t.IncludeAll=1]="IncludeAll",t[t.JSDoc=2]="JSDoc",t[t.StartLine=3]="StartLine",(t=l=e.TrailingTriviaOption||(e.TrailingTriviaOption={}))[t.Exclude=0]="Exclude",t[t.Include=1]="Include";var d,p={leadingTriviaOption:u.Exclude,trailingTriviaOption:l.Exclude};function f(e,t,r,n){return{pos:g(e,t,n),end:m(e,r,n)}}function g(e,t,r){var n=r.leadingTriviaOption;if(n===u.Exclude)return t.getStart(e);if(n===u.StartLine)return F.getLineStartPositionForPosition(t.getStart(e),e);if(n===u.JSDoc){var i=F.getJSDocCommentRanges(t,e.text);if(null!=i&&i.length)return F.getLineStartPositionForPosition(i[0].pos,e)}r=t.getFullStart(),i=t.getStart(e);if(r===i)return i;t=F.getLineStartPositionForPosition(r,e);if(F.getLineStartPositionForPosition(i,e)===t)return n===u.IncludeAll?r:i;r=0<r?1:0,r=F.getStartPositionOfLine(F.getLineOfLocalPosition(e,t)+r,e),r=_(e.text,r);return F.getStartPositionOfLine(F.getLineOfLocalPosition(e,r),e)}function m(e,t,r){var n=t.end,r=r.trailingTriviaOption;if(r===l.Exclude||F.isExpression(t)&&r!==l.Include)return n;t=F.skipTrivia(e.text,n,!0);return t===n||r!==l.Include&&!F.isLineBreak(e.text.charCodeAt(t-1))?n:t}function y(e,t){return t&&e.parent&&(27===t.kind||26===t.kind&&193===e.parent.kind)}(t=d=d||{})[t.Remove=0]="Remove",t[t.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",t[t.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",t[t.Text=3]="Text",e.isThisTypeAnnotatable=function(e){return F.isFunctionExpression(e)||F.isFunctionDeclaration(e)};var h,v,t=(r.fromContext=function(e){return new r(F.getNewLineOrDefaultFromHost(e.host,e.formatContext.options),e.formatContext)},r.with=function(e,t){e=r.fromContext(e);return t(e),e.getChanges()},r.prototype.pushRaw=function(e,t){F.Debug.assertEqual(e.fileName,t.fileName);for(var r=0,n=t.textChanges;r<n.length;r++){var i=n[r];this.changes.push({kind:d.Text,sourceFile:e,text:i.newText,range:F.createTextRangeFromSpan(i.span)})}},r.prototype.deleteRange=function(e,t){this.changes.push({kind:d.Remove,sourceFile:e,range:t})},r.prototype.delete=function(e,t){this.deletedNodes.push({sourceFile:e,node:t})},r.prototype.deleteNode=function(e,t,r){void 0===r&&(r={leadingTriviaOption:u.IncludeAll}),this.deleteRange(e,f(e,t,t,r))},r.prototype.deleteModifier=function(e,t){this.deleteRange(e,{pos:t.getStart(e),end:F.skipTrivia(e.text,t.end,!0)})},r.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:u.IncludeAll});t=g(e,t,n),n=m(e,r,n);this.deleteRange(e,{pos:t,end:n})},r.prototype.deleteNodeRangeExcludingEnd=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:u.IncludeAll});t=g(e,t,n),n=void 0===r?e.text.length:g(e,r,n);this.deleteRange(e,{pos:t,end:n})},r.prototype.replaceRange=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:d.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r})},r.prototype.replaceNode=function(e,t,r,n){void 0===n&&(n=p),this.replaceRange(e,f(e,t,t,n),r,n)},r.prototype.replaceNodeRange=function(e,t,r,n,i){void 0===i&&(i=p),this.replaceRange(e,f(e,t,r,i),n,i)},r.prototype.replaceRangeWithNodes=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:d.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r})},r.prototype.replaceNodeWithNodes=function(e,t,r,n){void 0===n&&(n=p),this.replaceRangeWithNodes(e,f(e,t,t,n),r,n)},r.prototype.replaceNodeWithText=function(e,t,r){this.replaceRangeWithText(e,f(e,t,t,p),r)},r.prototype.replaceNodeRangeWithNodes=function(e,t,r,n,i){void 0===i&&(i=p),this.replaceRangeWithNodes(e,f(e,t,r,i),n,i)},r.prototype.nextCommaToken=function(e,t){e=F.findNextToken(t,t.parent,e);return e&&27===e.kind?e:void 0},r.prototype.replacePropertyAssignment=function(e,t,r){var n=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:n})},r.prototype.insertNodeAt=function(e,t,r,n){void 0===n&&(n={}),this.replaceRange(e,F.createRange(t),r,n)},r.prototype.insertNodesAt=function(e,t,r,n){void 0===n&&(n={}),this.replaceRangeWithNodes(e,F.createRange(t),r,n)},r.prototype.insertNodeAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},r.prototype.insertNodesAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},r.prototype.insertAtTopOfFile=function(e,t,r){var n=function(e){for(var t,r=0,n=e.statements;r<n.length;r++){var i=n[r];if(!F.isPrologueDirective(i))break;t=i}var a=0,o=e.text;if(t)return a=t.end,f(),a;var s=F.getShebang(o);void 0!==s&&(a=s.length,f());var c,u,s=F.getLeadingCommentRanges(o,a);if(!s)return a;for(var l=0,_=s;l<_.length;l++){var d=_[l];if(3===d.kind){if(F.isPinnedComment(o,d.pos)){c={range:d,pinnedOrTripleSlash:!0};continue}}else if(F.isRecognizedTripleSlashComment(o,d.pos,d.end)){c={range:d,pinnedOrTripleSlash:!0};continue}if(c){if(c.pinnedOrTripleSlash)break;var p=e.getLineAndCharacterOfPosition(d.pos).line;if(e.getLineAndCharacterOfPosition(c.range.end).line+2<=p)break}if(e.statements.length){void 0===u&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);p=e.getLineAndCharacterOfPosition(d.end).line;if(u<p+2)break}c={range:d,pinnedOrTripleSlash:!1}}c&&(a=c.range.end,f());return a;function f(){var e;a<o.length&&(e=o.charCodeAt(a),F.isLineBreak(e)&&++a<o.length&&13===e&&10===o.charCodeAt(a)&&a++)}}(e),r={prefix:0===n?void 0:this.newLineCharacter,suffix:(F.isLineBreak(e.text.charCodeAt(n))?"":this.newLineCharacter)+(r?this.newLineCharacter:"")};F.isArray(t)?this.insertNodesAt(e,n,t,r):this.insertNodeAt(e,n,t,r)},r.prototype.insertFirstParameter=function(e,t,r){var n=F.firstOrUndefined(t);n?this.insertNodeBefore(e,n,r):this.insertNodeAt(e,t.pos,r)},r.prototype.insertNodeBefore=function(e,t,r,n){void 0===n&&(n=!1),this.insertNodeAt(e,g(e,t,{}),r,this.getOptionsForInsertNodeBefore(t,r,n))},r.prototype.insertModifierBefore=function(e,t,r){r=r.getStart(e);this.insertNodeAt(e,r,F.createToken(t),{suffix:" "})},r.prototype.insertLastModifierBefore=function(e,t,r){var n;r.modifiers?(n=r.modifiers.end,this.insertNodeAt(e,n,F.createToken(t),{prefix:" "})):this.insertModifierBefore(e,t,r)},r.prototype.insertCommentBeforeLine=function(e,t,r,n){var i=F.getStartPositionOfLine(t,e),a=F.getFirstNonSpaceCharacterPosition(e.text,i),t=k(e,a),r=F.getTouchingToken(e,t?a:r),a=e.text.slice(i,a),a=(t?"":this.newLineCharacter)+"//"+n+this.newLineCharacter+a;this.insertText(e,r.getStart(e),a)},r.prototype.insertJsdocCommentBefore=function(e,t,r){var n=t.getStart(e);if(t.jsDoc)for(var i=0,a=t.jsDoc;i<a.length;i++){var o=a[i];this.deleteRange(e,{pos:F.getLineStartPositionForPosition(o.getStart(e),e),end:m(e,o,{})})}t=F.getPrecedingNonSpaceCharacterPosition(e.text,n-1),t=e.text.slice(t,n);this.insertNodeAt(e,n,r,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+t})},r.prototype.replaceRangeWithText=function(e,t,r){this.changes.push({kind:d.Text,sourceFile:e,range:t,text:r})},r.prototype.insertText=function(e,t,r){this.replaceRangeWithText(e,F.createRange(t),r)},r.prototype.tryInsertTypeAnnotation=function(e,t,r){var n,i;if(F.isFunctionLike(t)){if(!(i=F.findChildOfKind(t,21,e))){if(!F.isArrowFunction(t))return!1;i=F.first(t.parameters)}}else i=null!==(n=242===t.kind?t.exclamationToken:t.questionToken)&&void 0!==n?n:t.name;return this.insertNodeAt(e,i.end,r,{prefix:": "}),!0},r.prototype.tryInsertThisTypeAnnotation=function(e,t,r){var n=F.findChildOfKind(t,20,e).getStart(e)+1,t=t.parameters.length?", ":"";this.insertNodeAt(e,n,r,{prefix:"this: ",suffix:t})},r.prototype.insertTypeParameters=function(e,t,r){t=(F.findChildOfKind(t,20,e)||F.first(t.parameters)).getStart(e);this.insertNodesAt(e,t,r,{prefix:"<",suffix:">"})},r.prototype.getOptionsForInsertNodeBefore=function(e,t,r){return F.isStatement(e)||F.isClassElement(e)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:F.isVariableDeclaration(e)?{suffix:", "}:F.isParameter(e)?F.isParameter(t)?{suffix:", "}:{}:F.isStringLiteral(e)&&F.isImportDeclaration(e.parent)||F.isNamedImports(e)?{suffix:", "}:F.Debug.failBadSyntaxKind(e)},r.prototype.insertNodeAtConstructorStart=function(e,t,r){var n=F.firstOrUndefined(t.body.statements);n&&t.body.multiLine?this.insertNodeBefore(e,n,r):this.replaceConstructorBody(e,t,__spreadArrays([r],t.body.statements))},r.prototype.insertNodeAtConstructorEnd=function(e,t,r){var n=F.lastOrUndefined(t.body.statements);n&&t.body.multiLine?this.insertNodeAfter(e,n,r):this.replaceConstructorBody(e,t,__spreadArrays(t.body.statements,[r]))},r.prototype.replaceConstructorBody=function(e,t,r){this.replaceNode(e,t.body,F.createBlock(r,!0))},r.prototype.insertNodeAtEndOfScope=function(e,t,r){var n=g(e,t.getLastToken(),{});this.insertNodeAt(e,n,r,{prefix:F.isLineBreak(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},r.prototype.insertNodeAtClassStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},r.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},r.prototype.insertNodeAtStartWorker=function(e,t,r){var n=null!==(n=this.guessIndentationFromExistingMembers(e,t))&&void 0!==n?n:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,x(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,n))},r.prototype.guessIndentationFromExistingMembers=function(e,t){for(var r,n=t,i=0,a=x(t);i<a.length;i++){var o=a[i];if(F.rangeStartPositionsAreOnSameLine(n,o,e))return;var s=o.getStart(e),s=F.formatting.SmartIndenter.findFirstNonWhitespaceColumn(F.getLineStartPositionForPosition(s,e),s,e,this.formatContext.options);if(void 0===r)r=s;else if(s!==r)return;n=o}return r},r.prototype.computeIndentationForNewMember=function(e,t){t=t.getStart(e);return F.formatting.SmartIndenter.findFirstNonWhitespaceColumn(F.getLineStartPositionForPosition(t,e),t,e,this.formatContext.options)+(null!==(e=this.formatContext.options.indentSize)&&void 0!==e?e:4)},r.prototype.getInsertNodeAtStartInsertOptions=function(e,t,r){var n=0===x(t).length,i=F.addToSeen(this.classesWithNodesInsertedAtStart,F.getNodeId(t),{node:t,sourceFile:e}),a=F.isObjectLiteralExpression(t)&&(!F.isJsonSourceFile(e)||!n);return{indentation:r,prefix:(F.isObjectLiteralExpression(t)&&F.isJsonSourceFile(e)&&n&&!i?",":"")+this.newLineCharacter,suffix:a?",":""}},r.prototype.insertNodeAfterComma=function(e,t,r){var n=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},r.prototype.insertNodeAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},r.prototype.insertNodeAtEndOfList=function(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})},r.prototype.insertNodesAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,F.first(r));this.insertNodesAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},r.prototype.insertNodeAfterWorker=function(e,t,r){var n;return n=t,r=r,!((F.isPropertySignature(n)||F.isPropertyDeclaration(n))&&F.isClassOrTypeElement(r)&&154===r.name.kind||F.isStatementButNotDeclaration(n)&&F.isStatementButNotDeclaration(r))||59!==e.text.charCodeAt(t.end-1)&&this.replaceRange(e,F.createRange(t.end),F.createToken(26)),m(e,t,{})},r.prototype.getInsertNodeAfterOptions=function(e,t){var r=this.getInsertNodeAfterOptionsWorker(t);return __assign(__assign({},r),{prefix:t.end===e.end&&F.isStatement(t)?r.prefix?"\n"+r.prefix:"\n":r.prefix})},r.prototype.getInsertNodeAfterOptionsWorker=function(e){switch(e.kind){case 245:case 249:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 242:case 10:case 75:return{prefix:", "};case 281:return{suffix:","+this.newLineCharacter};case 89:return{prefix:" "};case 156:return{};default:return F.Debug.assert(F.isStatement(e)||F.isClassOrTypeElement(e)),{suffix:this.newLineCharacter}}},r.prototype.insertName=function(e,t,r){var n,i;F.Debug.assert(!t.name),202===t.kind?(n=F.findChildOfKind(t,38,e),(i=F.findChildOfKind(t,20,e))?(this.insertNodesAt(e,i.getStart(e),[F.createToken(94),F.createIdentifier(r)],{joiner:" "}),N(this,e,n)):(this.insertText(e,F.first(t.parameters).getStart(e),"function "+r+"("),this.replaceRange(e,n,F.createToken(21))),223!==t.body.kind&&(this.insertNodesAt(e,t.body.getStart(e),[F.createToken(18),F.createToken(101)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[F.createToken(26),F.createToken(19)],{joiner:" "}))):(t=F.findChildOfKind(t,201===t.kind?94:80,e).end,this.insertNodeAt(e,t,F.createIdentifier(r),{prefix:" "}))},r.prototype.insertExportModifier=function(e,t){this.insertText(e,t.getStart(e),"export ")},r.prototype.insertNodeInListAfter=function(e,t,r,n){var i,a,o,s,c,u,l;void 0===n&&(n=F.formatting.SmartIndenter.getContainingList(t,e)),n?(i=F.indexOfNode(n,t))<0||(a=t.getEnd(),i!==n.length-1?(u=F.getTokenAtPosition(e,t.end))&&y(t,u)&&(l=F.getLineAndCharacterOfPosition(e,_(e.text,n[i+1].getFullStart())),s=c=void 0,(o=F.getLineAndCharacterOfPosition(e,u.end)).line===l.line?(s=u.end,c=function(e){for(var t="",r=0;r<e;r++)t+=" ";return t}(l.character-o.character)):s=F.getStartPositionOfLine(l.line,e),o=""+F.tokenToString(u.kind)+e.text.substring(u.end,n[i+1].getStart(e)),this.replaceRange(e,F.createRange(s,n[i+1].getStart(e)),r,{prefix:c,suffix:o})):(l=t.getStart(e),u=F.getLineStartPositionForPosition(l,e),s=void 0,c=!1,1===n.length?s=27:(s=y(t,o=F.findPrecedingToken(t.pos,e))?o.kind:27,c=F.getLineStartPositionForPosition(n[i-1].getStart(e),e)!==u),function(e,t){for(var r=t;r<e.length;){var n=e.charCodeAt(r);if(!F.isWhiteSpaceSingleLine(n))return 47===n;r++}}(e.text,t.end)&&(c=!0),c?(this.replaceRange(e,F.createRange(a),F.createToken(s)),u=F.formatting.SmartIndenter.findFirstNonWhitespaceColumn(u,l,e,this.formatContext.options),(l=F.skipTrivia(e.text,a,!0,!1))!==a&&F.isLineBreak(e.text.charCodeAt(l-1))&&l--,this.replaceRange(e,F.createRange(l),r,{indentation:u,prefix:this.newLineCharacter})):this.replaceRange(e,F.createRange(a),r,{prefix:F.tokenToString(s)+" "}))):F.Debug.fail("node is not a list element")},r.prototype.parenthesizeExpression=function(e,t){this.replaceRange(e,F.rangeOfNode(t),F.createParen(t))},r.prototype.finishClassesWithNodesInsertedAtStart=function(){var a=this;this.classesWithNodesInsertedAtStart.forEach(function(e){var t,r,n=e.node,i=e.sourceFile,r=(r=n,t=i,e=F.findChildOfKind(r,18,t),t=F.findChildOfKind(r,19,t),[null==e?void 0:e.end,null==t?void 0:t.end]),e=r[0],t=r[1];void 0!==e&&void 0!==t&&(r=0===x(n).length,n=F.positionsAreOnSameLine(e,t,i),r&&n&&e!==t-1&&a.deleteRange(i,F.createRange(e,t-1)),n&&a.insertText(i,t-1,a.newLineCharacter))})},r.prototype.finishDeleteDeclarations=function(){for(var n=this,i=new F.NodeSet,e=this,t=0,r=this.deletedNodes;t<r.length;t++){var a=r[t];!function(t,r){e.deletedNodes.some(function(e){return e.sourceFile===t&&F.rangeContainsRangeExclusive(e.node,r)})||(F.isArray(r)?e.deleteRange(t,F.rangeOfTypeParameters(r)):v.deleteDeclaration(e,i,t,r))}(a.sourceFile,a.node)}i.forEach(function(e){var t=e.getSourceFile(),r=F.formatting.SmartIndenter.getContainingList(e,t);e!==F.last(r)||-1!==(e=F.findLastIndex(r,function(e){return!i.has(e)},r.length-2))&&n.deleteRange(t,{pos:r[e].end,end:b(t,r[e+1])})})},r.prototype.getChanges=function(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var t=h.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e),r=0,n=this.newFiles;r<n.length;r++){var i=n[r],a=i.oldFile,o=i.fileName,i=i.statements;t.push(h.newFileChanges(a,o,i,this.newLineCharacter,this.formatContext))}return t},r.prototype.createNewFile=function(e,t,r){this.newFiles.push({oldFile:e,fileName:t,statements:r})},r);function r(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=F.createMap(),this.deletedNodes=[]}function b(e,t){return F.skipTrivia(e.text,g(e,t,{leadingTriviaOption:u.IncludeAll}),!1,!0)}function x(e){return F.isObjectLiteralExpression(e)?e.properties:e.members}function D(t,e,r,n,i){r=r.map(function(e){return S(e,t,n).text}).join(n),e=F.createSourceFile("any file name",r,99,!0,e);return C(r,F.formatting.formatDocument(e,i))+n}function S(e,t,r){var n,i,a,n=(n=r,i=0,a=F.createTextWriter(n),{onEmitNode:function(e,t,r){t&&s(t,i),r(e,t),t&&c(t,i)},onBeforeEmitNodeArray:function(e){e&&s(e,i)},onAfterEmitNodeArray:function(e){e&&c(e,i)},onBeforeEmitToken:function(e){e&&s(e,i)},onAfterEmitToken:function(e){e&&c(e,i)},write:function(e){a.write(e),o(e,!1)},writeComment:function(e){a.writeComment(e)},writeKeyword:function(e){a.writeKeyword(e),o(e,!1)},writeOperator:function(e){a.writeOperator(e),o(e,!1)},writePunctuation:function(e){a.writePunctuation(e),o(e,!1)},writeTrailingSemicolon:function(e){a.writeTrailingSemicolon(e),o(e,!1)},writeParameter:function(e){a.writeParameter(e),o(e,!1)},writeProperty:function(e){a.writeProperty(e),o(e,!1)},writeSpace:function(e){a.writeSpace(e),o(e,!1)},writeStringLiteral:function(e){a.writeStringLiteral(e),o(e,!1)},writeSymbol:function(e,t){a.writeSymbol(e,t),o(e,!1)},writeLine:function(e){a.writeLine(e)},increaseIndent:function(){a.increaseIndent()},decreaseIndent:function(){a.decreaseIndent()},getText:function(){return a.getText()},rawWrite:function(e){a.rawWrite(e),o(e,!1)},writeLiteral:function(e){a.writeLiteral(e),o(e,!0)},getTextPos:function(){return a.getTextPos()},getLine:function(){return a.getLine()},getColumn:function(){return a.getColumn()},getIndent:function(){return a.getIndent()},isAtStartOfLine:function(){return a.isAtStartOfLine()},hasTrailingComment:function(){return a.hasTrailingComment()},hasTrailingWhitespace:function(){return a.hasTrailingWhitespace()},clear:function(){a.clear(),i=0}});function o(e,t){if(t||(t=e,F.skipTrivia(t,0)!==t.length)){i=a.getTextPos();for(var r=0;F.isWhiteSpaceLike(e.charCodeAt(e.length-r-1));)r++;i-=r}}r="\n"===r?1:0;return F.createPrinter({newLine:r,neverAsciiEscape:!0,preserveSourceNewlines:!0},n).writeNode(4,e,t,n),{text:n.getText(),node:T(e)}}function C(e,t){for(var r=t.length-1;0<=r;r--){var n=t[r],i=n.span,n=n.newText;e=""+e.substring(0,i.start)+n+e.substring(F.textSpanEnd(i))}return e}function T(e){var t=F.visitEachChild(e,T,F.nullTransformationContext,n,T),t=F.nodeIsSynthesized(t)?t:Object.create(t);return t.pos=a(e),t.end=o(e),t}function n(e,t,r,n,i){i=F.visitNodes(e,t,r,n,i);if(!i)return i;i=i===e?F.createNodeArray(i.slice(0)):i;return i.pos=a(e),i.end=o(e),i}function k(e,t){return!(F.isInComment(e,t)||F.isInString(e,t)||F.isInTemplateString(e,t)||F.isInJSXText(e,t))}function E(e,t,r){var n;r.parent.name?(n=F.Debug.checkDefined(F.getTokenAtPosition(t,r.pos-1)),e.deleteRange(t,{pos:n.getStart(t),end:r.end})):N(e,t,F.getAncestor(r,254))}function N(e,t,r,n){void 0===n&&(n={leadingTriviaOption:u.IncludeAll});var i=g(t,r,n),n=m(t,r,n);e.deleteRange(t,{pos:i,end:n})}function A(e,t,r,n){var i=F.Debug.checkDefined(F.formatting.SmartIndenter.getContainingList(n,r)),a=F.indexOfNode(i,n);F.Debug.assert(-1!==a),1!==i.length?(F.Debug.assert(!t.has(n),"Deleting a node twice"),t.add(n),e.deleteRange(r,{pos:b(r,n),end:a===i.length-1?m(r,n,{}):b(r,i[a+1])})):N(e,r,n)}e.ChangeTracker=t,e.getNewFileText=function(e,t,r,n){return h.newFileChangesWorker(void 0,t,e,r,n)},(t=h=h||{}).getTextChangesFromChanges=function(e,i,a,o){return F.mapDefined(F.group(e,function(e){return e.sourceFile.path}),function(e){for(var r=e[0].sourceFile,t=F.stableSort(e,function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end}),n=0;n<t.length-1;n++)!function(e){F.Debug.assert(t[e].range.end<=t[e+1].range.pos,"Changes overlap",function(){return JSON.stringify(t[e].range)+" and "+JSON.stringify(t[e+1].range)})}(n);e=F.mapDefined(t,function(e){var t=F.createTextSpanFromRange(e.range),e=function(e,t,r,n,i){if(e.kind===d.Remove)return"";if(e.kind===d.Text)return e.text;function a(e){return function(e,t,r,n,i,a,o){var s=n.indentation,c=n.prefix,u=n.delta,l=S(e,t,i),n=l.node,l=l.text;o&&o(n,l);o=function(e,t){var r=e.options,e=!r.semicolons||r.semicolons===F.SemicolonPreference.Ignore,t=r.semicolons===F.SemicolonPreference.Remove||e&&!F.probablyUsesSemicolons(t);return __assign(__assign({},r),{semicolons:t?F.SemicolonPreference.Remove:F.SemicolonPreference.Ignore})}(a,t),r=void 0!==s?s:F.formatting.SmartIndenter.getIndentation(r,t,o,c===i||F.getLineStartPositionForPosition(r,t)===r);void 0===u&&(u=F.formatting.SmartIndenter.shouldIndentChildNode(o,e)&&o.indentSize||0);e={text:l,getLineAndCharacterOfPosition:function(e){return F.getLineAndCharacterOfPosition(this,e)}},o=F.formatting.formatNodeGivenIndentation(n,e,t.languageVariant,r,u,__assign(__assign({},a),{options:o}));return C(l,o)}(e,t,c,s,r,n,i)}var o=e.options,s=void 0===o?{}:o,c=e.range.pos,e=e.kind===d.ReplaceWithMultipleNodes?e.nodes.map(function(e){return F.removeSuffix(a(e),r)}).join(e.options.joiner||r):a(e.node),e=s.preserveLeadingWhitespace||void 0!==s.indentation||F.getLineStartPositionForPosition(c,t)===c?e:e.replace(/^\s+/,"");return(s.prefix||"")+e+(!s.suffix||F.endsWith(e,s.suffix)?"":s.suffix)}(e,r,i,a,o);if(t.length!==e.length||!F.stringContainsAt(r.text,e,t.start))return F.createTextChange(t,e)});return 0<e.length?{fileName:r.fileName,textChanges:e}:void 0})},t.newFileChanges=function(e,t,r,n,i){return i=D(e,F.getScriptKindFromFileName(t),r,n,i),{fileName:t,textChanges:[F.createTextChange(F.createTextSpan(0,0),i)],isNewFile:!0}},t.newFileChangesWorker=D,t.getNonformattedText=S,e.applyChanges=C,e.isValidLocationToAddComment=k,(v||(v={})).deleteDeclaration=function(e,t,r,n){switch(n.kind){case 156:var i=n.parent;F.isArrowFunction(i)&&1===i.parameters.length&&!F.findChildOfKind(i,20,r)?e.replaceNodeWithText(r,n,"()"):A(e,t,r,n);break;case 254:case 253:N(e,r,n,{leadingTriviaOption:r.imports.length&&n===F.first(r.imports).parent||n===F.find(r.statements,F.isAnyImportSyntax)?u.Exclude:F.hasJSDocNodes(n)?u.JSDoc:u.StartLine});break;case 191:var a=n.parent;190===a.kind&&n!==F.last(a.elements)?N(e,r,n):A(e,t,r,n);break;case 242:!function(e,t,r,n){var i=n.parent;if(280===i.kind)return e.deleteNodeRange(r,F.findChildOfKind(i,20,r),F.findChildOfKind(i,21,r));if(1!==i.declarations.length)return A(e,t,r,n),0;var a=i.parent;switch(a.kind){case 232:case 231:e.replaceNode(r,n,F.createObjectLiteral());break;case 230:N(e,r,i);break;case 225:N(e,r,a,{leadingTriviaOption:F.hasJSDocNodes(a)?u.JSDoc:u.StartLine});break;default:F.Debug.assertNever(a)}}(e,t,r,n);break;case 155:A(e,t,r,n);break;case 258:var o=n.parent;1===o.elements.length?E(e,r,o):A(e,t,r,n);break;case 256:E(e,r,n);break;case 26:N(e,r,n,{trailingTriviaOption:l.Exclude});break;case 94:N(e,r,n,{leadingTriviaOption:u.Exclude});break;case 245:case 244:N(e,r,n,{leadingTriviaOption:F.hasJSDocNodes(n)?u.JSDoc:u.StartLine});break;default:F.isImportClause(n.parent)&&n.parent.name===n?(s=e,c=r,(i=n.parent).namedBindings?(a=i.name.getStart(c),(o=F.getTokenAtPosition(c,i.name.end))&&27===o.kind?(o=F.skipTrivia(c.text,o.end,!1,!0),s.deleteRange(c,{pos:a,end:o})):N(s,c,i.name)):N(s,c,i.parent)):F.isCallExpression(n.parent)&&F.contains(n.parent.arguments,n)?A(e,t,r,n):N(e,r,n)}var s,c},e.deleteNode=N}(F.textChanges||(F.textChanges={}))}(ts=ts||{}),function(c){var e,s,u;function o(e){return c.isArray(e)?c.formatStringFromArgs(c.getLocaleSpecificMessage(e[0]),e.slice(1)):c.getLocaleSpecificMessage(e)}function l(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}function t(e,t){return{changes:e,commands:t}}function a(e,t,r){for(var n=0,i=_(e);n<i.length;n++){var a=i[n];c.contains(t,a.code)&&r(a)}}function _(e){var t=e.program,r=e.sourceFile,e=e.cancellationToken;return __spreadArrays(t.getSemanticDiagnostics(r,e),t.getSyntacticDiagnostics(r,e),c.computeSuggestionDiagnostics(r,t,e))}e=c.codefix||(c.codefix={}),s=c.createMultiMap(),u=c.createMap(),e.createCodeFixActionWithoutFixAll=function(e,t,r){return l(e,o(r),t,void 0,void 0)},e.createCodeFixAction=function(e,t,r,n,i,a){return l(e,o(r),t,n,o(i),a)},e.registerCodeFix=function(e){for(var t=0,r=e.errorCodes;t<r.length;t++){var n=r[t];s.add(String(n),e)}if(e.fixIds)for(var i=0,a=e.fixIds;i<a.length;i++){var o=a[i];c.Debug.assert(!u.has(o)),u.set(o,e)}},e.getSupportedErrorCodes=function(){return c.arrayFrom(s.keys())},e.getFixes=function(t){var r=_(t),e=s.get(String(t.errorCode));return c.flatMap(e,function(e){return c.map(e.getCodeActions(t),function(e,t){for(var r=e.errorCodes,n=0,i=0,a=t;i<a.length;i++){var o=a[i];if(c.contains(r,o.code)&&n++,1<n)break}var s=n<2;return function(e){var t=e.fixId,r=e.fixAllDescription,e=__rest(e,["fixId","fixAllDescription"]);return s?e:__assign(__assign({},e),{fixId:t,fixAllDescription:r})}}(e,r))})},e.getAllFixes=function(e){return u.get(c.cast(e.fixId,c.isString)).getAllCodeActions(e)},e.createCombinedCodeActions=t,e.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},e.codeFixAll=function(e,r,n){var i=[];return t(c.textChanges.ChangeTracker.with(e,function(t){return a(e,r,function(e){return n(t,e,i)})}),0===i.length?void 0:i)},e.eachDiagnostic=a}(ts=ts||{}),function(e){var t,n;t=e.refactor||(e.refactor={}),n=e.createMap(),t.registerRefactor=function(e,t){n.set(e,t)},t.getApplicableRefactors=function(t){return e.arrayFrom(e.flatMapIterator(n.values(),function(e){return t.cancellationToken&&t.cancellationToken.isCancellationRequested()?void 0:e.getAvailableActions(t)}))},t.getEditsForRefactor=function(e,t,r){return(t=n.get(t))&&t.getEditsForAction(e,r)}}(ts=ts||{}),function(i){var r,n,t;function a(e,t,r){var n=i.getTokenAtPosition(t,r),r=i.Debug.checkDefined(i.findAncestor(n,function(e){return i.isAsExpression(e)||i.isTypeAssertion(e)}),"Expected to find an assertion expression"),n=i.isAsExpression(r)?i.createAsExpression(r.expression,i.createKeywordTypeNode(148)):i.createTypeAssertion(i.createKeywordTypeNode(148),r.expression);e.replaceNode(t,r.expression,n)}r=i.codefix||(i.codefix={}),n="addConvertToUnknownForNonOverlappingTypes",t=[i.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],r.registerCodeFix({errorCodes:t,getCodeActions:function(t){var e=i.textChanges.ChangeTracker.with(t,function(e){return a(e,t.sourceFile,t.span.start)});return[r.createCodeFixAction(n,e,i.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,n,i.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[n],getAllCodeActions:function(e){return r.codeFixAll(e,t,function(e,t){return a(e,t.file,t.start)})}})}(ts=ts||{}),function(n){var t;(t=n.codefix||(n.codefix={})).registerCodeFix({errorCodes:[n.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(e){var r=e.sourceFile,e=n.textChanges.ChangeTracker.with(e,function(e){var t=n.createExportDeclaration(void 0,void 0,n.createNamedExports([]),void 0,!1);e.insertNodeAtEndOfScope(r,r,t)});return[t.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",e,n.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})}(ts=ts||{}),function(c){var a,i,e;function u(t,r,e,n){e=e(function(e){return function(e,t,r,n){if(n&&n.has(c.getNodeId(r).toString()))return;null!=n&&n.set(c.getNodeId(r).toString(),!0);n=c.getSynthesizedDeepClone(r,!0);n.modifiers=c.createNodeArray(c.createModifiersFromModifierFlags(256|c.getModifierFlags(r))),n.modifierFlagsCache=0,e.replaceNode(t,r,n)}(e,t.sourceFile,r,n)});return a.createCodeFixAction(i,e,c.Diagnostics.Add_async_modifier_to_containing_function,i,c.Diagnostics.Add_all_missing_async_modifiers)}function l(t,r){if(r){var e=c.getTokenAtPosition(t,r.start);return c.findAncestor(e,function(e){return e.getStart(t)<r.start||e.getEnd()>c.textSpanEnd(r)?"quit":(c.isArrowFunction(e)||c.isMethodDeclaration(e)||c.isFunctionExpression(e)||c.isFunctionDeclaration(e))&&c.textSpansEqual(r,c.createTextSpanFromNode(e,t))})}}a=c.codefix||(c.codefix={}),i="addMissingAsync",e=[c.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,c.Diagnostics.Type_0_is_not_assignable_to_type_1.code,c.Diagnostics.Type_0_is_not_comparable_to_type_1.code],a.registerCodeFix({fixIds:[i],errorCodes:e,getCodeActions:function(t){var i,a,e=t.sourceFile,r=t.errorCode,n=t.cancellationToken,o=t.program,s=t.span,r=c.find(o.getDiagnosticsProducingTypeChecker().getDiagnostics(e,n),(i=s,a=r,function(e){var t=e.start,r=e.length,n=e.relatedInformation,e=e.code;return c.isNumber(t)&&c.isNumber(r)&&c.textSpansEqual({start:t,length:r},i)&&e===a&&!!n&&c.some(n,function(e){return e.code===c.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})})),r=l(e,r&&r.relatedInformation&&c.find(r.relatedInformation,function(e){return e.code===c.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}));if(r)return[u(t,r,function(e){return c.textChanges.ChangeTracker.with(t,e)})]},getAllCodeActions:function(r){var n=r.sourceFile,i=c.createMap();return a.codeFixAll(r,e,function(t,e){e=e.relatedInformation&&c.find(e.relatedInformation,function(e){return e.code===c.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),e=l(n,e);if(e)return u(r,e,function(e){return e(t),[]},i)})}})}(ts=ts||{}),function(d){var l,o,_,p,f;function g(e,r,n,i,t,a){var o=e.sourceFile,s=e.program,e=e.cancellationToken,c=function(e,s,i,c,u){e=function(e,t){if(d.isPropertyAccessExpression(e.parent)&&d.isIdentifier(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(d.isIdentifier(e))return{identifiers:[e],isCompleteFix:!0};if(d.isBinaryExpression(e)){for(var r=void 0,n=!0,i=0,a=[e.left,e.right];i<a.length;i++){var o=a[i],s=t.getTypeAtLocation(o);t.getPromisedTypeOfPromise(s)&&(d.isIdentifier(o)?(r=r||[]).push(o):n=!1)}return r&&{identifiers:r,isCompleteFix:n}}}(e,u);if(!e)return;for(var l,_=e.isCompleteFix,t=function(a){var e=u.getSymbolAtLocation(a);if(!e)return"continue";var t=d.tryCast(e.valueDeclaration,d.isVariableDeclaration),r=t&&d.tryCast(t.name,d.isIdentifier),n=d.getAncestor(t,225);if(!t||!n||t.type||!t.initializer||n.getSourceFile()!==s||d.hasModifier(n,1)||!r||!h(t.initializer))return _=!1,"continue";var o=c.getSemanticDiagnostics(s,i);if(d.FindAllReferences.Core.eachSymbolReferenceInFile(r,u,s,function(e){return a!==e&&(t=e,r=o,n=s,e=u,i=d.isPropertyAccessExpression(t.parent)?t.parent.name:d.isBinaryExpression(t.parent)?t.parent:t,!((r=d.find(r,function(e){return e.start===i.getStart(n)&&e.start+e.length===i.getEnd()}))&&d.contains(f,r.code)||1&e.getTypeAtLocation(i).flags));var t,r,n,i}))return _=!1,"continue";(l=l||[]).push({expression:t.initializer,declarationSymbol:e})},r=0,n=e.identifiers;r<n.length;r++){var a=n[r];t(a)}return l&&{initializers:l,needsSecondPassForFixAll:!_}}(r,o,e,s,i);if(c){t=t(function(t){d.forEach(c.initializers,function(e){e=e.expression;return u(t,n,o,i,e,a)}),a&&c.needsSecondPassForFixAll&&u(t,n,o,i,r,a)});return l.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",t,1===c.initializers.length?[d.Diagnostics.Add_await_to_initializer_for_0,c.initializers[0].declarationSymbol.name]:d.Diagnostics.Add_await_to_initializers)}}function m(t,r,n,i,e,a){e=e(function(e){return u(e,n,t.sourceFile,i,r,a)});return l.createCodeFixAction(o,e,d.Diagnostics.Add_await,o,d.Diagnostics.Fix_all_expressions_possibly_missing_await)}function y(t,e,r,n,i){var a,o,s=d.getTokenAtPosition(t,r.start),c=d.findAncestor(s,function(e){return e.getStart(t)<r.start||e.getEnd()>d.textSpanEnd(r)?"quit":d.isExpression(e)&&d.textSpansEqual(r,d.createTextSpanFromNode(e,t))});return c&&(s=t,a=e,o=r,n=n,n=i.getDiagnosticsProducingTypeChecker().getDiagnostics(s,n),d.some(n,function(e){var t=e.start,r=e.length,n=e.relatedInformation,e=e.code;return d.isNumber(t)&&d.isNumber(r)&&d.textSpansEqual({start:t,length:r},o)&&e===a&&!!n&&d.some(n,function(e){return e.code===d.Diagnostics.Did_you_forget_to_use_await.code})}))&&h(c)?c:void 0}function h(e){return 32768&e.kind||d.findAncestor(e,function(e){return e.parent&&d.isArrowFunction(e.parent)&&e.parent.body===e||d.isBlock(e)&&(244===e.parent.kind||201===e.parent.kind||202===e.parent.kind||161===e.parent.kind)})}function u(e,t,r,n,i,a){if(d.isBinaryExpression(i))for(var o=0,s=[i.left,i.right];o<s.length;o++){var c=s[o];if(a&&d.isIdentifier(c))if((l=n.getSymbolAtLocation(c))&&a.has(d.getSymbolId(l).toString()))continue;var u=n.getTypeAtLocation(c),u=n.getPromisedTypeOfPromise(u)?d.createAwait(c):c;e.replaceNode(r,c,u)}else if(t===_&&d.isPropertyAccessExpression(i.parent)){if(a&&d.isIdentifier(i.parent.expression))if((l=n.getSymbolAtLocation(i.parent.expression))&&a.has(d.getSymbolId(l).toString()))return;e.replaceNode(r,i.parent.expression,d.createParen(d.createAwait(i.parent.expression))),v(e,i.parent.expression,r)}else if(d.contains(p,t)&&d.isCallOrNewExpression(i.parent)){if(a&&d.isIdentifier(i))if((l=n.getSymbolAtLocation(i))&&a.has(d.getSymbolId(l).toString()))return;e.replaceNode(r,i,d.createParen(d.createAwait(i))),v(e,i,r)}else{var l;if(a&&d.isVariableDeclaration(i.parent)&&d.isIdentifier(i.parent.name))if((l=n.getSymbolAtLocation(i.parent.name))&&!d.addToSeen(a,d.getSymbolId(l)))return;e.replaceNode(r,i,d.createAwait(i))}}function v(e,t,r){var n=d.findPrecedingToken(t.pos,r);n&&d.positionIsASICandidate(n.end,n.parent,r)&&e.insertText(r,t.getStart(r),";")}l=d.codefix||(d.codefix={}),o="addMissingAwait",_=d.Diagnostics.Property_0_does_not_exist_on_type_1.code,p=[d.Diagnostics.This_expression_is_not_callable.code,d.Diagnostics.This_expression_is_not_constructable.code],f=__spreadArrays([d.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,d.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,d.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,d.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,d.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,d.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,d.Diagnostics.Type_0_is_not_an_array_type.code,d.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,d.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.code,d.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,d.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,d.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,d.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,d.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_],p),l.registerCodeFix({fixIds:[o],errorCodes:f,getCodeActions:function(t){var e=t.sourceFile,r=t.errorCode,n=y(e,r,t.span,t.cancellationToken,t.program);if(n){var i=t.program.getTypeChecker(),e=function(e){return d.textChanges.ChangeTracker.with(t,e)};return d.compact([g(t,n,r,i,e),m(t,n,r,i,e)])}},getAllCodeActions:function(i){var a=i.sourceFile,o=i.program,s=i.cancellationToken,c=i.program.getTypeChecker(),u=d.createMap();return l.codeFixAll(i,f,function(t,e){var r=y(a,e.code,e,s,o);if(r){var n=function(e){return e(t),[]};return g(i,r,e.code,c,n,u)||m(i,r,e.code,c,n,u)}})}})}(ts=ts||{}),function(s){var i,r,e;function a(e,t,r,n,i){var a=s.getTokenAtPosition(t,r),r=s.findAncestor(a,function(e){return s.isForInOrOfStatement(e.parent)?e.parent.initializer===e:!function(e){switch(e.kind){case 75:case 192:case 193:case 281:case 282:return!0;default:return!1}}(e)&&"quit"});if(r)return c(e,r,t,i);r=a.parent;if(s.isBinaryExpression(r)&&62===r.operatorToken.kind&&s.isExpressionStatement(r.parent))return c(e,a,t,i);if(s.isArrayLiteralExpression(r)){var o=n.getTypeChecker();return s.every(r.elements,function(e){return function(e,t){e=s.isIdentifier(e)?e:s.isAssignmentExpression(e,!0)&&s.isIdentifier(e.left)?e.left:void 0;return!!e&&!t.getSymbolAtLocation(e)}(e,o)})?c(e,r,t,i):void 0}a=s.findAncestor(a,function(e){return!!s.isExpressionStatement(e.parent)||!function(e){switch(e.kind){case 75:case 209:case 27:return!0;default:return!1}}(e)&&"quit"});if(a&&function t(e,r){if(!s.isBinaryExpression(e))return!1;if(27===e.operatorToken.kind)return s.every([e.left,e.right],function(e){return t(e,r)});return 62===e.operatorToken.kind&&s.isIdentifier(e.left)&&!r.getSymbolAtLocation(e.left)}(a,n.getTypeChecker()))return c(e,a,t,i)}function c(e,t,r,n){n&&!n.tryAdd(t)||e.insertModifierBefore(r,81,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.NodeSet;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)&&(159!==(r=r.parent).kind||n&&!n.tryAdd(r)||e.insertModifierBefore(t,130,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.NodeSet;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.createCall(r.expression,void 0,void 0);e.replaceNode(t,r.expression,n)}r=i.codefix||(i.codefix={}),n="addMissingInvocationForDecorator",t=[i.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],r.registerCodeFix({errorCodes:t,getCodeActions:function(t){var e=i.textChanges.ChangeTracker.with(t,function(e){return a(e,t.sourceFile,t.span.start)});return[r.createCodeFixAction(n,e,i.Diagnostics.Call_decorator_expression,n,i.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[n],getAllCodeActions:function(e){return r.codeFixAll(e,t,function(e,t){return a(e,t.file,t.start)})}})}(ts=ts||{}),function(a){var r,n,t;function i(e,t,r){var n=a.getTokenAtPosition(t,r);if(!a.isIdentifier(n))return a.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+a.Debug.formatSyntaxKind(n.kind));var i=n.parent;if(!a.isParameter(i))return a.Debug.fail("Tried to add a parameter name to a non-parameter: "+a.Debug.formatSyntaxKind(n.kind));r=i.parent.parameters.indexOf(i);a.Debug.assert(!i.type,"Tried to add a parameter name to a parameter that already had one."),a.Debug.assert(-1<r,"Parameter not found in parent parameter list.");i=a.createParameter(void 0,i.modifiers,i.dotDotDotToken,"arg"+r,i.questionToken,a.createTypeReferenceNode(n,void 0),i.initializer);e.replaceNode(t,n,i)}r=a.codefix||(a.codefix={}),n="addNameToNamelessParameter",t=[a.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],r.registerCodeFix({errorCodes:t,getCodeActions:function(t){var e=a.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,t.span.start)});return[r.createCodeFixAction(n,e,a.Diagnostics.Add_parameter_name,n,a.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[n],getAllCodeActions:function(e){return r.codeFixAll(e,t,function(e,t){return i(e,t.file,t.start)})}})}(ts=ts||{}),function(u){var n,i,t;function a(e,t){t=u.getTokenAtPosition(e,t);return u.tryCast((u.isParameter(t.parent)?t.parent:t).parent,r)}function r(e){return t=e,(u.isFunctionLikeDeclaration(t)||242===t.kind||158===t.kind||159===t.kind)&&o(e);var t}function o(e){return u.isFunctionLikeDeclaration(e)?e.parameters.some(o)||!e.type&&!!u.getJSDocReturnType(e):!e.type&&!!u.getJSDocType(e)}function s(e,t,r){if(u.isFunctionLikeDeclaration(r)&&(u.getJSDocReturnType(r)||r.parameters.some(function(e){return!!u.getJSDocType(e)}))){r.typeParameters||(n=u.getJSDocTypeParameterDeclarations(r)).length&&e.insertTypeParameters(t,r,n);var n=u.isArrowFunction(r)&&!u.findChildOfKind(r,20,t);n&&e.insertNodeBefore(t,u.first(r.parameters),u.createToken(20));for(var i=0,a=r.parameters;i<a.length;i++){var o,s=a[i];s.type||(o=u.getJSDocType(s))&&e.tryInsertTypeAnnotation(t,s,l(o))}n&&e.insertNodeAfter(t,u.last(r.parameters),u.createToken(21)),r.type||(c=u.getJSDocReturnType(r))&&e.tryInsertTypeAnnotation(t,r,l(c))}else{var c=u.Debug.checkDefined(u.getJSDocType(r),"A JSDocType for this declaration should exist");u.Debug.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,l(c))}}function l(e){switch(e.kind){case 295:case 296:return u.createTypeReferenceNode("any",u.emptyArray);case 299:return n=e,u.createUnionTypeNode([u.visitNode(n.type,l),u.createTypeReferenceNode("undefined",u.emptyArray)]);case 298:return l(e.type);case 297:return r=e,u.createUnionTypeNode([u.visitNode(r.type,l),u.createTypeReferenceNode("null",u.emptyArray)]);case 301:return r=e,u.createArrayTypeNode(u.visitNode(r.type,l));case 300:return t=e,u.createFunctionTypeNode(u.emptyArray,t.parameters.map(c),t.type);case 169:return function(e){var t=e.typeName,r=e.typeArguments;if(u.isIdentifier(e.typeName)){if(u.isJSDocIndexSignature(e))return function(e){var t=u.createParameter(void 0,void 0,void 0,140===e.typeArguments[0].kind?"n":"s",void 0,u.createTypeReferenceNode(140===e.typeArguments[0].kind?"number":"string",[]),void 0),e=u.createTypeLiteralNode([u.createIndexSignature(void 0,void 0,[t],e.typeArguments[1])]);return u.setEmitFlags(e,1),e}(e);var n=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":n=n.toLowerCase();break;case"array":case"date":case"promise":n=n[0].toUpperCase()+n.slice(1)}t=u.createIdentifier(n),r="Array"!==n&&"Promise"!==n||e.typeArguments?u.visitNodes(e.typeArguments,l):u.createNodeArray([u.createTypeReferenceNode("any",u.emptyArray)])}return u.createTypeReferenceNode(t,r)}(e);default:t=u.visitEachChild(e,l,void 0);return u.setEmitFlags(t,1),t}var t,r,n}function c(e){var t=e.parent.parameters.indexOf(e),r=301===e.type.kind&&t===e.parent.parameters.length-1,t=e.name||(r?"rest":"arg"+t),r=r?u.createToken(25):e.dotDotDotToken;return u.createParameter(e.decorators,e.modifiers,r,t,e.questionToken,u.visitNode(e.type,l),e.initializer)}n=u.codefix||(u.codefix={}),i="annotateWithTypeFromJSDoc",t=[u.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code],n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var r=a(t.sourceFile,t.span.start);if(r){var e=u.textChanges.ChangeTracker.with(t,function(e){return s(e,t.sourceFile,r)});return[n.createCodeFixAction(i,e,u.Diagnostics.Annotate_with_type_from_JSDoc,i,u.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[i],getAllCodeActions:function(e){return n.codeFixAll(e,t,function(e,t){var r=a(t.file,t.start);r&&s(e,t.file,r)})}}),n.parameterShouldGetTypeFromJSDoc=r}(ts=ts||{}),function(d){var n,r,e;function i(l,_,e,t){var n=t.getSymbolAtLocation(d.getTokenAtPosition(_,e));if(n&&19&n.flags){var i,r,a=n.valueDeclaration;switch(a.kind){case 244:i=a,l.delete(_,a),r=function(e){var t=o(n);e.body&&t.unshift(d.createConstructor(void 0,void 0,e.parameters,e.body));var r=p(e,89);return d.createClassDeclaration(void 0,r,e.name,void 0,void 0,t)}(a);break;case 242:i=a.parent.parent,r=function(e){var t=e.initializer;if(!t||201!==t.kind)return;if(75!==e.name.kind)return;var r=o(e.symbol);t.body&&r.unshift(d.createConstructor(void 0,void 0,t.parameters,t.body));t=p(i,89);return d.createClassDeclaration(void 0,t,e.name,void 0,void 0,r)}(a),1===a.parent.declarations.length?(d.copyLeadingComments(i,r,_),l.delete(_,i)):l.delete(_,a)}r&&(d.hasJSDocNodes(a)&&d.copyLeadingComments(a,r,_),l.insertNodeAfter(_,i,r))}function o(e){var t=[];return e.members&&e.members.forEach(function(e){e=r(e,void 0);e&&t.push(e)}),e.exports&&e.exports.forEach(function(e){e=r(e,[d.createToken(120)]);e&&t.push(e)}),t;function r(e,t){if(8192&e.flags){var r=e.valueDeclaration,n=r.parent;if(i=n.right,d.isFunctionLike(i)){var i=n.parent&&226===n.parent.kind?n.parent:n;if(l.delete(_,i),!n.right)return d.createProperty([],t,e.name,void 0,void 0,void 0);switch(n.right.kind){case 201:var a=n.right,o=d.concatenate(t,p(a,126)),s=d.createMethod(void 0,o,void 0,r.name,void 0,void 0,a.parameters,void 0,a.body);return d.copyLeadingComments(n,s,_),s;case 202:var c=n.right,u=c.body,a=void 0,a=223===u.kind?u:d.createBlock([d.createReturn(u)]),o=d.concatenate(t,p(c,126)),s=d.createMethod(void 0,o,void 0,r.name,void 0,void 0,c.parameters,void 0,a);return d.copyLeadingComments(n,s,_),s;default:if(d.isSourceFileJS(_))return;s=d.createProperty(void 0,t,r.name,void 0,void 0,n.right);return d.copyLeadingComments(n.parent,s,_),s}}}}}}function p(e,t){return d.filter(e.modifiers,function(e){return e.kind===t})}n=d.codefix||(d.codefix={}),r="convertFunctionToEs6Class",e=[d.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code],n.registerCodeFix({errorCodes:e,getCodeActions:function(t){var e=d.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,t.span.start,t.program.getTypeChecker())});return[n.createCodeFixAction(r,e,d.Diagnostics.Convert_function_to_an_ES2015_class,r,d.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[r],getAllCodeActions:function(r){return n.codeFixAll(r,e,function(e,t){return i(e,t.file,t.start,r.program.getTypeChecker())})}})}(ts=ts||{}),function(v){var n,e,r,t,i;function a(i,a,e,t,r){var n=v.getTokenAtPosition(a,e),o=v.isIdentifier(n)&&v.isVariableDeclaration(n.parent)&&n.parent.initializer&&v.isFunctionLikeDeclaration(n.parent.initializer)?n.parent.initializer:v.tryCast(v.getContainingFunction(v.getTokenAtPosition(a,e)),v.isFunctionLikeDeclaration);if(o){var c,u,l,_,d,s,p,f=v.createMap(),g=v.isInJSFile(o),n=function(e,r){if(!e.body)return v.createMap();var n=v.createMap();return v.forEachChild(e.body,function e(t){b(t,r,"then")?(n.set(v.getNodeId(t).toString(),!0),v.forEach(t.arguments,e)):b(t,r,"catch")?(n.set(v.getNodeId(t).toString(),!0),v.forEachChild(t,e)):x(t,r)?n.set(v.getNodeId(t).toString(),!0):v.forEachChild(t,e)}),n}(o,t),e=(e=o,c=t,u=f,l=r.sourceFile,_=v.createMap(),d=v.createMultiMap(),v.forEachChild(e,function e(t){var r,n,i,a,o,s;v.isIdentifier(t)?(i=(r=c.getSymbolAtLocation(t))&&(n=l,(o=r).valueDeclaration&&o.valueDeclaration.getSourceFile()===n),r&&i&&(o=C(c.getTypeAtLocation(t),c),n=v.getSymbolId(r).toString(),!o||v.isFunctionLikeDeclaration(t.parent)||u.has(n)?t.parent&&(v.isParameter(t.parent)||v.isVariableDeclaration(t.parent)||v.isBindingElement(t.parent))&&(s=t.text,(i=d.get(s))&&i.some(function(e){return e!==r})?(a=D(t,d),_.set(n,a.identifier),u.set(n,a)):(a=v.getSynthesizedDeepClone(t),u.set(n,T(a))),d.add(s,r)):(s=D(o=(s=v.firstOrUndefined(o.parameters))&&v.isParameter(s.valueDeclaration)&&v.tryCast(s.valueDeclaration.name,v.isIdentifier)||v.createOptimisticUniqueName("result"),d),u.set(n,s),d.add(o.text,r)))):v.forEachChild(t,e)}),v.getSynthesizedDeepCloneWithRenames(e,!0,_,c)),s=e.body&&v.isBlock(e.body)?(s=e.body,p=[],v.forEachReturnStatement(s,function(e){v.isReturnStatementWithFixablePromiseHandler(e)&&p.push(e)}),p):v.emptyArray,m={checker:t,synthNamesMap:f,setOfExpressionsToReturn:n,isInJSFile:g};if(s.length){i.insertLastModifierBefore(a,126,o);for(var y=0,h=s;y<h.length;y++)!function(n){v.forEachChild(n,function e(t){var r;v.isCallExpression(t)?(r=S(t,m),i.replaceNodeWithNodes(a,n,r)):v.isFunctionLike(t)||v.forEachChild(t,e)})}(h[y])}}}function b(e,t,r){if(v.isCallExpression(e)){e=v.hasPropertyAccessExpressionWithName(e,r)&&t.getTypeAtLocation(e);return e&&t.getPromisedTypeOfPromise(e)}}function x(e,t){return v.isExpression(e)&&t.getPromisedTypeOfPromise(t.getTypeAtLocation(e))}function D(e,t){t=(t.get(e.text)||v.emptyArray).length;return T(0===t?e:v.createIdentifier(e.text+"_"+t))}function f(){return i=!1,v.emptyArray}function S(e,t,r){if(b(e,t.checker,"then"))return 0===e.arguments.length?f():function(e,t,r){var n=e.arguments,i=n[0],a=n[1],o=l(i,t),s=u(i,r,o,e,t);if(a){n=l(a,t),i=v.createBlock(S(e.expression,t,o).concat(s)),r=u(a,r,n,e,t),n=n?k(n)?n.identifier.text:n.bindingPattern:"e",n=v.createVariableDeclaration(n),r=v.createCatchClause(n,v.createBlock(r));return[v.createTry(i,r,void 0)]}return S(e.expression,t,o).concat(s)}(e,t,r);if(b(e,t.checker,"catch"))return 0===e.arguments.length?f():function(e,r,n){var t,i=e.arguments[0],a=l(i,r);n&&!E(e,r)&&(k(n)?(t=n,r.synthNamesMap.forEach(function(e,t){e.identifier.text===n.identifier.text&&(e=n,e=T(v.createOptimisticUniqueName(e.identifier.text)),r.synthNamesMap.set(t,e))})):t=T(v.createOptimisticUniqueName("result"),n.types),t.hasBeenDeclared=!0);var o=v.createBlock(S(e.expression,r,t)),i=u(i,t,a,e,r),a=a?k(a)?a.identifier.text:a.bindingPattern:"e",a=v.createVariableDeclaration(a),i=v.createCatchClause(a,v.createBlock(i));{var s;t&&!E(e,r)&&(c=v.getSynthesizedDeepClone(t.identifier),s=t.types,s=r.checker.getUnionType(s,2),s=r.isInJSFile?void 0:r.checker.typeToTypeNode(s,void 0,void 0),s=[v.createVariableDeclaration(c,s)],s=v.createVariableStatement(void 0,v.createVariableDeclarationList(s,1)))}var i=v.createTry(o,i,void 0),c=n&&c&&1===n.kind&&v.createVariableStatement(void 0,v.createVariableDeclarationList([v.createVariableDeclaration(v.getSynthesizedDeepCloneWithRenames(n.bindingPattern),void 0,c)],2));return v.compact([s,i,c])}(e,t,r);if(v.isPropertyAccessExpression(e))return S(e.expression,t,r);var n=t.checker.getTypeAtLocation(e);return n&&t.checker.getPromisedTypeOfPromise(n)?(v.Debug.assertNode(e.original.parent,v.isPropertyAccessExpression),function(e,t,r){if(E(e,t))return[v.createReturn(v.getSynthesizedDeepClone(e))];return g(r,v.createAwait(e),void 0)}(e,t,r)):f()}function g(e,t,r){return!e||o(e)?[v.createExpressionStatement(t)]:k(e)&&e.hasBeenDeclared?[v.createExpressionStatement(v.createAssignment(v.getSynthesizedDeepClone(e.identifier),t))]:[v.createVariableStatement(void 0,v.createVariableDeclarationList([v.createVariableDeclaration(v.getSynthesizedDeepClone(h(e)),r,t)],2))]}function m(e,t){if(t&&e){var r=v.createOptimisticUniqueName("result");return __spreadArrays(g(T(r),e,t),[v.createReturn(r)])}return[v.createReturn(e)]}function u(e,t,r,n,i){var a;switch(e.kind){case 100:break;case 75:if(!r)break;var o=v.createCall(v.getSynthesizedDeepClone(e),void 0,k(r)?[r.identifier]:[]);if(E(n,i))return m(o,null===(c=n.typeArguments)||void 0===c?void 0:c[0]);var s=i.checker.getTypeAtLocation(e),c=i.checker.getSignaturesOfType(s,0);if(!c.length)return f();var s=c[0].getReturnType(),o=g(t,v.createAwait(o),null===(c=n.typeArguments)||void 0===c?void 0:c[0]);return t&&t.types.push(s),o;case 201:case 202:c=e.body;if(v.isBlock(c)){for(var u=[],l=!1,_=0,d=c.statements;_<d.length;_++){var p=d[_];v.isReturnStatement(p)?(l=!0,v.isReturnStatementWithFixablePromiseHandler(p)?u=u.concat(y(i,[p],t)):u.push.apply(u,m(p.expression,null===(a=n.typeArguments)||void 0===a?void 0:a[0]))):u.push(p)}return E(n,i)?u.map(function(e){return v.getSynthesizedDeepClone(e)}):function(e,t,r,n){for(var i=[],a=0,o=e;a<o.length;a++){var s,c=o[a];v.isReturnStatement(c)?c.expression&&(s=x(c.expression,r.checker)?v.createAwait(c.expression):c.expression,void 0===t?i.push(v.createExpressionStatement(s)):i.push(v.createVariableStatement(void 0,v.createVariableDeclarationList([v.createVariableDeclaration(h(t),void 0,s)],2)))):i.push(v.getSynthesizedDeepClone(c))}n||void 0===t||i.push(v.createVariableStatement(void 0,v.createVariableDeclarationList([v.createVariableDeclaration(h(t),void 0,v.createIdentifier("undefined"))],2)));return i}(u,t,i,l)}s=y(i,v.isFixablePromiseHandler(c)?[v.createReturn(c)]:v.emptyArray,t);if(0<s.length)return s;o=C(i.checker.getTypeAtLocation(e),i.checker).getReturnType(),s=v.getSynthesizedDeepClone(c),c=i.checker.getPromisedTypeOfPromise(o)?v.createAwait(s):s;if(E(n,i))return m(c,null===(s=n.typeArguments)||void 0===s?void 0:s[0]);c=g(t,c,void 0);return t&&t.types.push(o),c;default:return f()}return v.emptyArray}function C(e,t){e=t.getSignaturesOfType(e,0);return v.lastOrUndefined(e)}function y(n,e,i){for(var a=[],t=0,r=e;t<r.length;t++){var o=r[t];v.forEachChild(o,function e(t){var r;v.isCallExpression(t)?(r=S(t,n,i),(a=a.concat(r)).length):v.isFunctionLike(t)||v.forEachChild(t,e)})}return a}function l(e,r){var t,n=[];if(v.isFunctionLikeDeclaration(e)?0<e.parameters.length&&(t=function t(e){if(v.isIdentifier(e))return i(e);var r=v.flatMap(e.elements,function(e){return v.isOmittedExpression(e)?[]:[t(e.name)]});return s(e,r)}(e.parameters[0].name)):v.isIdentifier(e)&&(t=i(e)),t&&!("identifier"in t&&"undefined"===t.identifier.text))return t;function i(e){var t,t=(t=e).original||t,t=(t=t).symbol||r.checker.getSymbolAtLocation(t);return t&&r.synthNamesMap.get(v.getSymbolId(t).toString())||T(e,n)}}function o(e){return!e||(k(e)?!e.identifier.text:v.every(e.elements,o))}function h(e){return k(e)?e.identifier:e.bindingPattern}function T(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1}}function s(e,t,r){return void 0===t&&(t=v.emptyArray),void 0===r&&(r=[]),{kind:1,bindingPattern:e,elements:t,types:r}}function k(e){return 0===e.kind}function E(e,t){return e.original&&t.setOfExpressionsToReturn.has(v.getNodeId(e.original).toString())}n=v.codefix||(v.codefix={}),r="convertToAsyncFunction",t=[v.Diagnostics.This_may_be_converted_to_an_async_function.code],i=!0,n.registerCodeFix({errorCodes:t,getCodeActions:function(t){i=!0;var e=v.textChanges.ChangeTracker.with(t,function(e){return a(e,t.sourceFile,t.span.start,t.program.getTypeChecker(),t)});return i?[n.createCodeFixAction(r,e,v.Diagnostics.Convert_to_async_function,r,v.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[r],getAllCodeActions:function(r){return n.codeFixAll(r,t,function(e,t){return a(e,t.file,t.start,r.program.getTypeChecker(),r)})}}),(e={})[e.Identifier=0]="Identifier",e[e.BindingPattern=1]="BindingPattern"}(ts=ts||{}),function(y){var _;function d(n,i){n.forEachChild(function e(t){var r;y.isPropertyAccessExpression(t)&&y.isExportsOrModuleExportsOrAlias(n,t.expression)&&y.isIdentifier(t.name)&&(r=t.parent,i(t,y.isBinaryExpression(r)&&r.left===t&&62===r.operatorToken.kind)),t.forEachChild(e)})}function p(e){return D(void 0,e)}function f(e){return D([y.createExportSpecifier(void 0,"default")],e)}function h(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.set(e,!0),e}function g(e){var t=e.parent;switch(t.kind){case 194:return t.name!==e;case 191:case 258:return t.propertyName!==e;default:return 1}}function m(e,t,r){return y.createFunctionDeclaration(y.getSynthesizedDeepClones(r.decorators),y.concatenate(t,y.getSynthesizedDeepClones(r.modifiers)),y.getSynthesizedDeepClone(r.asteriskToken),e,y.getSynthesizedDeepClones(r.typeParameters),y.getSynthesizedDeepClones(r.parameters),y.getSynthesizedDeepClone(r.type),y.convertToFunctionBody(y.getSynthesizedDeepClone(r.body)))}function v(e,t,r,n){return"default"===t?y.makeImport(y.createIdentifier(e),void 0,r,n):y.makeImport(void 0,[b(t,e)],r,n)}function b(e,t){return y.createImportSpecifier(void 0!==e&&e!==t?y.createIdentifier(e):void 0,y.createIdentifier(t))}function x(e,t,r){return y.createVariableStatement(e,y.createVariableDeclarationList([y.createVariableDeclaration(t,void 0,r)],2))}function D(e,t){return y.createExportDeclaration(void 0,void 0,e&&y.createNamedExports(e),void 0===t?void 0:y.createLiteral(t))}(_=y.codefix||(y.codefix={})).registerCodeFix({errorCodes:[y.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(e){var i=e.sourceFile,a=e.program,o=e.preferences,e=y.textChanges.ChangeTracker.with(e,function(e){if(function(e,t,r,n,i){var a={original:function(e){var t=y.createMultiMap();return function t(e,r){y.isIdentifier(e)&&g(e)&&r(e);e.forEachChild(function(e){return t(e,r)})}(e,function(e){return t.add(e.text,e)}),t}(e),additional:y.createMap()},o=function(e,n,i){var a=y.createMap();return d(e,function(e){var t=e.name,r=t.text,t=t.originalKeywordKind;!a.has(r)&&(void 0!==t&&y.isNonContextualKeyword(t)||n.resolveName(r,e,111551,!0))&&a.set(r,h("_"+r,i))}),a}(e,t,a);!function(r,n,i){d(r,function(e,t){t||(t=e.name.text,i.replaceNode(r,e,y.createIdentifier(n.get(t)||t)))})}(e,o,r);for(var s=!1,c=0,u=e.statements;c<u.length;c++){var l=u[c],l=function(e,t,r,n,i,a,o,s){switch(t.kind){case 225:return function(n,e,i,a,o,s,c){var u=e.declarationList,l=!1,t=y.flatMap(u.declarations,function(e){var t=e.name,r=e.initializer;if(r){if(y.isExportsOrModuleExportsOrAlias(n,r))return l=!0,[];if(y.isRequireCall(r,!0))return l=!0,function(e,t,r,n,i,a,o,s){switch(t.kind){case 189:var c=y.mapAllOrFail(t.elements,function(e){return e.dotDotDotToken||e.initializer||e.propertyName&&!y.isIdentifier(e.propertyName)||!y.isIdentifier(e.name)?void 0:b(e.propertyName&&e.propertyName.text,e.name.text)});if(c)return[y.makeImport(void 0,c,r,s)];case 190:c=h(_.moduleSpecifierToValidIdentifier(r.text,o),a);return[y.makeImport(y.createIdentifier(c),void 0,r,s),x(void 0,y.getSynthesizedDeepClone(t),y.createIdentifier(c))];case 75:return function(e,t,r,n,i,a,o){for(var s=i.getSymbolAtLocation(t),c=y.createMap(),u=!1,l=0,_=a.original.get(t.text);l<_.length;l++){var d,p,f,g=_[l];i.getSymbolAtLocation(g)===s&&g!==t&&(d=g.parent,y.isPropertyAccessExpression(d)?(p=d.expression,f=d.name.text,y.Debug.assert(p===g,"Didn't expect expression === use"),void 0===(g=c.get(f))&&(g=h(f,a),c.set(f,g)),n.replaceNode(e,d,y.createIdentifier(g))):u=!0)}var m=0===c.size?void 0:y.arrayFrom(y.mapIterator(c.entries(),function(e){var t=e[0],e=e[1];return y.createImportSpecifier(t===e?void 0:y.createIdentifier(t),y.createIdentifier(e))}));m||(u=!0);return[y.makeImport(u?y.getSynthesizedDeepClone(t):void 0,m,r,o)]}(e,t,r,n,i,a,s);default:return y.Debug.assertNever(t,"Convert to ES6 module got invalid name kind "+t.kind)}}(n,t,r.arguments[0],i,a,o,s,c);if(y.isPropertyAccessExpression(r)&&y.isRequireCall(r.expression,!0))return l=!0,function(e,t,r,n,i){switch(e.kind){case 189:case 190:var a=h(t,n);return[v(a,t,r,i),x(void 0,e,y.createIdentifier(a))];case 75:return[v(e.text,t,r,i)];default:return y.Debug.assertNever(e,"Convert to ES6 module got invalid syntax form "+e.kind)}}(t,r.name.text,r.expression.arguments[0],o,c)}return y.createVariableStatement(void 0,y.createVariableDeclarationList([e],u.flags))});l&&i.replaceNodeWithNodes(n,e,t)}(e,t,n,r,i,a,s),!1;case 226:var c=t.expression;switch(c.kind){case 196:return y.isRequireCall(c,!0)&&n.replaceNode(e,t,y.makeImport(void 0,void 0,c.arguments[0],s)),!1;case 209:return 62===c.operatorToken.kind&&function(e,t,r,n,i){var a=r.left,o=r.right;if(!y.isPropertyAccessExpression(a))return!1;if(y.isExportsOrModuleExportsOrAlias(e,a)){if(!y.isExportsOrModuleExportsOrAlias(e,o)){t=y.isObjectLiteralExpression(o)?function(e){e=y.mapAllOrFail(e.properties,function(e){switch(e.kind){case 163:case 164:case 282:case 283:return;case 281:return y.isIdentifier(e.name)?function(e,t){var r=[y.createToken(89)];switch(t.kind){case 201:var n=t.name;if(n&&n.text!==e)return i();case 202:return m(e,r,t);case 214:return function(e,t,r){return y.createClassDeclaration(y.getSynthesizedDeepClones(r.decorators),y.concatenate(t,y.getSynthesizedDeepClones(r.modifiers)),e,y.getSynthesizedDeepClones(r.typeParameters),y.getSynthesizedDeepClones(r.heritageClauses),y.getSynthesizedDeepClones(r.members))}(e,r,t);default:return i()}function i(){return x(r,y.createIdentifier(e),t)}}(e.name.text,e.initializer):void 0;case 161:return y.isIdentifier(e.name)?m(e.name.text,[y.createToken(89)],e):void 0;default:y.Debug.assertNever(e,"Convert to ES6 got invalid prop kind "+e.kind)}});return e&&[e,!1]}(o):y.isRequireCall(o,!0)?function(e,t){var r=e.text,e=t.getSymbolAtLocation(e),e=e?e.exports:y.emptyUnderscoreEscapedMap;return e.has("export=")?[[f(r)],!0]:e.has("default")?1<e.size?[[p(r),f(r)],!0]:[[f(r)],!0]:[[p(r)],!1]}(o.arguments[0],t):void 0;return t?(n.replaceNodeWithNodes(e,r.parent,t[0]),t[1]):(n.replaceRangeWithText(e,y.createRange(a.getStart(e),o.pos),"export default"),!0)}n.delete(e,r.parent)}else y.isExportsOrModuleExportsOrAlias(e,a.expression)&&function(e,t,r,n){var i=t.left.name.text;void 0!==(n=n.get(i))?(i=[x(void 0,n,t.right),D([y.createExportSpecifier(n,i)])],r.replaceNodeWithNodes(e,t.parent,i)):function(e,t,r){var n=e.left,i=e.right,a=e.parent,e=n.name.text;!(y.isFunctionExpression(i)||y.isArrowFunction(i)||y.isClassExpression(i))||i.name&&i.name.text!==e?r.replaceNodeRangeWithNodes(t,n.expression,y.findChildOfKind(n,24,t),[y.createToken(89),y.createToken(81)],{joiner:" ",suffix:" "}):(r.replaceRange(t,{pos:n.getStart(t),end:i.getStart(t)},y.createToken(89),{suffix:" "}),i.name||r.insertName(t,i,e),(a=y.findChildOfKind(a,26,t))&&r.delete(t,a))}(t,e,r)}(e,r,n,i);return!1}(e,r,c,n,o)}default:return!1}}(e,l,t,r,a,n,o,i);s=s||l}return s}(i,a.getTypeChecker(),e,a.getCompilerOptions().target,y.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=y.getResolvedModule(e,o.text);if(s&&s.resolvedFileName===t.fileName){var c=y.importFromModuleSpecifier(o);switch(c.kind){case 253:r.replaceNode(e,c,y.makeImport(c.name,void 0,o,n));break;case 196:y.isRequireCall(c,!1)&&r.replaceNode(e,c,y.createPropertyAccess(y.getSynthesizedDeepClone(c),"default"))}}}}(n,i,e,y.getQuotePreference(n,o))}});return[_.createCodeFixActionWithoutFixAll("convertToEs6Module",e,y.Diagnostics.Convert_to_ES6_module)]}})}(ts=ts||{}),function(i){var a,o,t;function s(e,t){t=i.findAncestor(i.getTokenAtPosition(e,t),i.isQualifiedName);return i.Debug.assert(!!t,"Expected position to be owned by a qualified name."),i.isIdentifier(t.left)?t:void 0}function c(e,t,r){var n=r.right.text,n=i.createIndexedAccessTypeNode(i.createTypeReferenceNode(r.left,void 0),i.createLiteralTypeNode(i.createLiteral(n)));e.replaceNode(t,r,n)}a=i.codefix||(i.codefix={}),o="correctQualifiedNameToIndexedAccessType",t=[i.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],a.registerCodeFix({errorCodes:t,getCodeActions:function(t){var r=s(t.sourceFile,t.span.start);if(r){var e=i.textChanges.ChangeTracker.with(t,function(e){return c(e,t.sourceFile,r)}),n=r.left.text+'["'+r.right.text+'"]';return[a.createCodeFixAction(o,e,[i.Diagnostics.Rewrite_as_the_indexed_access_type_0,n],o,i.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[o],getAllCodeActions:function(e){return a.codeFixAll(e,t,function(e,t){var r=s(t.file,t.start);r&&c(e,t.file,r)})}})}(ts=ts||{}),function(o){var i,s,r;function a(e,t){return o.tryCast(o.getTokenAtPosition(t,e.start).parent,o.isExportSpecifier)}function c(e,t,r){var n,i,a;t&&(n=(a=t.parent).parent,(i=function(t,e){var r=t.parent;if(1===r.elements.length)return r.elements;var n=o.getDiagnosticsWithinSpan(o.createTextSpanFromNode(r),e.program.getSemanticDiagnostics(e.sourceFile,e.cancellationToken));return o.filter(r.elements,function(e){return e===t||(null===(e=o.findDiagnosticForNode(e,n))||void 0===e?void 0:e.code)===s[0]})}(t,r)).length===a.elements.length?e.replaceNode(r.sourceFile,n,o.updateExportDeclaration(n,n.decorators,n.modifiers,a,n.moduleSpecifier,!0)):(t=o.updateExportDeclaration(n,n.decorators,n.modifiers,o.updateNamedExports(a,o.filter(a.elements,function(e){return!o.contains(i,e)})),n.moduleSpecifier,!1),a=o.createExportDeclaration(void 0,void 0,o.createNamedExports(i),n.moduleSpecifier,!0),e.replaceNode(r.sourceFile,n,t),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=o.createMap();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.updateImportDeclaration(t,void 0,void 0,i.createImportClause(n.name,void 0,!0),t.moduleSpecifier))))}n=i.codefix||(i.codefix={}),e=[i.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is_set_to_error.code],r="convertToTypeOnlyImport",n.registerCodeFix({errorCodes:e,getCodeActions:function(t){var e=i.textChanges.ChangeTracker.with(t,function(e){o(e,a(t.span,t.sourceFile),t)});if(e.length)return[n.createCodeFixAction(r,e,i.Diagnostics.Convert_to_type_only_import,r,i.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[r],getAllCodeActions:function(r){return n.codeFixAll(r,e,function(e,t){o(e,a(t,r.sourceFile),r)})}})}(ts=ts||{}),function(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.getModifierFlags(e.valueDeclaration))}function u(r,e,n,i,a,t){var o=r.program.getTypeChecker(),s=function(e,t){e=p.getEffectiveBaseTypeNode(e);if(!e)return p.createSymbolTable();e=t.getTypeAtLocation(e),e=t.getPropertiesOfType(e);return p.createSymbolTable(e.filter(g))}(i,o),c=o.getTypeAtLocation(e),u=o.getPropertiesOfType(c).filter(p.and(g,function(e){return!s.has(e.escapedName)})),e=o.getTypeAtLocation(i),l=p.find(i.members,function(e){return p.isConstructorDeclaration(e)});e.getNumberIndexType()||_(c,1),e.getStringIndexType()||_(c,0);c=f.createImportAdder(n,r.program,t,r.host);function _(e,t){e=o.getIndexInfoOfType(e,t);e&&d(n,i,o.indexInfoToIndexSignatureDeclaration(e,t,i,void 0,f.getNoopSymbolTrackerWithResolver(r)))}function d(e,t,r){l?a.insertNodeAfter(e,l,r):a.insertNodeAtClassStart(e,t,r)}f.createMissingMemberNodes(i,u,r,t,c,function(e){return d(n,i,e)}),c.writeFixes(a)}f=p.codefix||(p.codefix={}),e=[p.Diagnostics.Class_0_incorrectly_implements_interface_1.code,p.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],a="fixClassIncorrectlyImplementsInterface",f.registerCodeFix({errorCodes:e,getCodeActions:function(r){var n=r.sourceFile,e=r.span,i=c(n,e.start);return p.mapDefined(p.getEffectiveImplementsTypeNodes(i),function(t){var e=p.textChanges.ChangeTracker.with(r,function(e){return u(r,t,n,i,e,r.preferences)});return 0===e.length?void 0:f.createCodeFixAction(a,e,[p.Diagnostics.Implement_interface_0,t.getText(n)],a,p.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[a],getAllCodeActions:function(o){var s=p.createMap();return f.codeFixAll(o,e,function(e,t){var r=c(t.file,t.start);if(p.addToSeen(s,p.getNodeId(r)))for(var n=0,i=p.getEffectiveImplementsTypeNodes(r);n<i.length;n++){var a=i[n];u(o,a,t.file,r,e,o.preferences)}})}})}(ts=ts||{}),function(A){!function(o){o.importFixName="import";var e,s="fixMissingImport",n=[A.Diagnostics.Cannot_find_name_0.code,A.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,A.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,A.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,A.Diagnostics.Cannot_find_namespace_0.code,A.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,A.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code];function i(c,a,u,o){var s=a.getCompilerOptions(),l=[],_=[],d=A.createMap(),p=A.createMap();return{addImportFromDiagnostic:function(e,t){e=v(t,e.code,e.start);if(!e||!e.fixes.length)return;f(e)},addImportFromExportedSymbol:function(e,t){var r=A.Debug.checkDefined(e.parent),n=A.getNameForExportedSymbol(e,A.getEmitScriptTarget(s)),i=a.getTypeChecker(),e=i.getMergedSymbol(A.skipAlias(e,i)),e=m(c,e,r,n,c,s,i,a.getSourceFiles()),i=!!t&&2===s.importsNotUsedAsValues,t=y(c,s);f({fixes:[g(c,e,r,n,a,void 0,i,t,o,u)],symbolName:n})},writeFixes:function(i){for(var n=A.getQuotePreference(c,u),e=0,t=l;e<t.length;e++){var r=t[e];x(i,c,r)}for(var a,o=0,s=_;o<s.length;o++){r=s[o];D(i,c,r,n)}d.forEach(function(e){var t=e.importClauseOrBindingPattern,r=e.defaultImport,n=e.namedImports,e=e.canUseTypeOnlyImport;b(i,c,t,r,n,e)}),p.forEach(function(e,t){var r=e.useRequire,e=__rest(e,["useRequire"]),r=r?C:S;a=A.combine(a,r(t,n,e))}),a&&A.insertImports(i,c,a,!0)}};function f(e){var t=e.fixes,r=e.symbolName,n=A.first(t);switch(n.kind){case 0:l.push(n);break;case 1:_.push(n);break;case 2:var i=n.importClauseOrBindingPattern,a=n.importKind,o=n.canUseTypeOnlyImport,s=String(A.getNodeId(i));(c=d.get(s))||d.set(s,c={importClauseOrBindingPattern:i,defaultImport:void 0,namedImports:[],canUseTypeOnlyImport:o}),0===a?A.pushIfUnique(c.namedImports,r):(A.Debug.assert(void 0===c.defaultImport||c.defaultImport===r,"(Add to Existing) Default import should be missing or match symbolName"),c.defaultImport=r);break;case 3:var c,s=n.moduleSpecifier,a=n.importKind,i=n.useRequire,o=n.typeOnly;switch((c=p.get(s))?c.typeOnly=c.typeOnly&&o:p.set(s,c={namedImports:[],namespaceLikeImport:void 0,typeOnly:o,useRequire:i}),a){case 1:A.Debug.assert(void 0===c.defaultImport||c.defaultImport===r,"(Add new) Default import should be missing or match symbolName"),c.defaultImport=r;break;case 0:A.pushIfUnique(c.namedImports||(c.namedImports=[]),r);break;case 3:case 2:A.Debug.assert(void 0===c.namespaceLikeImport||c.namespaceLikeImport.name===r,"Namespacelike import shoudl be missing or match symbolName"),c.namespaceLikeImport={importKind:a,name:r}}break;default:A.Debug.assertNever(n,"fix wasn't never - got kind "+n.kind)}}}function g(e,t,r,n,i,a,o,s,c,u){return A.Debug.assert(t.some(function(e){return e.moduleSymbol===r}),"Some exportInfo should match the specified moduleSymbol"),A.first(_(t,n,a,o,s,i,e,c,u))}function m(a,o,s,c,u,l,_,e){var d=[];return r(_,e,function(e,t){if(!t||e===s||!A.startsWith(u.fileName,A.getDirectoryPath(t.fileName))){t=f(a,e,_,l);t&&t.name===c&&A.skipAlias(t.symbol,_)===o&&d.push({moduleSymbol:e,importKind:t.kind,exportedSymbolIsTypeOnly:p(t.symbol,_)});for(var r=0,n=_.getExportsAndPropertiesOfModule(e);r<n.length;r++){var i=n[r];i.name===c&&A.skipAlias(i,_)===o&&d.push({moduleSymbol:e,importKind:0,exportedSymbolIsTypeOnly:p(i,_)})}}}),d}function p(e,t){return!(111551&A.skipAlias(e,t).flags)}function _(e,t,r,n,i,a,o,s,c){var u,l,_,d,p,f,g=a.getTypeChecker(),m=A.flatMap(e,function(e){return r=g,t=o,n=(e=e).moduleSymbol,i=e.importKind,e.exportedSymbolIsTypeOnly&&A.isSourceFileJS(t)?A.emptyArray:A.mapDefined(t.imports,function(e){var t=A.importFromModuleSpecifier(e);return A.isRequireVariableDeclaration(t.parent,!0)?r.resolveExternalModuleName(e)===n?{declaration:t.parent,importKind:i}:void 0:(254===t.kind||253===t.kind)&&r.getSymbolAtLocation(e)===n?{declaration:t,importKind:i}:void 0});var r,t,n,i}),y=void 0===r?void 0:(f=m,u=t,l=r,_=g,A.firstDefined(f,function(e){var t=e.declaration,e=function(e){var t;switch(e.kind){case 242:return null===(t=A.tryCast(e.name,A.isIdentifier))||void 0===t?void 0:t.text;case 253:return e.name.text;case 254:return null===(t=A.tryCast(null===(t=e.importClause)||void 0===t?void 0:t.namedBindings,A.isNamespaceImport))||void 0===t?void 0:t.name.text;default:return A.Debug.assertNever(e)}}(t);if(e){t=function(e,t){switch(e.kind){case 242:return t.resolveExternalModuleName(e.initializer.arguments[0]);case 253:return t.getAliasedSymbol(e.symbol);case 254:var r=A.tryCast(null===(r=e.importClause)||void 0===r?void 0:r.namedBindings,A.isNamespaceImport);return r&&t.getAliasedSymbol(r.symbol);default:return A.Debug.assertNever(e)}}(t,_);if(t&&t.exports.has(A.escapeLeadingUnderscores(u)))return{kind:0,namespacePrefix:e,position:l}}})),d=(d=m,p=void 0!==r&&(t=o,f=r,A.isValidTypeOnlyAliasUseSite(A.getTokenAtPosition(t,f))),A.firstDefined(d,function(e){var t=e.declaration,r=e.importKind;if(253!==t.kind){if(242===t.kind)return 0!==r&&1!==r||189!==t.name.kind?void 0:{kind:2,importClauseOrBindingPattern:t.name,importKind:r,moduleSpecifier:t.initializer.arguments[0].text,canUseTypeOnlyImport:!1};var n=t.importClause;if(n){var i=n.name,e=n.namedBindings;return 1===r&&!i||0===r&&(!e||257===e.kind)?{kind:2,importClauseOrBindingPattern:n,importKind:r,moduleSpecifier:t.moduleSpecifier.getText(),canUseTypeOnlyImport:p}:void 0}}})),c=d?[d]:function(e,t,r,n,i,a,o,s,c){t=A.firstDefined(t,function(e){return r=a,n=o,e=(t=e).declaration,t=t.importKind,(e=254===e.kind?e.moduleSpecifier:242===e.kind?e.initializer.arguments[0]:265===e.moduleReference.kind?e.moduleReference.expression:void 0)&&A.isStringLiteral(e)?{kind:3,moduleSpecifier:e.text,importKind:t,typeOnly:r,useRequire:n}:void 0;var t,r,n});return t?[t]:h(r,n,i,a,o,e,s,c)}(e,m,a,o,r,n,i,s,c);return __spreadArrays(y?[y]:A.emptyArray,c)}function y(e,t){return A.isSourceFileJS(e)&&!e.externalModuleIndicator&&(!!e.commonJsModuleIndicator||A.getEmitModuleKind(t)<A.ModuleKind.ES2015)}function h(i,a,o,s,c,e,u,l){var _=A.isSourceFileJS(a),d=i.getCompilerOptions(),p=N(a,i,u).allowsImportingSpecifier,e=A.flatMap(e,function(e){var t=e.moduleSymbol,r=e.importKind,n=e.exportedSymbolIsTypeOnly;return A.moduleSpecifiers.getModuleSpecifiers(t,d,a,A.createModuleSpecifierResolutionHost(i,u),l).map(function(e){return n&&_?{kind:1,moduleSpecifier:e,position:A.Debug.checkDefined(o,"position should be defined")}:{kind:3,moduleSpecifier:e,importKind:r,useRequire:c,typeOnly:s}})});return A.sort(e,function(e,t){var r=p(e.moduleSpecifier),n=p(t.moduleSpecifier);return r&&!n?-1:n&&!r?1:e.moduleSpecifier.length-t.moduleSpecifier.length})}function v(e,t,r){r=A.getTokenAtPosition(e.sourceFile,r),r=t===A.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?function(e,t){var r=e.sourceFile,n=e.program,i=e.host,a=e.preferences,o=n.getTypeChecker(),s=function(e,t){var r=A.isIdentifier(e)?t.getSymbolAtLocation(e):void 0;if(A.isUMDExportSymbol(r))return r;r=e.parent;return A.isJsxOpeningLikeElement(r)&&r.tagName===e||A.isJsxOpeningFragment(r)?A.tryCast(t.resolveName(t.getJsxNamespace(r),A.isJsxOpeningLikeElement(r)?e:r,111551,!1),A.isUMDExportSymbol):void 0}(t,o);if(!s)return;e=o.getAliasedSymbol(s),o=s.name,s=[{moduleSymbol:e,importKind:function(e,t){if(A.getAllowSyntheticDefaultImports(t))return 1;var r=A.getEmitModuleKind(t);switch(r){case A.ModuleKind.AMD:case A.ModuleKind.CommonJS:case A.ModuleKind.UMD:return A.isInJSFile(e)?A.isExternalModule(e)?2:3:3;case A.ModuleKind.System:case A.ModuleKind.ES2015:case A.ModuleKind.ES2020:case A.ModuleKind.ESNext:case A.ModuleKind.None:return 2;default:return A.Debug.assertNever(r,"Unexpected moduleKind "+r)}}(r,n.getCompilerOptions()),exportedSymbolIsTypeOnly:!1}],e=y(r,n.getCompilerOptions());return{fixes:_(s,o,A.isIdentifier(t)?t.getStart(r):void 0,!1,e,n,r,i,a),symbolName:o}}(e,r):A.isIdentifier(r)?function(e,t){var r=e.sourceFile,n=e.program,i=e.cancellationToken,a=e.host,o=e.preferences,s=n.getTypeChecker(),c=A.isJsxOpeningLikeElement(t.parent)&&t.parent.tagName===t&&(A.isIntrinsicJsxName(t.text)||s.resolveName(t.text,t,67108863,!1))?s.getJsxNamespace(r):t.text;A.Debug.assert("default"!==c,"'default' isn't a legal identifier and couldn't occur here");var e=n.getCompilerOptions(),u=2===e.importsNotUsedAsValues&&A.isValidTypeOnlyAliasUseSite(t),l=y(r,e),s=function(r,n,i,a,o,s,e){var c=A.createMultiMap();function u(e,t,r){c.add(A.getUniqueSymbolId(t,o).toString(),{moduleSymbol:e,importKind:r,exportedSymbolIsTypeOnly:p(t,o)})}return k(s,e,a,!0,function(e){i.throwIfCancellationRequested();var t=f(a,e,o,s.getCompilerOptions());t&&t.name===r&&T(t.symbolForMeaning,n)&&u(e,t.symbol,t.kind);t=o.tryGetMemberInModuleExportsAndProperties(r,e);t&&T(t,n)&&u(e,t,0)}),c}(c,A.getMeaningFromLocation(t),i,r,s,n,a);return{fixes:A.arrayFrom(A.flatMapIterator(s.entries(),function(e){e[0];return _(e[1],c,t.getStart(r),u,l,n,r,a,o)})),symbolName:c}}(e,r):void 0;return r&&__assign(__assign({},r),{fixes:A.sort(r.fixes,function(e,t){return e.kind-t.kind})})}function f(e,t,r,n){var i=function(e,t,r,n){var i=r.tryGetMemberInModuleExports("default",t);if(i)return{symbol:i,kind:1};r=r.resolveExternalModuleSymbol(t);return r===t?void 0:{symbol:r,kind:function(e,t){var r=A.getAllowSyntheticDefaultImports(t);if(A.getEmitModuleKind(t)>=A.ModuleKind.ES2015)return r?1:2;if(A.isInJSFile(e))return A.isExternalModule(e)?1:3;for(var n=0,i=e.statements;n<i.length;n++){var a=i[n];if(A.isImportEqualsDeclaration(a))return 3}return r?1:3}(e,n)}}(e,t,r,n);if(i){e=i.symbol,i=i.kind,n=function e(t,r,n,i){var a=A.getLocalSymbolForExportDefault(t);if(a)return{symbolForMeaning:a,name:a.name};a=c(t);if(void 0!==a)return{symbolForMeaning:t,name:a};if(2097152&t.flags){var a=n.getImmediateAliasedSymbol(t);return a&&e(a,A.Debug.checkDefined(a.parent,"Alias targets of default exports must have a parent"),n,i)}if("default"!==t.escapedName&&"export="!==t.escapedName)return{symbolForMeaning:t,name:t.getName()};return{symbolForMeaning:t,name:l(r,i.target)}}(e,t,r,n);return n&&__assign({symbol:e,kind:i},n)}}function c(e){return e.declarations&&A.firstDefined(e.declarations,function(e){if(A.isExportAssignment(e)){if(A.isIdentifier(e.expression))return e.expression.text}else if(A.isExportSpecifier(e))return A.Debug.assert("default"===e.name.text,"Expected the specifier to be a default export"),e.propertyName&&e.propertyName.text})}function d(e,t,r,n,i){var a,e=A.textChanges.ChangeTracker.with(e,function(e){a=function(e,t,r,n,i){switch(n.kind){case 0:return x(e,t,n),[A.Diagnostics.Change_0_to_1,r,n.namespacePrefix+"."+r];case 1:return D(e,t,n,i),[A.Diagnostics.Change_0_to_1,r,u(n.moduleSpecifier,i)+r];case 2:var a=n.importClauseOrBindingPattern,o=n.importKind,s=n.canUseTypeOnlyImport,c=n.moduleSpecifier;b(e,t,a,1===o?r:void 0,0===o?[r]:A.emptyArray,s);a=A.stripQuotes(c);return[1===o?A.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:A.Diagnostics.Add_0_to_existing_import_declaration_from_1,r,a];case 3:o=n.importKind,c=n.moduleSpecifier,s=n.typeOnly,a=n.useRequire?C:S,s=1===o?{defaultImport:r,typeOnly:s}:0===o?{namedImports:[r],typeOnly:s}:{namespaceLikeImport:{importKind:o,name:r},typeOnly:s};return A.insertImports(e,t,a(c,i,s),!0),[1===o?A.Diagnostics.Import_default_0_from_module_1:A.Diagnostics.Import_0_from_module_1,r,c];default:return A.Debug.assertNever(n,"Unexpected fix kind "+n.kind)}}(e,t,r,n,i)});return o.createCodeFixAction(o.importFixName,e,a,s,A.Diagnostics.Add_all_missing_imports)}function b(n,i,e,t,r,a){if(189!==e.kind){var o=!a&&e.isTypeOnly;if(t&&(A.Debug.assert(!e.name,"Cannot add a default import to an import clause that already has one"),n.insertNodeAt(i,e.getStart(i),A.createIdentifier(t),{suffix:", "})),r.length){a=r.map(function(e){return A.createImportSpecifier(void 0,A.createIdentifier(e))});if(e.namedBindings&&A.cast(e.namedBindings,A.isNamedImports).elements.length)for(var s=0,c=a;s<c.length;s++){var u=c[s];n.insertNodeInListAfter(i,A.last(A.cast(e.namedBindings,A.isNamedImports).elements),u)}else a.length&&(a=A.createNamedImports(a),e.namedBindings?n.replaceNode(i,e.namedBindings,a):n.insertNodeAfter(i,A.Debug.checkDefined(e.name,"Import clause must have either named imports or a default import"),a))}o&&n.delete(i,A.getTypeKeywordOfTypeOnlyImport(e,i))}else{t&&d(e,t,"default");for(var l=0,_=r;l<_.length;l++)d(e,_[l],void 0)}function d(e,t,r){t=A.createBindingElement(void 0,r,t);e.elements.length?n.insertNodeInListAfter(i,A.last(e.elements),t):n.replaceNode(i,e,A.createObjectBindingPattern([t]))}}function x(e,t,r){var n=r.namespacePrefix,r=r.position;e.insertText(t,r,n+".")}function D(e,t,r,n){var i=r.moduleSpecifier,r=r.position;e.insertText(t,r,u(i,n))}function u(e,t){t=A.getQuoteFromPreference(t);return"import("+t+e+t+")."}function S(e,t,r){var n,i=A.makeStringLiteral(e,t);(void 0!==r.defaultImport||null!==(n=r.namedImports)&&void 0!==n&&n.length)&&(a=A.combine(a,A.makeImport(void 0===r.defaultImport?void 0:A.createIdentifier(r.defaultImport),null===(n=r.namedImports)||void 0===n?void 0:n.map(function(e){return A.createImportSpecifier(void 0,A.createIdentifier(e))}),e,t,r.typeOnly)));var a,t=r.namespaceLikeImport,r=r.typeOnly;return t&&(i=3===t.importKind?A.createImportEqualsDeclaration(void 0,void 0,A.createIdentifier(t.name),A.createExternalModuleReference(i)):A.createImportDeclaration(void 0,void 0,A.createImportClause(void 0,A.createNamespaceImport(A.createIdentifier(t.name)),r),i),a=A.combine(a,i)),A.Debug.checkDefined(a)}function C(e,t,r){var n,i,e=A.makeStringLiteral(e,t);return(r.defaultImport||null!==(t=r.namedImports)&&void 0!==t&&t.length)&&(i=(null===(i=r.namedImports)||void 0===i?void 0:i.map(function(e){return A.createBindingElement(void 0,void 0,e)}))||[],r.defaultImport&&i.unshift(A.createBindingElement(void 0,"default",r.defaultImport)),i=a(A.createObjectBindingPattern(i),e),n=A.combine(n,i)),r.namespaceLikeImport&&(i=a(r.namespaceLikeImport.name,e),n=A.combine(n,i)),A.Debug.checkDefined(n)}function a(e,t){return A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration("string"==typeof e?A.createIdentifier(e):e,void 0,A.createCall(A.createIdentifier("require"),void 0,[t]))],2))}function T(e,t){e=e.declarations;return A.some(e,function(e){return!!(A.getMeaningFromDeclaration(e)&t)})}function k(u,e,l,t,_){var d=0,p=A.createModuleSpecifierResolutionHost(u,e),f=t&&N(l,u,e,p);r(u.getTypeChecker(),u.getSourceFiles(),function(e,t){var r,n,i,a,o,s,c;void 0===t?!f||f.allowsImportingAmbientModule(e)?_(e):f&&d++:t&&t!==l&&(r=u,n=l,i=t,a=p,s=A.hostGetCanonicalFileName(a),c=null===(o=a.getGlobalTypingsCacheLocation)||void 0===o?void 0:o.call(a),!!A.moduleSpecifiers.forEachFileNameOfModule(n.fileName,i.fileName,a,!1,function(e){var t=r.getSourceFile(e);return(t===i||!t)&&function(e,t,r,n){t=A.forEachAncestorDirectory(t,function(e){return"node_modules"===A.getBaseFileName(e)?e:void 0}),t=t&&A.getDirectoryPath(r(t));return void 0===t||A.startsWith(r(e),t)||!!n&&A.startsWith(r(n),t)}(n.fileName,e,s,c)}))&&(!f||f.allowsImportingSourceFile(t)?_(e):f&&d++)}),e.log&&e.log("forEachExternalModuleToImportFrom: filtered out "+d+" modules by package.json contents")}function r(e,t,r){for(var n=0,i=e.getAmbientModules();n<i.length;n++)r(i[n],void 0);for(var a=0,o=t;a<o.length;a++){var s=o[a];A.isExternalOrCommonJsModule(s)&&r(e.getMergedSymbol(s.symbol),s)}}function l(e,t){return E(A.removeFileExtension(A.stripQuotes(e.name)),t)}function E(e,t){var r=A.getBaseFileName(A.removeSuffix(e,"/index")),n="",i=!0,e=r.charCodeAt(0);A.isIdentifierStart(e,t)?n+=String.fromCharCode(e):i=!1;for(var a=1;a<r.length;a++){var o=r.charCodeAt(a),s=A.isIdentifierPart(o,t);s&&(o=String.fromCharCode(o),i||(o=o.toUpperCase()),n+=o),i=s}return A.isStringANonContextualKeyword(n)?"_"+n:n||"_"}function N(t,e,r,n){void 0===n&&(n=A.createModuleSpecifierResolutionHost(e,r));var i,a=r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(t.fileName)||A.getPackageJsonsVisibleToFile(t.fileName,r),o=11;return{allowsImportingAmbientModule:function(e){if(!a.length)return!0;var t=u(e.valueDeclaration.getSourceFile().fileName);if(void 0===t)return!0;e=A.stripQuotes(e.getName());if(c(e))return!0;return s(t)||s(e)},allowsImportingSourceFile:function(e){if(!a.length)return!0;e=u(e.fileName);return!e||s(e)},allowsImportingSpecifier:function(e){if(!a.length||c(e))return!0;if(A.pathIsRelative(e)||A.isRootedDiskPath(e))return!0;return s(e)},moduleSpecifierResolutionHost:n};function s(e){for(var t=l(e),r=0,n=a;r<n.length;r++){var i=n[r];if(i.has(t,o)||i.has(A.getTypesPackageName(t),o))return!0}return!1}function c(e){return!!(A.isSourceFileJS(t)&&A.JsTyping.nodeCoreModules.has(e)&&(void 0===i&&(i=A.consumesNodeCoreModules(t)),i))}function u(e){if(A.stringContains(e,"node_modules")){e=A.moduleSpecifiers.getNodeModulesPackageName(r.getCompilationSettings(),t.path,e,n);if(e)return A.pathIsRelative(e)||A.isRootedDiskPath(e)?void 0:l(e)}}function l(e){e=A.getPathComponents(A.getPackageNameFromTypesPackageName(e)).slice(1);return A.startsWith(e[0],"@")?e[0]+"/"+e[1]:e[0]}}o.registerCodeFix({errorCodes:n,getCodeActions:function(t){var e=t.errorCode,r=t.preferences,n=t.sourceFile,i=t.span,e=v(t,e,i.start);if(e){var i=e.fixes,a=e.symbolName,o=A.getQuotePreference(n,r);return i.map(function(e){return d(t,n,a,e,o)})}},fixIds:[s],getAllCodeActions:function(t){var r=i(t.sourceFile,t.program,t.preferences,t.host);return o.eachDiagnostic(t,n,function(e){return r.addImportFromDiagnostic(e,t)}),o.createCombinedCodeActions(A.textChanges.ChangeTracker.with(t,r.writeFixes))}}),o.createImportAdder=i,(e={})[e.UseNamespace=0]="UseNamespace",e[e.ImportType=1]="ImportType",e[e.AddToExisting=2]="AddToExisting",e[e.AddNew=3]="AddNew",(e={})[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",o.getImportCompletionAction=function(e,t,r,n,i,a,o,s,c){var u=a.getCompilerOptions(),l=m(r,e,t,n,r,u,a.getTypeChecker(),a.getSourceFiles()),_=y(r,u),e=2===u.importsNotUsedAsValues&&!A.isSourceFileJS(r)&&A.isValidTypeOnlyAliasUseSite(A.getTokenAtPosition(r,s)),u=A.first(h(a,r,s,e,_,l,i,c)).moduleSpecifier,_=g(r,l,t,n,a,s,e,_,i,c);return{moduleSpecifier:u,codeAction:(_=d({host:i,formatContext:o,preferences:c},r,n,_,A.getQuotePreference(r,c)),r=_.description,c=_.changes,_=_.commands,{description:r,changes:c,commands:_})}},o.forEachExternalModuleToImportFrom=k,o.moduleSymbolToValidIdentifier=l,o.moduleSpecifierToValidIdentifier=E}(A.codefix||(A.codefix={}))}(ts=ts||{}),function(s){var c,a,e;function o(e,t,r,n){var i=s.getTokenAtPosition(t,r);s.Debug.assert(104===i.kind);var a=s.getThisContainer(i,!1);if(s.isFunctionDeclaration(a)||s.isFunctionExpression(a)){if(s.isSourceFile(s.getThisContainer(a,!1)))return s.isSourceFileJS(t)&&s.isPropertyAccessExpression(i.parent)&&s.isAssignmentExpression(i.parent.parent)?(c.addJSDocTags(e,t,a,[s.createJSDocClassTag()]),s.Diagnostics.Add_class_tag):void 0;var o=s.Debug.assertDefined(s.findChildOfKind(a,94,t)),r=a.name,i=s.Debug.assertDefined(a.body);return s.isFunctionExpression(a)?r&&s.FindAllReferences.Core.isSymbolReferencedInFile(r,n,t,i)?void 0:(e.delete(t,o),r&&e.delete(t,r),e.insertText(t,i.pos," =>"),[s.Diagnostics.Convert_function_expression_0_to_arrow_function,r?r.text:s.ANONYMOUS]):(e.replaceNode(t,o,s.createToken(81)),e.insertText(t,r.end," = "),e.insertText(t,i.pos," =>"),[s.Diagnostics.Convert_function_declaration_0_to_arrow_function,r.text])}}c=s.codefix||(s.codefix={}),a="fixImplicitThis",e=[s.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],c.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=o(e,r,i.start,n.getTypeChecker())});return t?[c.createCodeFixAction(a,e,t,a,s.Diagnostics.Fix_all_implicit_this_errors)]:s.emptyArray},fixIds:[a],getAllCodeActions:function(r){return c.codeFixAll(r,e,function(e,t){o(e,t.file,t.start,r.program.getTypeChecker())})}})}(ts=ts||{}),function(s){var o,c,e;function u(e,t,r){var n,i,a=s.getTokenAtPosition(e,t),o=a.parent,t=r.program.getTypeChecker();return s.isPropertyAccessExpression(o)&&o.name===a?(s.Debug.assert(s.isIdentifierOrPrivateIdentifier(a),"Expected an identifier for spelling (property access)"),n=t.getTypeAtLocation(o.expression),32&o.flags&&(n=t.getNonNullableType(n)),n=t.getSuggestedSymbolForNonexistentProperty(a,n)):s.isImportSpecifier(o)&&o.name===a?(s.Debug.assertNode(a,s.isIdentifier,"Expected an identifier for spelling (import)"),(i=function(e,t,r){if(!r||!s.isStringLiteralLike(r.moduleSpecifier))return;r=s.getResolvedModule(e,r.moduleSpecifier.text);return r?t.program.getSourceFile(r.resolvedFileName):void 0}(e,r,s.findAncestor(a,s.isImportDeclaration)))&&i.symbol&&(n=t.getSuggestedSymbolForNonexistentModule(a,i.symbol))):(r=s.getMeaningFromLocation(a),i=s.getTextOfNode(a),s.Debug.assert(void 0!==i,"name should be defined"),n=t.getSuggestedSymbolForNonexistentSymbol(a,i,function(e){var t=0;4&e&&(t|=1920);2&e&&(t|=788968);1&e&&(t|=111551);return t}(r))),void 0===n?void 0:{node:a,suggestedSymbol:n}}function l(e,t,r,n,i){var a=s.symbolName(n);!s.isIdentifierText(a,i)&&s.isPropertyAccessExpression(r.parent)?(n=n.valueDeclaration,s.isNamedDeclaration(n)&&s.isPrivateIdentifier(n.name)?e.replaceNode(t,r,s.createIdentifier(a)):e.replaceNode(t,r.parent,s.createElementAccess(r.parent.expression,s.createLiteral(a)))):e.replaceNode(t,r,s.createIdentifier(a))}o=s.codefix||(s.codefix={}),c="fixSpelling",e=[s.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,s.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,s.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,s.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,s.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2.code],o.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.sourceFile,r=u(t,e.span.start,e);if(r){var n=r.node,i=r.suggestedSymbol,a=e.host.getCompilationSettings().target,e=s.textChanges.ChangeTracker.with(e,function(e){return l(e,t,n,i,a)});return[o.createCodeFixAction("spelling",e,[s.Diagnostics.Change_spelling_to_0,s.symbolName(i)],c,s.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[c],getAllCodeActions:function(n){return o.codeFixAll(n,e,function(e,t){var r=u(t.file,t.start,n),t=n.host.getCompilationSettings().target;r&&l(e,n.sourceFile,r.node,r.suggestedSymbol,t)})}})}(ts=ts||{}),function(g){var m,y,e,h,v,b,x,t;function s(e,t,r,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)&&c(e,t,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)){if(c(e,t,a=g.createObjectLiteral([g.createPropertyAssignment(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 a,o=g.first(i.statements);if(g.isLabeledStatement(o)&&g.isExpressionStatement(o.statement))if(c(e,t,a=g.createObjectLiteral([g.createPropertyAssignment(o.label,o.statement.expression)]),r,n))return{declaration:t,kind:y.MissingReturnStatement,expression:a,statement:i,commentSource:o}}}}function c(e,t,r,n,i){return e.isTypeAssignableTo(e.getTypeAtLocation(i?g.updateFunctionLikeBody(t,g.createBlock([g.createReturn(r)])):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)?s(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?s(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 242:case 156:case 191:case 159:case 281:return e.initializer;case 273:return e.initializer&&(g.isJsxExpression(e.initializer)?e.initializer.expression:void 0);case 282:case 158:case 284:case 323:case 317:return}}(i.parent);return o&&g.isFunctionLikeDeclaration(o)&&o.body?s(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.createReturn(r),{leadingTriviaOption:g.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:g.textChanges.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function C(e,t,r,n,i,a){n=a||g.needsParentheses(n)?g.createParen(n):n;g.suppressLeadingAndTrailingTrivia(i),g.copyComments(i,n),e.replaceNode(t,r.body,n)}function T(e,t,r,n){e.replaceNode(t,r.body,g.createParen(n))}m=g.codefix||(g.codefix={}),h="returnValueCorrect",v="fixAddReturnStatement",b="fixRemoveBlockBodyBrace",x="fixWrapTheBlockWithParen",t=[g.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,g.Diagnostics.Type_0_is_not_assignable_to_type_1.code,g.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],(e=y=y||{})[e.MissingReturnStatement=0]="MissingReturnStatement",e[e.MissingParentheses=1]="MissingParentheses",m.registerCodeFix({errorCodes:t,fixIds:[v,b,x],getCodeActions:function(e){var t,r,n,i,a,o,s,c,u,l,_=e.program,d=e.sourceFile,p=e.span.start,f=e.errorCode,p=D(_.getTypeChecker(),d,p,f);if(p)return p.kind===y.MissingReturnStatement?g.append([(c=e,u=p.expression,l=p.statement,f=g.textChanges.ChangeTracker.with(c,function(e){return S(e,c.sourceFile,u,l)}),m.createCodeFixAction(h,f,g.Diagnostics.Add_a_return_statement,v,g.Diagnostics.Add_all_missing_return_statement))],g.isArrowFunction(p.declaration)?(i=e,a=p.declaration,o=p.expression,s=p.commentSource,f=g.textChanges.ChangeTracker.with(i,function(e){return C(e,i.sourceFile,a,o,s,!1)}),m.createCodeFixAction(h,f,g.Diagnostics.Remove_block_body_braces,b,g.Diagnostics.Remove_all_incorrect_body_block_braces)):void 0):[(t=e,r=p.declaration,n=p.expression,p=g.textChanges.ChangeTracker.with(t,function(e){return T(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;C(e,t.file,r.declaration,r.expression,r.commentSource,!1);break;case x:if(!g.isArrowFunction(r.declaration))return;T(e,t.file,r.declaration,r.expression);break;default:g.Debug.fail(JSON.stringify(n.fixId))}})}})}(ts=ts||{}),function(d){var p,e,u,t,l;function f(e,t,r,n){var i=d.getTokenAtPosition(e,t);if(d.isIdentifier(i)||d.isPrivateIdentifier(i)){var a=i.parent;if(d.isPropertyAccessExpression(a)){var o=d.skipConstraint(r.getTypeAtLocation(a.expression)),e=o.symbol;if(e&&e.declarations){t=d.find(e.declarations,d.isClassLike);if(t||!d.isPrivateIdentifier(i)){t=t||d.find(e.declarations,d.isInterfaceDeclaration);if(t&&!n.isSourceFileFromExternalLibrary(t.getSourceFile())){o=(o.target||o)!==r.getDeclaredTypeOfSymbol(e);if(o&&(d.isPrivateIdentifier(i)||d.isInterfaceDeclaration(t)))return;r=t.getSourceFile();return{kind:1,token:i,parentDeclaration:t,makeStatic:o,declSourceFile:r,inJs:d.isSourceFileJS(r),call:d.tryCast(a.parent,d.isCallExpression)}}e=d.find(e.declarations,d.isEnumDeclaration);return!e||d.isPrivateIdentifier(i)||n.isSourceFileFromExternalLibrary(e.getSourceFile())?void 0:{kind:0,token:i,parentDeclaration:e}}}}}}function g(e,t,r,n,i){var a,o=n.text;i?214!==r.kind&&(a=r.name.getText(),a=s(d.createIdentifier(a),o),e.insertNodeAfter(t,r,a)):d.isPrivateIdentifier(n)?(a=d.createProperty(void 0,void 0,o,void 0,void 0,void 0),(n=c(r))?e.insertNodeAfter(t,n,a):e.insertNodeAtClassStart(t,r,a)):(r=d.getFirstConstructorWithBody(r))&&(o=s(d.createThis(),o),e.insertNodeAtConstructorEnd(t,r,o))}function s(e,t){return d.createStatement(d.createAssignment(d.createPropertyAccess(e,t),d.createIdentifier("undefined")))}function m(e,t,r){var n;return(209===r.parent.parent.kind?(n=r.parent.parent,n=r.parent===n.left?n.right:n.left,n=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(n))),e.typeToTypeNode(n,t,void 0)):(r=e.getContextualType(r.parent))?e.typeToTypeNode(r,void 0,void 0):void 0)||d.createKeywordTypeNode(125)}function _(e,t,r,n,i,a){e=d.textChanges.ChangeTracker.with(e,function(e){return y(e,t,r,n,i,a)});return 8&a?p.createCodeFixActionWithoutFixAll(u,e,[d.Diagnostics.Declare_private_property_0,n]):p.createCodeFixAction(u,e,[32&a?d.Diagnostics.Declare_static_property_0:d.Diagnostics.Declare_property_0,n],l,d.Diagnostics.Add_all_missing_members)}function y(e,t,r,n,i,a){n=d.createProperty(void 0,a?d.createNodeArray(d.createModifiersFromModifierFlags(a)):void 0,n,void 0,i,void 0),i=c(r);i?e.insertNodeAfter(t,i,n):e.insertNodeAtClassStart(t,r,n)}function c(e){for(var t,r=0,n=e.members;r<n.length;r++){var i=n[r];if(!d.isPropertyDeclaration(i))break;t=i}return t}function h(e,t,r,n,i,a,o,s){var c=p.createImportAdder(r,e.program,e.preferences,e.host),o=p.createMethodFromCallExpression(e,a,i.text,s,o,n,c),a=d.getAncestor(a,161);a&&a.parent===n?t.insertNodeAfter(r,a,o):t.insertNodeAtClassStart(r,n,o),c.writeFixes(t)}function v(e,t,r,n){var i=d.some(n.members,function(e){e=t.getTypeAtLocation(e);return!!(e&&132&e.flags)}),r=d.createEnumMember(r,i?d.createStringLiteral(r.text):void 0);e.replaceNode(n.getSourceFile(),n,d.updateEnumDeclaration(n,n.decorators,n.modifiers,n.name,d.concatenate(n.members,d.singleElementArray(r))),{leadingTriviaOption:d.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:d.textChanges.TrailingTriviaOption.Exclude})}p=d.codefix||(d.codefix={}),u="addMissingMember",t=[d.Diagnostics.Property_0_does_not_exist_on_type_1.code,d.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,d.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,d.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,d.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code],l="addMissingMember",p.registerCodeFix({errorCodes:t,getCodeActions:function(t){var e=f(t.sourceFile,t.span.start,t.program.getTypeChecker(),t.program);if(e){if(0===e.kind){var r=e.token,n=e.parentDeclaration,i=d.textChanges.ChangeTracker.with(t,function(e){return v(e,t.program.getTypeChecker(),r,n)});return[p.createCodeFixAction(u,i,[d.Diagnostics.Add_missing_enum_member_0,r.text],l,d.Diagnostics.Add_all_missing_members)]}var a=e.parentDeclaration,o=e.declSourceFile,s=e.inJs,c=e.makeStatic,i=e.token,e=e.call,e=e&&function(t,r,n,i,a,o,s){if(d.isPrivateIdentifier(i))return;var e=d.textChanges.ChangeTracker.with(t,function(e){return h(t,e,r,n,i,a,o,s)});return p.createCodeFixAction(u,e,[o?d.Diagnostics.Declare_static_method_0:d.Diagnostics.Declare_method_0,i.text],l,d.Diagnostics.Add_all_missing_members)}(t,o,a,i,e,c,s),c=s&&!d.isInterfaceDeclaration(a)?d.singleElementArray(function(e,t,r,n,i){var a=d.textChanges.ChangeTracker.with(e,function(e){return g(e,t,r,n,i)});if(0===a.length)return;e=i?d.Diagnostics.Initialize_static_property_0:d.isPrivateIdentifier(n)?d.Diagnostics.Declare_a_private_field_named_0:d.Diagnostics.Initialize_property_0_in_the_constructor;return p.createCodeFixAction(u,a,[e,n.text],l,d.Diagnostics.Add_all_missing_members)}(t,o,a,i,c)):function(e,t,r,n,i){var a=m(e.program.getTypeChecker(),r,n),o=[_(e,t,r,n.text,a,i?32:0)];if(i||d.isPrivateIdentifier(n))return o;d.startsWithUnderscore(n.text)&&o.unshift(_(e,t,r,n.text,a,8));return o.push(function(e,t,r,n,i){var a=d.createKeywordTypeNode(143),a=d.createParameter(void 0,void 0,void 0,"x",void 0,a,void 0),o=d.createIndexSignature(void 0,void 0,[a],i),e=d.textChanges.ChangeTracker.with(e,function(e){return e.insertNodeAtClassStart(t,r,o)});return p.createCodeFixActionWithoutFixAll(u,e,[d.Diagnostics.Add_index_signature_for_property_0,n])}(e,t,r,n.text,a)),o}(t,o,a,i,c);return d.concatenate(d.singleElementArray(e),c)}},fixIds:[l],getAllCodeActions:function(u){var l=u.program,i=l.getTypeChecker(),a=d.createMap(),_=new d.NodeMap;return p.createCombinedCodeActions(d.textChanges.ChangeTracker.with(u,function(c){p.eachDiagnostic(u,t,function(e){var t,r,n=f(e.file,e.start,i,u.program);n&&d.addToSeen(a,d.getNodeId(n.parentDeclaration)+"#"+n.token.text)&&(0===n.kind?(e=n.token,r=n.parentDeclaration,v(c,i,e,r)):(r=n.parentDeclaration,t=n.token,(r=_.getOrUpdate(r,function(){return[]})).some(function(e){return e.token.text===t.text})||r.push(n)))}),_.forEach(function(e,t){for(var s=function(e,t){var r=[];for(;e;){var n=d.getClassExtendsHeritageElement(e),n=n&&t.getSymbolAtLocation(n.expression),n=n&&d.find(n.declarations,d.isClassLike);n&&r.push(n),e=n}return r}(t,i),r=0,n=e;r<n.length;r++)!function(t){var e,r,n,i,a,o;s.some(function(e){e=_.get(e);return!!e&&e.some(function(e){return e.token.text===t.token.text})})||(e=t.parentDeclaration,r=t.declSourceFile,n=t.inJs,i=t.makeStatic,a=t.token,(o=t.call)&&!d.isPrivateIdentifier(a)?h(u,c,r,e,a,o,i,n):n&&!d.isInterfaceDeclaration(e)?g(c,r,e,a,i):(n=m(l.getTypeChecker(),e,a),y(c,r,e,a.text,n,i?32:0)))}(n[r])})}))}}),(e={})[e.Enum=0]="Enum",e[e.ClassOrInterface=1]="ClassOrInterface"}(ts=ts||{}),function(i){var n,a,e;function o(e,t,r){var n=i.cast(function(e,t){var r=i.getTokenAtPosition(e,t.start),n=i.textSpanEnd(t);for(;r.end<n;)r=r.parent;return r}(t,r),i.isCallExpression),r=i.createNew(n.expression,n.typeArguments,n.arguments);e.replaceNode(t,n,r)}n=i.codefix||(i.codefix={}),a="addMissingNewOperator",e=[i.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code],n.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.sourceFile,r=e.span,e=i.textChanges.ChangeTracker.with(e,function(e){return o(e,t,r)});return[n.createCodeFixAction(a,e,i.Diagnostics.Add_missing_new_operator_to_call,a,i.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[a],getAllCodeActions:function(r){return n.codeFixAll(r,e,function(e,t){return o(e,r.sourceFile,t)})}})}(ts=ts||{}),function(a){var o,s,n,e;function c(e,t){return{type:"install package",file:e,packageName:t}}function u(e,t){t=a.cast(a.getTokenAtPosition(e,t),a.isStringLiteral).text,t=a.parsePackageName(t).packageName;return a.isExternalModuleNameRelative(t)?void 0:t}function l(e,t,r){return r===n?a.JsTyping.nodeCoreModules.has(e)?"@types/node":void 0:t.isKnownTypesPackageName(e)?a.getTypesPackageName(e):void 0}o=a.codefix||(a.codefix={}),s="installTypesPackage",n=a.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,e=[n,a.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],o.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.host,r=e.sourceFile,n=u(r,e.span.start);if(void 0!==n){e=l(n,t,e.errorCode);return void 0===e?[]:[o.createCodeFixAction("fixCannotFindModule",[],[a.Diagnostics.Install_0,e],s,a.Diagnostics.Install_all_missing_types_packages,c(r.fileName,e))]}},fixIds:[s],getAllCodeActions:function(i){return o.codeFixAll(i,e,function(e,t,r){var n=u(t.file,t.start);void 0!==n&&(i.fixId===s?(n=l(n,i.host,t.code))&&r.push(c(t.file.fileName,n)):a.Debug.fail("Bad fixId: "+i.fixId))})}})}(ts=ts||{}),function(s){var c,e,i;function a(e,t){t=s.getTokenAtPosition(e,t);return s.cast(t.parent,s.isClassLike)}function o(t,r,e,n,i){var a=s.getEffectiveBaseTypeNode(t),o=e.program.getTypeChecker(),a=o.getTypeAtLocation(a),o=o.getPropertiesOfType(a).filter(u),a=c.createImportAdder(r,e.program,i,e.host);c.createMissingMemberNodes(t,o,e,i,a,function(e){return n.insertNodeAtClassStart(r,t,e)}),a.writeFixes(n)}function u(e){e=s.getModifierFlags(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=s.createMap();return c.codeFixAll(r,e,function(e,t){t=a(t.file,t.start);s.addToSeen(n,s.getNodeId(t))&&o(t,r.sourceFile,r,e,r.preferences)})}})}(ts=ts||{}),function(a){var o,s,t;function c(e,t,r,n){e.insertNodeAtConstructorStart(t,r,n),e.delete(t,n)}function u(e,t){var r=a.getTokenAtPosition(e,t);if(104===r.kind){e=a.getContainingFunction(r),t=n(e.body);return t&&!t.expression.arguments.some(function(e){return a.isPropertyAccessExpression(e)&&e.expression===r})?{constructor:e,superCall:t}:void 0}}function n(e){return a.isExpressionStatement(e)&&a.isSuperCall(e.expression)?e:a.isFunctionLike(e)?void 0:a.forEachChild(e,n)}o=a.codefix||(a.codefix={}),s="classSuperMustPrecedeThisAccess",t=[a.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],o.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=e.sourceFile,r=e.span,r=u(t,r.start);if(r){var n=r.constructor,i=r.superCall,e=a.textChanges.ChangeTracker.with(e,function(e){return c(e,t,n,i)});return[o.createCodeFixAction(s,e,a.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,s,a.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[s],getAllCodeActions:function(e){var n=e.sourceFile,i=a.createMap();return o.codeFixAll(e,t,function(e,t){var r=u(t.file,t.start);r&&(t=r.constructor,r=r.superCall,a.addToSeen(i,a.getNodeId(t.parent))&&c(e,n,t,r))})}})}(ts=ts||{}),function(i){var a,o,e;function s(e,t){t=i.getTokenAtPosition(e,t);return i.Debug.assert(i.isConstructorDeclaration(t.parent),"token should be at the constructor declaration"),t.parent}function c(e,t,r){var n=i.createStatement(i.createCall(i.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.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.createStringLiteral("react"))}n=r.codefix||(r.codefix={}),i="fixEnableJsxFlag",e=[r.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],n.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.program.getCompilerOptions().configFile;if(void 0!==t){e=r.textChanges.ChangeTracker.with(e,function(e){return a(e,t)});return[n.createCodeFixActionWithoutFixAll(i,e,r.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[i],getAllCodeActions:function(r){return n.codeFixAll(r,e,function(e){var t=r.program.getCompilerOptions().configFile;void 0!==t&&a(e,t)})}})}(ts=ts||{}),function(o){var s;(s=o.codefix||(o.codefix={})).registerCodeFix({errorCodes:[o.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(e){var t=e.program.getCompilerOptions(),r=t.configFile;if(void 0!==r){var n=[],i=o.getEmitModuleKind(t);i>=o.ModuleKind.ES2015&&i<o.ModuleKind.ESNext&&(a=o.textChanges.ChangeTracker.with(e,function(e){s.setJsonCompilerOptionValue(e,r,"module",o.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.createStringLiteral("es2017")]],i===o.ModuleKind.CommonJS&&t.push(["module",o.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(o){var a,s,t;function c(e,t){e=o.getTokenAtPosition(e,t),t=o.getContainingClass(e).heritageClauses,e=t[0].getFirstToken();return 90===e.kind?{extendsToken:e,heritageClauses:t}:void 0}function u(e,t,r,n){if(e.replaceNode(t,r,o.createToken(113)),2===n.length&&90===n[0].token&&113===n[1].token){r=n[1].getFirstToken(),n=r.getFullStart();e.replaceRange(t,{pos:n,end:n},o.createToken(27));for(var i=t.text,a=r.end;a<i.length&&o.isWhiteSpaceSingleLine(i.charCodeAt(a));)a++;e.deleteRange(t,{pos:r.getStart(),end:a})}}a=o.codefix||(o.codefix={}),s="extendsInterfaceBecomesImplements",t=[o.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code],a.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=e.sourceFile,r=c(t,e.span.start);if(r){var n=r.extendsToken,i=r.heritageClauses,e=o.textChanges.ChangeTracker.with(e,function(e){return u(e,t,n,i)});return[a.createCodeFixAction(s,e,o.Diagnostics.Change_extends_to_implements,s,o.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[s],getAllCodeActions:function(e){return a.codeFixAll(e,t,function(e,t){var r=c(t.file,t.start);r&&u(e,t.file,r.extendsToken,r.heritageClauses)})}})}(ts=ts||{}),function(i){var n,a,o,e;function s(e,t,r){t=i.getTokenAtPosition(e,t);if(i.isIdentifier(t))return{node:t,className:r===o?i.getContainingClass(t).name.text:void 0}}function c(e,t,r){var n=r.node,r=r.className;i.suppressLeadingAndTrailingTrivia(n),e.replaceNode(t,n,i.createPropertyAccess(r?i.createIdentifier(r):i.createThis(),n))}n=i.codefix||(i.codefix={}),a="forgottenThisPropertyAccess",o=i.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e=[i.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,i.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code,o],n.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.sourceFile,r=s(t,e.span.start,e.errorCode);if(r){e=i.textChanges.ChangeTracker.with(e,function(e){return c(e,t,r)});return[n.createCodeFixAction(a,e,[i.Diagnostics.Add_0_to_unresolved_variable,r.className||"this"],a,i.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[a],getAllCodeActions:function(r){return n.codeFixAll(r,e,function(e,t){t=s(t.file,t.start,t.code);t&&c(e,r.sourceFile,t)})}})}(ts=ts||{}),function(l){!function(a){var o="fixInvalidJsxCharacters_expression",s="fixInvalidJsxCharacters_htmlEntity",e=[l.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,l.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];a.registerCodeFix({errorCodes:e,fixIds:[o,s],getCodeActions:function(e){var t=e.sourceFile,r=e.preferences,n=e.span,i=l.textChanges.ChangeTracker.with(e,function(e){return u(e,r,t,n.start,!1)}),e=l.textChanges.ChangeTracker.with(e,function(e){return u(e,r,t,n.start,!0)});return[a.createCodeFixAction(o,i,l.Diagnostics.Wrap_invalid_character_in_an_expression_container,o,l.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),a.createCodeFixAction(s,e,l.Diagnostics.Convert_invalid_character_to_its_html_entity_code,s,l.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:function(r){return a.codeFixAll(r,e,function(e,t){return u(e,r.preferences,t.file,t.start,r.fixId===s)})}});var c={">":"&gt;","}":"&rbrace;"};function u(e,t,r,n,i){var a,o=r.getText()[n];a=o,l.hasProperty(c,a)&&(t=i?c[o]:"{"+l.quote(o,t)+"}",e.replaceRangeWithText(r,{pos:n,end:n+1},t))}}(l.codefix||(l.codefix={}))}(ts=ts||{}),function(p){var l,_,d,c,f,t;function g(e,t,r){e.replaceNode(t,r.parent,p.createKeywordTypeNode(148))}function m(e,t){return l.createCodeFixAction(_,e,t,c,p.Diagnostics.Delete_all_unused_declarations)}function y(e,t,r){e.delete(t,p.Debug.checkDefined(p.cast(r.parent,p.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function h(e){return 96===e.kind?p.tryCast(e.parent,p.isImportDeclaration):void 0}function v(e,t,r,n,i,a){if(18!==e.kind||!p.isObjectBindingPattern(e.parent))return!1;e=e.parent.parent;return 156===e.kind?S(t,r,e,n,i,a):t.delete(r,e),!0}function b(e,t,r){var n=p.tryCast(t.parent,p.isVariableDeclarationList);return!(!n||n.getChildren(e)[0]!==t)&&(r.delete(e,225===n.parent.kind?n.parent:n),!0)}function x(t,e,r,n){e!==p.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(132===n.kind&&(n=p.cast(n.parent,p.isInferTypeNode).typeParameter.name),p.isIdentifier(n)&&function(e){switch(e.parent.kind){case 156:case 155:return!0;case 242:switch(e.parent.parent.parent.kind){case 232:case 231:return!0}}return!1}(n)&&(t.replaceNode(r,n,p.createIdentifier("_"+n.text)),p.isParameter(n.parent)&&p.getJSDocParameterTags(n.parent).forEach(function(e){p.isIdentifier(e.name)&&t.replaceNode(r,e.name,p.createIdentifier("_"+e.name.text))})))}function D(e,t,r,n,i,a){var o,s,c,u,l,_,d;o=r,s=e,c=n,u=i,l=a,a=(i=t).parent,p.isParameter(a)?S(o,s,a,c,u,l):o.delete(s,p.isImportClause(a)?i:p.isComputedPropertyName(a)?a.parent:a),p.isIdentifier(t)&&(_=r,d=e,t=t,n=n,p.FindAllReferences.Core.eachSymbolReferenceInFile(t,n,d,function(e){p.isPropertyAccessExpression(e.parent)&&e.parent.name===e&&(e=e.parent),p.isBinaryExpression(e.parent)&&p.isExpressionStatement(e.parent.parent)&&e.parent.left===e&&_.delete(d,e.parent.parent)}))}function S(t,r,e,n,i,a){var o,s,c;!function(e,t,r){var n=e.parent;switch(n.kind){case 161:var i=t.getSymbolAtLocation(n.name);if(p.isMemberSymbolInBaseType(i,t))return!1;case 162:case 244:return!0;case 201:case 202:var a=n.parameters,i=a.indexOf(e);return p.Debug.assert(-1!==i,"The parameter should already be in the list"),r?a.slice(i+1).every(function(e){return 75===e.name.kind&&!e.symbol.isReferenced}):i===a.length-1;case 164:return!1;default:return p.Debug.failBadSyntaxKind(n)}}(e,n,a)||(e.modifiers&&0<e.modifiers.length&&(!p.isIdentifier(e.name)||p.FindAllReferences.Core.isSymbolReferencedInFile(e.name,n,r))?e.modifiers.forEach(function(e){t.deleteModifier(r,e)}):(t.delete(r,e),o=t,s=r,c=e,i=i,n=n,p.FindAllReferences.Core.eachSignatureCall(c.parent,i,n,function(e){var t=c.parent.parameters.indexOf(c);e.arguments.length>t&&o.delete(s,e.arguments[t])})))}l=p.codefix||(p.codefix={}),_="unusedIdentifier",d="unusedIdentifier_prefix",c="unusedIdentifier_delete",f="unusedIdentifier_infer",t=[p.Diagnostics._0_is_declared_but_its_value_is_never_read.code,p.Diagnostics._0_is_declared_but_never_used.code,p.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,p.Diagnostics.All_imports_in_import_declaration_are_unused.code,p.Diagnostics.All_destructured_elements_are_unused.code,p.Diagnostics.All_variables_are_unused.code,p.Diagnostics.All_type_parameters_are_unused.code],l.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=e.errorCode,r=e.sourceFile,n=e.program,i=n.getTypeChecker(),a=n.getSourceFiles(),o=p.getTokenAtPosition(r,e.span.start);if(p.isJSDocTemplateTag(o))return[m(p.textChanges.ChangeTracker.with(e,function(e){return e.delete(r,o)}),p.Diagnostics.Remove_template_tag)];if(29===o.kind)return[m(c=p.textChanges.ChangeTracker.with(e,function(e){return y(e,r,o)}),p.Diagnostics.Remove_type_parameters)];var s=h(o);if(s)return[m(c=p.textChanges.ChangeTracker.with(e,function(e){return e.delete(r,s)}),[p.Diagnostics.Remove_import_from_0,p.showModuleSpecifier(s)])];n=p.textChanges.ChangeTracker.with(e,function(e){return v(o,e,r,i,a,!1)});if(n.length)return[m(n,p.Diagnostics.Remove_destructuring)];n=p.textChanges.ChangeTracker.with(e,function(e){return b(r,o,e)});if(n.length)return[m(n,p.Diagnostics.Remove_variable_statement)];var c,u,n=[];132===o.kind?(c=p.textChanges.ChangeTracker.with(e,function(e){return g(e,r,o)}),u=p.cast(o.parent,p.isInferTypeNode).typeParameter.name.text,n.push(l.createCodeFixAction(_,c,[p.Diagnostics.Replace_infer_0_with_unknown,u],f,p.Diagnostics.Replace_all_unused_infer_with_unknown))):(c=p.textChanges.ChangeTracker.with(e,function(e){return D(r,o,e,i,a,!1)})).length&&(u=p.isComputedPropertyName(o.parent)?o.parent:o,n.push(m(c,[p.Diagnostics.Remove_unused_declaration_for_Colon_0,u.getText(r)])));e=p.textChanges.ChangeTracker.with(e,function(e){return x(e,t,r,o)});return e.length&&n.push(l.createCodeFixAction(_,e,[p.Diagnostics.Prefix_0_with_an_underscore,o.getText(r)],d,p.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),n},fixIds:[d,c,f],getAllCodeActions:function(i){var a=i.sourceFile,e=i.program,o=e.getTypeChecker(),s=e.getSourceFiles();return l.codeFixAll(i,t,function(e,t){var r=p.getTokenAtPosition(a,t.start);switch(i.fixId){case d:x(e,t.code,a,r);break;case c:if(132===r.kind)break;var n=h(r);n?e.delete(a,n):p.isJSDocTemplateTag(r)?e.delete(a,r):29===r.kind?y(e,a,r):v(r,e,a,o,s,!0)||b(a,r,e)||D(a,r,e,o,s,!0);break;case f:132===r.kind&&g(e,a,r);break;default:p.Debug.fail(JSON.stringify(i.fixId))}})}})}(ts=ts||{}),function(u){var r,n,t;function i(e,t,r,n,i){var a=u.getTokenAtPosition(t,r),o=u.findAncestor(a,u.isStatement);o.getStart(t)!==a.getStart(t)&&(i=JSON.stringify({statementKind:u.Debug.formatSyntaxKind(o.kind),tokenKind:u.Debug.formatSyntaxKind(a.kind),errorCode:i,start:r,length:n}),u.Debug.fail("Token and statement should start at the same point. "+i));var s,c=(u.isBlock(o.parent)?o.parent:o).parent;if(!u.isBlock(o.parent)||o===u.first(o.parent.statements))switch(c.kind){case 227:if(c.elseStatement){if(u.isBlock(o.parent))break;return void e.replaceNode(t,o,u.createBlock(u.emptyArray))}case 229:case 230:return void e.delete(t,c)}u.isBlock(o.parent)?(s=r+n,n=u.Debug.checkDefined(function(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(!t(a))break;r=a}return r}(u.sliceAfter(o.parent.statements,o),function(e){return e.pos<s}),"Some statement should be last"),e.deleteNodeRange(t,o,n)):e.delete(t,o)}r=u.codefix||(u.codefix={}),n="fixUnreachableCode",t=[u.Diagnostics.Unreachable_code_detected.code],r.registerCodeFix({errorCodes:t,getCodeActions:function(t){var e=u.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,t.span.start,t.span.length,t.errorCode)});return[r.createCodeFixAction(n,e,u.Diagnostics.Remove_unreachable_code,n,u.Diagnostics.Remove_all_unreachable_code)]},fixIds:[n],getAllCodeActions:function(e){return r.codeFixAll(e,t,function(e,t){return i(e,t.file,t.start,t.length,t.code)})}})}(ts=ts||{}),function(a){var r,n,t;function i(e,t,r){var n=a.getTokenAtPosition(t,r),i=a.cast(n.parent,a.isLabeledStatement),r=n.getStart(t),n=i.statement.getStart(t),i=a.positionsAreOnSameLine(r,n,t)?n:a.skipTrivia(t.text,a.findChildOfKind(i,58,t).end,!0);e.deleteRange(t,{pos:r,end:i})}r=a.codefix||(a.codefix={}),n="fixUnusedLabel",t=[a.Diagnostics.Unused_label.code],r.registerCodeFix({errorCodes:t,getCodeActions:function(t){var e=a.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,t.span.start)});return[r.createCodeFixAction(n,e,a.Diagnostics.Remove_unused_label,n,a.Diagnostics.Remove_all_unused_labels)]},fixIds:[n],getAllCodeActions:function(e){return r.codeFixAll(e,t,function(e,t){return i(e,t.file,t.start)})}})}(ts=ts||{}),function(u){var l,n,_,r;function d(e,t,r,n,i){e.replaceNode(t,r,i.typeToTypeNode(n,r,void 0))}function p(e,t,r){t=u.findAncestor(u.getTokenAtPosition(e,t),i),t=t&&t.type;return t&&{typeNode:t,type:r.getTypeFromTypeNode(t)}}function i(e){switch(e.kind){case 217:case 165:case 166:case 244:case 163:case 167:case 186:case 161:case 160:case 156:case 159:case 158:case 164:case 247:case 199:case 242:return!0;default:return!1}}l=u.codefix||(u.codefix={}),n="fixJSDocTypes_plain",_="fixJSDocTypes_nullable",r=[u.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code],l.registerCodeFix({errorCodes:r,getCodeActions:function(i){var a=i.sourceFile,o=i.program.getTypeChecker(),e=p(a,i.span.start,o);if(e){var s=e.typeNode,t=e.type,c=s.getText(a),e=[r(t,n,u.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return 297===s.kind&&e.push(r(o.getNullableType(t,32768),_,u.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),e}function r(t,e,r){var n=u.textChanges.ChangeTracker.with(i,function(e){return d(e,a,s,t,o)});return l.createCodeFixAction("jdocTypes",n,[u.Diagnostics.Change_0_to_1,c,o.typeToString(t)],e,r)}},fixIds:[n,_],getAllCodeActions:function(e){var n=e.fixId,t=e.program,i=e.sourceFile,a=t.getTypeChecker();return l.codeFixAll(e,r,function(e,t){var r=p(t.file,t.start,a);r&&(t=r.typeNode,r=r.type,r=297===t.kind&&n===_?a.getNullableType(r,32768):r,d(e,i,t,r,a))})}})}(ts=ts||{}),function(n){var i,a,t;function o(e,t,r){e.replaceNodeWithText(t,r,r.text+"()")}function s(e,t){t=n.getTokenAtPosition(e,t);if(n.isPropertyAccessExpression(t.parent)){for(var r=t.parent;n.isPropertyAccessExpression(r.parent);)r=r.parent;return r.name}if(n.isIdentifier(t))return t}i=n.codefix||(n.codefix={}),a="fixMissingCallParentheses",t=[n.Diagnostics.This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead.code],i.registerCodeFix({errorCodes:t,fixIds:[a],getCodeActions:function(t){var r=s(t.sourceFile,t.span.start);if(r){var e=n.textChanges.ChangeTracker.with(t,function(e){return o(e,t.sourceFile,r)});return[i.createCodeFixAction(a,e,n.Diagnostics.Add_missing_call_parentheses,a,n.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:function(e){return i.codeFixAll(e,t,function(e,t){var r=s(t.file,t.start);r&&o(e,t.file,r)})}})}(ts=ts||{}),function(a){var i,o,e;function s(e,t){var r,t=a.getTokenAtPosition(e,t),n=a.getContainingFunction(t);if(n){switch(n.kind){case 161:r=n.name;break;case 244:case 201:r=a.findChildOfKind(n,94,e);break;case 202:r=a.findChildOfKind(n,20,e)||a.first(n.parameters);break;default:return}return r&&{insertBefore:r,returnType:(t=n).type||(a.isVariableDeclaration(t.parent)&&t.parent.type&&a.isFunctionTypeNode(t.parent.type)?t.parent.type.type:void 0)}}}function c(e,t,r){var n=r.insertBefore,i=r.returnType;i&&((r=a.getEntityNameFromTypeNode(i))&&75===r.kind&&"Promise"===r.text||e.replaceNode(t,i,a.createTypeReferenceNode("Promise",a.createNodeArray([i])))),e.insertModifierBefore(t,126,n)}i=a.codefix||(a.codefix={}),o="fixAwaitInSyncFunction",e=[a.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,a.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator.code],i.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.sourceFile,r=e.span,n=s(t,r.start);if(n){e=a.textChanges.ChangeTracker.with(e,function(e){return c(e,t,n)});return[i.createCodeFixAction(o,e,a.Diagnostics.Add_async_modifier_to_containing_function,o,a.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[o],getAllCodeActions:function(r){var n=a.createMap();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(D){var S,l,t;function _(e,t,r,n,i,a,o,s,c){if(D.isParameterPropertyModifier(r.kind)||75===r.kind||25===r.kind||104===r.kind){var u=r.parent,l=S.createImportAdder(t,i,c,s);switch(n=function(e){switch(e){case D.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return D.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case D.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return D.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case D.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return D.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case D.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return D.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case D.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return D.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case D.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return D.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case D.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return D.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case D.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return D.Diagnostics.Member_0_implicitly_has_an_1_type.code}return e}(n)){case D.Diagnostics.Member_0_implicitly_has_an_1_type.code:case D.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(D.isVariableDeclaration(u)&&o(u)||D.isPropertyDeclaration(u)||D.isPropertySignature(u))return C(e,l,t,u,i,s,a),l.writeFixes(e),u;if(D.isPropertyAccessExpression(u)){var _=A(u.name,i,a),_=D.getTypeNodeIfAccessible(_,u,i,s);return _&&(d=D.createJSDocTypeTag(D.createJSDocTypeExpression(_),""),N(e,t,D.cast(u.parent.parent,D.isExpressionStatement),[d])),l.writeFixes(e),u}return;case D.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var d=i.getTypeChecker().getSymbolAtLocation(r);return d&&d.valueDeclaration&&D.isVariableDeclaration(d.valueDeclaration)&&o(d.valueDeclaration)?(C(e,l,t,d.valueDeclaration,i,s,a),l.writeFixes(e),d.valueDeclaration):void 0}var p,f,g,m,y,h,v,b,x=D.getContainingFunction(r);if(void 0!==x){switch(n){case D.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(D.isSetAccessorDeclaration(x)){T(e,l,t,x,i,s,a),p=x;break}case D.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:o(x)&&(function(e,t,r,n,i,a,o,s){if(D.isIdentifier(n.name))if(n=function(e,t,r,n){t=F(e,t,r,n);return t&&P(r,t,n).parameters(e)||e.parameters.map(function(e){return{declaration:e,type:D.isIdentifier(e.name)?A(e.name,r,n):r.getTypeChecker().getAnyType()}})}(i,r,a,s),D.Debug.assert(i.parameters.length===n.length,"Parameter count and inference count should match"),D.isInJSFile(i))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.createToken(20));for(var c=0,u=n;c<u.length;c++){var l=u[c],_=l.declaration,l=l.type;!_||_.type||_.initializer||k(e,t,r,_,l,a,o)}s&&e.insertNodeAfter(r,D.last(i.parameters),D.createToken(21))}}(e,l,t,b=D.cast(u,D.isParameter),x,i,s,a),p=b);break;case D.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case D.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:D.isGetAccessorDeclaration(x)&&D.isIdentifier(x.name)&&(k(e,l,t,x,A(x.name,i,a),i,s),p=x);break;case D.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:D.isSetAccessorDeclaration(x)&&(T(e,l,t,x,i,s,a),p=x);break;case D.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:D.textChanges.isThisTypeAnnotatable(x)&&o(x)&&(f=e,h=s,(b=F(m=x,g=t,y=i,v=a))&&b.length&&(v=P(y,b,v).thisParameter(),(h=D.getTypeNodeIfAccessible(v,m,y,h))&&(D.isInJSFile(m)?N(f,g,m,[D.createJSDocThisTag(D.createJSDocTypeExpression(h))]):f.tryInsertThisTypeAnnotation(g,m,h))),p=x);break;default:return D.Debug.fail(String(n))}return l.writeFixes(e),p}}}function C(e,t,r,n,i,a,o){D.isIdentifier(n.name)&&k(e,t,r,n,A(n.name,i,o),i,a)}function T(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,c=D.getTypeNodeIfAccessible(i,n,a,o);c&&(D.isInJSFile(r)&&158!==n.kind?(s=D.isVariableDeclaration(n)?D.tryCast(n.parent.parent,D.isVariableStatement):n)&&(o=D.createJSDocTypeExpression(c),N(e,r,s,[D.isGetAccessorDeclaration(n)?D.createJSDocReturnTag(o,""):D.createJSDocTypeTag(o,"")])):function(e,t,r,n,i,a,o){o=S.tryGetAutoImportableReferenceFromImportTypeNode(e,r,o);if(o&&i.tryInsertTypeAnnotation(n,t,o.typeReference))return D.forEach(o.symbols,function(e){return a.addImportFromExportedSymbol(e,!0)}),!0;return!1}(c,n,i,r,e,t,D.getEmitScriptTarget(a.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,n,c))}function E(e,t,r,n,i){var a=r.length&&r[0].declaration.parent;a&&N(e,t,a,D.mapDefined(r,function(e){var t=e.declaration;if(!t.initializer&&!D.getJSDocType(t)&&D.isIdentifier(t.name)){var r=e.type&&D.getTypeNodeIfAccessible(e.type,t,n,i),t=D.getSynthesizedClone(t.name);return D.setEmitFlags(t,3584),r&&D.createJSDocParamTag(t,!!e.isOptional,D.createJSDocTypeExpression(r),"")}}))}function N(e,t,r,n){var i,a=D.mapDefined(r.jsDoc,function(e){return e.comment}),o=D.flatMapToMutable(r.jsDoc,function(e){return e.tags}),n=n.filter(function(r){return!o||!o.some(function(e,t){e=function(e,t){if(e.kind!==t.kind)return;switch(e.kind){case 317:var r=e,n=t;return D.isIdentifier(r.name)&&D.isIdentifier(n.name)&&r.name.escapedText===n.name.escapedText?D.createJSDocParamTag(n.name,n.isBracketed,n.typeExpression,r.comment):void 0;case 318:return D.createJSDocReturnTag(t.typeExpression,e.comment)}}(e,r);return e&&(o[t]=e),!!e})}),n=D.createJSDocComment(a.join("\n"),D.createNodeArray(__spreadArrays(o||D.emptyArray,n))),i=202===r.kind?(159!==(i=r).parent.kind?i.parent:i).parent:r;i.jsDoc=r.jsDoc,i.jsDocCache=r.jsDocCache,e.insertJsdocCommentBefore(t,i,n)}function x(e,t,r){return D.mapDefined(D.FindAllReferences.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),function(e){return 0!==e.kind?D.tryCast(e.node,D.isIdentifier):void 0})}function A(e,t,r){return P(t,x(e,t,r),r).single()}function F(e,t,r,n){switch(e.kind){case 162:a=D.findChildOfKind(e,129,t);break;case 202:case 201:var i=e.parent,a=(D.isVariableDeclaration(i)&&D.isIdentifier(i.name)?i:e).name;break;case 244:case 161:a=e.name}if(a)return x(a,r,n)}function P(d,i,p){var g=d.getTypeChecker(),a={string:function(){return g.getStringType()},number:function(){return g.getNumberType()},Array:function(e){return g.createArrayType(e)},Promise:function(e){return g.createPromiseType(e)}},o=[g.getStringType(),g.getNumberType(),g.createArrayType(g.getAnyType()),g.createPromiseType(g.getAnyType())];return{single:function(){return m(f(i))},parameters:function(l){if(0===i.length||!l.parameters)return;for(var e=c(),t=0,r=i;t<r.length;t++){var n=r[t];p.throwIfCancellationRequested(),u(n,e)}var _=__spreadArrays(e.constructs||[],e.calls||[]);return l.parameters.map(function(e,t){for(var r=[],n=D.isRestParameter(e),i=!1,a=0,o=_;a<o.length;a++){var s=o[a];if(s.argumentTypes.length<=t)i=D.isInJSFile(l),r.push(g.getUndefinedType());else if(n)for(var c=t;c<s.argumentTypes.length;c++)r.push(g.getBaseTypeOfLiteralType(s.argumentTypes[c]));else r.push(g.getBaseTypeOfLiteralType(s.argumentTypes[t]))}D.isIdentifier(e.name)&&(u=f(x(e.name,d,p)),r.push.apply(r,n?D.mapDefined(u,g.getElementTypeOfArrayType):u));var u=m(r);return{type:n?g.createArrayType(u):u,isOptional:i&&!n,declaration:e}})},thisParameter:function(){for(var e=c(),t=0,r=i;t<r.length;t++){var n=r[t];p.throwIfCancellationRequested(),u(n,e)}return m(e.candidateThisTypes||D.emptyArray)}};function c(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function f(e){for(var t=c(),r=0,n=e;r<n.length;r++){var i=n[r];p.throwIfCancellationRequested(),u(i,t)}return _(t)}function u(e,t){for(;D.isRightSideOfQualifiedNameOrPropertyAccess(e);)e=e.parent;switch(e.parent.kind){case 226:s=e,v(t,D.isCallExpression(s)?g.getVoidType():g.getAnyType());break;case 208:t.isNumber=!0;break;case 207:!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 209:!function(e,t,r){switch(t.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 64:case 66:case 65:case 67:case 68:case 72:case 73:case 74:case 69:case 71:case 70:case 40:case 29:case 32:case 31:case 33:var n=g.getTypeAtLocation(t.left===e?t.right:t.left);1056&n.flags?v(r,n):r.isNumber=!0;break;case 63:case 39:n=g.getTypeAtLocation(t.left===e?t.right:t.left);1056&n.flags?v(r,n):296&n.flags?r.isNumber=!0:132&n.flags?r.isString=!0:1&n.flags||(r.isNumberOrString=!0);break;case 62:case 34:case 36:case 37:case 35:v(r,g.getTypeAtLocation(t.left===e?t.right:t.left));break;case 97:e===t.left&&(r.isString=!0);break;case 56:case 60:e!==t.left||242!==e.parent.parent.kind&&!D.isAssignmentExpression(e.parent.parent,!0)||v(r,g.getTypeAtLocation(t.right))}}(e,e.parent,t);break;case 277:case 278:o=e.parent,v(t,g.getTypeAtLocation(o.parent.parent.expression));break;case 196:case 197:e.parent.expression===e?function(e,t){var r={argumentTypes:[],return_:c()};if(e.arguments)for(var n=0,i=e.arguments;n<i.length;n++){var a=i[n];r.argumentTypes.push(g.getTypeAtLocation(a))}u(e,r.return_),(196===e.kind?t.calls||(t.calls=[]):t.constructs||(t.constructs=[])).push(r)}(e.parent,t):l(e,t);break;case 194:!function(e,t){var r=D.escapeLeadingUnderscores(e.name.text);t.properties||(t.properties=D.createUnderscoreEscapedMap());var n=t.properties.get(r)||c();u(e,n),t.properties.set(r,n)}(e.parent,t);break;case 195:i=e.parent,s=t,!void((a=e)===i.argumentExpression?s.isNumberOrString=!0:(o=g.getTypeAtLocation(i.argumentExpression),a=c(),u(i,a),296&o.flags?s.numberIndex=a:s.stringIndex=a));break;case 281:case 282:n=e.parent,a=t,n=(D.isVariableDeclaration(n.parent.parent)?n.parent:n).parent,!void b(a,g.getTypeAtLocation(n));break;case 159:r=e.parent,b(t,g.getTypeAtLocation(r.parent));break;case 242:n=e.parent,r=n.name,n=n.initializer;if(e===r){n&&v(t,g.getTypeAtLocation(n));break}default:return l(e,t),0}var r,n,i,a,o,s}function l(e,t){D.isExpressionNode(e)&&v(t,g.getContextualType(e))}function s(e){return m(_(e))}function m(e){if(!e.length)return g.getAnyType();var t=g.getUnionType([g.getStringType(),g.getNumberType()]),r=function(e,t){for(var r=[],n=0,i=e;n<i.length;n++)for(var a=i[n],o=0,s=t;o<s.length;o++){var c=s[o],u=c.high,c=c.low;u(a)&&(D.Debug.assert(!c(a),"Priority can't have both low and high"),r.push(c))}return e.filter(function(t){return r.every(function(e){return!e(t)})})}(e,[{high:function(e){return e===g.getStringType()||e===g.getNumberType()},low:function(e){return e===t}},{high:function(e){return!(16385&e.flags)},low:function(e){return!!(16385&e.flags)}},{high:function(e){return!(114689&e.flags||16&D.getObjectFlags(e))},low:function(e){return!!(16&D.getObjectFlags(e))}}]),e=r.filter(function(e){return 16&D.getObjectFlags(e)});return e.length&&(r=r.filter(function(e){return!(16&D.getObjectFlags(e))})).push(function(n){if(1===n.length)return n[0];for(var e=[],t=[],r=[],i=[],a=!1,o=!1,s=D.createMultiMap(),c=0,u=n;c<u.length;c++){for(var l=u[c],_=0,d=g.getPropertiesOfType(l);_<d.length;_++){var p=d[_];s.add(p.name,g.getTypeOfSymbolAtLocation(p,p.valueDeclaration))}e.push.apply(e,g.getSignaturesOfType(l,0)),t.push.apply(t,g.getSignaturesOfType(l,1)),l.stringIndexInfo&&(r.push(l.stringIndexInfo.type),a=a||l.stringIndexInfo.isReadonly),l.numberIndexInfo&&(i.push(l.numberIndexInfo.type),o=o||l.numberIndexInfo.isReadonly)}var f=D.mapEntries(s,function(e,t){var r=t.length<n.length?16777216:0,r=g.createSymbol(4|r,e);return r.type=g.getUnionType(t),[e,r]});return g.createAnonymousType(n[0].symbol,f,e,t,r.length?g.createIndexInfo(g.getUnionType(r),a):void 0,i.length?g.createIndexInfo(g.getUnionType(i),o):void 0)}(e)),g.getWidenedType(g.getUnionType(r.map(g.getBaseTypeOfLiteralType),2))}function _(e){var t,r,n=[];return e.isNumber&&n.push(g.getNumberType()),e.isString&&n.push(g.getStringType()),e.isNumberOrString&&n.push(g.getUnionType([g.getStringType(),g.getNumberType()])),e.numberIndex&&n.push(g.createArrayType(s(e.numberIndex))),(null!==(t=e.properties)&&void 0!==t&&t.size||null!==(r=e.calls)&&void 0!==r&&r.length||null!==(r=e.constructs)&&void 0!==r&&r.length||e.stringIndex)&&n.push(function(e){var n=D.createUnderscoreEscapedMap();e.properties&&e.properties.forEach(function(e,t){var r=g.createSymbol(4,t);r.type=s(e),n.set(t,r)});var t=e.calls?[h(e.calls)]:[],r=e.constructs?[h(e.constructs)]:[],e=e.stringIndex&&g.createIndexInfo(s(e.stringIndex),!1);return g.createAnonymousType(void 0,n,t,r,e,void 0)}(e)),n.push.apply(n,(e.candidateTypes||[]).map(function(e){return g.getBaseTypeOfLiteralType(e)})),n.push.apply(n,function(t){if(!t.properties||!t.properties.size)return[];var e=o.filter(function(e){return n=e,!!(e=t).properties&&!D.forEachEntry(e.properties,function(e,t){var r=g.getTypeOfPropertyOfType(n,t);return!r||(e.calls?!g.getSignaturesOfType(r,0).length||!g.isTypeAssignableTo(r,(t=e.calls,g.createAnonymousType(void 0,D.createSymbolTable(),[h(t)],D.emptyArray,void 0,void 0))):!g.isTypeAssignableTo(r,s(e)))});var n});if(0<e.length&&e.length<3)return e.map(function(e){return function(e,t){if(!(4&D.getObjectFlags(e)&&t.properties))return e;var r=e.target,n=D.singleOrUndefined(r.typeParameters);if(!n)return e;var i=[];return t.properties.forEach(function(e,t){t=g.getTypeOfPropertyOfType(r,t);D.Debug.assert(!!t,"generic should have all the properties of its reference."),i.push.apply(i,y(t,s(e),n))}),a[e.symbol.escapedName](m(i))}(e,t)});return[]}(e)),n}function y(e,t,r){if(e===r)return[t];if(3145728&e.flags)return D.flatMap(e.types,function(e){return y(e,t,r)});if(4&D.getObjectFlags(e)&&4&D.getObjectFlags(t)){var n=g.getTypeArguments(e),i=g.getTypeArguments(t),a=[];if(n&&i)for(var o=0;o<n.length;o++)i[o]&&a.push.apply(a,y(n[o],i[o],r));return a}var s=g.getSignaturesOfType(e,0),e=g.getSignaturesOfType(t,0);return 1===s.length&&1===e.length?function(e,t,r){for(var n=[],i=0;i<e.parameters.length;i++){var a=e.parameters[i],o=t.parameters[i],s=e.declaration&&D.isRestParameter(e.declaration.parameters[i]);if(!o)break;a=g.getTypeOfSymbolAtLocation(a,a.valueDeclaration),s=s&&g.getElementTypeOfArrayType(a);s&&(a=s);o=o.type||g.getTypeOfSymbolAtLocation(o,o.valueDeclaration);n.push.apply(n,y(a,o,r))}var c=g.getReturnTypeOfSignature(e),u=g.getReturnTypeOfSignature(t);return n.push.apply(n,y(c,u,r)),n}(s[0],e[0],r):[]}function h(r){for(var n=[],e=Math.max.apply(Math,r.map(function(e){return e.argumentTypes.length})),t=0;t<e;t++)!function(t){var e=g.createSymbol(1,D.escapeLeadingUnderscores("arg"+t));e.type=m(r.map(function(e){return e.argumentTypes[t]||g.getUndefinedType()})),r.some(function(e){return void 0===e.argumentTypes[t]})&&(e.flags|=16777216),n.push(e)}(t);var i=s(function r(e){for(var n=D.createUnderscoreEscapedMap(),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=D.createUnderscoreEscapedMap();return n.forEach(function(e,t){o.set(t,r(e))}),{isNumber:e.some(function(e){return e.isNumber}),isString:e.some(function(e){return e.isString}),isNumberOrString:e.some(function(e){return e.isNumberOrString}),candidateTypes:D.flatMap(e,function(e){return e.candidateTypes}),properties:o,calls:D.flatMap(e,function(e){return e.calls}),constructs:D.flatMap(e,function(e){return e.constructs}),numberIndex:D.forEach(e,function(e){return e.numberIndex}),stringIndex:D.forEach(e,function(e){return e.stringIndex}),candidateThisTypes:D.flatMap(e,function(e){return e.candidateThisTypes}),inferredTypes:void 0}}(r.map(function(e){return e.return_})));return g.createSignature(void 0,void 0,void 0,n,i,void 0,e,0)}function v(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function b(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}S=D.codefix||(D.codefix={}),l="inferFromUsage",t=[D.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,D.Diagnostics.Variable_0_implicitly_has_an_1_type.code,D.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,D.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,D.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,D.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,D.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,D.Diagnostics.Member_0_implicitly_has_an_1_type.code,D.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,D.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,D.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,D.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,D.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,D.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,D.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,D.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,D.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],S.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t,r=e.sourceFile,n=e.program,i=e.span.start,a=e.errorCode,o=e.cancellationToken,s=e.host,c=e.preferences,u=D.getTokenAtPosition(r,i),i=D.textChanges.ChangeTracker.with(e,function(e){t=_(e,r,u,a,n,o,D.returnTrue,s,c)}),e=t&&D.getNameOfDeclaration(t);return e&&0!==i.length?[S.createCodeFixAction(l,i,[function(e,t){switch(e){case D.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case D.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return D.isSetAccessorDeclaration(D.getContainingFunction(t))?D.Diagnostics.Infer_type_of_0_from_usage:D.Diagnostics.Infer_parameter_types_from_usage;case D.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case D.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return D.Diagnostics.Infer_parameter_types_from_usage;case D.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return D.Diagnostics.Infer_this_type_of_0_from_usage;default:return D.Diagnostics.Infer_type_of_0_from_usage}}(a,u),e.getText(r)],l,D.Diagnostics.Infer_all_types_from_usage)]:void 0},fixIds:[l],getAllCodeActions:function(e){var r=e.sourceFile,n=e.program,i=e.cancellationToken,a=e.host,o=e.preferences,s=D.nodeSeenTracker();return S.codeFixAll(e,t,function(e,t){_(e,r,D.getTokenAtPosition(t.file,t.start),t.code,n,i,s,a,o)})}}),S.addJSDocTags=N}(ts=ts||{}),function(o){var s,c,u,t;function l(e,t,r,n){var i=o.getLineAndCharacterOfPosition(t,r).line;n&&!o.addToSeen(n,i)||e.insertCommentBeforeLine(t,i,r," @ts-ignore")}s=o.codefix||(o.codefix={}),u=c="disableJsDiagnostics",t=o.mapDefined(Object.keys(o.Diagnostics),function(e){e=o.Diagnostics[e];return e.category===o.DiagnosticCategory.Error?e.code:void 0}),s.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=e.sourceFile,r=e.program,n=e.span,i=e.host,a=e.formatContext;if(o.isInJSFile(t)&&o.isCheckJsEnabledForFile(t,r.getCompilerOptions())){a=t.checkJsDirective?"":o.getNewLineOrDefaultFromHost(i,a.options),a=[s.createCodeFixActionWithoutFixAll(c,[s.createFileTextChanges(t.fileName,[o.createTextChange(t.checkJsDirective?o.createTextSpanFromBounds(t.checkJsDirective.pos,t.checkJsDirective.end):o.createTextSpan(0,0),"// @ts-nocheck"+a)])],o.Diagnostics.Disable_checking_for_this_file)];return o.textChanges.isValidLocationToAddComment(t,n.start)&&a.unshift(s.createCodeFixAction(c,o.textChanges.ChangeTracker.with(e,function(e){return l(e,t,n.start)}),o.Diagnostics.Ignore_this_error_message,u,o.Diagnostics.Add_ts_ignore_to_all_error_messages)),a}},fixIds:[u],getAllCodeActions:function(e){var r=o.createMap();return s.codeFixAll(e,t,function(e,t){o.textChanges.isValidLocationToAddComment(t.file,t.start)&&l(e,t.file,t.start,r)})}})}(ts=ts||{}),function(k){var e;function E(e){return{trackSymbol:k.noop,moduleResolverHost:k.getModuleSpecifierResolverHost(e.program,e.host)}}function m(e,t,r,n,i,a,o){o=e.typeToTypeNode(r,n,a,o);if(o&&k.isImportTypeNode(o)){i=F(o,r,i);if(i)return P(t,i.symbols),i.typeReference}return o}function N(e,t,r,n,i){for(var a=[],o=0;o<e;o++){var s=k.createParameter(void 0,void 0,void 0,t&&t[o]||"arg"+o,void 0!==n&&n<=o?k.createToken(57):void 0,i?void 0:r&&r[o]||k.createKeywordTypeNode(125),void 0);a.push(s)}return a}function A(e){return k.createBlock([k.createThrow(k.createNew(k.createIdentifier("Error"),void 0,[k.createLiteral("Method not implemented.","single"===e.quotePreference)]))],!0)}function i(e,t,r){var n=k.getTsConfigObjectLiteralExpression(t);if(n){var i=d(n,"compilerOptions");if(void 0!==i){var a=i.initializer;if(k.isObjectLiteralExpression(a))for(var o=0,s=r;o<s.length;o++){var c=s[o],u=c[0],l=c[1],c=d(a,u);void 0===c?e.insertNodeAtObjectStart(t,a,_(u,l)):e.replaceNode(t,c.initializer,l)}}else e.insertNodeAtObjectStart(t,n,_("compilerOptions",k.createObjectLiteral(r.map(function(e){return _(e[0],e[1])}),!0)))}}function _(e,t){return k.createPropertyAssignment(k.createStringLiteral(e),t)}function d(e,t){return k.find(e.properties,function(e){return k.isPropertyAssignment(e)&&!!e.name&&k.isStringLiteral(e.name)&&e.name.text===t})}function F(e,r,n){if(e&&k.isLiteralImportTypeNode(e)&&e.qualifier&&(!r||r.symbol)){var t=k.getFirstIdentifier(e.qualifier),i=k.getNameForExportedSymbol(t.symbol,n),i=i!==t.text?function e(t,r){if(75===t.kind)return r;return k.createQualifiedName(e(t.left,r),t.right)}(e.qualifier,k.createIdentifier(i)):e.qualifier,a=[t.symbol],o=[];return e.typeArguments&&e.typeArguments.forEach(function(e){var t=F(e,r,n);t?(a.push.apply(a,t.symbols),o.push(t.typeReference)):o.push(e)}),{symbols:a,typeReference:k.createTypeReferenceNode(i,o)}}}function P(t,e){e.forEach(function(e){return t.addImportFromExportedSymbol(e,!0)})}(e=k.codefix||(k.codefix={})).createMissingMemberNodes=function(e,t,r,n,i,a){for(var o=e.symbol.members,s=0,c=t;s<c.length;s++){var u=c[s];o.has(u.escapedName)||function(e,i,a,t,o,s){var r=e.getDeclarations();if(r&&r.length){var n=a.program.getTypeChecker(),c=k.getEmitScriptTarget(a.program.getCompilerOptions()),u=r[0],l=k.getSynthesizedDeepClone(k.getNameOfDeclaration(u),!1),_=function(e){{if(4&e)return k.createToken(119);if(16&e)return k.createToken(118)}return}(k.getModifierFlags(u)),d=_?k.createNodeArray([_]):void 0,p=n.getWidenedType(n.getTypeOfSymbolAtLocation(e,i)),f=!!(16777216&e.flags),g=!!(8388608&i.flags);switch(u.kind){case 158:case 159:var m="single"===t.quotePreference?268435456:void 0,m=n.typeToTypeNode(p,i,m,E(a));o&&(y=F(m,p,c))&&(m=y.typeReference,P(o,y.symbols)),s(k.createProperty(void 0,d,l,f?k.createToken(57):void 0,m,void 0));break;case 163:case 164:var y,h=n.typeToTypeNode(p,i,void 0,E(a)),v=k.getAllAccessorDeclarations(r,u),v=v.secondAccessor?[v.firstAccessor,v.secondAccessor]:[v.firstAccessor];o&&(y=F(h,p,c))&&(h=y.typeReference,P(o,y.symbols));for(var b=0,x=v;b<x.length;b++){var D=x[b];k.isGetAccessorDeclaration(D)?s(k.createGetAccessor(void 0,d,l,k.emptyArray,h,g?void 0:A(t))):(k.Debug.assertNode(D,k.isSetAccessorDeclaration,"The counterpart to a getter should be a setter"),D=k.getSetAccessorValueParameter(D),D=D&&k.isIdentifier(D.name)?k.idText(D.name):void 0,s(k.createSetAccessor(void 0,d,l,N(1,[D],[h],1,!1),g?void 0:A(t))))}break;case 160:case 161:v=n.getSignaturesOfType(p,0);if(!k.some(v))break;if(1===r.length){k.Debug.assert(1===v.length,"One declaration implies one signature"),T(v[0],d,l,g?void 0:A(t));break}for(var S=0,C=v;S<C.length;S++)T(C[S],k.getSynthesizedDeepClones(d,!1),k.getSynthesizedDeepClone(l,!1));g||(r.length>v.length?T(n.getSignatureFromDeclaration(r[r.length-1]),d,l,A(t)):(k.Debug.assert(r.length===v.length,"Declarations and signatures should match count"),s(function(e,t,r,n,i){for(var a=e[0],o=e[0].minArgumentCount,s=!1,c=0,u=e;c<u.length;c++){var l=u[c];o=Math.min(l.minArgumentCount,o),k.signatureHasRestParameter(l)&&(s=!0),l.parameters.length>=a.parameters.length&&(!k.signatureHasRestParameter(l)||k.signatureHasRestParameter(a))&&(a=l)}var _=a.parameters.length-(k.signatureHasRestParameter(a)?1:0),d=a.parameters.map(function(e){return e.name}),p=N(_,d,void 0,o,!1);s&&(e=k.createArrayTypeNode(k.createKeywordTypeNode(125)),e=k.createParameter(void 0,void 0,k.createToken(25),d[_]||"rest",o<=_?k.createToken(57):void 0,e,void 0),p.push(e));return function(e,t,r,n,i,a,o){return k.createMethod(void 0,e,void 0,t,r?k.createToken(57):void 0,n,i,a,A(o))}(n,t,r,void 0,p,void 0,i)}(v,l,f,d,t))))}}function T(e,t,r,n){n=function(e,n,t,r,i,a,o,s){var c=e.program,u=c.getTypeChecker(),l=k.getEmitScriptTarget(c.getCompilerOptions()),t=u.signatureToSignatureDeclaration(n,161,t,257,E(e));if(!t)return;s&&(t.typeParameters&&k.forEach(t.typeParameters,function(e,t){var r,t=n.typeParameters[t];e.constraint&&(r=F(e.constraint,t.constraint,l))&&(e.constraint=r.typeReference,P(s,r.symbols)),e.default&&(r=F(e.default,t.default,l))&&(e.default=r.typeReference,P(s,r.symbols))}),k.forEach(t.parameters,function(e,t){t=n.parameters[t],t=F(e.type,u.getTypeAtLocation(t.valueDeclaration),l);t&&(e.type=t.typeReference,P(s,t.symbols))}),!t.type||(e=F(t.type,n.resolvedReturnType,l))&&(t.type=e.typeReference,P(s,e.symbols)));return t.decorators=void 0,t.modifiers=r,t.name=i,t.questionToken=a?k.createToken(57):void 0,t.body=o,t}(a,e,i,t,r,f,n,o);n&&s(n)}}(u,e,r,n,i,a)}},e.getNoopSymbolTrackerWithResolver=E,e.createMethodFromCallExpression=function(e,t,r,n,i,a,o){var s=!k.isInterfaceDeclaration(a),c=t.typeArguments,u=t.arguments,l=t.parent,_=k.getEmitScriptTarget(e.program.getCompilerOptions()),d=e.program.getTypeChecker(),p=E(e),f=k.map(u,function(e){return m(d,o,d.getBaseTypeOfLiteralType(d.getTypeAtLocation(e)),a,_,void 0,p)}),g=k.map(u,function(e){return k.isIdentifier(e)?e.text:k.isPropertyAccessExpression(e)&&k.isIdentifier(e.name)?e.name.text:void 0}),t=d.getContextualType(t),t=n||!t?void 0:d.typeToTypeNode(t,a,void 0,p);return k.createMethod(void 0,i?[k.createToken(120)]:void 0,k.isYieldExpression(l)?k.createToken(41):void 0,r,void 0,n?void 0:k.map(c,function(e,t){return k.createTypeParameterDeclaration(84+c.length-1<=90?String.fromCharCode(84+t):"T"+t)}),N(u.length,g,f,void 0,n),t,s?A(e.preferences):void 0)},e.typeToAutoImportableTypeNode=m,e.setJsonCompilerOptionValues=i,e.setJsonCompilerOptionValue=function(e,t,r,n){i(e,t,[[r,n]])},e.createJsonPropertyAssignment=_,e.findJsonProperty=d,e.tryGetAutoImportableReferenceFromImportTypeNode=F,e.importSymbols=P}(ts=ts||{}),function(l){var _,d;function p(e,t,r,n){e=l.textChanges.ChangeTracker.with(e,function(e){return e.replaceNode(t,r,n)});return _.createCodeFixActionWithoutFixAll(d,e,[l.Diagnostics.Replace_import_with_0,e[0].textChanges[0].newText])}function n(e,t){var r=e.program.getTypeChecker().getTypeAtLocation(t);if(!r.symbol||!r.symbol.originatingImport)return[];var n,i,a,o,s,c=[],u=r.symbol.originatingImport;return l.isImportCall(u)||l.addRange(c,(n=e,i=u,a=l.getSourceFileOfNode(i),o=l.getNamespaceDeclarationNode(i),r=n.program.getCompilerOptions(),(u=[]).push(p(n,a,i,l.makeImport(o.name,void 0,i.moduleSpecifier,l.getQuotePreference(a,n.preferences)))),l.getEmitModuleKind(r)===l.ModuleKind.CommonJS&&u.push(p(n,a,i,l.createImportEqualsDeclaration(void 0,void 0,o.name,l.createExternalModuleReference(i.moduleSpecifier)))),u)),!l.isExpression(t)||l.isNamedDeclaration(t.parent)&&t.parent.name===t||(s=e.sourceFile,e=l.textChanges.ChangeTracker.with(e,function(e){return e.replaceNode(s,t,l.createPropertyAccess(t,"default"),{})}),c.push(_.createCodeFixActionWithoutFixAll(d,e,l.Diagnostics.Use_synthetic_default_member))),c}_=l.codefix||(l.codefix={}),d="invalidImportSyntax",_.registerCodeFix({errorCodes:[l.Diagnostics.This_expression_is_not_callable.code,l.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:function(e){var t=e.sourceFile,r=l.Diagnostics.This_expression_is_not_callable.code===e.errorCode?196:197,t=l.findAncestor(l.getTokenAtPosition(t,e.span.start),function(e){return e.kind===r});if(!t)return[];t=t.expression;return n(e,t)}}),_.registerCodeFix({errorCodes:[l.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,l.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,l.Diagnostics.Type_0_is_not_assignable_to_type_1.code,l.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,l.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,l.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2.code,l.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2.code,l.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1.code,l.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,l.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,l.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,l.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(t){var e=t.sourceFile,e=l.findAncestor(l.getTokenAtPosition(e,t.span.start),function(e){return e.getStart()===t.span.start&&e.getEnd()===t.span.start+t.span.length});return e?n(t,e):[]}})}(ts=ts||{}),function(s){var c,u,l,_,d,e;function p(e,t){t=s.getTokenAtPosition(e,t);return s.isIdentifier(t)?s.cast(t.parent,s.isPropertyDeclaration):void 0}function f(e,t,r){var n=s.updateProperty(r,r.decorators,r.modifiers,r.name,s.createToken(53),r.type,r.initializer);e.replaceNode(t,r,n)}function g(e,t,r){var n=s.createKeywordTypeNode(146),r=r.type,n=s.isUnionTypeNode(r)?r.types.concat(n):[r,n];e.replaceNode(t,r,s.createUnionTypeNode(n))}function m(e,t,r,n){n=s.updateProperty(r,r.decorators,r.modifiers,r.name,r.questionToken,r.type,n);e.replaceNode(t,r,n)}function y(e,t){return function t(r,e){{if(512&e.flags)return e===r.getFalseType()||e===r.getFalseType(!0)?s.createFalse():s.createTrue();if(e.isLiteral())return s.createLiteral(e.value);if(e.isUnion())return s.firstDefined(e.types,function(e){return t(r,e)});if(e.isClass()){var n=s.getClassLikeDeclarationOfSymbol(e.symbol);if(!n||s.hasModifier(n,128))return;var n=s.getFirstConstructorWithBody(n);return n&&n.parameters.length?void 0:s.createNew(s.createIdentifier(e.symbol.name),void 0,void 0)}if(r.isArrayLikeType(e))return s.createArrayLiteral()}return}(e,e.getTypeFromTypeNode(t.type))}c=s.codefix||(s.codefix={}),u="strictClassInitialization",l="addMissingPropertyDefiniteAssignmentAssertions",_="addMissingPropertyUndefinedType",d="addMissingPropertyInitializer",e=[s.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],c.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=p(e.sourceFile,e.span.start);if(t){var r,n,i,a,o,o=[(i=e,a=t,o=s.textChanges.ChangeTracker.with(i,function(e){return g(e,i.sourceFile,a)}),c.createCodeFixAction(u,o,[s.Diagnostics.Add_undefined_type_to_property_0,a.name.getText()],_,s.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)),(r=e,n=t,o=s.textChanges.ChangeTracker.with(r,function(e){return f(e,r.sourceFile,n)}),c.createCodeFixAction(u,o,[s.Diagnostics.Add_definite_assignment_assertion_to_property_0,n.getText()],l,s.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties))];return s.append(o,function(t,r){var n=y(t.program.getTypeChecker(),r);if(!n)return;var e=s.textChanges.ChangeTracker.with(t,function(e){return m(e,t.sourceFile,r,n)});return c.createCodeFixAction(u,e,[s.Diagnostics.Add_initializer_to_property_0,r.name.getText()],d,s.Diagnostics.Add_initializers_to_all_uninitialized_properties)}(e,t)),o}},fixIds:[l,_,d],getAllCodeActions:function(i){return c.codeFixAll(i,e,function(e,t){var r=p(t.file,t.start);if(r)switch(i.fixId){case l:f(e,t.file,r);break;case _:g(e,t.file,r);break;case d:var n=y(i.program.getTypeChecker(),r);if(!n)return;m(e,t.file,r,n);break;default:s.Debug.fail(JSON.stringify(i.fixId))}})}})}(ts=ts||{}),function(o){var n,r,e;function i(e,t,r,n){var i=function(e,t){e=o.getTokenAtPosition(e,t).parent;if(!o.isRequireCall(e,!0))throw o.Debug.failBadSyntaxKind(e);t=o.cast(e.parent,o.isVariableDeclaration);return{statement:o.cast(t.parent.parent,o.isVariableStatement),name:o.cast(t.name,o.isIdentifier),required:e.arguments[0]}}(t,r),a=i.statement,r=i.name,i=i.required;e.replaceNode(t,a,o.getAllowSyntheticDefaultImports(n.getCompilerOptions())?o.createImportDeclaration(void 0,void 0,o.createImportClause(r,void 0),i):o.createImportEqualsDeclaration(void 0,void 0,r,o.createExternalModuleReference(i)))}n=o.codefix||(o.codefix={}),r="requireInTs",e=[o.Diagnostics.require_call_may_be_converted_to_an_import.code],n.registerCodeFix({errorCodes:e,getCodeActions:function(t){var e=o.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,t.span.start,t.program)});return[n.createCodeFixAction(r,e,o.Diagnostics.Convert_require_to_import,r,o.Diagnostics.Convert_all_require_to_import)]},fixIds:[r],getAllCodeActions:function(r){return n.codeFixAll(r,e,function(e,t){return i(e,t.file,t.start,r.program)})}})}(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.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(96===t.kind,"This token should be an ImportKeyword"),i.Debug.assert(188===t.parent.kind,"Token parent should be an ImportType"),t.parent}function c(e,t,r){var n=i.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(o){var i,a,t;function s(e,t){t=o.getTokenAtPosition(e,t),t=o.cast(t.parent.parent,o.isIndexSignatureDeclaration);if(!o.isClassDeclaration(t.parent))return{indexSignature:t,container:o.isInterfaceDeclaration(t.parent)?t.parent:o.cast(t.parent.parent,o.isTypeAliasDeclaration)}}function c(e,t,r){var n=r.indexSignature,i=r.container,a=(o.isInterfaceDeclaration(i)?i:i.type).members.filter(function(e){return!o.isIndexSignatureDeclaration(e)}),r=o.first(n.parameters),r=o.createTypeParameterDeclaration(o.cast(r.name,o.isIdentifier),r.type),n=o.createMappedTypeNode(o.hasReadonlyModifier(n)?o.createModifier(138):void 0,r,n.questionToken,n.type),a=o.createIntersectionTypeNode(__spreadArrays(o.getAllSuperTypeNodes(i),[n],a.length?[o.createTypeLiteralNode(a)]:o.emptyArray));e.replaceNode(t,i,(i=i,a=a,o.createTypeAliasDeclaration(i.decorators,i.modifiers,i.name,i.typeParameters,a)))}i=o.codefix||(o.codefix={}),a="fixConvertToMappedObjectType",t=[o.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead.code],i.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=e.sourceFile,r=e.span,n=s(t,r.start);if(n){r=o.textChanges.ChangeTracker.with(e,function(e){return c(e,t,n)}),e=o.idText(n.container.name);return[i.createCodeFixAction(a,r,[o.Diagnostics.Convert_0_to_mapped_object_type,e],a,[o.Diagnostics.Convert_0_to_mapped_object_type,e])]}},fixIds:[a],getAllCodeActions:function(e){return i.codeFixAll(e,t,function(e,t){var r=s(t.file,t.start);r&&c(e,t.file,r)})}})}(ts=ts||{}),function(a){var r,n,t;function i(e,t,r){var n=a.tryCast(a.getTokenAtPosition(t,r.start),function(e){return 127===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))&&99!==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.updateImportDeclaration(t,t.decorators,t.modifiers,i.updateImportClause(n,n.name,void 0,n.isTypeOnly),t.moduleSpecifier)),e.insertNodeAfter(r.sourceFile,t,i.createImportDeclaration(void 0,void 0,i.updateImportClause(n,void 0,n.namedBindings,n.isTypeOnly),t.moduleSpecifier)))}n=i.codefix||(i.codefix={}),e=[i.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],r="splitTypeOnlyImport",n.registerCodeFix({errorCodes:e,fixIds:[r],getCodeActions:function(t){var e=i.textChanges.ChangeTracker.with(t,function(e){return o(e,a(t.sourceFile,t.span),t)});if(e.length)return[n.createCodeFixAction(r,e,i.Diagnostics.Split_into_two_separate_import_declarations,r,i.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(r){return n.codeFixAll(r,e,function(e,t){o(e,a(r.sourceFile,t),r)})}})}(ts=ts||{}),function(a){var o,s,e;o=a.codefix||(a.codefix={}),s="fixConvertConstToLet",e=[a.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code],o.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.sourceFile,r=e.span,n=e.program,i=function(e,t,r){t=a.getTokenAtPosition(e,t),t=r.getTypeChecker().getSymbolAtLocation(t);if(t)return t.valueDeclaration.parent.parent}(t,r.start,n),e=a.textChanges.ChangeTracker.with(e,function(e){return function(e,t,r){if(!r)return;r=r.getStart();e.replaceRangeWithText(t,{pos:r,end:r+5},"let")}(e,t,i)});return[o.createCodeFixAction(s,e,a.Diagnostics.Convert_const_to_let,s,a.Diagnostics.Convert_const_to_let)]},fixIds:[s]})}(ts=ts||{}),function(i){var n,a,e;function o(e,t){t=i.getTokenAtPosition(e,t);return 26===t.kind&&t.parent&&(i.isObjectLiteralExpression(t.parent)||i.isArrayLiteralExpression(t.parent))?{node:t}:void 0}function s(e,t,r){var n=r.node,r=i.createNode(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(u){var e,r,n,i;function o(e){var t=e.file,r=u.getRefactorContextSpan(e),e=u.getTokenAtPosition(t,r.start),n=u.getParentNodeInSpan(e,t,r);if(n&&(u.isSourceFile(n.parent)||u.isModuleBlock(n.parent)&&u.isAmbientModule(n.parent.parent))){var i=(u.isSourceFile(n.parent)?n:n.parent).parent.symbol,r=u.getModifierFlags(n),a=!!(512&r);if(1&r&&(a||!i.exports.has("default")))switch(n.kind){case 244:case 245:case 246:case 248:case 247:case 249:var o=n;return o.name&&u.isIdentifier(o.name)?{exportNode:o,exportName:o.name,wasDefault:a,exportingModuleSymbol:i}:void 0;case 225:var s=n;if(!(2&s.declarationList.flags)||1!==s.declarationList.declarations.length)return;o=u.first(s.declarationList.declarations);return o.initializer?(u.Debug.assert(!a,"Can't have a default flag here"),u.isIdentifier(o.name)?{exportNode:s,exportName:o.name,wasDefault:a,exportingModuleSymbol:i}:void 0):void 0;default:return}}}function l(e,t){return u.createImportSpecifier(e===t?void 0:u.createIdentifier(e),u.createIdentifier(t))}e=u.refactor||(u.refactor={}),r="Convert export",n="Convert default export to named export",i="Convert named export to default export",e.registerRefactor(r,{getAvailableActions:function(e){var t=o(e);if(!t)return u.emptyArray;e=(t.wasDefault?u.Diagnostics.Convert_default_export_to_named_export:u.Diagnostics.Convert_named_export_to_default_export).message,t=t.wasDefault?n:i;return[{name:r,description:e,actions:[{name:t,description:e}]}]},getEditsForAction:function(a,e){return u.Debug.assert(e===n||e===i,"Unexpected action name"),{edits:u.textChanges.ChangeTracker.with(a,function(e){return t=a.file,r=a.program,n=u.Debug.checkDefined(o(a),"context must have info"),i=e,e=a.cancellationToken,function(e,t,r,n){var i=t.wasDefault,a=t.exportNode,o=t.exportName;if(i)r.delete(e,u.Debug.checkDefined(u.findModifier(a,84),"Should find a default keyword in modifier list"));else{var s=u.Debug.checkDefined(u.findModifier(a,89),"Should find an export keyword in modifier list");switch(a.kind){case 244:case 245:case 246:r.insertNodeAfter(e,s,u.createToken(84));break;case 225:if(!u.FindAllReferences.Core.isSymbolReferencedInFile(o,n,e)){r.replaceNode(e,a,u.createExportDefault(u.Debug.checkDefined(u.first(a.declarationList.declarations).initializer,"Initializer was previously known to be present")));break}case 248:case 247:case 249:r.deleteModifier(e,s),r.insertNodeAfter(e,a,u.createExportDefault(u.createIdentifier(o.text)));break;default:u.Debug.assertNever(a,"Unexpected exportNode kind "+a.kind)}}}(t,n,i,r.getTypeChecker()),void function(e,t,r,n){var i=t.wasDefault,a=t.exportName,o=t.exportingModuleSymbol,s=e.getTypeChecker(),t=u.Debug.checkDefined(s.getSymbolAtLocation(a),"Export name should resolve to a symbol");u.FindAllReferences.Core.eachExportReference(e.getSourceFiles(),s,n,t,o,a.text,i,function(e){var t=e.getSourceFile();i?function(e,t,r,n){var i=t.parent;switch(i.kind){case 194:r.replaceNode(e,t,u.createIdentifier(n));break;case 258:case 263:var a=i;r.replaceNode(e,a,l(n,a.name.text));break;case 255:var o=i;u.Debug.assert(o.name===t,"Import clause name should match provided ref");var s,a=l(n,t.text),c=o.namedBindings;c?256===c.kind?(r.deleteRange(e,{pos:t.getStart(e),end:c.getStart(e)}),s=u.isStringLiteral(o.parent.moduleSpecifier)?u.quotePreferenceFromString(o.parent.moduleSpecifier,e):1,s=u.makeImport(void 0,[l(n,t.text)],o.parent.moduleSpecifier,s),r.insertNodeAfter(e,o.parent,s)):(r.delete(e,t),r.insertNodeAtEndOfList(e,c.elements,a)):r.replaceNode(e,t,u.createNamedImports([a]));break;default:u.Debug.failBadSyntaxKind(i)}}(t,e,r,a.text):function(e,t,r){var n=t.parent;switch(n.kind){case 194:r.replaceNode(e,t,u.createIdentifier("default"));break;case 258:var i=u.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 263:r.replaceNode(e,n,function(e,t){return u.createExportSpecifier(e===t?void 0:u.createIdentifier(e),u.createIdentifier(t))}("default",n.name.text));break;default:u.Debug.assertNever(n,"Unexpected parent kind "+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 e,r,n,i;function o(e){var t=e.file,r=m.getRefactorContextSpan(e),e=m.getTokenAtPosition(t,r.start),r=m.getParentNodeInSpan(e,t,r);if(r&&m.isImportDeclaration(r)){r=r.importClause;return r&&r.namedBindings}}function y(e,t,r){return m.createImportDeclaration(void 0,void 0,m.createImportClause(t,r&&r.length?m.createNamedImports(r):void 0),e.moduleSpecifier)}e=m.refactor||(m.refactor={}),r="Convert import",n="Convert namespace import to named imports",i="Convert named imports to namespace import",e.registerRefactor(r,{getAvailableActions:function(e){var t=o(e);if(!t)return m.emptyArray;e=(256===t.kind?m.Diagnostics.Convert_namespace_import_to_named_imports:m.Diagnostics.Convert_named_imports_to_namespace_import).message,t=256===t.kind?n:i;return[{name:r,description:e,actions:[{name:t,description:e}]}]},getEditsForAction:function(a,e){return m.Debug.assert(e===n||e===i,"Unexpected action name"),{edits:m.textChanges.ChangeTracker.with(a,function(e){return t=a.file,r=a.program,n=e,i=m.Debug.checkDefined(o(a),"Context must provide an import to convert"),e=r.getTypeChecker(),void(256===i.kind?function(e,n,t,r,i){var a=!1,o=[],s=m.createMap();m.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,n,e,function(e){var t,r;m.isPropertyAccessExpression(e.parent)?(r=(t=m.cast(e.parent,m.isPropertyAccessExpression)).name.text,n.resolveName(r,e,67108863,!0)&&s.set(r,!0),m.Debug.assert(t.expression===e,"Parent expression should match id"),o.push(t)):a=!0});for(var c=m.createMap(),u=0,l=o;u<l.length;u++){var _=l[u],d=_.name.text,p=c.get(d);void 0===p&&c.set(d,p=s.has(d)?m.getUniqueName(d,e):d),t.replaceNode(e,_,m.createIdentifier(p))}var f=[];c.forEach(function(e,t){f.push(m.createImportSpecifier(e===t?void 0:m.createIdentifier(t),m.createIdentifier(e)))});var g=r.parent.parent;a&&!i?t.insertNodeAfter(e,g,y(g,void 0,f)):t.replaceNode(e,g,y(g,a?m.createIdentifier(r.name.text):void 0,f))}(t,e,n,i,m.getAllowSyntheticDefaultImports(r.getCompilerOptions())):function(i,t,a,e){for(var r=e.parent.parent,n=r.moduleSpecifier,o=n&&m.isStringLiteral(n)?m.codefix.moduleSpecifierToValidIdentifier(n.text,99):"module",s=e.elements.some(function(e){return m.FindAllReferences.Core.eachSymbolReferenceInFile(e.name,t,i,function(e){return!!t.resolveName(o,e,67108863,!0)})||!1})?m.getUniqueName(o,i):o,c=[],u=0,l=e.elements;u<l.length;u++)!function(r){var n=(r.propertyName||r.name).text;m.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,t,i,function(e){var t=m.createPropertyAccess(m.createIdentifier(s),n);m.isShorthandPropertyAssignment(e.parent)?a.replaceNode(i,e.parent,m.createPropertyAssignment(e.text,t)):m.isExportSpecifier(e.parent)&&!e.parent.propertyName?c.some(function(e){return e.name===r.name})||c.push(m.createImportSpecifier(r.propertyName&&m.createIdentifier(r.propertyName.text),m.createIdentifier(r.name.text))):a.replaceNode(i,e,t)})}(l[u]);a.replaceNode(i,e,m.createNamespaceImport(m.createIdentifier(s))),c.length&&a.insertNodeAfter(i,e.parent.parent,y(r,void 0,c))}(t,e,n,i));var t,r,n,i}),renameFilename:void 0,renameLocation:void 0}}})}(ts=ts||{}),function(M){var e,t,L,R,f;function r(e){var t=g(e.file,M.getRefactorContextSpan(e)).targetRange;if(void 0===t)return M.emptyArray;var s,c,e=(e=(t=m(t=t,e=e)).scopes,t=t.readsAndWrites,s=t.functionErrorsPerScope,c=t.constantErrorsPerScope,e.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 162:return"constructor";case 201:case 244:return e.name?"function '"+e.name.text+"'":M.ANONYMOUS;case 202:return"arrow function";case 161:return"method '"+e.name.getText()+"'";case 163:return"'get "+e.name.getText()+"'";case 164:return"'set "+e.name.getText()+"'";default:throw M.Debug.assertNever(e,"Unexpected scope kind "+e.kind)}}(e):M.isClassLike(e)?245===(r=e).kind?r.name?"class '"+r.name.text+"'":"anonymous class declaration":r.name?"class expression '"+r.name.text+"'":"anonymous class expression":250===(o=e).kind?"namespace '"+o.parent.name.getText()+"'":o.externalModuleIndicator?0:1,o=1===o?(n=M.formatStringFromArgs(M.getLocaleSpecificMessage(M.Diagnostics.Extract_to_0_in_1_scope),[i,"global"]),M.formatStringFromArgs(M.getLocaleSpecificMessage(M.Diagnostics.Extract_to_0_in_1_scope),[a,"global"])):0===o?(n=M.formatStringFromArgs(M.getLocaleSpecificMessage(M.Diagnostics.Extract_to_0_in_1_scope),[i,"module"]),M.formatStringFromArgs(M.getLocaleSpecificMessage(M.Diagnostics.Extract_to_0_in_1_scope),[a,"module"])):(n=M.formatStringFromArgs(M.getLocaleSpecificMessage(M.Diagnostics.Extract_to_0_in_1),[i,o]),M.formatStringFromArgs(M.getLocaleSpecificMessage(M.Diagnostics.Extract_to_0_in_1),[a,o]));return 0!==t||M.isClassLike(e)||(o=M.formatStringFromArgs(M.getLocaleSpecificMessage(M.Diagnostics.Extract_to_0_in_enclosing_scope),[a])),{functionExtraction:{description:n,errors:s[t]},constantExtraction:{description:o,errors:c[t]}}}));if(void 0===e)return M.emptyArray;for(var r=[],n=M.createMap(),i=[],a=M.createMap(),o=0,u=0,l=e;u<l.length;u++){var _,d=l[u],p=d.functionExtraction,d=d.constantExtraction;0===p.errors.length&&(_=p.description,n.has(_)||(n.set(_,!0),r.push({description:_,name:"function_scope_"+o}))),0===d.errors.length&&(_=d.description,a.has(_)||(a.set(_,!0),i.push({description:_,name:"constant_scope_"+o}))),o++}e=[];return i.length&&e.push({name:f,description:M.getLocaleSpecificMessage(M.Diagnostics.Extract_constant),actions:i}),r.length&&e.push({name:f,description:M.getLocaleSpecificMessage(M.Diagnostics.Extract_function),actions:r}),e.length?e:M.emptyArray}function n(e,t){var r,n,i,a=g(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=m(c=a,u=e),n=r.scopes,l=r.readsAndWrites,i=l.target,o=l.usagesPerScope,r=l.functionErrorsPerScope,l=l.exposedVariableDeclarations,M.Debug.assert(!r[_].length,"The extraction went missing? How?"),u.cancellationToken.throwIfCancellationRequested(),function(e,n,t,r,i,a){var o,s,c=t.usages,u=t.typeParameterUsages,l=t.substitutions,_=a.program.getTypeChecker(),d=M.getEmitScriptTarget(a.program.getCompilerOptions()),p=M.codefix.createImportAdder(a.file,a.program,a.preferences,a.host),f=n.getSourceFile(),t=M.getUniqueName(M.isClassLike(n)?"newMethod":"newFunction",f),g=M.isInJSFile(n),f=M.createIdentifier(t),m=[],y=[];c.forEach(function(e,t){g||(r=_.getTypeOfSymbolAtLocation(e.symbol,e.node),r=_.getBaseTypeOfLiteralType(r),r=M.codefix.typeToAutoImportableTypeNode(_,p,r,n,d,1));var r=M.createParameter(void 0,void 0,void 0,t,void 0,r);m.push(r),2===e.usage&&(s=s||[]).push(e),y.push(M.createIdentifier(t))});c=M.arrayFrom(u.values()).map(function(e){return{type:e,declaration:function(e){var t,e=e.symbol;if(e&&e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r];(void 0===t||i.pos<t.pos)&&(t=i)}return t}(e)}}).sort(w),u=0===c.length?void 0:c.map(function(e){return e.declaration}),c=void 0!==u?u.map(function(e){return M.createTypeReferenceNode(e.name,void 0)}):void 0;M.isExpression(e)&&!g&&(h=_.getContextualType(e),o=_.typeToTypeNode(h,n,1));var h=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.createBlock(e.statements,!0),returnValueProperty:void 0};var u=!1,r=M.createNodeArray(M.isBlock(e)?e.statements.slice(0):[M.isStatement(e)?e:M.createReturn(e)]);{if(c||o.size){var n=M.visitNodes(r,function e(t){{if(!u&&235===t.kind&&c){var r=I(i,a);return t.expression&&(s=s||"__return",r.unshift(M.createPropertyAssignment(s,M.visitNode(t.expression,e)))),1===r.length?M.createReturn(r[0].name):M.createReturn(M.createObjectLiteral(r))}var n=u;u=u||M.isFunctionLikeDeclaration(t)||M.isClassLike(t);var r=o.get(M.getNodeId(t).toString()),t=r?M.getSynthesizedDeepClone(r):M.visitEachChild(t,e,M.nullTransformationContext);return u=n,t}}).slice();return c&&!t&&M.isStatement(e)&&(1===(e=I(i,a)).length?n.push(M.createReturn(e[0].name)):n.push(M.createReturn(M.createObjectLiteral(e)))),{body:M.createBlock(n,!0),returnValueProperty:s}}return{body:M.createBlock(r,!0),returnValueProperty:void 0}}}(e,r,s,l,!!(i.facts&R.HasReturn)),e=h.body,l=h.returnValueProperty;M.suppressLeadingAndTrailingTrivia(e),f=M.isClassLike(n)?(h=g?[]:[M.createToken(117)],i.facts&R.InStaticRegion&&h.push(M.createToken(120)),i.facts&R.IsAsyncFunction&&h.push(M.createToken(126)),M.createMethod(void 0,h.length?h:void 0,i.facts&R.IsGenerator?M.createToken(41):void 0,f,void 0,u,m,o,e)):M.createFunctionDeclaration(void 0,i.facts&R.IsAsyncFunction?[M.createToken(126)]:void 0,i.facts&R.IsGenerator?M.createToken(41):void 0,f,u,m,o,e);u=M.textChanges.ChangeTracker.fromContext(a),e=function(t,e){return M.find(function(e){if(M.isFunctionLikeDeclaration(e)){var t=e.body;if(M.isBlock(t))return t.statements}else{if(M.isModuleBlock(e)||M.isSourceFile(e))return e.statements;if(M.isClassLike(e))return e.members;M.assertType(e)}return M.emptyArray}(e),function(e){return e.pos>=t&&M.isFunctionLikeDeclaration(e)&&!M.isConstructorDeclaration(e)})}((B(i.range)?M.last(i.range):i.range).end,n);e?u.insertNodeBefore(a.file,e,f,!0):u.insertNodeAtEndOfScope(a.file,n,f);p.writeFixes(u);var v=[],f=function(e,t,r){r=M.createIdentifier(r);{if(M.isClassLike(e)){e=t.facts&R.InStaticRegion?M.createIdentifier(e.name.text):M.createThis();return M.createPropertyAccess(e,r)}return r}}(n,i,t),f=M.createCall(f,c,y);i.facts&R.IsGenerator&&(f=M.createYield(M.createToken(41),f));i.facts&R.IsAsyncFunction&&(f=M.createAwait(f));if(r.length&&!s)if(M.Debug.assert(!l,"Expected no returnValueProperty"),M.Debug.assert(!(i.facts&R.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===r.length){var b=r[0];v.push(M.createVariableStatement(void 0,M.createVariableDeclarationList([M.createVariableDeclaration(M.getSynthesizedDeepClone(b.name),M.getSynthesizedDeepClone(b.type),f)],b.parent.flags)))}else{for(var x=[],D=[],S=r[0].parent.flags,C=!1,T=0,k=r;T<k.length;T++){b=k[T];x.push(M.createBindingElement(void 0,void 0,M.getSynthesizedDeepClone(b.name)));var E=_.typeToTypeNode(_.getBaseTypeOfLiteralType(_.getTypeAtLocation(b)),n,1);D.push(M.createPropertySignature(void 0,b.symbol.name,void 0,E,void 0)),C=C||void 0!==b.type,S&=b.parent.flags}c=C?M.createTypeLiteralNode(D):void 0;c&&M.setEmitFlags(c,1),v.push(M.createVariableStatement(void 0,M.createVariableDeclarationList([M.createVariableDeclaration(M.createObjectBindingPattern(x),c,f)],S)))}else if(r.length||s){if(r.length)for(var N=0,A=r;N<A.length;N++){var F=(b=A[N]).parent.flags;2&F&&(F=-3&F|1),v.push(M.createVariableStatement(void 0,M.createVariableDeclarationList([M.createVariableDeclaration(b.symbol.name,P(b.type))],F)))}l&&v.push(M.createVariableStatement(void 0,M.createVariableDeclarationList([M.createVariableDeclaration(l,P(o))],1)));r=I(r,s);l&&r.unshift(M.createShorthandPropertyAssignment(l)),1===r.length?(M.Debug.assert(!l,"Shouldn't have returnValueProperty here"),v.push(M.createStatement(M.createAssignment(r[0].name,f))),i.facts&R.HasReturn&&v.push(M.createReturn())):(v.push(M.createStatement(M.createAssignment(M.createObjectLiteral(r),f))),l&&v.push(M.createReturn(M.createIdentifier(l))))}else i.facts&R.HasReturn?v.push(M.createReturn(f)):B(i.range)?v.push(M.createStatement(f)):v.push(f);B(i.range)?u.replaceNodeRangeWithNodes(a.file,M.first(i.range),M.last(i.range),v):u.replaceNodeWithNodes(a.file,i.range,v);u=u.getChanges(),i=(B(i.range)?M.first(i.range):i.range).getSourceFile().fileName,t=M.getRenameLocation(u,i,t,!1);return{renameFilename:i,renameLocation:t,edits:u};function P(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 146===e.kind})?e:M.createUnionTypeNode([e,M.createKeywordTypeNode(146)])}}}(i,n[_],o[_],l,c,u)}var c,u,l,_=/^constant_scope_(\d+)$/.exec(t);if(_){var s=+_[1];return M.Debug.assert(isFinite(s),"Expected to parse a finite number from the constant scope index"),l=s,t=m(c=a,u=e),_=t.scopes,s=t.readsAndWrites,a=s.target,e=s.usagesPerScope,t=s.constantErrorsPerScope,s=s.exposedVariableDeclarations,M.Debug.assert(!t[l].length,"The extraction went missing? How?"),M.Debug.assert(0===s.length,"Extract constant accepted a range containing a variable declaration?"),u.cancellationToken.throwIfCancellationRequested(),function(l,_,e,t,r){var n=e.substitutions,d=r.program.getTypeChecker(),i=_.getSourceFile(),a=M.getUniqueName(M.isClassLike(_)?"newProperty":"newLocal",i),o=M.isInJSFile(_),e=o||!d.isContextSensitive(l)?void 0:d.typeToTypeNode(d.getContextualType(l),_,1),i=function(e,n){return n.size?function e(t){var r=n.get(M.getNodeId(t).toString());return r?M.getSynthesizedDeepClone(r):M.visitEachChild(t,e,M.nullTransformationContext)}(e):e}(l,n);n=function(e,t){if(void 0===e)return{variableType:e,initializer:t};if(!M.isFunctionExpression(t)&&!M.isArrowFunction(t)||t.typeParameters)return{variableType:e,initializer:t};var r=d.getTypeAtLocation(l),n=M.singleOrUndefined(d.getSignaturesOfType(r,0));if(!n)return{variableType:e,initializer:t};if(n.getTypeParameters())return{variableType:e,initializer:t};for(var i=[],a=!1,o=0,s=t.parameters;o<s.length;o++){var c,u=s[o];u.type?i.push(u):((c=d.getTypeAtLocation(u))===d.getAnyType()&&(a=!0),i.push(M.updateParameter(u,u.decorators,u.modifiers,u.dotDotDotToken,u.name,u.questionToken,u.type||d.typeToTypeNode(c,_,1),u.initializer)))}if(a)return{variableType:e,initializer:t};e=void 0,t=M.isArrowFunction(t)?M.updateArrowFunction(t,l.modifiers,t.typeParameters,i,t.type||d.typeToTypeNode(n.getReturnType(),_,1),t.equalsGreaterThanToken,t.body):(n&&n.thisParameter&&((!(r=M.firstOrUndefined(i))||M.isIdentifier(r.name)&&"this"!==r.name.escapedText)&&(r=d.getTypeOfSymbolAtLocation(n.thisParameter,l),i.splice(0,0,M.createParameter(void 0,void 0,void 0,"this",void 0,d.typeToTypeNode(r,_,1))))),M.updateFunctionExpression(t,l.modifiers,t.asteriskToken,t.name,t.typeParameters,i,t.type||d.typeToTypeNode(n.getReturnType(),_,1),t.body));return{variableType:e,initializer:t}}(e,i),e=n.variableType,i=n.initializer,M.suppressLeadingAndTrailingTrivia(i);n=M.textChanges.ChangeTracker.fromContext(r);{var s,c;M.isClassLike(_)?(M.Debug.assert(!o,"Cannot extract to a JS class"),(c=[]).push(M.createToken(117)),t&R.InStaticRegion&&c.push(M.createToken(120)),c.push(M.createToken(138)),o=M.createProperty(void 0,c,a,void 0,e,i),u=M.createPropertyAccess(t&R.InStaticRegion?M.createIdentifier(_.name.getText()):M.createThis(),M.createIdentifier(a)),c=function(e,t){var r,n=t.members;M.Debug.assert(0<n.length,"Found no members");for(var i=!0,a=0,o=n;a<o.length;a++){var s=o[a];if(s.pos>e)return r||n[0];if(i&&!M.isPropertyDeclaration(s)){if(void 0!==r)return s;i=!1}r=s}return void 0===r?M.Debug.fail():r}(l.pos,_),n.insertNodeBefore(r.file,c,o,!0),n.replaceNode(r.file,l,u)):(e=M.createVariableDeclaration(a,e,i),(i=function(e,t){var r;for(;void 0!==e&&e!==t;){if(M.isVariableDeclaration(e)&&e.initializer===r&&M.isVariableDeclarationList(e.parent)&&1<e.parent.declarations.length)return e;e=(r=e).parent}}(l,_))?(n.insertNodeBefore(r.file,i,e),u=M.createIdentifier(a),n.replaceNode(r.file,l,u)):226===l.parent.kind&&_===M.findAncestor(l,p)?(s=M.createVariableStatement(void 0,M.createVariableDeclarationList([e],2)),n.replaceNode(r.file,l.parent,s)):(s=M.createVariableStatement(void 0,M.createVariableDeclarationList([e],2)),0===(c=function(e,t){var r;M.Debug.assert(!M.isClassLike(t));for(var n=e;n!==t;n=n.parent)p(n)&&(r=n);for(n=(r||e).parent;;n=n.parent){if(y(n)){for(var i=void 0,a=0,o=n.statements;a<o.length;a++){var s=o[a];if(s.pos>e.pos)break;i=s}return!i&&M.isCaseClause(n)?(M.Debug.assert(M.isSwitchStatement(n.parent.parent),"Grandparent isn't a switch statement"),n.parent.parent):M.Debug.checkDefined(i,"prevStatement failed to get set")}M.Debug.assert(n!==t,"Didn't encounter a block-like before encountering scope")}}(l,_)).pos?n.insertNodeAtTopOfFile(r.file,s,!1):n.insertNodeBefore(r.file,c,s,!1),226===l.parent.kind?n.delete(r.file,l.parent):(u=M.createIdentifier(a),n.replaceNode(r.file,l,u))))}var u=n.getChanges(),n=l.getSourceFile().fileName,a=M.getRenameLocation(u,n,a,!0);return{renameFilename:n,renameLocation:a,edits:u}}(M.isExpression(a)?a:a.statements[0].expression,_[l],e[l],c.facts,u)}M.Debug.fail("Unrecognized action name")}function i(e){return{message:e,code:0,category:M.DiagnosticCategory.Message,key:e}}function g(e,c){var t=c.length;if(0===t)return{errors:[M.createFileDiagnostic(e,c.start,t,L.cannotExtractEmpty)]};var r=M.getParentNodeInSpan(M.getTokenAtPosition(e,c.start),e,c),n=M.getParentNodeInSpan(M.findTokenOnLeftOfPosition(e,M.textSpanEnd(c)),e,c),u=[],l=R.None;if(!r||!n)return{errors:[M.createFileDiagnostic(e,c.start,t,L.cannotExtractRange)]};if(r.parent!==n.parent)return{errors:[M.createFileDiagnostic(e,c.start,t,L.cannotExtractRange)]};if(r!==n){if(!y(r.parent))return{errors:[M.createFileDiagnostic(e,c.start,t,L.cannotExtractRange)]};for(var i=[],a=0,o=r.parent.statements;a<o.length;a++){var s=o[a];if(s===r||i.length){var _=d(s);if(_)return{errors:_};i.push(s)}if(s===n)break}return i.length?{targetRange:{range:i,facts:l,declarations:u}}:{errors:[M.createFileDiagnostic(e,c.start,t,L.cannotExtractRange)]}}if(M.isJSDoc(r))return{errors:[M.createFileDiagnostic(e,c.start,t,L.cannotExtractJSDoc)]};if(M.isReturnStatement(r)&&!r.expression)return{errors:[M.createFileDiagnostic(e,c.start,t,L.cannotExtractRange)]};e=function(e){if(M.isReturnStatement(e)){if(e.expression)return e.expression}else if(M.isVariableStatement(e)){for(var t=0,r=void 0,n=0,i=e.declarationList.declarations;n<i.length;n++){var a=i[n];a.initializer&&(t++,r=a.initializer)}if(1===t)return r}else if(M.isVariableDeclaration(e)&&e.initializer)return e.initializer;return e}(r),t=function(e){if(M.isIdentifier(M.isExpressionStatement(e)?e.expression:e))return[M.createDiagnosticForNode(e,L.cannotExtractIdentifier)];return}(e)||d(e);return t?{errors:t}:{targetRange:{range:function(e){{if(M.isStatement(e))return[e];if(M.isExpressionNode(e))return M.isExpressionStatement(e.parent)?[e.parent]:e}return}(e),facts:l,declarations:u}};function d(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)&&function(e){var t=e.parent;if(284===t.kind)return!1;switch(e.kind){case 10:return 254!==t.kind&&258!==t.kind;case 213:case 189:case 191:return!1;case 75:return 191!==t.kind&&258!==t.kind&&263!==t.kind}return!0}(r)))return[M.createDiagnosticForNode(r,L.statementOrExpressionExpected)];if(8388608&r.flags)return[M.createDiagnosticForNode(r,L.cannotExtractAmbientBlock)];var a,e=M.getContainingClass(r);e&&function(e){for(var t=r;t!==e;){if(159===t.kind){M.hasModifier(t,32)&&(l|=R.InStaticRegion);break}if(156===t.kind){162===M.getContainingFunction(t).kind&&(l|=R.InStaticRegion);break}161===t.kind&&M.hasModifier(t,32)&&(l|=R.InStaticRegion),t=t.parent}}(e);var o,s=4;return function e(t){if(a)return!0;if(M.isDeclaration(t)){var r=242===t.kind?t.parent.parent:t;if(M.hasModifier(r,1))return(a=a||[]).push(M.createDiagnosticForNode(t,L.cannotExtractExportedEntity)),!0;u.push(t.symbol)}switch(t.kind){case 254:return(a=a||[]).push(M.createDiagnosticForNode(t,L.cannotExtractImport)),!0;case 102:if(196===t.parent.kind){var n=M.getContainingClass(t);if(n.pos<c.start||n.end>=c.start+c.length)return(a=a||[]).push(M.createDiagnosticForNode(t,L.cannotExtractSuper)),!0}else l|=R.UsesThis}if(M.isFunctionLikeDeclaration(t)||M.isClassLike(t)){switch(t.kind){case 244:case 245:M.isSourceFile(t.parent)&&void 0===t.parent.externalModuleIndicator&&(a=a||[]).push(M.createDiagnosticForNode(t,L.functionWillNotBeVisibleInTheNewScope))}return!1}var r=s;switch(t.kind){case 227:case 240:s=0;break;case 223:t.parent&&240===t.parent.kind&&t.parent.finallyBlock===t&&(s=4);break;case 278:case 277:s|=1;break;default:M.isIterationStatement(t,!1)&&(s|=3)}switch(t.kind){case 183:case 104:l|=R.UsesThis;break;case 238:var i=t.label;(o=o||[]).push(i.escapedText),M.forEachChild(t,e),o.pop();break;case 234:case 233:var i=t.label;i?M.contains(o,i.escapedText)||(a=a||[]).push(M.createDiagnosticForNode(t,L.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(234===t.kind?1:2)||(a=a||[]).push(M.createDiagnosticForNode(t,L.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 206:l|=R.IsAsyncFunction;break;case 212:l|=R.IsGenerator;break;case 235:4&s?l|=R.HasReturn:(a=a||[]).push(M.createDiagnosticForNode(t,L.cannotExtractRangeContainingConditionalReturnStatement));break;default:M.forEachChild(t,e)}s=r}(r),a}}function p(e){return M.isFunctionLikeDeclaration(e)||M.isSourceFile(e)||M.isModuleBlock(e)||M.isClassLike(e)}function m(e,t){var r=t.file,n=function(e){var t=B(e.range)?M.first(e.range):e.range;if(e.facts&R.UsesThis){var r=M.getContainingClass(t);if(r){e=M.findAncestor(t,M.isFunctionLikeDeclaration);return e?[e,r]:[r]}}for(var n=[];;)if(t=t.parent,156===t.kind&&(t=M.findAncestor(t,function(e){return M.isFunctionLikeDeclaration(e)}).parent),p(t)&&(n.push(t),290===t.kind))return n}(e);return{scopes:n,readsAndWrites:function(m,y,h,v,b,i){var a,e,o=M.createMap(),x=[],D=[],S=[],C=[],s=[],c=M.createMap(),u=[],t=B(m.range)?1===m.range.length&&M.isExpressionStatement(m.range[0])?m.range[0].expression:void 0:m.range;{var r;void 0===t?(r=m.range,p=M.first(r).getStart(),r=M.last(r).end,e=M.createFileDiagnostic(v,p,r-p,L.expressionExpected)):147456&b.getTypeAtLocation(t).flags&&(e=M.createDiagnosticForNode(t,L.uselessConstantType))}for(var n=0,l=y;n<l.length;n++){var _=l[n];x.push({usages:M.createMap(),typeParameterUsages:M.createMap(),substitutions:M.createMap()}),D.push(M.createMap()),S.push(M.isFunctionLikeDeclaration(_)&&244!==_.kind?[M.createDiagnosticForNode(_,L.cannotExtractToOtherFunctionLike)]:[]);var d=[];e&&d.push(e),M.isClassLike(_)&&M.isInJSFile(_)&&d.push(M.createDiagnosticForNode(_,L.cannotExtractToJSClass)),M.isArrowFunction(_)&&!M.isBlock(_.body)&&d.push(M.createDiagnosticForNode(_,L.cannotExtractToExpressionArrowFunction)),C.push(d)}var T=M.createMap(),p=B(m.range)?M.createBlock(m.range):m.range,t=B(m.range)?M.first(m.range):m.range,f=function(e){return!!M.findAncestor(e,function(e){return M.isDeclarationWithTypeParameters(e)&&0!==M.getEffectiveTypeParameterDeclarations(e).length})}(t);(function e(t,r){void 0===r&&(r=1);f&&w(b.getTypeAtLocation(t));M.isDeclaration(t)&&t.symbol&&s.push(t);M.isAssignmentExpression(t)?(e(t.left,2),e(t.right)):M.isUnaryExpressionWithWrite(t)?e(t.operand,2):!M.isPropertyAccessExpression(t)&&!M.isElementAccessExpression(t)&&M.isIdentifier(t)?t.parent&&(M.isQualifiedName(t.parent)&&t!==t.parent.left||M.isPropertyAccessExpression(t.parent)&&t!==t.parent.expression||I(t,r,M.isPartOfTypeNode(t))):M.forEachChild(t,e)})(p),f&&!B(m.range)&&w(b.getContextualType(m.range));if(0<o.size){for(var g=M.createMap(),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||B(m.range)&&0<=m.range.indexOf(t))return;var r=M.isIdentifier(t)?O(t):b.getSymbolAtLocation(t);{var n,i;!r||(n=M.find(s,function(e){return e.symbol===r}))&&(M.isVariableDeclaration(n)?(i=n.symbol.id.toString(),c.has(i)||(u.push(n),c.set(i,!0))):a=a||n)}M.forEachChild(t,e)}));for(var P=0;P<y.length;P++)!function(e){var t=x[e];0<e&&(0<t.usages.size||0<t.typeParameterUsages.size)&&(t=B(m.range)?m.range[0]:m.range,C[e].push(M.createDiagnosticForNode(t,L.cannotAccessVariablesFromNestedScopes)));var r,n,i=!1;x[e].usages.forEach(function(e){2===e.usage&&(i=!0,106500&e.symbol.flags&&e.symbol.valueDeclaration&&M.hasModifier(e.symbol.valueDeclaration,64)&&(r=e.symbol.valueDeclaration))}),M.Debug.assert(B(m.range)||0===u.length,"No variable declarations expected if something was extracted"),i&&!B(m.range)?(n=M.createDiagnosticForNode(m.range,L.cannotWriteInExpression),S[e].push(n),C[e].push(n)):r&&0<e?(n=M.createDiagnosticForNode(r,L.cannotExtractReadonlyPropertyInitializerOutsideConstructor),S[e].push(n),C[e].push(n)):a&&(n=M.createDiagnosticForNode(a,L.cannotExtractExportedEntity),S[e].push(n),C[e].push(n))}(P);return{target:p,usagesPerScope:x,functionErrorsPerScope:S,constantErrorsPerScope:C,exposedVariableDeclarations:u};function w(e){for(var t=0,r=b.getSymbolWalker(function(){return i.throwIfCancellationRequested(),!0}).walkType(e).visitedTypes;t<r.length;t++){var n=r[t];n.isTypeParameter()&&o.set(n.id.toString(),n)}}function I(e,t,r){var n=function(e,t,r){var n=O(e);if(!n)return;var i=M.getSymbolId(n).toString(),a=T.get(i);if(a&&t<=a)return i;if(T.set(i,t),a){for(var o=0,s=x;o<s.length;o++){var c=s[o];c.usages.get(e.text)&&c.usages.set(e.text,{usage:t,symbol:n,node:e})}return i}a=n.getDeclarations(),a=a&&M.find(a,function(e){return e.getSourceFile()===v});if(!a)return;if(M.rangeContainsStartEnd(h,a.getStart(),a.end))return;if(m.facts&R.IsGenerator&&2===t){for(var u=M.createDiagnosticForNode(e,L.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),l=0,_=S;l<_.length;l++)_[l].push(u);for(var d=0,p=C;d<p.length;d++)p[d].push(u)}for(var f=0;f<y.length;f++){var g=y[f];b.resolveName(n.name,g,n.flags,!1)!==n&&(D[f].has(i)||((g=function e(t,r,n){if(!t)return;var i=t.getDeclarations();if(i&&i.some(function(e){return e.parent===r}))return M.createIdentifier(t.name);var i=e(t.parent,r,n);if(void 0===i)return;return n?M.createQualifiedName(i,M.createIdentifier(t.name)):M.createPropertyAccess(i,t.name)}(n.exportSymbol||n,g,r))?D[f].set(i,g):r?262144&n.flags||(u=M.createDiagnosticForNode(e,L.typeWillNotBeVisibleInTheNewScope),S[f].push(u),C[f].push(u)):x[f].usages.set(e.text,{usage:t,symbol:n,node:e})))}return i}(e,t,r);if(n)for(var i=0;i<y.length;i++){var a=D[i].get(n);a&&x[i].substitutions.set(M.getNodeId(e).toString(),a)}}function O(e){return e.parent&&M.isShorthandPropertyAssignment(e.parent)&&e.parent.name===e?b.getShorthandAssignmentValueSymbol(e.parent):b.getSymbolAtLocation(e)}}(e,n,(n=r,B((e=e).range)?{pos:M.first(e.range).getStart(n),end:M.last(e.range).getEnd()}:e.range),r,t.program.getTypeChecker(),t.cancellationToken)}}function w(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 I(e,t){e=M.map(e,function(e){return M.createShorthandPropertyAssignment(e.symbol.name)}),t=M.map(t,function(e){return M.createShorthandPropertyAssignment(e.symbol.name)});return void 0===e?t:void 0===t?e:e.concat(t)}function B(e){return M.isArray(e)}function y(e){switch(e.kind){case 223:case 290:case 250:case 277:return 1;default:return}}e=M.refactor||(M.refactor={}),t=e.extractSymbol||(e.extractSymbol={}),f="Extract Symbol",e.registerRefactor(f,{getAvailableActions:r,getEditsForAction:n}),t.getAvailableActions=r,t.getEditsForAction=n,(e=L=t.Messages||(t.Messages={})).cannotExtractRange=i("Cannot extract range."),e.cannotExtractImport=i("Cannot extract import statement."),e.cannotExtractSuper=i("Cannot extract super call."),e.cannotExtractJSDoc=i("Cannot extract JSDoc."),e.cannotExtractEmpty=i("Cannot extract empty range."),e.expressionExpected=i("expression expected."),e.uselessConstantType=i("No reason to extract constant of type."),e.statementOrExpressionExpected=i("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=i("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=i("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=i("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=i("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=i("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=i("Function will not visible in the new scope."),e.cannotExtractIdentifier=i("Select more than a single identifier."),e.cannotExtractExportedEntity=i("Cannot extract exported declaration"),e.cannotWriteInExpression=i("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=i("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=i("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=i("Cannot access variables from nested scopes"),e.cannotExtractToOtherFunctionLike=i("Cannot extract method to a function-like scope that is not a function"),e.cannotExtractToJSClass=i("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=i("Cannot extract constant to an arrow function without a block"),(e=R=R||{})[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.InStaticRegion=16]="InStaticRegion",t.getRangeToExtract=g,(t={})[t.Module=0]="Module",t[t.Global=1]="Global",(t={})[t.Read=1]="Read",t[t.Write=2]="Write"}(ts=ts||{}),function(d){var e,t,p,f,g;function r(e){var t=e.file,r=e.startPosition,n=d.isSourceFileJS(t),i=d.getTokenAtPosition(t,r),a=d.createTextRangeFromSpan(d.getRefactorContextSpan(e)),o=d.findAncestor(i,function(e){return e.parent&&m(a,e,t)&&!m(a,e.parent,t)});if(o&&d.isTypeNode(o)){var s,c,u,l,_,r=e.program.getTypeChecker(),i=d.Debug.checkDefined(d.findAncestor(o,d.isStatement),"Should find a statement"),e=(s=r,u=i,l=t,_=[],function e(t){if(d.isTypeReferenceNode(t)){var r;!d.isIdentifier(t.typeName)||(i=s.resolveName(t.typeName.text,t.typeName,262144,!0))&&(r=d.cast(d.first(i.declarations),d.isTypeParameterDeclaration),m(u,r,l)&&!m(c,r,l)&&_.push(r))}else if(d.isInferTypeNode(t)){var n=d.findAncestor(t,function(e){return d.isConditionalTypeNode(e)&&m(e.extendsType,t,l)});if(!n||!m(c,n,l))return!0}else if(d.isTypePredicateNode(t)||d.isThisTypeNode(t)){var n=d.findAncestor(t.parent,d.isFunctionLike);if(n&&n.type&&m(n.type,t,l)&&!m(c,n,l))return!0}else if(d.isTypeQueryNode(t))if(d.isIdentifier(t.exprName)){var i=s.resolveName(t.exprName.text,t.exprName,111551,!1);if(i&&m(u,i.valueDeclaration,l)&&!m(c,i.valueDeclaration,l))return!0}else if(d.isThisIdentifier(t.exprName.left)&&!m(c,t.parent,l))return!0;return d.forEachChild(t,e)}(c=o)?void 0:_);if(e)return{isJS:n,selection:o,firstStatement:i,typeParameters:e,typeElements:function e(t,r){if(!r)return;{if(d.isIntersectionTypeNode(r)){for(var n=[],i=d.createMap(),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&&d.addToSeen(i,d.getNameFromPropertyName(e.name))}))return;d.addRange(n,s)}return n}if(d.isParenthesizedTypeNode(r))return e(t,r.type);if(d.isTypeLiteralNode(r))return r.members}return}(r,o)}}}function m(e,t,r){return d.rangeContainsStartEnd(e,d.skipTrivia(r.text,t.pos),t.end)}e=d.refactor||(d.refactor={}),t="Extract type",p="Extract to type alias",f="Extract to interface",g="Extract to typedef",e.registerRefactor(t,{getAvailableActions:function(e){e=r(e);return e?[{name:t,description:d.getLocaleSpecificMessage(d.Diagnostics.Extract_type),actions:e.isJS?[{name:g,description:d.getLocaleSpecificMessage(d.Diagnostics.Extract_to_typedef)}]:d.append([{name:p,description:d.getLocaleSpecificMessage(d.Diagnostics.Extract_to_type_alias)}],e.typeElements&&{name:f,description:d.getLocaleSpecificMessage(d.Diagnostics.Extract_to_interface)})}]:d.emptyArray},getEditsForAction:function(e,c){var u=e.file,l=d.Debug.checkDefined(r(e),"Expected to find a range to extract"),_=d.getUniqueName("NewType",u),t=d.textChanges.ChangeTracker.with(e,function(e){switch(c){case p:return d.Debug.assert(!l.isJS,"Invalid actionName/JS combo"),t=e,r=u,n=_,a=(i=l).firstStatement,o=i.selection,s=i.typeParameters,i=d.createTypeAliasDeclaration(void 0,void 0,n,s.map(function(e){return d.updateTypeParameterDeclaration(e,e.name,e.constraint,void 0)}),o),t.insertNodeBefore(r,a,d.ignoreSourceNewlines(i),!0),void t.replaceNode(r,o,d.createTypeReferenceNode(n,s.map(function(e){return d.createTypeReferenceNode(e.name,void 0)})));case g:return d.Debug.assert(l.isJS,"Invalid actionName/JS combo"),function(e,t,r,n){var i=n.firstStatement,a=n.selection,o=n.typeParameters,n=d.createNode(322);n.tagName=d.createIdentifier("typedef"),n.fullName=d.createIdentifier(r),n.name=n.fullName,n.typeExpression=d.createJSDocTypeExpression(a);var s=[];d.forEach(o,function(e){var t=d.getEffectiveConstraintOfTypeParameter(e),r=d.createNode(321);r.tagName=d.createIdentifier("template"),r.constraint=t&&d.cast(t,d.isJSDocTypeExpression);t=d.createNode(155);t.name=e.name,r.typeParameters=d.createNodeArray([t]),s.push(r)}),e.insertNodeBefore(t,i,d.createJSDocComment(void 0,d.createNodeArray(d.concatenate(s,[n]))),!0),e.replaceNode(t,a,d.createTypeReferenceNode(r,o.map(function(e){return d.createTypeReferenceNode(e.name,void 0)})))}(e,u,_,l);case f:return d.Debug.assert(!l.isJS&&!!l.typeElements,"Invalid actionName/JS combo"),a=e,i=u,t=_,o=(r=l).firstStatement,n=r.selection,s=r.typeParameters,r=r.typeElements,r=d.createInterfaceDeclaration(void 0,void 0,t,s,void 0,r),a.insertNodeBefore(i,o,d.ignoreSourceNewlines(r),!0),void a.replaceNode(i,n,d.createTypeReferenceNode(t,s.map(function(e){return d.createTypeReferenceNode(e.name,void 0)})));default:d.Debug.fail("Unexpected action name")}var t,r,n,i,a,o,s}),e=u.fileName;return{edits:t,renameFilename:e,renameLocation:d.getRenameLocation(t,e,_,!1)}}})}(ts=ts||{}),function(g){var e,t,r;function a(e){return g.isParameterPropertyDeclaration(e,e.parent)||g.isPropertyDeclaration(e)||g.isPropertyAssignment(e)}function o(e,t){return g.isIdentifier(t)?g.createIdentifier(e):g.createLiteral(e)}function m(e,t,r){r=t?r.name:g.createThis();return g.isIdentifier(e)?g.createPropertyAccess(r,e):g.createElementAccess(r,g.createLiteral(e))}function y(e,t,r){t=g.append(e?void 0:[g.createToken(r)],t?g.createToken(120):void 0);return t&&g.createNodeArray(t)}function h(e){var t=e.file,r=e.startPosition,n=e.endPosition,e=g.getTokenAtPosition(t,r),e=g.findAncestor(e.parent,a);if(e&&g.nodeOverlapsWithStartEnd(e.name,t,r,n)&&(i=e.name,g.isIdentifier(i)||g.isStringLiteral(i))&&124==(124|g.getModifierFlags(e))){var r=e.name.text,n=g.startsWithUnderscore(r),i=o(n?r:g.getUniqueName("_"+r,t),e.name),r=o(n?g.getUniqueName(r.substring(1),t):r,e.name);return{isStatic:g.hasStaticModifier(e),isReadonly:g.hasReadonlyModifier(e),type:g.getTypeAnnotationNode(e),container:(156===e.kind?e.parent:e).parent,originalName:e.name.text,declaration:e,fieldName:i,accessorName:r,renameAccessor:n}}}function v(e,t,r,n,i){g.isParameterPropertyDeclaration(n,n.parent)?e.insertNodeAtClassStart(t,i,r):g.isPropertyAssignment(n)?e.insertNodeAfterComma(t,n,r):e.insertNodeAfter(t,n,r)}(e=g.refactor||(g.refactor={})).generateGetAccessorAndSetAccessor||(e.generateGetAccessorAndSetAccessor={}),t="Generate 'get' and 'set' accessors",r=g.Diagnostics.Generate_get_and_set_accessors.message,e.registerRefactor(t,{getEditsForAction:function(e,t){var r=e.file,n=h(e);if(!n)return;var i=g.isSourceFileJS(r),a=g.textChanges.ChangeTracker.fromContext(e),o=n.isStatic,s=n.isReadonly,c=n.fieldName,u=n.accessorName,l=n.originalName,_=n.type,d=n.container,p=n.declaration,f=n.renameAccessor;g.suppressLeadingAndTrailingTrivia(c),g.suppressLeadingAndTrailingTrivia(u),g.suppressLeadingAndTrailingTrivia(p),g.suppressLeadingAndTrailingTrivia(d);e=g.isClassLike(d),n=-65&g.getModifierFlags(p),n=e?!n||8&n?y(i,o,119):g.createNodeArray(g.createModifiersFromModifierFlags(n)):void 0,i=e?y(i,o,117):void 0;!function(e,t,r,n,i){g.isPropertyDeclaration(r)?function(e,t,r,n){n=g.updateProperty(r,r.decorators,i,n,r.questionToken||r.exclamationToken,r.type,r.initializer),e.replaceNode(t,r,n)}(e,t,r,n):g.isPropertyAssignment(r)?function(e,t,r,n){n=g.updatePropertyAssignment(r,n,r.initializer),e.replacePropertyAssignment(t,r,n)}(e,t,r,n):e.replaceNode(t,r,g.updateParameter(r,r.decorators,i,r.dotDotDotToken,g.cast(n,g.isIdentifier),r.questionToken,r.type,r.initializer))}(a,r,p,c,i);i=function(e,t,r,n,i,a){return g.createGetAccessor(void 0,n,t,void 0,r,g.createBlock([g.createReturn(m(e,i,a))],!0))}(c,u,_,n,o,d);g.suppressLeadingAndTrailingTrivia(i),v(a,r,i,p,d),s?(s=g.getFirstConstructorWithBody(d))&&function(r,n,e,i,a){e.body&&e.body.forEachChild(function e(t){g.isElementAccessExpression(t)&&104===t.expression.kind&&g.isStringLiteral(t.argumentExpression)&&t.argumentExpression.text===a&&g.isWriteAccess(t)&&r.replaceNode(n,t.argumentExpression,g.createStringLiteral(i)),g.isPropertyAccessExpression(t)&&104===t.expression.kind&&t.name.text===a&&g.isWriteAccess(t)&&r.replaceNode(n,t.name,g.createIdentifier(i)),g.isFunctionLike(t)||g.isClassLike(t)||t.forEachChild(e)})}(a,r,s,c.text,l):(o=function(e,t,r,n,i,a){return g.createSetAccessor(void 0,n,t,[g.createParameter(void 0,void 0,void 0,g.createIdentifier("value"),void 0,r)],g.createBlock([g.createStatement(g.createAssignment(m(e,i,a),g.createIdentifier("value")))],!0))}(c,u,_,n,o,d),g.suppressLeadingAndTrailingTrivia(o),v(a,r,o,p,d));a=a.getChanges(),r=r.fileName,c=f?u:c,p=(g.isIdentifier(c)?0:-1)+g.getRenameLocation(a,r,c.text,g.isParameter(p));return{renameFilename:r,renameLocation:p,edits:a}},getAvailableActions:function(e){return h(e)?[{name:t,description:r,actions:[{name:t,description:r}]}]:g.emptyArray}})}(ts=ts||{}),function(N){!function(e){var t="Move to a new file";function r(e){e=function(e){var t=e.file,r=N.createTextRangeFromSpan(N.getRefactorContextSpan(e)),n=t.statements,i=N.findIndex(n,function(e){return e.end>r.pos});if(-1!==i){e=n[i];if(N.isNamedDeclaration(e)&&e.name&&N.rangeContainsRange(e.name,r))return{toMove:[n[i]],afterLast:n[i+1]};if(!(r.pos>e.getStart(t))){e=N.findIndex(n,function(e){return e.end>r.end},i);if(-1===e||!(0===e||n[e].getStart(t)<r.end))return{toMove:n.slice(i,-1===e?n.length:e),afterLast:-1===e?void 0:n[e]}}}}(e);if(void 0!==e){var n=[],i=[],a=e.toMove,o=e.afterLast;return N.getRangesWhere(a,function(e){return!function(e){switch(e.kind){case 254:return!0;case 253:return!N.hasModifier(e,1);case 225:return e.declarationList.declarations.every(function(e){return!!e.initializer&&N.isRequireCall(e.initializer,!0)});default:return!1}}(e)},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 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 254===e.kind?e.moduleSpecifier:253===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.createImportSpecifier(void 0,N.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.createBindingElement(void 0,void 0,e)});return t.length?a(N.createObjectBindingPattern(t),void 0,h(N.createLiteral(r))):void 0}function a(e,t,r,n){return void 0===n&&(n=2),N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(e,t,r)],n))}function h(e){return N.createCall(N.createIdentifier("require"),void 0,[e])}function p(e,t,r,n){switch(t.kind){case 254:!function(e,t,r,n){if(t.importClause){var i=(s=t.importClause).name,a=s.namedBindings,o=!i||n(i),s=!a||(256===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.updateImportClause(t.importClause,i,void 0,t.importClause.isTypeOnly));else if(257===a.kind)for(var c=0,u=a.elements;c<u.length;c++){var l=u[c];n(l.name)&&r.delete(e,l)}}}(e,t,r,n);break;case 253:n(t.name)&&r.delete(e,t);break;case 242:!function(e,t,r,n){var i=t.name;switch(i.kind){case 75:n(i)&&r.delete(e,i);break;case 190:break;case 189:if(i.elements.every(function(e){return N.isIdentifier(e.name)&&n(e.name)}))r.delete(e,N.isVariableDeclarationList(t.parent)&&1===t.parent.declarations.length?t.parent.parent:t);else for(var a=0,o=i.elements;a<o.length;a++){var s=o[a];N.isIdentifier(s.name)&&n(s.name)&&r.delete(e,s.name)}}}(e,t,r,n);break;default:N.Debug.assertNever(t,"Unexpected import decl kind "+t.kind)}}function v(e){switch(e.kind){case 253:case 258:case 255:case 256:return!0;case 242:return n(e);case 191:return N.isVariableDeclaration(e.parent.parent)&&n(e.parent.parent);default:return!1}}function n(e){return N.isSourceFile(e.parent.parent.parent)&&!!e.initializer&&N.isRequireCall(e.initializer,!0)}function b(e,t,r){switch(e.kind){case 254: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(256===e.kind)return t(e.name)?e:void 0;e=e.elements.filter(function(e){return t(e.name)});return e.length?N.createNamedImports(e):void 0}}(n.namedBindings,r);return i||n?N.createImportDeclaration(void 0,void 0,N.createImportClause(i,n),t):void 0;case 253:return r(e.name)?e:void 0;case 242:n=function(e,t){switch(e.kind){case 75:return t(e)?e:void 0;case 190:return e;case 189:var r=e.elements.filter(function(e){return e.propertyName||!N.isIdentifier(e.name)||t(e.name)});return r.length?N.createObjectBindingPattern(r):void 0}}(e.name,r);return n?a(n,e.type,h(t),e.parent.flags):void 0;default:return N.Debug.assertNever(e,"Unexpected import kind "+e.kind)}}function x(e,n,i){e.forEachChild(function e(t){var r;N.isIdentifier(t)&&!N.isDeclarationName(t)?(r=n.getSymbolAtLocation(t))&&i(r):t.forEachChild(e)})}e.registerRefactor(t,{getAvailableActions:function(e){if(!e.preferences.allowTextChangesInNewFiles||void 0===r(e))return N.emptyArray;e=N.getLocaleSpecificMessage(N.Diagnostics.Move_to_a_new_file);return[{name:t,description:e,actions:[{name:t,description:e}]}]},getEditsForAction:function(l,e){N.Debug.assert(e===t,"Wrong refactor invoked");var _=N.Debug.checkDefined(r(l));return{edits:N.textChanges.ChangeTracker.with(l,function(e){return t=l.file,r=l.program,n=_,i=e,a=l.host,o=l.preferences,s=r.getTypeChecker(),c=function(i,e,r){var a=new D,o=new D,s=new D,t=function(e){if(void 0===e)return;var t=r.getJsxNamespace(e),e=r.resolveName(t,e,1920,!0);return e&&N.some(e.declarations,v)?e:void 0}(N.find(e,function(e){return!!(2&e.transformFlags)}));t&&o.add(t);for(var n=0,c=e;n<c.length;n++)C(g=c[n],function(e){a.add(N.Debug.checkDefined(N.isExpressionStatement(e)?r.getSymbolAtLocation(e.expression.left):e.symbol,"Need a symbol here"))});for(var u=0,l=e;u<l.length;u++)x(g=l[u],r,function(e){if(e.declarations)for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];v(n)?o.add(e):S(n)&&(n=n,(N.isVariableDeclaration(n)?n.parent.parent:n).parent===i)&&!a.has(e)&&s.add(e)}});for(var _=o.clone(),d=new D,p=0,f=i.statements;p<f.length;p++){var g=f[p];N.contains(e,g)||(t&&2&g.transformFlags&&_.delete(t),x(g,r,function(e){a.has(e)&&d.add(e),_.delete(e)}))}return{movedSymbols:a,newFileImportsFromOldFile:s,oldFileImportsFromNewFile:d,oldImportsNeededByNewFile:o,unusedImportsFromOldFile:_}}(t,n.all,s),u=N.getDirectoryPath(t.fileName),e=N.extensionFromPath(t.fileName),s=function(e,t,r,n){for(var i=e,a=1;;a++){var o=N.combinePaths(r,i+t);if(!n.fileExists(o))return i;i=e+"."+a}}(function(e){return e.forEachEntry(N.symbolNameNoDefault)||"newFile"}(c.movedSymbols),e,u,a),e=s+e,i.createNewFile(t,N.combinePaths(u,e),function(e,t,r,n,i,a,o){var s=i.getTypeChecker();if(!e.externalModuleIndicator&&!e.commonJsModuleIndicator)return d(e,n.ranges,r),n.all;var c=!!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.createIdentifier(N.symbolNameNoDefault(e)):a.push(e.name)}),y(i,a,t,r,n)}(t.oldFileImportsFromNewFile,a,c,u);o&&N.insertImports(r,e,o,!0);return function(t,e,r,n,i){for(var a=0,o=t.statements;a<o.length;a++){var s=o[a];N.contains(e,s)||m(s,function(e){return p(t,e,r,function(e){return n.has(i.getSymbolAtLocation(e))}),0})}}(e,n.all,r,t.unusedImportsFromOldFile,s),d(e,n.ranges,r),function(a,e,o,s,c){for(var u=e.getTypeChecker(),t=function(i){if(i===o)return"continue";for(var e=function(n){m(n,function(e){var t,r;u.getSymbolAtLocation(g(e))===o.symbol&&(p(i,e,a,r=function(e){e=N.isBindingElement(e.parent)?N.getPropertySymbolFromBindingElement(u,e.parent):N.skipAlias(u.getSymbolAtLocation(e),u);return!!e&&s.has(e)}),t=N.combinePaths(N.getDirectoryPath(g(e).text),c),(r=b(e,N.createLiteral(t),r))&&a.insertNodeAfter(i,n,r),(r=function(e){switch(e.kind){case 254:return e.importClause&&e.importClause.namedBindings&&256===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:void 0;case 253:return e.name;case 242:return N.tryCast(e.name,N.isIdentifier);default:return N.Debug.assertNever(e,"Unexpected node kind "+e.kind)}}(e))&&function(e,t,r,n,i,a,o,s){var c=N.codefix.moduleSpecifierToValidIdentifier(i,99),u=!1,l=[];if(N.FindAllReferences.Core.eachSymbolReferenceInFile(o,r,t,function(e){N.isPropertyAccessExpression(e.parent)&&(u=u||!!r.resolveName(c,e,67108863,!0),n.has(r.getSymbolAtLocation(e.parent.name))&&l.push(e))}),l.length){for(var _=u?N.getUniqueName(c,t):c,d=0,p=l;d<p.length;d++){var f=p[d];e.replaceNode(t,f,N.createIdentifier(_))}e.insertNodeAfter(t,s,function(e,t,r){var n=N.createIdentifier(t),i=N.createLiteral(r);switch(e.kind){case 254:return N.createImportDeclaration(void 0,void 0,N.createImportClause(void 0,N.createNamespaceImport(n)),i);case 253:return N.createImportEqualsDeclaration(void 0,void 0,n,N.createExternalModuleReference(i));case 242:return N.createVariableDeclaration(n,void 0,h(i));default:return N.Debug.assertNever(e,"Unexpected node kind "+e.kind)}}(s,i,a))}}(a,i,u,s,c,t,r,e))})},t=0,r=i.statements;t<r.length;t++)e(r[t])},r=0,n=e.getSourceFiles();r<n.length;r++){var i=n[r];t(i)}}(r,i,e,t.movedSymbols,a),__spreadArrays(function(u,t,e,l,r,_,n){for(var d,i=[],a=0,o=u.statements;a<o.length;a++)m(o[a],function(e){N.append(i,b(e,g(e),function(e){return t.has(r.getSymbolAtLocation(e))}))});var p=[],f=N.nodeSeenTracker();return e.forEach(function(e){for(var t,r,n,i=0,a=e.declarations;i<a.length;i++){var o,s,c=a[i];S(c)&&(n=c,(o=N.isExpressionStatement(n)?N.tryCast(n.expression.left.name,N.isIdentifier):N.tryCast(n.name,N.isIdentifier))&&(s=function e(t){switch(t.kind){case 242:return t.parent.parent;case 191:return e(N.cast(t.parent.parent,function(e){return N.isVariableDeclaration(e)||N.isBindingElement(e)}));default:return t}}(c),f(s)&&(r=l,T(t=u,n=s,s=_)||(s?N.isExpressionStatement(n)||r.insertExportModifier(t,n):0!==(s=k(n)).length&&r.insertNodesAfter(t,n,s.map(E)))),N.hasModifier(c,512)?d=o:p.push(o.text)))}}),N.append(i,y(d,p,N.removeFileExtension(N.getBaseFileName(u.fileName)),_,n)),i}(e,t.oldImportsNeededByNewFile,t.newFileImportsFromOldFile,r,s,c,u),function(r,e,n,i){return N.flatMap(e,function(e){if(t=e,N.Debug.assert(N.isSourceFile(t.parent),"Node parent should be a SourceFile"),(f(t)||N.isVariableStatement(t))&&!T(r,e,i)&&C(e,function(e){return n.has(N.Debug.checkDefined(e.symbol))})){t=(t=e,i?[function(e){var t=N.concatenate([N.createModifier(89)],e.modifiers);switch(e.kind){case 244:return N.updateFunctionDeclaration(e,e.decorators,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 245:return N.updateClassDeclaration(e,e.decorators,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 225:return N.updateVariableStatement(e,t,e.declarationList);case 249:return N.updateModuleDeclaration(e,e.decorators,t,e.name,e.body);case 248:return N.updateEnumDeclaration(e,e.decorators,t,e.name,e.members);case 247:return N.updateTypeAliasDeclaration(e,e.decorators,t,e.name,e.typeParameters,e.type);case 246:return N.updateInterfaceDeclaration(e,e.decorators,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 253:return N.updateImportEqualsDeclaration(e,e.decorators,t,e.name,e.moduleReference);case 226:return N.Debug.fail();default:return N.Debug.assertNever(e,"Unexpected declaration kind "+e.kind)}}(t)]:function(e){return __spreadArrays([e],k(e).map(E))}(t));if(t)return t}var t;return e})}(e,n.all,t.oldFileImportsFromNewFile,c))}(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.createLiteral(n),i.initializer.elements))}(r,i,t.fileName,e,N.hostGetCanonicalFileName(a));var t,r,n,i,a,o,s,c,u}),renameFilename:void 0,renameLocation:void 0}}});var D=(i.prototype.add=function(e){this.map.set(String(N.getSymbolId(e)),e)},i.prototype.has=function(e){return this.map.has(String(N.getSymbolId(e)))},i.prototype.delete=function(e){this.map.delete(String(N.getSymbolId(e)))},i.prototype.forEach=function(e){this.map.forEach(e)},i.prototype.forEachEntry=function(e){return N.forEachEntry(this.map,e)},i.prototype.clone=function(){var e=new i;return N.copyEntries(this.map,e.map),e},i);function i(){this.map=N.createMap()}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 244:case 245:case 249:case 248:case 247:case 246:case 253:return!0;default:return!1}}function C(e,t){switch(e.kind){case 244:case 245:case 249:case 248:case 247:case 246:case 253:return t(e);case 225:return N.firstDefined(e.declarationList.declarations,function(e){return function t(e,r){switch(e.kind){case 75:return r(N.cast(e.parent,function(e){return N.isVariableDeclaration(e)||N.isBindingElement(e)}));case 190:case 189:return N.firstDefined(e.elements,function(e){return N.isOmittedExpression(e)?void 0:t(e.name,r)});default:return N.Debug.assertNever(e,"Unexpected name kind "+e.kind)}}(e.name,t)});case 226:var r=e.expression;return N.isBinaryExpression(r)&&1===N.getAssignmentDeclarationKind(r)&&t(e)}}function T(t,e,r){return r?!N.isExpressionStatement(e)&&N.hasModifier(e,1):k(e).some(function(e){return t.symbol.exports.has(N.escapeLeadingUnderscores(e))})}function k(e){switch(e.kind){case 244:case 245:return[e.name.text];case 225:return N.mapDefined(e.declarationList.declarations,function(e){return N.isIdentifier(e.name)?e.name.text:void 0});case 249:case 248:case 247:case 246:case 253:return N.emptyArray;case 226:return N.Debug.fail("Can't export an ExpressionStatement");default:return N.Debug.assertNever(e,"Unexpected decl kind "+e.kind)}}function E(e){return N.createExpressionStatement(N.createBinary(N.createPropertyAccess(N.createIdentifier("exports"),N.createIdentifier(e)),62,N.createIdentifier(e)))}}(N.refactor||(N.refactor={}))}(ts=ts||{}),function(c){var e,r,n,u,l,i,a;function _(e,t){e=c.getTokenAtPosition(e,t),t=c.getContainingFunction(e);if(t&&c.isArrowFunction(t)&&c.rangeContainsRange(t,e)&&!c.rangeContainsRange(t.body,e)){if(c.isExpression(t.body))return{func:t,addBraces:!0,expression:t.body};if(1===t.body.statements.length){e=c.first(t.body.statements);if(c.isReturnStatement(e))return{func:t,addBraces:!1,expression:e.expression,returnStatement:e}}}}(e=c.refactor||(c.refactor={})).addOrRemoveBracesToArrowFunction||(e.addOrRemoveBracesToArrowFunction={}),r="Add or remove braces in an arrow function",n=c.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,u="Add braces to arrow function",l="Remove braces from arrow function",i=c.Diagnostics.Add_braces_to_arrow_function.message,a=c.Diagnostics.Remove_braces_from_arrow_function.message,e.registerRefactor(r,{getEditsForAction:function(e,t){var r=e.file,n=e.startPosition,i=_(r,n);if(!i)return;var a,o=i.expression,n=i.returnStatement,s=i.func;t===u?(i=c.createReturn(o),a=c.createBlock([i],!0),c.suppressLeadingAndTrailingTrivia(a),c.copyLeadingComments(o,i,r,3,!0)):t===l&&n?(o=o||c.createVoidZero(),a=c.needsParentheses(o)?c.createParen(o):o,c.suppressLeadingAndTrailingTrivia(a),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,e=e.startPosition,e=_(t,e);return e?[{name:r,description:n,actions:[e.addBraces?{name:u,description:i}:{name:l,description:a}]}]:c.emptyArray}})}(ts=ts||{}),function(g){var e,c,n;function m(e){e=e.node;return g.isImportSpecifier(e.parent)||g.isImportClause(e.parent)||g.isImportEqualsDeclaration(e.parent)||g.isNamespaceImport(e.parent)||g.isExportSpecifier(e.parent)||g.isExportAssignment(e.parent)?e:void 0}function y(e){if(g.isDeclaration(e.node.parent))return e.node}function u(e,t,r){e=g.getTouchingToken(e,t),t=g.getContainingFunctionDeclaration(e);if(!function(e){e=g.findAncestor(e,g.isJSDocNode);if(e){e=g.findAncestor(e,function(e){return!g.isJSDocNode(e)});return!!e&&g.isFunctionLikeDeclaration(e)}return!1}(e))return!(t&&function(e,t){if(!function(e,t){return function(e){if(l(e))return e.length-1;return e.length}(e)>=n&&g.every(e,function(e){return function(e,t){if(g.isRestParameter(e)){var r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&!e.decorators&&g.isIdentifier(e.name)}(e,t)})}(e.parameters,t))return!1;switch(e.kind){case 244:return a(e)&&i(e,t);case 161:return i(e,t);case 162:return g.isClassDeclaration(e.parent)?a(e.parent)&&i(e,t):o(e.parent.parent)&&i(e,t);case 201:case 202:return o(e.parent)}return!1}(t,r)&&g.rangeContainsRange(t,e))||t.body&&g.rangeContainsRange(t.body,e)?void 0:t}function i(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function a(e){return!!e.name||!!g.findModifier(e,84)}function o(e){return g.isVariableDeclaration(e)&&g.isVarConst(e)&&g.isIdentifier(e.name)&&!e.type}function l(e){return 0<e.length&&g.isThis(e[0].name)}function _(e){return l(e)&&(e=g.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function d(e){return g.getTextOfIdentifierOrLiteral(e.name)}(e=g.refactor||(g.refactor={})).convertParamsToDestructuredObject||(e.convertParamsToDestructuredObject={}),c="Convert parameters to destructured object",n=2,e.registerRefactor(c,{getEditsForAction:function(e,t){g.Debug.assert(t===c,"Unexpected action name");var r=e.file,n=e.startPosition,i=e.program,t=e.cancellationToken,a=e.host,o=u(r,n,i.getTypeChecker());if(!o||!t)return;var s=function(_,t,r){var d=function(e){switch(e.kind){case 244:return e.name?[e.name]:[g.Debug.checkDefined(g.findModifier(e,84),"Nameless function declaration should be a default export")];case 161:return[e.name];case 162:var t=g.Debug.checkDefined(g.findChildOfKind(e,129,e.getSourceFile()),"Constructor declaration should have constructor keyword");return 214!==e.parent.kind?[t]:[e.parent.parent.name,t];case 202:return[e.parent.name];case 201:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return g.Debug.assertNever(e,"Unexpected function declaration kind "+e.kind)}}(_),p=g.isConstructorDeclaration(_)?function(e){switch(e.parent.kind){case 245:var t=e.parent;return t.name?[t.name]:[g.Debug.checkDefined(g.findModifier(t,84),"Nameless class declaration should be a default export")];case 214:var r=e.parent,t=e.parent.parent,r=r.name;return r?[r,t.name]:[t.name]}}(_):[],n=g.deduplicate(__spreadArrays(d,p),g.equateValues),i=t.getTypeChecker(),e=function(e){for(var t={accessExpressions:[],typeUsages:[]},r={functionCalls:[],declarations:[],classReferences:t,valid:!0},n=g.map(d,f),i=g.map(p,f),a=g.isConstructorDeclaration(_),o=0,s=e;o<s.length;o++){var c,u=s[o];if(1===u.kind){if(g.contains(n,f(u.node))||g.isNewExpressionTarget(u.node)){if(m(u))continue;if(c=y(u)){r.declarations.push(c);continue}var l=function(e){if(e.node.parent){var t=e.node,r=t.parent;switch(r.kind){case 196:case 197:var n=g.tryCast(r,g.isCallOrNewExpression);if(n&&n.expression===t)return n;break;case 194:var i=g.tryCast(r,g.isPropertyAccessExpression);if(i&&i.parent&&i.name===t){var a=g.tryCast(i.parent,g.isCallOrNewExpression);if(a&&a.expression===i)return a}break;case 195:i=g.tryCast(r,g.isElementAccessExpression);if(i&&i.parent&&i.argumentExpression===t){a=g.tryCast(i.parent,g.isCallOrNewExpression);if(a&&a.expression===i)return a}}}return}(u);if(l){r.functionCalls.push(l);continue}}if(a&&g.contains(i,f(u.node))){if(m(u))continue;if(c=y(u)){r.declarations.push(c);continue}l=function(e){if(e.node.parent){var t=e.node,r=t.parent;switch(r.kind){case 194:var n=g.tryCast(r,g.isPropertyAccessExpression);if(n&&n.expression===t)return n;break;case 195:n=g.tryCast(r,g.isElementAccessExpression);if(n&&n.expression===t)return n}}return}(u);if(l){t.accessExpressions.push(l);continue}if(g.isClassDeclaration(_.parent)){u=function(e){e=e.node;if(2===g.getMeaningFromLocation(e)||g.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent))return e;return}(u);if(u){t.typeUsages.push(u);continue}}}r.valid=!1}else r.valid=!1}return r}(g.flatMap(n,function(e){return g.FindAllReferences.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r)}));g.every(e.declarations,function(e){return g.contains(n,e)})||(e.valid=!1);return e;function f(e){e=i.getSymbolAtLocation(e);return e&&g.getSymbolTarget(e,i)}}(o,i,t);if(s.valid)return{renameFilename:void 0,renameLocation:void 0,edits:g.textChanges.ChangeTracker.with(e,function(e){return function(e,t,r,n,i,a){r=g.map(function(e,i,a){var o=i.getTypeChecker(),t=_(e.parameters),r=g.map(t,function(e){var t=g.createBindingElement(void 0,void 0,d(e),g.isRestParameter(e)&&u(e)?g.createArrayLiteral():e.initializer);g.suppressLeadingAndTrailingTrivia(t),e.initializer&&t.initializer&&g.copyComments(e.initializer,t.initializer);return t}),n=g.createObjectBindingPattern(r),r=function(e){e=g.map(e,c);return g.addEmitFlags(g.createTypeLiteralNode(e),1)}(t);g.every(t,u)&&(s=g.createObjectLiteral());r=g.createParameter(void 0,void 0,void 0,n,void 0,r,s);if(l(e.parameters)){var s=e.parameters[0],e=g.createParameter(void 0,void 0,void 0,s.name,void 0,s.type);return g.suppressLeadingAndTrailingTrivia(e.name),g.copyComments(s.name,e.name),s.type&&(g.suppressLeadingAndTrailingTrivia(e.type),g.copyComments(s.type,e.type)),g.createNodeArray([e,r])}return g.createNodeArray([r]);function c(e){var t,r,n=e.type;n||!e.initializer&&!g.isRestParameter(e)||(t=e,r=o.getTypeAtLocation(t),n=g.getTypeNodeIfAccessible(r,t,i,a));n=g.createPropertySignature(void 0,d(e),u(e)?g.createToken(57):e.questionToken,n,void 0);return g.suppressLeadingAndTrailingTrivia(n),g.copyComments(e.name,n.name),e.type&&n.type&&g.copyComments(e.type,n.type),n}function u(e){if(g.isRestParameter(e)){var t=o.getTypeAtLocation(e);return!o.isTupleType(t)}return o.isOptionalParameter(e)}}(i,t,r),function(e){return g.getSynthesizedDeepClone(e)});n.replaceNodeRangeWithNodes(e,g.first(i.parameters),g.last(i.parameters),r,{joiner:", ",indentation:0,leadingTriviaOption:g.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:g.textChanges.TrailingTriviaOption.Include});for(var a=g.sortAndDeduplicate(a.functionCalls,function(e,t){return g.compareValues(e.pos,t.pos)}),o=0,s=a;o<s.length;o++){var c,u=s[o];u.arguments&&u.arguments.length&&(c=g.getSynthesizedDeepClone(function(e,t){var r=_(e.parameters),n=g.isRestParameter(g.last(r)),e=n?t.slice(0,r.length-1):t,e=g.map(e,function(e,t){t=function(e,t){if(g.isIdentifier(t)&&g.getTextOfIdentifierOrLiteral(t)===e)return g.createShorthandPropertyAssignment(e);return g.createPropertyAssignment(e,t)}(d(r[t]),e);return g.suppressLeadingAndTrailingTrivia(t.name),g.isPropertyAssignment(t)&&g.suppressLeadingAndTrailingTrivia(t.initializer),g.copyComments(e,t),t});n&&t.length>=r.length&&(t=t.slice(r.length-1),t=g.createPropertyAssignment(d(g.last(r)),g.createArrayLiteral(t)),e.push(t));return g.createObjectLiteral(e,!1)}(i,u.arguments),!0),n.replaceNodeRange(g.getSourceFileOfNode(u),g.first(u.arguments),g.last(u.arguments),c,{leadingTriviaOption:g.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:g.textChanges.TrailingTriviaOption.Include}))}}(r,i,a,e,o,s)})};return{edits:[]}},getAvailableActions:function(e){var t=e.file,r=e.startPosition;if(g.isSourceFileJS(t))return g.emptyArray;if(!u(t,r,e.program.getTypeChecker()))return g.emptyArray;e=g.getLocaleSpecificMessage(g.Diagnostics.Convert_parameters_to_destructured_object);return[{name:c,description:e,actions:[{name:c,description:e}]}]}})}(ts=ts||{}),function(m){var e;!function(){var r="Convert to template string",i=m.getLocaleSpecificMessage(m.Diagnostics.Convert_to_template_string);function a(e,t){e=m.getTokenAtPosition(e,t),t=s(e);return!n(t)&&m.isParenthesizedExpression(t.parent)&&m.isBinaryExpression(t.parent.parent)?t.parent.parent:e}function s(e){for(;m.isBinaryExpression(e.parent)&&62!==e.parent.operatorToken.kind;)e=e.parent;return e}function n(e){var t=c(e),e=t.containsString,t=t.areOperatorsValid;return e&&t}function c(e){if(m.isBinaryExpression(e)){var t=c(e.left),r=t.nodes,n=t.operators,i=t.containsString,t=t.areOperatorsValid;if(!i&&!m.isStringLiteral(e.right))return{nodes:[e],operators:[],containsString:!1,areOperatorsValid:!0};i=39===e.operatorToken.kind,i=t&&i;return r.push(e.right),n.push(e.operatorToken),{nodes:r,operators:n,containsString:!0,areOperatorsValid:i}}return{nodes:[e],operators:[],containsString:m.isStringLiteral(e),areOperatorsValid:!0}}e.registerRefactor(r,{getEditsForAction:function(e,t){var r=e.file,n=e.startPosition,n=a(r,n);return t!==i?m.Debug.fail("invalid action"):{edits:function(e,t){var r=s(t),n=e.file,i=function(e,t){var r=e.nodes,n=e.operators,i=p(n,t),a=f(r,t,i),o=g(0,r),e=o[0],n=o[1],t=o[2];if(e===r.length){o=m.createNoSubstitutionTemplateLiteral(n);return a(t,o),o}var s=[],n=m.createTemplateHead(n);a(t,n);for(var c=e;c<r.length;c++){var u=function(e){m.isParenthesizedExpression(e)&&(function(e){var t=e.getSourceFile();m.copyTrailingComments(e,e.expression,t,3,!1),m.copyTrailingAsLeadingComments(e.expression,e.expression,t,3,!1)}(e),e=e.expression);return e}(r[c]);i(c,u);var l=g(c+1,r),_=l[0],d=l[1],l=l[2],d=(c=_-1)===r.length-1?m.createTemplateTail(d):m.createTemplateMiddle(d);a(l,d),s.push(m.createTemplateSpan(u,d))}return m.createTemplateExpression(n,s)}(c(r),n),a=m.getTrailingCommentRanges(n.text,r.end);{if(a){var t=a[a.length-1],o={pos:a[0].pos,end:t.end};return m.textChanges.ChangeTracker.with(e,function(e){e.deleteRange(n,o),e.replaceNode(n,r,i)})}return m.textChanges.ChangeTracker.with(e,function(e){return e.replaceNode(n,r,i)})}}(e,n)}},getAvailableActions:function(e){var t=e.file,e=e.startPosition,t=s(a(t,e)),e={name:r,description:i,actions:[]};if(m.isBinaryExpression(t)&&n(t))return e.actions.push({name:r,description:i}),[e];return m.emptyArray}});var p=function(r,n){return function(e,t){e<r.length&&m.copyTrailingComments(r[e],t,n,3,!1)}},f=function(n,i,a){return function(e,t){for(;0<e.length;){var r=e.shift();m.copyTrailingComments(n[r],t,i,3,!1),a(r,t)}}};function g(e,t){for(var r="",n=[];e<t.length&&m.isStringLiteral(t[e]);)r+=t[e].text,n.push(e),e++;return[e,r,n]}}((e=m.refactor||(m.refactor={})).convertStringOrTemplateLiteral||(e.convertStringOrTemplateLiteral={}))}(ts=ts||{}),function(C){function s(e,t,r,n){r=C.isNodeKind(e)?new i(e,t,r):75===e?new p(75,t,r):76===e?new m(76,t,r):new l(e,t,r);return r.parent=n,r.flags=25358336&n.flags,r}C.servicesVersion="0.8";var i=(e.prototype.assertHasRealPosition=function(e){C.Debug.assert(!C.positionIsSynthesized(this.pos)&&!C.positionIsSynthesized(this.end),e||"Node must have a real position for this operation")},e.prototype.getSourceFile=function(){return C.getSourceFileOfNode(this)},e.prototype.getStart=function(e,t){return this.assertHasRealPosition(),C.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(!C.isNodeKind(t.kind))return C.emptyArray;var r=[];if(C.isJSDocCommentContainingNode(t))return t.forEachChild(function(e){r.push(e)}),r;C.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 C.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),C.scanner.setText(void 0),r}(this,e))},e.prototype.getFirstToken=function(e){this.assertHasRealPosition();var t=this.getChildren(e);if(t.length){t=C.find(t,function(e){return e.kind<294||323<e.kind});return t.kind<153?t:t.getFirstToken(e)}},e.prototype.getLastToken=function(e){this.assertHasRealPosition();var t=this.getChildren(e),t=C.lastOrUndefined(t);if(t)return t.kind<153?t:t.getLastToken(e)},e.prototype.forEachChild=function(e,t){return C.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(C.scanner.setTextPos(t);t<r;){var i=C.scanner.scan(),a=C.scanner.getTextPos();if(a<=r&&(75===i&&C.Debug.fail("Did not expect "+C.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(324,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 C.getSourceFileOfNode(this)},r.prototype.getStart=function(e,t){return C.getTokenPosOfNode(this,e,t)},r.prototype.getFullStart=function(){return this.pos},r.prototype.getEnd=function(){return this.end},r.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},r.prototype.getFullWidth=function(){return this.end-this.pos},r.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},r.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},r.prototype.getText=function(e){return(e=e||this.getSourceFile()).text.substring(this.getStart(e),this.getEnd())},r.prototype.getChildCount=function(){return 0},r.prototype.getChildAt=function(){},r.prototype.getChildren=function(){return 1===this.kind&&this.jsDoc||C.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 C.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){return this.documentationComment||(this.documentationComment=C.emptyArray,this.documentationComment=S(this.declarations,e)),this.documentationComment},o.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=C.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},o);function o(e,t){this.flags=e,this.escapedName=t}var u,l=(__extends(_,u=t),_);function _(e,t,r){r=u.call(this,t,r)||this;return r.kind=e,r}var d,p=(__extends(f,d=t),Object.defineProperty(f.prototype,"text",{get:function(){return C.idText(this)},enumerable:!1,configurable:!0}),f);function f(e,t,r){r=d.call(this,t,r)||this;return r.kind=75,r}p.prototype.kind=75;var g,m=(__extends(y,g=t),Object.defineProperty(y.prototype,"text",{get:function(){return C.idText(this)},enumerable:!1,configurable:!0}),y);function y(e,t,r){return g.call(this,t,r)||this}m.prototype.kind=76;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&C.getObjectFlags(this))},v.prototype.isClass=function(){return!!(1&C.getObjectFlags(this))},Object.defineProperty(v.prototype,"typeArguments",{get:function(){if(4&C.getObjectFlags(this))return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),v);function v(e,t){this.checker=e,this.flags=t}var b=(x.prototype.getDeclaration=function(){return this.declaration},x.prototype.getTypeParameters=function(){return this.typeParameters},x.prototype.getParameters=function(){return this.parameters},x.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},x.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=S(C.singleElementArray(this.declaration),this.checker))},x.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?C.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},x);function x(e,t){this.checker=e,this.flags=t}function D(e){return C.getJSDocTags(e).some(function(e){return"inheritDoc"===e.tagName.text})}function S(e,n){if(!e)return C.emptyArray;var i=C.JsDoc.getJsDocCommentsFromDeclarations(e);return 0!==i.length&&!e.some(D)||C.forEachUnique(e,function(e){var t,r,e=(t=(e=e).symbol.name,r=n,C.firstDefined(e.parent?C.getAllSuperTypeNodes(e.parent):C.emptyArray,function(e){e=r.getTypeAtLocation(e),e=e&&r.getPropertyOfType(e,t),e=e&&e.getDocumentationComment(r);return e&&e.length?e:void 0}));e&&(i=0===i.length?e.slice():e.concat(C.lineBreakPart(),i))}),i}var T,k=(__extends(E,T=i),E.prototype.update=function(e,t){return C.updateSourceFile(this,e,t)},E.prototype.getLineAndCharacterOfPosition=function(e){return C.getLineAndCharacterOfPosition(this,e)},E.prototype.getLineStarts=function(){return C.getLineStarts(this)},E.prototype.getPositionOfLineAndCharacter=function(e,t,r){return C.computePositionOfLineAndCharacter(C.getLineStarts(this),e,t,this.text,r)},E.prototype.getLineEndOfPosition=function(e){var t,r=this.getLineAndCharacterOfPosition(e).line,e=this.getLineStarts();r+1>=e.length&&(t=this.getEnd()),t=t||e[r+1]-1;r=this.getFullText();return"\n"===r[t]&&"\r"===r[t-1]?t-1:t},E.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},E.prototype.computeNamedDeclarations=function(){var r=C.createMultiMap();return this.forEachChild(function e(t){switch(t.kind){case 244:case 201:case 161:case 160:var r,n=t,i=c(n);i&&(r=s(i),(i=C.lastOrUndefined(r))&&n.parent===i.parent&&n.symbol===i.symbol?n.body&&!i.body&&(r[r.length-1]=n):r.push(n)),C.forEachChild(t,e);break;case 245:case 214:case 246:case 247:case 248:case 249:case 253:case 263:case 258:case 255:case 256:case 163:case 164:case 173:o(t),C.forEachChild(t,e);break;case 156:if(!C.hasModifier(t,92))break;case 242:case 191:var n=t;if(C.isBindingPattern(n.name)){C.forEachChild(n.name,e);break}n.initializer&&e(n.initializer);case 284:case 159:case 158:o(t);break;case 260:var a=t;a.exportClause&&(C.isNamedExports(a.exportClause)?C.forEach(a.exportClause.elements,e):e(a.exportClause.name));break;case 254:var a=t.importClause;a&&(a.name&&o(a.name),a.namedBindings&&(256===a.namedBindings.kind?o(a.namedBindings):C.forEach(a.namedBindings.elements,e)));break;case 209:0!==C.getAssignmentDeclarationKind(t)&&o(t);default:C.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=C.getNonAssignedNameOfDeclaration(e);return e&&(C.isComputedPropertyName(e)&&C.isPropertyAccessExpression(e.expression)?e.expression.name.text:C.isPropertyName(e)?C.getNameFromPropertyName(e):void 0)}},E);function E(e,t,r){r=T.call(this,e,t,r)||this;return r.kind=290,r}var N=(A.prototype.getLineAndCharacterOfPosition=function(e){return C.getLineAndCharacterOfPosition(this,e)},A);function A(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}function F(e){var t=!0;for(r in e)if(C.hasProperty(e,r)&&!P(r)){t=!1;break}if(t)return e;var r,n={};for(r in e)C.hasProperty(e,r)&&(n[P(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=e[r]);return n}function P(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function w(){return{target:1,jsx:1}}C.toEditorSettings=F,C.displayPartsToString=function(e){return e?C.map(e,function(e){return e.text}).join(""):""},C.getDefaultCompilerOptions=w,C.getSupportedCodeFixes=function(){return C.codefix.getSupportedErrorCodes()};var I=(O.prototype.compilationSettings=function(){return this._compilationSettings},O.prototype.getProjectReferences=function(){return this.host.getProjectReferences&&this.host.getProjectReferences()},O.prototype.createEntry=function(e,t){var r=this.host.getScriptSnapshot(e),e=r?{hostFileName:e,version:this.host.getScriptVersion(e),scriptSnapshot:r,scriptKind:C.getScriptKind(e,this.host)}:e;return this.fileNameToEntry.set(t,e),e},O.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},O.prototype.getHostFileInformation=function(e){e=this.fileNameToEntry.get(e);return C.isString(e)?void 0:e},O.prototype.getOrCreateEntryByPath=function(e,t){t=this.getEntryByPath(t)||this.createEntry(e,t);return C.isString(t)?void 0:t},O.prototype.getRootFileNames=function(){var t=[];return this.fileNameToEntry.forEach(function(e){C.isString(e)?t.push(e):t.push(e.hostFileName)}),t},O.prototype.getScriptSnapshot=function(e){e=this.getHostFileInformation(e);return e&&e.scriptSnapshot},O);function O(e,t){this.host=e,this.currentDirectory=e.getCurrentDirectory(),this.fileNameToEntry=C.createMap();for(var r=0,n=e.getScriptFileNames();r<n.length;r++){var i=n[r];this.createEntry(i,C.toPath(i,this.currentDirectory,t))}this._compilationSettings=e.getCompilationSettings()||w()}var M=(L.prototype.getCurrentSourceFile=function(e){var t=this.host.getScriptSnapshot(e);if(!t)throw new Error("Could not find file: '"+e+"'.");var r,n=C.getScriptKind(e,this.host),i=this.host.getScriptVersion(e);return this.currentFileName!==e?r=B(e,t,99,i,!0,n):this.currentFileVersion!==i&&(n=t.getChangeRange(this.currentFileScriptSnapshot),r=j(this.currentSourceFile,t,i,n)),r&&(this.currentFileVersion=i,this.currentFileName=e,this.currentFileScriptSnapshot=t,this.currentSourceFile=r),this.currentSourceFile},L);function L(e){this.host=e}function R(e,t,r){e.version=r,e.scriptSnapshot=t}function B(e,t,r,n,i,a){a=C.createSourceFile(e,C.getSnapshotText(t),r,i,a);return R(a,t,n),a}function j(e,t,r,n,i){if(n&&r!==e.version){var a,o=void 0,s=0!==n.span.start?e.text.substr(0,n.span.start):"",c=C.textSpanEnd(n.span)!==e.text.length?e.text.substr(C.textSpanEnd(n.span)):"";o=0===n.newLength?s&&c?s+c:s||c:(a=t.getText(n.span.start,n.span.start+n.newLength),s&&c?s+a+c:s?s+a:a+c);i=C.updateSourceFile(e,o,n,i);return R(i,t,r),i.nameTable=void 0,e!==i&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),i}return B(e.fileName,t,e.languageVersion,r,!0,e.scriptKind)}C.createLanguageServiceSourceFile=B,C.updateLanguageServiceSourceFile=j;var J=(z.prototype.isCancellationRequested=function(){return!!this.cancellationToken&&this.cancellationToken.isCancellationRequested()},z.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new C.OperationCanceledException},z);function z(e){this.cancellationToken=e}function U(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}function V(e){e=function(e){switch(e.kind){case 10:case 14:case 8:if(154===e.parent.kind)return C.isObjectLiteralElement(e.parent.parent)?e.parent.parent:void 0;case 75:return!C.isObjectLiteralElement(e.parent)||193!==e.parent.parent.kind&&274!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}return}(e);return e&&(C.isObjectLiteralExpression(e.parent)||C.isJsxAttributes(e.parent))?e:void 0}function K(t,r,e,n){var i=C.getNameFromPropertyName(t.name);if(!i)return C.emptyArray;if(!e.isUnion())return(a=e.getProperty(i))?[a]:C.emptyArray;var a,o=C.mapDefined(e.types,function(e){return C.isObjectLiteralExpression(t.parent)&&r.isTypeInvalidDueToUnionDiscriminant(e,t.parent)?void 0:e.getProperty(i)});if(n&&(0===o.length||o.length===e.types.length)&&(a=e.getProperty(i)))return[a];return 0===o.length?C.mapDefined(e.types,function(e){return e.getProperty(i)}):o}U.prototype.isCancellationRequested=function(){var e=C.timestamp();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())},U.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new C.OperationCanceledException},t=U,C.ThrottledCancellationToken=t,C.createLanguageService=function(u,l,_){var e;void 0===l&&(l=C.createDocumentRegistry(u.useCaseSensitiveFileNames&&u.useCaseSensitiveFileNames(),u.getCurrentDirectory())),void 0===_&&(_=!1);var d,p,o=new M(u),f=0,g=new J(u.getCancellationToken&&u.getCancellationToken()),m=u.getCurrentDirectory();function y(e){u.log&&u.log(e)}!C.localizedDiagnosticMessages&&u.getLocalizedDiagnosticMessages&&C.setLocalizedDiagnosticMessages(u.getLocalizedDiagnosticMessages());var h=C.hostUsesCaseSensitiveFileNames(u),v=C.createGetCanonicalFileName(h),b=C.getSourceMapper({useCaseSensitiveFileNames:function(){return h},getCurrentDirectory:function(){return m},getProgram:i,fileExists:C.maybeBind(u,u.fileExists),readFile:C.maybeBind(u,u.readFile),getDocumentPositionMapper:C.maybeBind(u,u.getDocumentPositionMapper),getSourceFileLike:C.maybeBind(u,u.getSourceFileLike),log:y});function x(e){var t=d.getSourceFile(e);if(t)return t;e=new Error("Could not find source file: '"+e+"'.");throw e.ProgramFiles=d.getSourceFiles().map(function(e){return e.fileName}),e}function D(){if(C.Debug.assert(!_),u.getProjectVersion){var e=u.getProjectVersion();if(e){if(p===e&&!u.hasChangedAutomaticTypeDirectiveNames)return;p=e}}var t=u.getTypeRootsVersion?u.getTypeRootsVersion():0;f!==t&&(y("TypeRoots version has changed; provide new program"),d=void 0,f=t);var o,s,c=new I(u,v),r=c.getRootFileNames(),n=u.hasInvalidatedResolution||C.returnFalse,e=c.getProjectReferences();function i(e){var t=C.toPath(e,m,v),t=c&&c.getEntryByPath(t);return t?!C.isString(t):!!u.fileExists&&u.fileExists(e)}function a(e,t,r,n,i){C.Debug.assert(void 0!==c,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var a=c&&c.getOrCreateEntryByPath(e,t);if(a){if(!i){i=d&&d.getSourceFileByPath(t);if(i)return C.Debug.assertEqual(a.scriptKind,i.scriptKind,"Registered script kind should match new script kind."),l.updateDocumentWithKey(e,t,o,s,a.scriptSnapshot,a.version,a.scriptKind)}return l.acquireDocumentWithKey(e,t,o,s,a.scriptSnapshot,a.version,a.scriptKind)}}C.isProgramUptoDate(d,r,c.compilationSettings(),function(e,t){return u.getScriptVersion(t)},i,n,!!u.hasChangedAutomaticTypeDirectiveNames,e)||(o=c.compilationSettings(),t={getSourceFile:function(e,t,r,n){return a(e,C.toPath(e,m,v),0,0,n)},getSourceFileByPath:a,getCancellationToken:function(){return g},getCanonicalFileName:v,useCaseSensitiveFileNames:function(){return h},getNewLine:function(){return C.getNewLineCharacter(o,function(){return C.getNewLineOrDefaultFromHost(u)})},getDefaultLibFileName:function(e){return u.getDefaultLibFileName(e)},writeFile:C.noop,getCurrentDirectory:function(){return m},fileExists:i,readFile:function(e){var t=C.toPath(e,m,v),t=c&&c.getEntryByPath(t);if(t)return C.isString(t)?void 0:C.getSnapshotText(t.scriptSnapshot);return u.readFile&&u.readFile(e)},realpath:u.realpath&&function(e){return u.realpath(e)},directoryExists:function(e){return C.directoryProbablyExists(e,u)},getDirectories:function(e){return u.getDirectories?u.getDirectories(e):[]},readDirectory:function(e,t,r,n,i){return C.Debug.checkDefined(u.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),u.readDirectory(e,t,r,n,i)},onReleaseOldSourceFile:function(e,t){t=l.getKeyForCompilationSettings(t);l.releaseDocumentWithKey(e.resolvedPath,t)},hasInvalidatedResolution:n,hasChangedAutomaticTypeDirectiveNames:u.hasChangedAutomaticTypeDirectiveNames},u.trace&&(t.trace=function(e){return u.trace(e)}),u.resolveModuleNames&&(t.resolveModuleNames=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u.resolveModuleNames.apply(u,e)}),u.resolveTypeReferenceDirectives&&(t.resolveTypeReferenceDirectives=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u.resolveTypeReferenceDirectives.apply(u,e)}),u.useSourceOfProjectReferenceRedirect&&(t.useSourceOfProjectReferenceRedirect=function(){return u.useSourceOfProjectReferenceRedirect()}),null!==(n=u.setCompilerHost)&&void 0!==n&&n.call(u,t),s=l.getKeyForCompilationSettings(o),e={rootNames:r,options:o,host:t,oldProgram:d,projectReferences:e},d=C.createProgram(e),c=void 0,b.clearCache(),d.getTypeChecker())}function i(){if(!_)return D(),d;C.Debug.assert(void 0===d)}function r(e,t,r){var n=C.normalizePath(e);C.Debug.assert(r.some(function(e){return C.normalizePath(e)===n})),D();r=C.mapDefined(r,function(e){return d.getSourceFile(e)}),e=x(e);return C.DocumentHighlights.getDocumentHighlights(d,g,e,t,r)}function s(e,t,r,n){D();var i=r&&2===r.use?d.getSourceFiles().filter(function(e){return!d.isSourceFileDefaultLibrary(e)}):d.getSourceFiles();return C.FindAllReferences.findReferenceOrRenameEntries(d,g,i,e,t,r,n)}function n(e){e=C.getScriptKind(e,u);return 3===e||4===e}var a=C.createMapFromTemplate(((e={})[18]=19,e[20]=21,e[22]=23,e[31]=29,e));function c(e){var t;return C.Debug.assertEqual(e.type,"install package"),u.installPackage?u.installPackage({fileName:(t=e.file,C.toPath(t,m,v)),packageName:e.packageName}):Promise.reject("Host does not implement `installPackage`")}function S(e,t,r,n){t="number"==typeof t?[t,void 0]:[t.pos,t.end];return{file:e,startPosition:t[0],endPosition:t[1],program:i(),host:u,formatContext:C.formatting.getFormatContext(n,u),cancellationToken:g,preferences:r}}return a.forEach(function(e,t){return a.set(e.toString(),Number(t))}),{dispose:function(){var t;d&&(t=l.getKeyForCompilationSettings(d.getCompilerOptions()),C.forEach(d.getSourceFiles(),function(e){return l.releaseDocumentWithKey(e.resolvedPath,t)}),d=void 0),u=void 0},cleanupSemanticCache:function(){d=void 0},getSyntacticDiagnostics:function(e){return D(),d.getSyntacticDiagnostics(x(e),g).slice()},getSemanticDiagnostics:function(e){D();var t=x(e),e=d.getSemanticDiagnostics(t,g);return C.getEmitDeclarations(d.getCompilerOptions())?(t=d.getDeclarationDiagnostics(t,g),__spreadArrays(e,t)):e.slice()},getSuggestionDiagnostics:function(e){return D(),C.computeSuggestionDiagnostics(x(e),d,g)},getCompilerOptionsDiagnostics:function(){return D(),__spreadArrays(d.getOptionsDiagnostics(g),d.getGlobalDiagnostics(g))},getSyntacticClassifications:function(e,t){return C.getSyntacticClassifications(g,o.getCurrentSourceFile(e),t)},getSemanticClassifications:function(e,t){return n(e)?(D(),C.getSemanticClassifications(d.getTypeChecker(),g,x(e),d.getClassifiableNames(),t)):[]},getEncodedSyntacticClassifications:function(e,t){return C.getEncodedSyntacticClassifications(g,o.getCurrentSourceFile(e),t)},getEncodedSemanticClassifications:function(e,t){return n(e)?(D(),C.getEncodedSemanticClassifications(d.getTypeChecker(),g,x(e),d.getClassifiableNames(),t)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(e,t,r){void 0===r&&(r=C.emptyOptions);var n=__assign(__assign({},C.identity(r)),{includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions});return D(),C.Completions.getCompletionsAtPosition(u,d,y,x(e),t,n,r.triggerCharacter)},getCompletionEntryDetails:function(e,t,r,n,i,a){return void 0===a&&(a=C.emptyOptions),D(),C.Completions.getCompletionEntryDetails(d,y,x(e),t,{name:r,source:i},u,n&&C.formatting.getFormatContext(n,u),a,g)},getCompletionEntrySymbol:function(e,t,r,n,i){return void 0===i&&(i=C.emptyOptions),D(),C.Completions.getCompletionEntrySymbol(d,y,x(e),t,{name:r,source:n},u,i)},getSignatureHelpItems:function(e,t,r){return r=(void 0===r?C.emptyOptions:r).triggerReason,D(),e=x(e),C.SignatureHelp.getSignatureHelpItems(d,e,t,r,g)},getQuickInfoAtPosition:function(e,t){D();var r=x(e),n=C.getTouchingPropertyName(r,t);if(n!==r){var i=d.getTypeChecker(),a=function(e){if(C.isNewExpression(e.parent)&&e.pos===e.parent.pos)return e.parent.expression;return e}(n),o=function(e,t){var r=V(e);if(r){var n=t.getContextualType(r.parent),n=n&&K(r,t,n,!1);if(n&&1===n.length)return C.first(n)}return t.getSymbolAtLocation(e)}(a,i);if(!o||i.isUnknownSymbol(o)){var s=function(e,t,r){switch(t.kind){case 75:return!C.isLabelName(t)&&!C.isTagName(t);case 194:case 153:return!C.isInComment(e,r);case 104:case 183:case 102:return!0;default:return!1}}(r,a,t)?i.getTypeAtLocation(a):void 0;return s&&{kind:"",kindModifiers:"",textSpan:C.createTextSpanFromNode(a,r),displayParts:i.runWithCancellationToken(g,function(e){return C.typeToDisplayParts(e,s,C.getContainerNode(a))}),documentation:s.symbol?s.symbol.getDocumentationComment(i):void 0,tags:s.symbol?s.symbol.getJsDocTags():void 0}}e=i.runWithCancellationToken(g,function(e){return C.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(e,o,r,C.getContainerNode(a),a)}),n=e.symbolKind,t=e.displayParts,i=e.documentation,e=e.tags;return{kind:n,kindModifiers:C.SymbolDisplay.getSymbolModifiers(o),textSpan:C.createTextSpanFromNode(a,r),displayParts:t,documentation:i,tags:e}}},getDefinitionAtPosition:function(e,t){return D(),C.GoToDefinition.getDefinitionAtPosition(d,x(e),t)},getDefinitionAndBoundSpan:function(e,t){return D(),C.GoToDefinition.getDefinitionAndBoundSpan(d,x(e),t)},getImplementationAtPosition:function(e,t){return D(),C.FindAllReferences.getImplementationsAtPosition(d,g,d.getSourceFiles(),x(e),t)},getTypeDefinitionAtPosition:function(e,t){return D(),C.GoToDefinition.getTypeDefinitionAtPosition(d.getTypeChecker(),x(e),t)},getReferencesAtPosition:function(e,t){return D(),s(C.getTouchingPropertyName(x(e),t),t,{use:1},C.FindAllReferences.toReferenceEntry)},findReferences:function(e,t){return D(),C.FindAllReferences.findReferencedSymbols(d,g,d.getSourceFiles(),x(e),t)},getOccurrencesAtPosition:function(e,t){return C.flatMap(r(e,t,[e]),function(t){return t.highlightSpans.map(function(e){return __assign(__assign({fileName:t.fileName,textSpan:e.textSpan,isWriteAccess:"writtenReference"===e.kind,isDefinition:!1},e.isInString&&{isInString:!0}),e.contextSpan&&{contextSpan:e.contextSpan})})})},getDocumentHighlights:r,getNameOrDottedNameSpan:function(e,t,r){if(e=o.getCurrentSourceFile(e),(t=C.getTouchingPropertyName(e,t))!==e){switch(t.kind){case 194:case 153:case 10:case 91:case 106:case 100:case 102:case 104:case 183:case 75:break;default:return}for(var n=t;;)if(C.isRightSideOfPropertyAccess(n)||C.isRightSideOfQualifiedName(n))n=n.parent;else{if(!C.isNameOfModuleDeclaration(n))break;if(249!==n.parent.parent.kind||n.parent.parent.body!==n.parent)break;n=n.parent.parent.name}return C.createTextSpanFromBounds(n.getStart(),t.getEnd())}},getBreakpointStatementAtPosition:function(e,t){return e=o.getCurrentSourceFile(e),C.BreakpointResolver.spanInSourceFileAtLocation(e,t)},getNavigateToItems:function(e,t,r,n){return void 0===n&&(n=!1),D(),r=r?[x(r)]:d.getSourceFiles(),C.NavigateTo.getNavigateToItems(r,d.getTypeChecker(),g,e,t,n)},getRenameInfo:function(e,t,r){return D(),C.Rename.getRenameInfo(d,x(e),t,r)},getSmartSelectionRange:function(e,t){return C.SmartSelectionRange.getSmartSelectionRange(t,o.getCurrentSourceFile(e))},findRenameLocations:function(e,t,r,n,i){D();var a=x(e),o=C.getAdjustedRenameLocation(C.getTouchingPropertyName(a,t));if(C.isIdentifier(o)&&(C.isJsxOpeningElement(o.parent)||C.isJsxClosingElement(o.parent))&&C.isIntrinsicJsxName(o.escapedText)){e=o.parent.parent;return[e.openingElement,e.closingElement].map(function(e){var t=C.createTextSpanFromNode(e.tagName,a);return __assign({fileName:a.fileName,textSpan:t},C.FindAllReferences.toContextSpan(t,a,e.parent))})}return s(o,t,{findInStrings:r,findInComments:n,providePrefixAndSuffixTextForRename:i,use:2},function(e,t,r){return C.FindAllReferences.toRenameLocation(e,t,r,i||!1)})},getNavigationBarItems:function(e){return C.NavigationBar.getNavigationBarItems(o.getCurrentSourceFile(e),g)},getNavigationTree:function(e){return C.NavigationBar.getNavigationTree(o.getCurrentSourceFile(e),g)},getOutliningSpans:function(e){return e=o.getCurrentSourceFile(e),C.OutliningElementsCollector.collectElements(e,g)},getTodoComments:function(e,t){D();var r=x(e);g.throwIfCancellationRequested();var n,i,a=r.text,o=[];if(0<t.length&&(i=r.fileName,!C.stringContains(i,"/node_modules/")))for(var s,c=(e="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",i="(?:"+C.map(t,function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"}).join("|")+")",new RegExp(e+"("+i+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim"));s=c.exec(a);){g.throwIfCancellationRequested();C.Debug.assert(s.length===t.length+3);var u=s[1],l=s.index+u.length;if(C.isInComment(r,l)){for(var _=void 0,d=0;d<t.length;d++)s[d+3]&&(_=t[d]);if(void 0===_)return C.Debug.fail();97<=(n=a.charCodeAt(l+_.text.length))&&n<=122||65<=n&&n<=90||48<=n&&n<=57||(u=s[2],o.push({descriptor:_,message:u,position:l}))}}return o},getBraceMatchingAtPosition:function(e,t){var r=o.getCurrentSourceFile(e),e=C.getTouchingToken(r,t);return(t=(t=e.getStart(r)===t?a.get(e.kind.toString()):void 0)&&C.findChildOfKind(e.parent,t,r))?[C.createTextSpanFromNode(e,r),C.createTextSpanFromNode(t,r)].sort(function(e,t){return e.start-t.start}):C.emptyArray},getIndentationAtPosition:function(e,t,r){var n=C.timestamp(),r=F(r),e=o.getCurrentSourceFile(e);return y("getIndentationAtPosition: getCurrentSourceFile: "+(C.timestamp()-n)),n=C.timestamp(),r=C.formatting.SmartIndenter.getIndentation(t,e,r),y("getIndentationAtPosition: computeIndentation  : "+(C.timestamp()-n)),r},getFormattingEditsForRange:function(e,t,r,n){return e=o.getCurrentSourceFile(e),C.formatting.formatSelection(t,r,e,C.formatting.getFormatContext(F(n),u))},getFormattingEditsForDocument:function(e,t){return C.formatting.formatDocument(o.getCurrentSourceFile(e),C.formatting.getFormatContext(F(t),u))},getFormattingEditsAfterKeystroke:function(e,t,r,n){var i=o.getCurrentSourceFile(e),a=C.formatting.getFormatContext(F(n),u);if(!C.isInComment(i,t))switch(r){case"{":return C.formatting.formatOnOpeningCurly(t,i,a);case"}":return C.formatting.formatOnClosingCurly(t,i,a);case";":return C.formatting.formatOnSemicolon(t,i,a);case"\n":return C.formatting.formatOnEnter(t,i,a)}return[]},getDocCommentTemplateAtPosition:function(e,t){return C.JsDoc.getDocCommentTemplateAtPosition(C.getNewLineOrDefaultFromHost(u),o.getCurrentSourceFile(e),t)},isValidBraceCompletionAtPosition:function(e,t,r){if(60===r)return!1;var n=o.getCurrentSourceFile(e);if(C.isInString(n,t))return!1;if(C.isInsideJsxElementOrAttribute(n,t))return 123===r;if(C.isInTemplateString(n,t))return!1;switch(r){case 39:case 34:case 96:return!C.isInComment(n,t)}return!0},getJsxClosingTagAtPosition:function(e,t){if(e=o.getCurrentSourceFile(e),t=C.findPrecedingToken(t,e)){t=31===t.kind&&C.isJsxOpeningElement(t.parent)?t.parent.parent:C.isJsxText(t)?t.parent:void 0;return t&&function e(t){var r=t.openingElement,n=t.closingElement,t=t.parent;return!C.tagNamesAreEquivalent(r.tagName,n.tagName)||C.isJsxElement(t)&&C.tagNamesAreEquivalent(r.tagName,t.openingElement.tagName)&&e(t)}(t)?{newText:"</"+t.openingElement.tagName.getText(e)+">"}:void 0}},getSpanOfEnclosingComment:function(e,t,r){return e=o.getCurrentSourceFile(e),!(t=C.formatting.getRangeOfEnclosingComment(e,t))||r&&3!==t.kind?void 0:C.createTextSpanFromRange(t)},getCodeFixesAtPosition:function(e,t,r,n,i,a){void 0===a&&(a=C.emptyOptions),D();var o=x(e),s=C.createTextSpanFromBounds(t,r),c=C.formatting.getFormatContext(i,u);return C.flatMap(C.deduplicate(n,C.equateValues,C.compareValues),function(e){return g.throwIfCancellationRequested(),C.codefix.getFixes({errorCode:e,sourceFile:o,span:s,program:d,host:u,cancellationToken:g,formatContext:c,preferences:a})})},getCombinedCodeFix:function(e,t,r,n){return void 0===n&&(n=C.emptyOptions),D(),C.Debug.assert("file"===e.type),e=x(e.fileName),r=C.formatting.getFormatContext(r,u),C.codefix.getAllFixes({fixId:t,sourceFile:e,program:d,host:u,cancellationToken:g,formatContext:r,preferences:n})},applyCodeActionCommand:function(e,t){return e="string"==typeof e?t:e,C.isArray(e)?Promise.all(e.map(c)):c(e)},organizeImports:function(e,t,r){return void 0===r&&(r=C.emptyOptions),D(),C.Debug.assert("file"===e.type),e=x(e.fileName),t=C.formatting.getFormatContext(t,u),C.OrganizeImports.organizeImports(e,t,u,d,r)},getEditsForFileRename:function(e,t,r,n){return void 0===n&&(n=C.emptyOptions),C.getEditsForFileRename(i(),e,t,u,C.formatting.getFormatContext(r,u),n,b)},getEmitOutput:function(e,t,r){D();var n=x(e),e=u.getCustomTransformers&&u.getCustomTransformers();return C.getFileEmitOutput(d,n,!!t,g,e,r)},getNonBoundSourceFile:function(e){return o.getCurrentSourceFile(e)},getProgram:i,getApplicableRefactors:function(e,t,r){return void 0===r&&(r=C.emptyOptions),D(),e=x(e),C.refactor.getApplicableRefactors(S(e,t,r))},getEditsForRefactor:function(e,t,r,n,i,a){return void 0===a&&(a=C.emptyOptions),D(),e=x(e),C.refactor.getEditsForRefactor(S(e,r,a,t),n,i)},toLineColumnOffset:b.toLineColumnOffset,getSourceMapper:function(){return b},clearSourceMapperCache:function(){return b.clearCache()},prepareCallHierarchy:function(e,t){return D(),(t=C.CallHierarchy.resolveCallHierarchyDeclaration(d,C.getTouchingPropertyName(x(e),t)))&&C.mapOneOrMany(t,function(e){return C.CallHierarchy.createCallHierarchyItem(d,e)})},provideCallHierarchyIncomingCalls:function(e,t){return D(),e=x(e),(t=C.firstOrOnly(C.CallHierarchy.resolveCallHierarchyDeclaration(d,0===t?e:C.getTouchingPropertyName(e,t))))?C.CallHierarchy.getIncomingCalls(d,t,g):[]},provideCallHierarchyOutgoingCalls:function(e,t){return D(),e=x(e),(t=C.firstOrOnly(C.CallHierarchy.resolveCallHierarchyDeclaration(d,0===t?e:C.getTouchingPropertyName(e,t))))?C.CallHierarchy.getOutgoingCalls(d,t):[]}}},C.getNameTable=function(e){var t,s;return e.nameTable||(s=(t=e).nameTable=C.createUnderscoreEscapedMap(),t.forEachChild(function e(t){var r,n;if(C.isIdentifier(t)&&!C.isTagName(t)&&t.escapedText||C.isStringOrNumericLiteralLike(t)&&(n=t,C.isDeclarationName(n)||265===n.parent.kind||function(e){return e&&e.parent&&195===e.parent.kind&&e.parent.argumentExpression===e}(n)||C.isLiteralComputedPropertyDeclarationName(n))?(r=C.getEscapedTextOfIdentifierOrLiteral(t),s.set(r,void 0===s.get(r)?t.pos:-1)):C.isPrivateIdentifier(t)&&(r=t.escapedText,s.set(r,void 0===s.get(r)?t.pos:-1)),C.forEachChild(t,e),C.hasJSDocNodes(t))for(var i=0,a=t.jsDoc;i<a.length;i++){var o=a[i];C.forEachChild(o,e)}})),e.nameTable},C.getContainingObjectLiteralElement=V,C.getPropertySymbolsFromContextualType=K,C.getDefaultLibFilePath=function(e){if("undefined"!=typeof __dirname)return __dirname+C.directorySeparator+C.getDefaultLibFileName(e);throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")},C.setObjectAllocator({getNodeConstructor:function(){return i},getTokenConstructor:function(){return l},getIdentifierConstructor:function(){return p},getPrivateIdentifierConstructor:function(){return m},getSourceFileConstructor:function(){return k},getSymbolConstructor:function(){return n},getTypeConstructor:function(){return h},getSignatureConstructor:function(){return b},getSourceMapSourceConstructor:function(){return N}})}(ts=ts||{}),function(T){(T.BreakpointResolver||(T.BreakpointResolver={})).spanInSourceFileAtLocation=function(h,e){if(!h.isDeclarationFile){var t=T.getTokenAtPosition(h,e),r=h.getLineAndCharacterOfPosition(e).line;if(h.getLineAndCharacterOfPosition(t.getStart(h)).line>r){e=T.findPrecedingToken(t.pos,h);if(!e||h.getLineAndCharacterOfPosition(e.getEnd()).line!==r)return;t=e}if(!(8388608&t.flags))return C(t)}function v(e,t){var r=e.decorators?T.skipTrivia(h.text,e.decorators.end):e.getStart(h);return T.createTextSpanFromBounds(r,(t||e).getEnd())}function b(e,t){return v(e,T.findNextToken(t,t.parent,h))}function x(e,t){return e&&r===h.getLineAndCharacterOfPosition(e.getStart(h)).line?C(e):C(t)}function D(e){return C(T.findPrecedingToken(e.pos,h))}function S(e){return C(T.findNextToken(e,e.parent,h))}function C(e){if(e){var t=e.parent;switch(e.kind){case 225:return _(e.declarationList.declarations[0]);case 242:case 159:case 158:return _(e);case 156:return function e(t){{if(T.isBindingPattern(t.name))return m(t.name);if(d(t))return v(t);var r=t.parent,t=r.parameters.indexOf(t);return T.Debug.assert(-1!==t),0!==t?e(r.parameters[t-1]):C(r.body)}}(e);case 244:case 161:case 160:case 163:case 164:case 162:case 201:case 202:return function(e){if(!e.body)return;if(p(e))return v(e);return C(e.body)}(e);case 223:if(T.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 C(t)}(e);case 250:return f(e);case 280:return f(e.block);case 226:return v(e.expression);case 235:return v(e.getChildAt(0),e.expression);case 229:return b(e,e.expression);case 228:return C(e.statement);case 241:return v(e.getChildAt(0));case 227:return b(e,e.expression);case 238:return C(e.statement);case 234:case 233:return v(e.getChildAt(0),e.label);case 230: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 231:return b(e,e.expression);case 232:return g(e);case 237:return b(e,e.expression);case 277:case 278:return C(e.statements[0]);case 240:return f(e.tryBlock);case 239:case 259:return v(e,e.expression);case 253:return v(e,e.moduleReference);case 254:case 260:return v(e,e.moduleSpecifier);case 249:if(1!==T.getModuleInstanceState(e))return;case 245:case 248:case 284:case 191:return v(e);case 236:return C(e.statement);case 157:return n=t.decorators,T.createTextSpanFromBounds(T.skipTrivia(h.text,n.pos),n.end);case 189:case 190:return m(e);case 246:case 247:return;case 26:case 1:return x(T.findPrecedingToken(e.pos,h));case 27:return D(e);case 18:return function(e){switch(e.parent.kind){case 248:var t=e.parent;return x(T.findPrecedingToken(e.pos,h,e.parent),t.members.length?t.members[0]:t.getLastToken(h));case 245:t=e.parent;return x(T.findPrecedingToken(e.pos,h,e.parent),t.members.length?t.members[0]:t.getLastToken(h));case 251:return x(e.parent.parent,e.parent.clauses[0])}return C(e.parent)}(e);case 19:return function(e){switch(e.parent.kind){case 250:if(1!==T.getModuleInstanceState(e.parent.parent))return;case 248:case 245:return v(e);case 223:if(T.isFunctionBlock(e.parent))return v(e);case 280:return C(T.lastOrUndefined(e.parent.statements));case 251:var t=e.parent,t=T.lastOrUndefined(t.clauses);return t?C(T.lastOrUndefined(t.statements)):void 0;case 189:var r=e.parent;return C(T.lastOrUndefined(r.elements)||r);default:if(T.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent)){r=e.parent;return v(T.lastOrUndefined(r.properties)||r)}return C(e.parent)}}(e);case 23:return function(e){{if(190===e.parent.kind){var t=e.parent;return v(T.lastOrUndefined(t.elements)||t)}if(T.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent)){t=e.parent;return v(T.lastOrUndefined(t.elements)||t)}return C(e.parent)}}(e);case 20:return 228!==(u=e).parent.kind&&196!==u.parent.kind&&197!==u.parent.kind?200!==u.parent.kind?C(u.parent):S(u):D(u);case 21:return function(e){switch(e.parent.kind){case 201:case 244:case 202:case 161:case 160:case 163:case 164:case 162:case 229:case 228:case 230:case 232:case 196:case 197:case 200:return D(e);default:return C(e.parent)}}(e);case 58:return function(e){if(T.isFunctionLike(e.parent)||281===e.parent.kind||156===e.parent.kind)return D(e);return C(e.parent)}(e);case 31:case 29:return 199!==(c=e).parent.kind?C(c.parent):S(c);case 111:return 228!==(s=e).parent.kind?C(s.parent):b(s,s.parent.expression);case 87:case 79:case 92:return S(e);case 152:return 232!==(o=e).parent.kind?C(o.parent):S(o);default:if(T.isArrayLiteralOrObjectLiteralDestructuringPattern(e))return y(e);if((75===e.kind||213===e.kind||281===e.kind||282===e.kind)&&T.isArrayLiteralOrObjectLiteralDestructuringPattern(t))return v(e);if(209===e.kind){var r=e.left,n=e.operatorToken;if(T.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return y(r);if(62===n.kind&&T.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent))return v(e);if(27===n.kind)return C(r)}if(T.isExpressionNode(e))switch(t.kind){case 228:return D(e);case 157:return C(e.parent);case 230:case 232:return v(e);case 209:if(27===e.parent.operatorToken.kind)return v(e);break;case 202:if(e.parent.body===e)return v(e)}switch(e.parent.kind){case 281:if(e.parent.name===e&&!T.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent.parent))return C(e.parent.initializer);break;case 199:if(e.parent.type===e)return S(e.parent.type);break;case 242:case 156:var i=e.parent,a=i.initializer,i=i.type;if(a===e||i===e||T.isAssignmentOperator(e.kind))return D(e);break;case 209:r=e.parent.left;if(T.isArrayLiteralOrObjectLiteralDestructuringPattern(r)&&e!==r)return D(e);break;default:if(T.isFunctionLike(e.parent)&&e.parent.type===e)return D(e)}return C(e.parent)}}var o,s,c,u,n;function l(e){return T.isVariableDeclarationList(e.parent)&&e.parent.declarations[0]===e?v(T.findPrecedingToken(e.pos,h,e.parent),e):v(e)}function _(e){if(231===e.parent.parent.kind)return C(e.parent.parent);var t=e.parent;return T.isBindingPattern(e.name)?m(e.name):e.initializer||T.hasModifier(e,1)||232===t.parent.kind?l(e):T.isVariableDeclarationList(e.parent)&&e.parent.declarations[0]!==e?C(T.findPrecedingToken(e.pos,h,e.parent)):void 0}function d(e){return e.initializer||void 0!==e.dotDotDotToken||T.hasModifier(e,12)}function p(e){return T.hasModifier(e,1)||245===e.parent.kind&&162!==e.kind}function f(e){switch(e.parent.kind){case 249:if(1!==T.getModuleInstanceState(e.parent))return;case 229:case 227:case 231:return x(e.parent,e.statements[0]);case 230:case 232:return x(T.findPrecedingToken(e.pos,h,e.parent),e.statements[0])}return C(e.statements[0])}function g(e){if(243!==e.initializer.kind)return C(e.initializer);e=e.initializer;return 0<e.declarations.length?C(e.declarations[0]):void 0}function m(e){var t=T.forEach(e.elements,function(e){return 215!==e.kind?e:void 0});return t?C(t):(191===e.parent.kind?v:l)(e.parent)}function y(e){T.Debug.assert(190!==e.kind&&189!==e.kind);var t=192===e.kind?e.elements:e.properties,t=T.forEach(t,function(e){return 215!==e.kind?e:void 0});return t?C(t):v(209===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,r,e,t,!0)).diagnostics=i.concatenate(t.diagnostics,n),t}}(ts=ts||{});var ts,debugObjectHost=function(){return this}();!function(o){function s(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var t=(e.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},e.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},e.prototype.getChangeRange=function(e){e=this.scriptSnapshotShim.getChangeRange(e.scriptSnapshotShim);if(null===e)return null;e=JSON.parse(e);return o.createTextChangeRange(o.createTextSpan(e.span.start,e.span.length),e.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},e);function e(e){this.scriptSnapshotShim=e}var r=(n.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},n.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},n.prototype.error=function(e){this.shimHost.error(e)},n.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},n.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},n.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},n.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");e=JSON.parse(e);return e.allowNonTsExtensions=!0,e},n.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},n.prototype.getScriptSnapshot=function(e){e=this.shimHost.getScriptSnapshot(e);return e&&new t(e)},n.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},n.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},n.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},n.prototype.getCancellationToken=function(){var e=this.shimHost.getCancellationToken();return new o.ThrottledCancellationToken(e)},n.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},n.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},n.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},n.prototype.readDirectory=function(e,t,r,n,i){n=o.getFileMatcherPatterns(e,r,n,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(n.basePaths),n.excludePattern,n.includeFilePattern,n.includeDirectoryPattern,i))},n.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},n.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},n);function n(e){var n=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,t){var r=JSON.parse(n.shimHost.getModuleResolutionsForFile(t));return o.map(e,function(e){e=o.getProperty(r,e);return e?{resolvedFileName:e,extension:o.extensionFromPath(e),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return n.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(e,t){var r=JSON.parse(n.shimHost.getTypeReferenceDirectiveResolutionsForFile(t));return o.map(e,function(e){return o.getProperty(r,e)})})}o.LanguageServiceShimHostAdapter=r;var i=(a.prototype.readDirectory=function(e,t,r,n,i){n=o.getFileMatcherPatterns(e,r,n,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(n.basePaths),n.excludePattern,n.includeFilePattern,n.includeDirectoryPattern,i))},a.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},a.prototype.readFile=function(e){return this.shimHost.readFile(e)},a.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},a);function a(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=function(e){return t.shimHost.directoryExists(e)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return t.shimHost.realpath(e)}:this.realpath=void 0}function c(e,t,r,n){return u(e,t,!0,r,n)}function u(t,r,e,n,i){try{var a=function(e,t,r,n){n&&(e.log(t),i=o.timestamp());var i,r=r();return n&&(n=o.timestamp(),e.log(t+" completed in "+(n-i)+" msec"),o.isString(r)&&(128<(i=r).length&&(i=i.substring(0,128)+"..."),e.log("  result.length="+i.length+", result='"+JSON.stringify(i)+"'"))),r}(t,r,n,i);return e?JSON.stringify({result:a}):a}catch(e){return e instanceof o.OperationCanceledException?JSON.stringify({canceled:!0}):(s(t,e),e.description=r,JSON.stringify({error:e}))}}o.CoreServicesShimHostAdapter=i;var l=(_.prototype.dispose=function(e){this.factory.unregisterShim(this)},_);function _(e){(this.factory=e).registerShim(this)}function d(e,r){return e.map(function(e){return t=e,e=r,{message:o.flattenDiagnosticMessageText(t.messageText,e),start:t.start,length:t.length,category:o.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary};var t})}o.realizeDiagnostics=d;var p,f=(__extends(g,p=l),g.prototype.forwardJSONCall=function(e,t){return c(this.logger,e,t,this.logPerformance)},g.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,debugObjectHost&&debugObjectHost.CollectGarbage&&(debugObjectHost.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,p.prototype.dispose.call(this,e)},g.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})},g.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null})},g.prototype.realizeDiagnostics=function(e){return d(e,o.getNewLineOrDefaultFromHost(this.host))},g.prototype.getSyntacticClassifications=function(e,t,r){var n=this;return this.forwardJSONCall("getSyntacticClassifications('"+e+"', "+t+", "+r+")",function(){return n.languageService.getSyntacticClassifications(e,o.createTextSpan(t,r))})},g.prototype.getSemanticClassifications=function(e,t,r){var n=this;return this.forwardJSONCall("getSemanticClassifications('"+e+"', "+t+", "+r+")",function(){return n.languageService.getSemanticClassifications(e,o.createTextSpan(t,r))})},g.prototype.getEncodedSyntacticClassifications=function(e,t,r){var n=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+e+"', "+t+", "+r+")",function(){return m(n.languageService.getEncodedSyntacticClassifications(e,o.createTextSpan(t,r)))})},g.prototype.getEncodedSemanticClassifications=function(e,t,r){var n=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+e+"', "+t+", "+r+")",function(){return m(n.languageService.getEncodedSemanticClassifications(e,o.createTextSpan(t,r)))})},g.prototype.getSyntacticDiagnostics=function(t){var r=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+t+"')",function(){var e=r.languageService.getSyntacticDiagnostics(t);return r.realizeDiagnostics(e)})},g.prototype.getSemanticDiagnostics=function(t){var r=this;return this.forwardJSONCall("getSemanticDiagnostics('"+t+"')",function(){var e=r.languageService.getSemanticDiagnostics(t);return r.realizeDiagnostics(e)})},g.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))})},g.prototype.getCompilerOptionsDiagnostics=function(){var t=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var e=t.languageService.getCompilerOptionsDiagnostics();return t.realizeDiagnostics(e)})},g.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return r.languageService.getQuickInfoAtPosition(e,t)})},g.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)})},g.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBreakpointStatementAtPosition(e,t)})},g.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return n.languageService.getSignatureHelpItems(e,t,r)})},g.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAtPosition(e,t)})},g.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAndBoundSpan(e,t)})},g.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getTypeDefinitionAtPosition(e,t)})},g.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return r.languageService.getImplementationAtPosition(e,t)})},g.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return n.languageService.getRenameInfo(e,t,r)})},g.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('"+e+"', "+t+")",function(){return r.languageService.getSmartSelectionRange(e,t)})},g.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+r+", "+n+", "+i+")",function(){return a.languageService.findRenameLocations(e,t,r,n,i)})},g.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBraceMatchingAtPosition(e,t)})},g.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)})},g.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)})},g.prototype.getIndentationAtPosition=function(t,r,n){var i=this;return this.forwardJSONCall("getIndentationAtPosition('"+t+"', "+r+")",function(){var e=JSON.parse(n);return i.languageService.getIndentationAtPosition(t,r,e)})},g.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getReferencesAtPosition(e,t)})},g.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return r.languageService.findReferences(e,t)})},g.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getOccurrencesAtPosition(e,t)})},g.prototype.getDocumentHighlights=function(r,n,i){var a=this;return this.forwardJSONCall("getDocumentHighlights('"+r+"', "+n+")",function(){var e=a.languageService.getDocumentHighlights(r,n,JSON.parse(i)),t=o.toFileNameLowerCase(o.normalizeSlashes(r));return o.filter(e,function(e){return o.toFileNameLowerCase(o.normalizeSlashes(e.fileName))===t})})},g.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.getCompletionsAtPosition(e,t,r)})},g.prototype.getCompletionEntryDetails=function(t,r,n,i,a,o){var s=this;return this.forwardJSONCall("getCompletionEntryDetails('"+t+"', "+r+", '"+n+"')",function(){var e=void 0===i?void 0:JSON.parse(i);return s.languageService.getCompletionEntryDetails(t,r,n,e,a,o)})},g.prototype.getFormattingEditsForRange=function(t,r,n,i){var a=this;return this.forwardJSONCall("getFormattingEditsForRange('"+t+"', "+r+", "+n+")",function(){var e=JSON.parse(i);return a.languageService.getFormattingEditsForRange(t,r,n,e)})},g.prototype.getFormattingEditsForDocument=function(t,r){var n=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+t+"')",function(){var e=JSON.parse(r);return n.languageService.getFormattingEditsForDocument(t,e)})},g.prototype.getFormattingEditsAfterKeystroke=function(t,r,n,i){var a=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+t+"', "+r+", '"+n+"')",function(){var e=JSON.parse(i);return a.languageService.getFormattingEditsAfterKeystroke(t,r,n,e)})},g.prototype.getDocCommentTemplateAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDocCommentTemplateAtPosition(e,t)})},g.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNavigateToItems(e,t,r)})},g.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},g.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},g.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},g.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return r.languageService.getTodoComments(e,JSON.parse(t))})},g.prototype.prepareCallHierarchy=function(e,t){var r=this;return this.forwardJSONCall("prepareCallHierarchy('"+e+"', "+t+")",function(){return r.languageService.prepareCallHierarchy(e,t)})},g.prototype.provideCallHierarchyIncomingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('"+e+"', "+t+")",function(){return r.languageService.provideCallHierarchyIncomingCalls(e,t)})},g.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('"+e+"', "+t+")",function(){return r.languageService.provideCallHierarchyOutgoingCalls(e,t)})},g.prototype.getEmitOutput=function(r){var n=this;return this.forwardJSONCall("getEmitOutput('"+r+"')",function(){var e=n.languageService.getEmitOutput(r),t=e.diagnostics,e=__rest(e,["diagnostics"]);return __assign(__assign({},e),{diagnostics:n.realizeDiagnostics(t)})})},g.prototype.getEmitOutputObject=function(e){var t=this;return u(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},g);function g(e,t,r){e=p.call(this,e)||this;return e.host=t,e.languageService=r,e.logPerformance=!1,e.logger=e.host,e}function m(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var y,h=(__extends(v,y=l),v.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),c(this.logger,"getEncodedLexicalClassifications",function(){return m(n.classifier.getEncodedLexicalClassifications(e,t,r))},this.logPerformance)},v.prototype.getClassificationsForLine=function(e,t,r){void 0===r&&(r=!1);for(var r=this.classifier.getClassificationsForLine(e,t,r),n="",i=0,a=r.entries;i<a.length;i++){var o=a[i];n+=o.length+"\n",n+=o.classification+"\n"}return n+=r.finalLexState},v);function v(e,t){e=y.call(this,e)||this;return e.logger=t,e.logPerformance=!1,e.classifier=o.createClassifier(),e}var b,x=(__extends(D,b=l),D.prototype.forwardJSONCall=function(e,t){return c(this.logger,e,t,this.logPerformance)},D.prototype.resolveModuleName=function(r,n,i){var a=this;return this.forwardJSONCall("resolveModuleName('"+r+"')",function(){var e=JSON.parse(i),t=o.resolveModuleName(n,o.normalizeSlashes(r),e,a.host),e=t.resolvedModule?t.resolvedModule.resolvedFileName:void 0;return t.resolvedModule&&".ts"!==t.resolvedModule.extension&&".tsx"!==t.resolvedModule.extension&&".d.ts"!==t.resolvedModule.extension&&(e=void 0),{resolvedFileName:e,failedLookupLocations:t.failedLookupLocations}})},D.prototype.resolveTypeReferenceDirective=function(t,r,n){var i=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+t+")",function(){var e=JSON.parse(n),e=o.resolveTypeReferenceDirective(r,o.normalizeSlashes(t),e,i.host);return{resolvedFileName:e.resolvedTypeReferenceDirective?e.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!e.resolvedTypeReferenceDirective||e.resolvedTypeReferenceDirective.primary,failedLookupLocations:e.failedLookupLocations}})},D.prototype.getPreProcessedFileInfo=function(e,t){var r=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+e+"')",function(){var e=o.preProcessFile(o.getSnapshotText(t),!0,!0);return{referencedFiles:r.convertFileReferences(e.referencedFiles),importedFiles:r.convertFileReferences(e.importedFiles),ambientExternalModules:e.ambientExternalModules,isLibFile:e.isLibFile,typeReferenceDirectives:r.convertFileReferences(e.typeReferenceDirectives),libReferenceDirectives:r.convertFileReferences(e.libReferenceDirectives)}})},D.prototype.getAutomaticTypeDirectiveNames=function(t){var r=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+t+"')",function(){var e=JSON.parse(t);return o.getAutomaticTypeDirectiveNames(e,r.host)})},D.prototype.convertFileReferences=function(e){if(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];t.push({path:o.normalizeSlashes(i.fileName),position:i.pos,length:i.end-i.pos})}return t}},D.prototype.getTSConfigFileInfo=function(r,n){var i=this;return this.forwardJSONCall("getTSConfigFileInfo('"+r+"')",function(){var e=o.parseJsonText(r,o.getSnapshotText(n)),t=o.normalizeSlashes(r),t=o.parseJsonSourceFileConfigFileContent(e,i.host,o.getDirectoryPath(t),{},t);return{options:t.options,typeAcquisition:t.typeAcquisition,files:t.fileNames,raw:t.raw,errors:d(__spreadArrays(e.parseDiagnostics,t.errors),"\r\n")}})},D.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return o.getDefaultCompilerOptions()})},D.prototype.discoverTypings=function(t){var r=this,n=o.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var e=JSON.parse(t);return void 0===r.safeList&&(r.safeList=o.JsTyping.loadSafeList(r.host,o.toPath(e.safeListPath,e.safeListPath,n))),o.JsTyping.discoverTypings(r.host,function(e){return r.logger.log(e)},e.fileNames,o.toPath(e.projectRootPath,e.projectRootPath,n),r.safeList,e.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,e.typesRegistry)})},D);function D(e,t,r){e=b.call(this,e)||this;return e.logger=t,e.host=r,e.logPerformance=!1,e}function S(){this._shims=[]}S.prototype.getServicesVersion=function(){return o.servicesVersion},S.prototype.createLanguageServiceShim=function(t){try{void 0===this.documentRegistry&&(this.documentRegistry=o.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));var e=new r(t),e=o.createLanguageService(e,this.documentRegistry,!1);return new f(this,t,e)}catch(e){throw s(t,e),e}},S.prototype.createClassifierShim=function(t){try{return new h(this,t)}catch(e){throw s(t,e),e}},S.prototype.createCoreServicesShim=function(t){try{var e=new i(t);return new x(this,t,e)}catch(e){throw s(t,e),e}},S.prototype.close=function(){o.clear(this._shims),this.documentRegistry=void 0},S.prototype.registerShim=function(e){this._shims.push(e)},S.prototype.unregisterShim=function(e){for(var t=0;t<this._shims.length;t++)if(this._shims[t]===e)return void delete this._shims[t];throw new Error("Invalid operation")},l=S,o.TypeScriptServicesFactory=l}(ts=ts||{}),function(){if("object"!=typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,"undefined"==typeof globalThis&&(window.globalThis=window),delete Object.prototype.__magic__}catch(e){window.globalThis=window}}(),"undefined"!=typeof process&&!process.browser||(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=ts.TypeScriptServicesFactory,globalThis.toolsVersion=ts.versionMajorMinor),"undefined"!=typeof module&&module.exports&&(module.exports=ts);