!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e.prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.typescript=t())}(this,function(){"use strict";var e=function(e,t){var r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r};var t=function(e,t){if(e.startsWith("#!")){var r=e.indexOf("\n"),n={type:"Line",value:e.slice(2,r),range:[0,r],loc:{source:null,start:{line:1,column:0},end:{line:1,column:r}}};t.comments=[n].concat(t.comments)}},r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e,t){return e(t={exports:{}},t.exports),t.exports}var a=i(function(e){e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");var t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return null;var r=t.filter(function(e){return"\r\n"===e}).length;return r>t.length-r?"\r\n":"\n"},e.exports.graceful=function(t){return e.exports(t)||"\n"}}),o={EOL:"\n"},s=Object.freeze({default:o}),c=s&&o||s,u=i(function(e,t){var r,n;function i(){return r=(e=a)&&e.__esModule?e:{default:e};var e}function o(){return n=c}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){var t=e.match(l);return t?t[0].trimLeft():""},t.strip=function(e){var t=e.match(l);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return g(e).pragmas},t.parseWithComments=g,t.print=function(e){var t=e.comments,a=void 0===t?"":t,s=e.pragmas,c=void 0===s?{}:s,u=(0,(r||i()).default)(a)||(n||o()).EOL,l=Object.keys(c),_=l.map(function(e){return y(e,c[e])}).reduce(function(e,t){return e.concat(t)},[]).map(function(e){return" * "+e+u}).join("");if(!a){if(0===l.length)return"";if(1===l.length&&!Array.isArray(c[l[0]])){var d=c[l[0]];return"".concat("/**"," ").concat(y(l[0],d)[0]).concat(" */")}}var p=a.split(u).map(function(e){return"".concat(" *"," ").concat(e)}).join(u)+u;return"/**"+u+(a?p:"")+(a&&l.length?" *"+u:"")+_+" */"};var s=/\*\/$/,u=/^\/\*\*/,l=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,_=/(^|\s+)\/\/([^\r\n]*)/g,d=/^(\r?\n)+/,p=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,f=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,m=/(\r?\n|^) *\* ?/g;function g(e){var t=(0,(r||i()).default)(e)||(n||o()).EOL;e=e.replace(u,"").replace(s,"").replace(m,"$1");for(var a="";a!==e;)a=e,e=e.replace(p,"".concat(t,"$1 $2").concat(t));e=e.replace(d,"").trimRight();for(var c,l=Object.create(null),g=e.replace(f,"").replace(d,"").trimRight();c=f.exec(e);){var y=c[2].replace(_,"");"string"==typeof l[c[1]]||Array.isArray(l[c[1]])?l[c[1]]=[].concat(l[c[1]],y):l[c[1]]=y}return{comments:g,pragmas:l}}function y(e,t){return[].concat(t).map(function(t){return"@".concat(e," ").concat(t).trim()})}});n(u);var l=function(e){var t=Object.keys(u.parse(u.extract(e)));return-1!==t.indexOf("prettier")||-1!==t.indexOf("format")},_=function(e){return e.length>0?e[e.length-1]:null};var d={locStart:function e(t){return t.declaration&&t.declaration.decorators&&t.declaration.decorators.length>0?e(t.declaration.decorators[0]):t.decorators&&t.decorators.length>0?e(t.decorators[0]):t.__location?t.__location.startOffset:t.range?t.range[0]:"number"==typeof t.start?t.start:t.loc?t.loc.start:null},locEnd:function e(t){var r=t.nodes&&_(t.nodes);if(r&&t.source&&!t.source.end&&(t=r),t.__location)return t.__location.endOffset;var n=t.range?t.range[1]:"number"==typeof t.end?t.end:null;return t.typeAnnotation?Math.max(n,e(t.typeAnnotation)):t.loc&&!n?t.loc.end:n}};function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var f={ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",AwaitExpression:"AwaitExpression",BinaryExpression:"BinaryExpression",BlockStatement:"BlockStatement",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ClassImplements:"ClassImplements",ClassProperty:"ClassProperty",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DeclareFunction:"DeclareFunction",Decorator:"Decorator",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",ForStatement:"ForStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GenericTypeAnnotation:"GenericTypeAnnotation",Identifier:"Identifier",IfStatement:"IfStatement",Import:"Import",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXSpreadChild:"JSXSpreadChild",JSXText:"JSXText",LabeledStatement:"LabeledStatement",Literal:"Literal",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",TSAbstractClassProperty:"TSAbstractClassProperty",TSAbstractKeyword:"TSAbstractKeyword",TSAbstractMethodDefinition:"TSAbstractMethodDefinition",TSAnyKeyword:"TSAnyKeyword",TSArrayType:"TSArrayType",TSAsyncKeyword:"TSAsyncKeyword",TSBooleanKeyword:"TSBooleanKeyword",TSConstructorType:"TSConstructorType",TSConstructSignature:"TSConstructSignature",TSDeclareKeyword:"TSDeclareKeyword",TSEnumDeclaration:"TSEnumDeclaration",TSEnumMember:"TSEnumMember",TSExportAssignment:"TSExportAssignment",TSExportKeyword:"TSExportKeyword",TSImportType:"TSImportType",TSLiteralType:"TSLiteralType",TSIndexSignature:"TSIndexSignature",TSInterfaceBody:"TSInterfaceBody",TSInterfaceDeclaration:"TSInterfaceDeclaration",TSInterfaceHeritage:"TSInterfaceHeritage",TSFunctionType:"TSFunctionType",TSMethodSignature:"TSMethodSignature",TSModuleBlock:"TSModuleBlock",TSModuleDeclaration:"TSModuleDeclaration",TSNamespaceFunctionDeclaration:"TSNamespaceFunctionDeclaration",TSNonNullExpression:"TSNonNullExpression",TSNeverKeyword:"TSNeverKeyword",TSNullKeyword:"TSNullKeyword",TSNumberKeyword:"TSNumberKeyword",TSObjectKeyword:"TSObjectKeyword",TSParameterProperty:"TSParameterProperty",TSPrivateKeyword:"TSPrivateKeyword",TSPropertySignature:"TSPropertySignature",TSProtectedKeyword:"TSProtectedKeyword",TSPublicKeyword:"TSPublicKeyword",TSQualifiedName:"TSQualifiedName",TSQuestionToken:"TSQuestionToken",TSReadonlyKeyword:"TSReadonlyKeyword",TSStaticKeyword:"TSStaticKeyword",TSStringKeyword:"TSStringKeyword",TSSymbolKeyword:"TSSymbolKeyword",TSTypeAnnotation:"TSTypeAnnotation",TSTypeLiteral:"TSTypeLiteral",TSTypeOperator:"TSTypeOperator",TSTypeParameter:"TSTypeParameter",TSTypeParameterDeclaration:"TSTypeParameterDeclaration",TSTypeParameterInstantiation:"TSTypeParameterInstantiation",TSTypePredicate:"TSTypePredicate",TSTypeReference:"TSTypeReference",TSUnionType:"TSUnionType",TSUndefinedKeyword:"TSUndefinedKeyword",TSVoidKeyword:"TSVoidKeyword",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},m="/Users/ikatyang/Documents/GitHub/prettier/prettier/node_modules/typescript/lib",g="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function y(){throw new Error("setTimeout has not been defined")}function h(){throw new Error("clearTimeout has not been defined")}var v=y,b=h;function x(e){if(v===setTimeout)return setTimeout(e,0);if((v===y||!v)&&setTimeout)return v=setTimeout,setTimeout(e,0);try{return v(e,0)}catch(t){try{return v.call(null,e,0)}catch(t){return v.call(this,e,0)}}}"function"==typeof g.setTimeout&&(v=setTimeout),"function"==typeof g.clearTimeout&&(b=clearTimeout);var S,D=[],k=!1,T=-1;function C(){k&&S&&(k=!1,S.length?D=S.concat(D):T=-1,D.length&&E())}function E(){if(!k){var e=x(C);k=!0;for(var t=D.length;t;){for(S=D,D=[];++T1)for(var r=1;r>>=5)>0&&(t|=32),r+=X(t)}while(n>0);return r},$=function(e,t,r){var n,i,a,o,s=e.length,c=0,u=0;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=Q(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&i),c+=(i&=31)<>1,1==(1&a)?-o:o),r.rest=t},Z=i(function(e,t){t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var o,s=t.isAbsolute(r),c=r.split(/\/+/),u=0,l=c.length-1;l>=0;l--)"."===(o=c[l])?c.splice(l,1):".."===o?u++:u>0&&(""===o?(c.splice(l+1,u),u=0):(c.splice(l,2),u--));return""===(r=c.join("/"))&&(r=s?"/":"."),n?(n.path=r,a(n)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),s=i(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),a(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,a(s)):c}t.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function u(e){return e}function l(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function _(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?u:function(e){return l(e)?"$"+e:e},t.fromSetString=c?u:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=_(e.source,t.source);return 0!==n?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)||r?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!=(n=e.generatedLine-t.generatedLine)?n:_(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)||r?n:0!==(n=_(e.source,t.source))?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:_(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!=(r=e.generatedColumn-t.generatedColumn)?r:0!==(r=_(e.source,t.source))?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)?r:_(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=i(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var c=n.path.lastIndexOf("/");c>=0&&(n.path=n.path.substring(0,c+1))}t=s(a(n),t)}return o(t)}}),ee=Object.prototype.hasOwnProperty,te="undefined"!=typeof Map;function re(){this._array=[],this._set=te?new Map:Object.create(null)}re.fromArray=function(e,t){for(var r=new re,n=0,i=e.length;n=0)return t}else{var r=Z.toSetString(e);if(ee.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},re.prototype.at=function(e){if(e>=0&&en||i==n&&o>=a||Z.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},ie.prototype.toArray=function(){return this._sorted||(this._array.sort(Z.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var ae=ne.ArraySet,oe={MappingList:ie}.MappingList;function se(e){e||(e={}),this._file=Z.getArg(e,"file",null),this._sourceRoot=Z.getArg(e,"sourceRoot",null),this._skipValidation=Z.getArg(e,"skipValidation",!1),this._sources=new ae,this._names=new ae,this._mappings=new oe,this._sourcesContents=null}se.prototype._version=3,se.fromSourceMap=function(e){var t=e.sourceRoot,r=new se({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=Z.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)}),e.sources.forEach(function(n){var i=n;null!==t&&(i=Z.relative(t,n)),r._sources.has(i)||r._sources.add(i);var a=e.sourceContentFor(n);null!=a&&r.setSourceContent(n,a)}),r},se.prototype.addMapping=function(e){var t=Z.getArg(e,"generated"),r=Z.getArg(e,"original",null),n=Z.getArg(e,"source",null),i=Z.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,i),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:i})},se.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=Z.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Z.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[Z.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},se.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var i=this._sourceRoot;null!=i&&(n=Z.relative(i,n));var a=new ae,o=new ae;this._mappings.unsortedForEach(function(t){if(t.source===n&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=r&&(t.source=Z.join(r,t.source)),null!=i&&(t.source=Z.relative(i,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var c=t.source;null==c||a.has(c)||a.add(c);var u=t.name;null==u||o.has(u)||o.add(u)},this),this._sources=a,this._names=o,e.sources.forEach(function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=Z.join(r,t)),null!=i&&(t=Z.relative(i,t)),this.setSourceContent(t,n))},this)},se.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},se.prototype._serializeMappings=function(){for(var e,t,r,n,i=0,a=1,o=0,s=0,c=0,u=0,l="",_=this._mappings.toArray(),d=0,p=_.length;d0){if(!Z.compareByGeneratedPositionsInflated(t,_[d-1]))continue;e+=","}e+=Y(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=Y(n-u),u=n,e+=Y(t.originalLine-1-s),s=t.originalLine-1,e+=Y(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=Y(r-c),c=r)),l+=e}return l},se.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=Z.relative(t,e));var r=Z.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},se.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},se.prototype.toString=function(){return JSON.stringify(this.toJSON())};var ce={SourceMapGenerator:se},ue=i(function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,n,i){if(0===r.length)return-1;var a=function e(r,n,i,a,o,s){var c=Math.floor((n-r)/2)+r,u=o(i,a[c],!0);return 0===u?c:u>0?n-c>1?e(c,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n1?e(r,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:r<0?-1:r}(-1,r.length,e,r,n,i||t.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===n(r[a],r[a-1],!0);)--a;return a}});function le(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function _e(e,t,r,n){if(r=0){var a=this._originalMappings[i];if(void 0===e.column)for(var o=a.originalLine;a&&a.originalLine===o;)n.push({line:Z.getArg(a,"generatedLine",null),column:Z.getArg(a,"generatedColumn",null),lastColumn:Z.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var s=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==s;)n.push({line:Z.getArg(a,"generatedLine",null),column:Z.getArg(a,"generatedColumn",null),lastColumn:Z.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return n};function me(e,t){var r=e;"string"==typeof e&&(r=Z.parseSourceMapInput(e));var n=Z.getArg(r,"version"),i=Z.getArg(r,"sources"),a=Z.getArg(r,"names",[]),o=Z.getArg(r,"sourceRoot",null),s=Z.getArg(r,"sourcesContent",null),c=Z.getArg(r,"mappings"),u=Z.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=Z.normalize(o)),i=i.map(String).map(Z.normalize).map(function(e){return o&&Z.isAbsolute(o)&&Z.isAbsolute(e)?Z.relative(o,e):e}),this._names=de.fromArray(a.map(String),!0),this._sources=de.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(e){return Z.computeSourceURL(o,e,t)}),this.sourceRoot=o,this.sourcesContent=s,this._mappings=c,this._sourceMapURL=t,this.file=u}function ge(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}me.prototype=Object.create(fe.prototype),me.prototype.consumer=fe,me.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=Z.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t1&&(r.source=_+i[1],_+=i[1],r.originalLine=u+i[2],u=r.originalLine,r.originalLine+=1,r.originalColumn=l+i[3],l=r.originalColumn,i.length>4&&(r.name=d+i[4],d+=i[4])),h.push(r),"number"==typeof r.originalLine&&y.push(r)}pe(h,Z.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,pe(y,Z.compareByOriginalPositions),this.__originalMappings=y},me.prototype._findMapping=function(e,t,r,n,i,a){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return ue.search(e,t,i,a)},me.prototype.computeColumnSpans=function(){for(var e=0;e=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var i=Z.getArg(n,"source",null);null!==i&&(i=this._sources.at(i),i=Z.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=Z.getArg(n,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:Z.getArg(n,"originalLine",null),column:Z.getArg(n,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},me.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},me.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var n,i=e;if(null!=this.sourceRoot&&(i=Z.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(n=Z.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!n.path||"/"==n.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')},me.prototype.generatedPositionFor=function(e){var t=Z.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:Z.getArg(e,"line"),originalColumn:Z.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",Z.compareByOriginalPositions,Z.getArg(e,"bias",fe.GREATEST_LOWER_BOUND));if(n>=0){var i=this._originalMappings[n];if(i.source===r.source)return{line:Z.getArg(i,"generatedLine",null),column:Z.getArg(i,"generatedColumn",null),lastColumn:Z.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};function ye(e,t){var r=e;"string"==typeof e&&(r=Z.parseSourceMapInput(e));var n=Z.getArg(r,"version"),i=Z.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new de,this._names=new de;var a={line:-1,column:0};this._sections=i.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var r=Z.getArg(e,"offset"),n=Z.getArg(r,"line"),i=Z.getArg(r,"column");if(n=0;t--)this.prepend(e[t]);else{if(!e[be]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},xe.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r0){for(t=[],r=0;r>18&63]+Se[i>>12&63]+Se[i>>6&63]+Se[63&i]);return a.join("")}function Ne(e){var t;Te||Ce();for(var r=e.length,n=r%3,i="",a=[],o=0,s=r-n;os?s:o+16383));return 1===n?(t=e[r-1],i+=Se[t>>2],i+=Se[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=Se[t>>10],i+=Se[t>>4&63],i+=Se[t<<2&63],i+="="),a.push(i),a.join("")}function Ae(e,t,r,n,i){var a,o,s=8*i-n-1,c=(1<>1,l=-7,_=r?i-1:0,d=r?-1:1,p=e[t+_];for(_+=d,a=p&(1<<-l)-1,p>>=-l,l+=s;l>0;a=256*a+e[t+_],_+=d,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=n;l>0;o=256*o+e[t+_],_+=d,l-=8);if(0===a)a=1-u;else{if(a===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=u}return(p?-1:1)*o*Math.pow(2,a-n)}function Pe(e,t,r,n,i,a){var o,s,c,u=8*a-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+_>=1?d/c:d*Math.pow(2,1-_))*c>=2&&(o++,c/=2),o+_>=l?(s=0,o=l):o+_>=1?(s=(t*c-1)*Math.pow(2,i),o+=_):(s=t*Math.pow(2,_-1)*Math.pow(2,i),o=0));i>=8;e[r+p]=255&s,p+=f,s/=256,i-=8);for(o=o<0;e[r+p]=255&o,p+=f,o/=256,u-=8);e[r+p-f]|=128*m}var Fe={}.toString,we=Array.isArray||function(e){return"[object Array]"==Fe.call(e)};function Ie(){return Me.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Oe(e,t){if(Ie()=Ie())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ie().toString(16)+" bytes");return 0|e}function ze(e){return!(null==e||!e._isBuffer)}function Ke(e,t){if(ze(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return ft(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return mt(e).length;default:if(n)return ft(e).length;t=(""+t).toLowerCase(),n=!0}}function Ue(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function qe(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=Me.from(t,n)),ze(t))return 0===t.length?-1:Ve(e,t,r,n,i);if("number"==typeof t)return t&=255,Me.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Ve(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Ve(e,t,r,n,i){var a,o=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=r;as&&(r=s-c),a=r;a>=0;a--){for(var _=!0,d=0;di&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function $e(e,t,r){return 0===t&&r===e.length?Ne(e):Ne(e.slice(t,r))}function Ze(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+_<=r)switch(_){case 1:u<128&&(l=u);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&u)<<6|63&a)>127&&(l=c);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(c=(15&u)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,_=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=_}return function(e){var t=e.length;if(t<=et)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return nt(this,t,r);case"utf8":case"utf-8":return Ze(this,t,r);case"ascii":return tt(this,t,r);case"latin1":case"binary":return rt(this,t,r);case"base64":return $e(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return it(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},Me.prototype.equals=function(e){if(!ze(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Me.compare(this,e)},Me.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},Me.prototype.compare=function(e,t,r,n,i){if(!ze(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,o=r-t,s=Math.min(a,o),c=this.slice(n,i),u=e.slice(t,r),l=0;li)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return We(this,e,t,r);case"utf8":case"utf-8":return He(this,e,t,r);case"ascii":return Ge(this,e,t,r);case"latin1":case"binary":return Xe(this,e,t,r);case"base64":return Qe(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ye(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},Me.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var et=4096;function tt(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function ot(e,t,r,n,i,a){if(!ze(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function st(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function ct(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function ut(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function lt(e,t,r,n,i){return i||ut(e,0,r,4),Pe(e,t,r,n,23,4),r+4}function _t(e,t,r,n,i){return i||ut(e,0,r,8),Pe(e,t,r,n,52,8),r+8}Me.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+--t]*i;return n},Me.prototype.readUInt8=function(e,t){return t||at(e,1,this.length),this[e]},Me.prototype.readUInt16LE=function(e,t){return t||at(e,2,this.length),this[e]|this[e+1]<<8},Me.prototype.readUInt16BE=function(e,t){return t||at(e,2,this.length),this[e]<<8|this[e+1]},Me.prototype.readUInt32LE=function(e,t){return t||at(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Me.prototype.readUInt32BE=function(e,t){return t||at(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Me.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||at(e,t,this.length);for(var n=this[e],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*t)),n},Me.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||at(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},Me.prototype.readInt8=function(e,t){return t||at(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Me.prototype.readInt16LE=function(e,t){t||at(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Me.prototype.readInt16BE=function(e,t){t||at(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Me.prototype.readInt32LE=function(e,t){return t||at(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Me.prototype.readInt32BE=function(e,t){return t||at(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Me.prototype.readFloatLE=function(e,t){return t||at(e,4,this.length),Ae(this,e,!0,23,4)},Me.prototype.readFloatBE=function(e,t){return t||at(e,4,this.length),Ae(this,e,!1,23,4)},Me.prototype.readDoubleLE=function(e,t){return t||at(e,8,this.length),Ae(this,e,!0,52,8)},Me.prototype.readDoubleBE=function(e,t){return t||at(e,8,this.length),Ae(this,e,!1,52,8)},Me.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||ot(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+r},Me.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||ot(this,e,t,1,255,0),Me.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Me.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||ot(this,e,t,2,65535,0),Me.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):st(this,e,t,!0),t+2},Me.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||ot(this,e,t,2,65535,0),Me.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):st(this,e,t,!1),t+2},Me.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||ot(this,e,t,4,4294967295,0),Me.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):ct(this,e,t,!0),t+4},Me.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||ot(this,e,t,4,4294967295,0),Me.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ct(this,e,t,!1),t+4},Me.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);ot(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+r},Me.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);ot(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},Me.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||ot(this,e,t,1,127,-128),Me.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Me.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||ot(this,e,t,2,32767,-32768),Me.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):st(this,e,t,!0),t+2},Me.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||ot(this,e,t,2,32767,-32768),Me.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):st(this,e,t,!1),t+2},Me.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||ot(this,e,t,4,2147483647,-2147483648),Me.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):ct(this,e,t,!0),t+4},Me.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||ot(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Me.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ct(this,e,t,!1),t+4},Me.prototype.writeFloatLE=function(e,t,r){return lt(this,e,t,!0,r)},Me.prototype.writeFloatBE=function(e,t,r){return lt(this,e,t,!1,r)},Me.prototype.writeDoubleLE=function(e,t,r){return _t(this,e,t,!0,r)},Me.prototype.writeDoubleBE=function(e,t,r){return _t(this,e,t,!1,r)},Me.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!Me.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function mt(e){return function(e){var t,r,n,i,a,o;Te||Ce();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[s-2]?2:"="===e[s-1]?1:0,o=new ke(3*s/4-a),n=a>0?s-4:s;var c=0;for(t=0,r=0;t>16&255,o[c++]=i>>8&255,o[c++]=255&i;return 2===a?(i=De[e.charCodeAt(t)]<<2|De[e.charCodeAt(t+1)]>>4,o[c++]=255&i):1===a&&(i=De[e.charCodeAt(t)]<<10|De[e.charCodeAt(t+1)]<<4|De[e.charCodeAt(t+2)]>>2,o[c++]=i>>8&255,o[c++]=255&i),o}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(dt,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function gt(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function yt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var ht=Object.prototype.toString,vt="function"==typeof Me.alloc&&"function"==typeof Me.allocUnsafe&&"function"==typeof Me.from;var bt,xt=function(e,t,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return n=e,"ArrayBuffer"===ht.call(n).slice(8,-1)?function(e,t,r){t>>>=0;var n=e.byteLength-t;if(n<0)throw new RangeError("'offset' is out of bounds");if(void 0===r)r=n;else if((r>>>=0)>n)throw new RangeError("'length' is out of bounds");return vt?Me.from(e.slice(t,t+r)):new Me(new Uint8Array(e.slice(t,t+r)))}(e,t,r):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!Me.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return vt?Me.from(e,t):new Me(e,t)}(e,t):vt?Me.from(e):new Me(e);var n},St={},Dt=(Object.freeze({default:St}),V&&q||V),kt=U&&K||U,Tt=Dt;try{(bt=kt).existsSync&&bt.readFileSync||(bt=null)}catch(e){}var Ct="auto",Et={},Nt=/^data:application\/json[^,]+base64,/,At=[],Pt=[];function Ft(){return"browser"===Ct||"node"!==Ct&&("undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type))}function wt(e){return function(t){for(var r=0;r0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0;for(var r=0,n=e;r>1);switch(n(r(e[c]),s)){case-1:a=c+1;break;case 0:return c;case 1:o=c-1}}return~a}function m(e,t,r,n,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===n||n<0?0:n,s=void 0===i||o+i>a-1?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}e.createMap=r,e.createMapFromEntries=function(e){for(var t=r(),n=0,i=e;n=0;r--){var n=e[r];if(t(n,r))return n}},e.findIndex=function(e,t,r){for(var n=r||0;n=0;n--)if(t(e[n],n))return n;return-1},e.findMap=function(e,t){for(var r=0;r0&&g.assertGreaterThanOrEqual(r(t[a],t[a-1]),0);t:for(var o=i;io&&g.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},e.sum=function(e,t){for(var r=0,n=0,i=e;nt?1:0}function I(e,t){return P(e,t)}e.hasProperty=h,e.getProperty=function(e,t){return y.call(e,t)?e[t]:void 0},e.getOwnKeys=function(e){var t=[];for(var r in e)y.call(e,r)&&t.push(r);return t},e.getOwnValues=function(e){var t=[];for(var r in e)y.call(e,r)&&t.push(e[r]);return t},e.arrayFrom=v,e.assign=function(e){for(var t=[],r=1;r=t},e.assert=function e(r,n,i,a){r||(i&&(n+="\r\nVerbose Debug Information: "+("string"==typeof i?i:i())),t(n?"False expression: "+n:"False expression.",a||e))},e.assertEqual=function(e,r,n,i){e!==r&&t("Expected "+e+" === "+r+". "+(n?i?n+" "+i:n:""))},e.assertLessThan=function(e,r,n){e>=r&&t("Expected "+e+" < "+r+". "+(n||""))},e.assertLessThanOrEqual=function(e,r){e>r&&t("Expected "+e+" <= "+r)},e.assertGreaterThanOrEqual=function(e,r){e= "+r)},e.fail=t,e.assertDefined=r,e.assertEachDefined=function(e,t){for(var n=0,i=e;n0?1:0}function i(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,r){return n(e,r,t)}}function a(e){return void 0!==e?o():function(e,r){return n(e,r,t)};function t(e,t){return e.localeCompare(t)}}function o(){return function(t,r){return n(t,r,e)};function e(e,r){return t(e.toUpperCase(),r.toUpperCase())||t(e,r)}function t(e,t){return et?1:0}}}();function R(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++){var s=e.charCodeAt(o-1),c=o>r?o-r:1,u=t.length>r+o?r+o:t.length;i[0]=o;for(var l=o,_=1;_r)return;var p=n;n=i,i=p}var f=n[t.length];return f>r?void 0:f}function B(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function j(e,t){return e.length>t.length&&B(e,t)}function J(e,t){for(var r=t;r=r.length+n.length&&U(t,r)&&B(t,n)}e.getUILocale=function(){return M},e.setUILocale=function(e){M!==e&&(M=e,O=void 0)},e.compareStringsCaseSensitiveUI=function(e,t){return(O||(O=L(M)))(e,t)},e.compareProperties=function(e,t,r,n){return e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r])},e.compareBooleans=function(e,t){return F(e?1:0,t?1:0)},e.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;ci&&(i=c.prefix.length,n=s)}return n},e.startsWith=U,e.removePrefix=function(e,t){return U(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=C),U(r(e),r(t))?e.substring(t.length):void 0},e.and=function(e,t){return function(r){return e(r)&&t(r)}},e.or=function(e,t){return function(r){return e(r)||t(r)}},e.assertTypeIsNever=function(e){},e.singleElementArray=function(e){return void 0===e?void 0:[e]},e.enumerateInsertsAndDeletes=function(e,t,r,n,i,a){a=a||T;for(var o=0,s=0,c=e.length,u=t.length;o0;p(),s--){var l=t[a];if(l)if(l.isClosed)t[a]=void 0;else{u++;var _=d(l,v(l.fileName));l.isClosed?t[a]=void 0:_?(l.unchangedPolls=0,t!==i&&(t[a]=void 0,g(l))):l.unchangedPolls!==e.unchangedPollThresholds[n]?l.unchangedPolls++:t===i?(l.unchangedPolls=1,t[a]=void 0,m(l,r.Low)):n!==r.High&&(l.unchangedPolls++,t[a]=void 0,m(l,n===r.Low?r.Medium:r.High)),t[a]&&(c 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}'."),An_accessor_cannot_be_declared_in_an_ambient_context:t(1086,e.DiagnosticCategory.Error,"An_accessor_cannot_be_declared_in_an_ambient_context_1086","An accessor cannot be declared in an ambient context."),_0_modifier_cannot_appear_on_a_constructor_declaration: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."),new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:t(1150,e.DiagnosticCategory.Error,"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150","'new T[]' cannot be used to create an array. Use 'new Array()' instead."),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."),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."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:t(1205,e.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),Decorators_are_not_valid_here: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."),Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:t(1208,e.DiagnosticCategory.Error,"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208","Cannot compile namespaces when the '--isolatedModules' flag is provided."),Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided:t(1209,e.DiagnosticCategory.Error,"Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided_1209","Ambient const enums are not allowed when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode: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_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 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:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_1254","A 'const' initializer in an ambient context must be a string or numeric literal."),A_definite_assignment_assertion_is_not_permitted_in_this_context: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."),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_expression_is_only_allowed_within_an_async_function:t(1308,e.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment: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_import_is_only_supported_when_module_flag_is_commonjs_or_esNext:t(1323,e.DiagnosticCategory.Error,"Dynamic_import_is_only_supported_when_module_flag_is_commonjs_or_esNext_1323","Dynamic import is only supported when '--module' flag is 'commonjs' or 'esNext'."),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_using_ESNext_for_the_target_and_module_compiler_options:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_using_ESNext_for_the_target_and_module_compiler_option_1343","The 'import.meta' meta-property is only allowed using 'ESNext' for the 'target' and 'module' compiler options."),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:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity: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_may_only_extend_a_class_or_another_interface:t(2312,e.DiagnosticCategory.Error,"An_interface_may_only_extend_a_class_or_another_interface_2312","An interface may only extend a class or another interface."),Type_parameter_0_has_a_circular_constraint: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_but_module_0_has_no_exported_member_1:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343","This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."),Type_0_does_not_satisfy_the_constraint_1: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'?"),Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:t(2349,e.DiagnosticCategory.Error,"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349","Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."),Only_a_void_function_can_be_called_with_the_new_keyword: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."),Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:t(2351,e.DiagnosticCategory.Error,"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351","Cannot use 'new' with an expression whose type lacks a call or construct signature."),Type_0_cannot_be_converted_to_type_1:t(2352,e.DiagnosticCategory.Error,"Type_0_cannot_be_converted_to_type_1_2352","Type '{0}' cannot be converted to type '{1}'."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1: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_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access: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_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access: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_be_referenced_in_its_initializer:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature: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_or_has_parameter_properties: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 or has parameter properties."),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."),Overload_signature_is_not_compatible_with_function_implementation:t(2394,e.DiagnosticCategory.Error,"Overload_signature_is_not_compatible_with_function_implementation_2394","Overload signature is not compatible with function implementation."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local: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}'."),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_may_only_implement_another_class_or_interface:t(2422,e.DiagnosticCategory.Error,"A_class_may_only_implement_another_class_or_interface_2422","A class may only implement another class or interface."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor: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_function_1_but_extended_class_2_defines_it_as_instance_member_property:t(2424,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function: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."),Type_0_has_no_property_1_and_no_string_index_signature:t(2459,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_and_no_string_index_signature_2459","Type '{0}' has no property '{1}' and no string index signature."),Type_0_has_no_property_1:t(2460,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_2460","Type '{0}' has no property '{1}'."),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."),In_const_enum_declarations_member_initializer_must_be_constant_expression:t(2474,e.DiagnosticCategory.Error,"In_const_enum_declarations_member_initializer_must_be_constant_expression_2474","In 'const' enum declarations member initializer must be constant expression."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query: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_next_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the 'next()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern: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_with_length_1_cannot_be_assigned_to_tuple_with_length_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493","Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher: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."),Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct:t(2497,e.DiagnosticCategory.Error,"Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497","Module '{0}' resolves to a non-module entity and cannot be imported using this construct."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk: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_a_class_or_interface_type:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_a_class_or_interface_type_2509","Base constructor return type '{0}' is not a class or interface type."),Base_constructors_must_all_have_the_same_return_type: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_constant_or_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property_2540","Cannot assign to '{0}' because it is a constant or a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access: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[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:t(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547","The type returned by the 'next()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator: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."),Generic_type_instantiation_is_excessively_deep_and_possibly_infinite:t(2550,e.DiagnosticCategory.Error,"Generic_type_instantiation_is_excessively_deep_and_possibly_infinite_2550","Generic type instantiation is excessively deep and possibly infinite."),Property_0_does_not_exist_on_type_1_Did_you_mean_2: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_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:t(2568,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators_2568","Type '{0}' is not an array type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),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."),Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await:t(2570,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await_2570","Property '{0}' does not exist on type '{1}'. Did you forget to use 'await'?"),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."),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."),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_declaration_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_declaration_0_2718","Duplicate declaration '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated: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."),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}'."),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}."),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_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_in_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' in can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array: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:t(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs'."),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_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),Print_this_message: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 or -. 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_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures: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:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),Enables_experimental_support_for_ES7_decorators: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_string_got_1:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_string_got_1_6105","Expected type of '{0}' field in 'package.json' to be 'string', got '{1}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1: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."),Found_package_json_at_0_Package_ID_is_1:t(6190,e.DiagnosticCategory.Message,"Found_package_json_at_0_Package_ID_is_1_6190","Found 'package.json' at '{0}'. Package ID is '{1}'."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen: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."),_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."),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"),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}"),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_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern:t(6307,e.DiagnosticCategory.Error,"File_0_is_not_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern_6307","File '{0}' is not in project file list. 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."),Skipping_clean_because_not_all_projects_could_be_located:t(6371,e.DiagnosticCategory.Error,"Skipping_clean_because_not_all_projects_could_be_located_6371","Skipping clean because not all projects could be located"),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."),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."),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_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025","Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists: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_0_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_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @types/{0}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0: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_0: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/{0}`"),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_a_ts_file:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:t(8004,e.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:t(8006,e.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:t(8007,e.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:t(8008,e.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:t(8009,e.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:t(8010,e.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:t(8011,e.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:t(8012,e.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:t(8013,e.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:t(8015,e.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:t(8016,e.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0: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."),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."),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"),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."),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_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove 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"),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"),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")}}(s||(s={})),function(e){function t(e){return e>=71}e.tokenIsIdentifierOrKeyword=t,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 29===e||t(e)};var r=e.createMapFromTemplate({abstract:117,any:119,as:118,boolean:122,break:72,case:73,catch:74,class:75,continue:77,const:76,constructor:123,debugger:78,declare:124,default:79,delete:80,do:81,else:82,enum:83,export:84,extends:85,false:86,finally:87,for:88,from:143,function:89,get:125,if:90,implements:108,import:91,in:92,infer:126,instanceof:93,interface:109,is:127,keyof:128,let:110,module:129,namespace:130,never:131,new:94,null:95,number:134,object:135,package:111,private:112,protected:113,public:114,readonly:132,require:133,global:144,return:96,set:136,static:115,string:137,super:97,switch:98,symbol:138,this:99,throw:100,true:101,try:102,type:139,typeof:103,undefined:140,unique:141,unknown:142,var:104,void:105,while:106,with:107,yield:116,async:120,await:121,of:145,"{":17,"}":18,"(":19,")":20,"[":21,"]":22,".":23,"...":24,";":25,",":26,"<":27,">":29,"<=":30,">=":31,"==":32,"!=":33,"===":34,"!==":35,"=>":36,"+":37,"-":38,"**":40,"*":39,"/":41,"%":42,"++":43,"--":44,"<<":45,">":46,">>>":47,"&":48,"|":49,"^":50,"!":51,"~":52,"&&":53,"||":54,"?":55,":":56,"=":58,"+=":59,"-=":60,"*=":61,"**=":62,"/=":63,"%=":64,"<<=":65,">>=":66,">>>=":67,"&=":68,"|=":69,"^=":70,"@":57}),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];function s(e,t){if(e=1?a:n)}e.isUnicodeIdentifierStart=c;var u,l=(u=[],r.forEach(function(e,t){u[e]=t}),u);function _(e){for(var t=new Array,r=0,n=0;r127&&y(i)&&(t.push(n),n=r)}}return t.push(n),t}function d(t,r,n,i){(r<0||r>=t.length)&&e.Debug.fail("Bad line number. Line: "+r+", lineStarts.length: "+t.length+" , line map is correct? "+(void 0!==i?e.arraysEqual(t,_(i)):"unknown"));var a=t[r]+n;return r=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function y(e){return 10===e||13===e||8232===e||8233===e}function h(e){return e>=48&&e<=57}function v(e){return e>=48&&e<=55}e.tokenToString=function(e){return l[e]},e.stringToToken=function(e){return r.get(e)},e.computeLineStarts=_,e.getPositionOfLineAndCharacter=function(e,t,r){return d(p(e),t,r,e.text)},e.computePositionOfLineAndCharacter=d,e.getLineStarts=p,e.computeLineAndCharacterOfPosition=f,e.getLineAndCharacterOfPosition=function(e,t){return f(p(e),t)},e.isWhiteSpaceLike=m,e.isWhiteSpaceSingleLine=g,e.isLineBreak=y,e.isOctalDigit=v,e.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 r>127}},e.skipTrivia=function(t,r,n,i){if(void 0===i&&(i=!1),e.positionIsSynthesized(r))return r;for(;;){var a=t.charCodeAt(r);switch(a){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i)break;if(47===t.charCodeAt(r+1)){for(r+=2;r127&&m(a)){r++;continue}}return r}};var b="<<<<<<<".length;function x(t,r){if(e.Debug.assert(r>=0),0===r||y(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+b=0&&r127&&m(f)){_&&y(f)&&(l=!0),r++;continue}break e}}return _&&(p=i(s,c,u,l,a,p)),p}function E(e,t,r,n,i){return C(!0,e,t,!1,r,n,i)}function N(e,t,r,n,i){return C(!0,e,t,!0,r,n,i)}function A(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function P(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&c(e,t)}function F(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&function(e,t){return s(e,t>=1?o:i)}(e,t)}e.forEachLeadingCommentRange=function(e,t,r,n){return C(!1,e,t,!1,r,n)},e.forEachTrailingCommentRange=function(e,t,r,n){return C(!1,e,t,!0,r,n)},e.reduceEachLeadingCommentRange=E,e.reduceEachTrailingCommentRange=N,e.getLeadingCommentRanges=function(e,t){return E(e,t,A,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return N(e,t,A,void 0,void 0)},e.getShebang=function(e){var t=D.exec(e);if(t)return t[0]},e.isIdentifierStart=P,e.isIdentifierPart=F,e.isIdentifierText=function(e,t){if(!P(e.charCodeAt(0),t))return!1;for(var r=1;r107},isReservedWord:function(){return f>=72&&f<=107},isUnterminated:function(){return 0!=(4&D)},getTokenFlags:function(){return D},reScanGreaterToken:function(){if(29===f){if(62===C.charCodeAt(l))return 62===C.charCodeAt(l+1)?61===C.charCodeAt(l+2)?(l+=3,f=67):(l+=2,f=47):61===C.charCodeAt(l+1)?(l+=2,f=66):(l++,f=46);if(61===C.charCodeAt(l))return l++,f=31}return f},reScanSlashToken:function(){if(41===f||63===f){for(var t=p+1,r=!1,i=!1;;){if(t>=_){D|=4,E(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=C.charCodeAt(t);if(y(a)){D|=4,E(e.Diagnostics.Unterminated_regular_expression_literal);break}if(r)r=!1;else{if(47===a&&!i){t++;break}91===a?i=!0:92===a?r=!0:93===a&&(i=!1)}t++}for(;t<_&&F(C.charCodeAt(t),n);)t++;l=t,b=C.substring(p,l),f=12}return f},reScanTemplateToken:function(){return e.Debug.assert(18===f,"'reScanTemplateToken' should only be called on a '}'"),l=p,f=R()},scanJsxIdentifier:function(){if(t(f)){for(var e=l;l<_;){var r=C.charCodeAt(l);if(45!==r&&(e===l?!P(r,n):!F(r,n)))break;l++}b+=C.substring(e,l)}return f},scanJsxAttributeValue:function(){switch(d=l,C.charCodeAt(l)){case 34:case 39:return b=L(!0),f=9;default:return q()}},reScanJsxToken:function(){return l=p=d,f=V()},scanJsxToken:V,scanJSDocToken:function(){if(d=p=l,l>=_)return f=1;var e=C.charCodeAt(l);switch(l++,e){case 9:case 11:case 12:case 32:for(;l<_&&g(C.charCodeAt(l));)l++;return f=5;case 64:return f=57;case 10:case 13:return f=4;case 42:return f=39;case 123:return f=17;case 125:return f=18;case 91:return f=21;case 93:return f=22;case 60:return f=27;case 61:return f=58;case 44:return f=26;case 46:return f=23;case 96:for(;l<_&&96!==C.charCodeAt(l);)l++;return b=C.substring(p+1,l),l++,f=13}if(P(e,6)){for(;F(C.charCodeAt(l),6)&&l<_;)l++;return b=C.substring(p,l),f=71}return f=0},scan:q,getText:function(){return C},setText:H,setScriptTarget:function(e){n=e},setLanguageVariant:function(e){a=e},setOnError:function(e){s=e},setTextPos:G,tryScan:function(e){return W(e,!1)},lookAhead:function(e){return W(e,!0)},scanRange:function(e,t,r){var n=_,i=l,a=d,o=p,s=f,c=b,u=D;H(C,e,t);var m=r();return _=n,l=i,d=a,p=o,f=s,b=c,D=u,m}};function E(e,t,r){if(void 0===t&&(t=l),s){var n=l;l=t,s(e,r||0),l=n}}function N(){for(var t=l,r=!1,n=!1,i="";;){var a=C.charCodeAt(l);if(95!==a){if(!h(a))break;r=!0,n=!1,l++}else D|=512,r?(r=!1,n=!0,i+=C.substring(t,l)):E(n?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),t=++l}return 95===C.charCodeAt(l-1)&&E(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),i+C.substring(t,l)}function A(){var t,r,n=l,i=N();46===C.charCodeAt(l)&&(l++,t=N());var a=l;if(69===C.charCodeAt(l)||101===C.charCodeAt(l)){l++,D|=16,43!==C.charCodeAt(l)&&45!==C.charCodeAt(l)||l++;var o=l,s=N();s?(r=C.substring(a,o)+s,a=l):E(e.Diagnostics.Digit_expected)}if(512&D){var c=i;return t&&(c+="."+t),r&&(c+=r),""+ +c}return""+ +C.substring(n,a)}function w(){for(var e=l;v(C.charCodeAt(l));)l++;return+C.substring(e,l)}function I(e,t){return M(e,!1,t)}function O(e,t){return M(e,!0,t)}function M(t,r,n){for(var i=0,a=0,o=!1,s=!1;i=48&&c<=57)a=16*a+c-48;else if(c>=65&&c<=70)a=16*a+c-65+10;else{if(!(c>=97&&c<=102))break;a=16*a+c-97+10}l++,i++,s=!1}}return i=_){n+=C.substring(i,l),D|=4,E(e.Diagnostics.Unterminated_string_literal);break}var a=C.charCodeAt(l);if(a===r){n+=C.substring(i,l),l++;break}if(92!==a||t){if(y(a)&&!t){n+=C.substring(i,l),D|=4,E(e.Diagnostics.Unterminated_string_literal);break}l++}else n+=C.substring(i,l),n+=B(),i=l}return n}function R(){for(var t,r=96===C.charCodeAt(l),n=++l,i="";;){if(l>=_){i+=C.substring(n,l),D|=4,E(e.Diagnostics.Unterminated_template_literal),t=r?13:16;break}var a=C.charCodeAt(l);if(96===a){i+=C.substring(n,l),l++,t=r?13:16;break}if(36===a&&l+1<_&&123===C.charCodeAt(l+1)){i+=C.substring(n,l),l+=2,t=r?14:15;break}92!==a?13!==a?l++:(i+=C.substring(n,l),++l<_&&10===C.charCodeAt(l)&&l++,i+="\n",n=l):(i+=C.substring(n,l),i+=B(),n=l)}return e.Debug.assert(void 0!==t),b=i,t}function B(){if(++l>=_)return E(e.Diagnostics.Unexpected_end_of_text),"";var t,r,n=C.charCodeAt(l);switch(l++,n){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return l<_&&123===C.charCodeAt(l)?(D|=8,l++,t=O(1,!1),r=!1,t<0?(E(e.Diagnostics.Hexadecimal_digit_expected),r=!0):t>1114111&&(E(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),r=!0),l>=_?(E(e.Diagnostics.Unexpected_end_of_text),r=!0):125===C.charCodeAt(l)?l++:(E(e.Diagnostics.Unterminated_Unicode_escape_sequence),r=!0),r?"":function(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)}(t)):j(4);case 120:return j(2);case 13:l<_&&10===C.charCodeAt(l)&&l++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(n)}}function j(t){var r=I(t,!1);return r>=0?String.fromCharCode(r):(E(e.Diagnostics.Hexadecimal_digit_expected),"")}function J(){if(l+5<_&&117===C.charCodeAt(l+1)){var e=l;l+=2;var t=I(4,!1);return l=e,t}return-1}function z(){for(var e="",t=l;l<_;){var r=C.charCodeAt(l);if(F(r,n))l++;else{if(92!==r)break;if(!((r=J())>=0&&F(r,n)))break;e+=C.substring(t,l),e+=String.fromCharCode(r),t=l+=6}}return e+=C.substring(t,l)}function K(){var e=b.length;if(e>=2&&e<=11){var t=b.charCodeAt(0);if(t>=97&&t<=122&&void 0!==(f=r.get(b)))return f}return f=71}function U(t){e.Debug.assert(2===t||8===t,"Expected either base 2 or base 8");for(var r=0,n=0,i=!1,a=!1;;){var o=C.charCodeAt(l);if(95!==o){i=!0;var s=o-48;if(!h(o)||s>=t)break;r=r*t+s,l++,n++,a=!1}else D|=512,i?(i=!1,a=!0):E(a?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++}return 0===n?-1:95===C.charCodeAt(l-1)?(E(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),r):r}function q(){for(d=l,D=0;;){if(p=l,l>=_)return f=1;var t=C.charCodeAt(l);if(35===t&&0===l&&k(C,l)){if(l=T(C,l),i)continue;return f=6}switch(t){case 10:case 13:if(D|=1,i){l++;continue}return 13===t&&l+1<_&&10===C.charCodeAt(l+1)?l+=2:l++,f=4;case 9:case 11:case 12:case 32:if(i){l++;continue}for(;l<_&&g(C.charCodeAt(l));)l++;return f=5;case 33:return 61===C.charCodeAt(l+1)?61===C.charCodeAt(l+2)?(l+=3,f=35):(l+=2,f=33):(l++,f=51);case 34:case 39:return b=L(),f=9;case 96:return f=R();case 37:return 61===C.charCodeAt(l+1)?(l+=2,f=64):(l++,f=42);case 38:return 38===C.charCodeAt(l+1)?(l+=2,f=53):61===C.charCodeAt(l+1)?(l+=2,f=68):(l++,f=48);case 40:return l++,f=19;case 41:return l++,f=20;case 42:return 61===C.charCodeAt(l+1)?(l+=2,f=61):42===C.charCodeAt(l+1)?61===C.charCodeAt(l+2)?(l+=3,f=62):(l+=2,f=40):(l++,f=39);case 43:return 43===C.charCodeAt(l+1)?(l+=2,f=43):61===C.charCodeAt(l+1)?(l+=2,f=59):(l++,f=37);case 44:return l++,f=26;case 45:return 45===C.charCodeAt(l+1)?(l+=2,f=44):61===C.charCodeAt(l+1)?(l+=2,f=60):(l++,f=38);case 46:return h(C.charCodeAt(l+1))?(b=A(),f=8):46===C.charCodeAt(l+1)&&46===C.charCodeAt(l+2)?(l+=3,f=24):(l++,f=23);case 47:if(47===C.charCodeAt(l+1)){for(l+=2;l<_&&!y(C.charCodeAt(l));)l++;if(i)continue;return f=2}if(42===C.charCodeAt(l+1)){l+=2,42===C.charCodeAt(l)&&47!==C.charCodeAt(l+1)&&(D|=2);for(var r=!1;l<_;){var o=C.charCodeAt(l);if(42===o&&47===C.charCodeAt(l+1)){l+=2,r=!0;break}y(o)&&(D|=1),l++}if(r||E(e.Diagnostics.Asterisk_Slash_expected),i)continue;return r||(D|=4),f=3}return 61===C.charCodeAt(l+1)?(l+=2,f=63):(l++,f=41);case 48:var s;if(l+2<_&&(88===C.charCodeAt(l+1)||120===C.charCodeAt(l+1)))return l+=2,(s=O(1,!0))<0&&(E(e.Diagnostics.Hexadecimal_digit_expected),s=0),b=""+s,D|=64,f=8;if(l+2<_&&(66===C.charCodeAt(l+1)||98===C.charCodeAt(l+1)))return l+=2,(s=U(2))<0&&(E(e.Diagnostics.Binary_digit_expected),s=0),b=""+s,D|=128,f=8;if(l+2<_&&(79===C.charCodeAt(l+1)||111===C.charCodeAt(l+1)))return l+=2,(s=U(8))<0&&(E(e.Diagnostics.Octal_digit_expected),s=0),b=""+s,D|=256,f=8;if(l+1<_&&v(C.charCodeAt(l+1)))return b=""+w(),D|=32,f=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return b=A(),f=8;case 58:return l++,f=56;case 59:return l++,f=25;case 60:if(x(C,l)){if(l=S(C,l,E),i)continue;return f=7}return 60===C.charCodeAt(l+1)?61===C.charCodeAt(l+2)?(l+=3,f=65):(l+=2,f=45):61===C.charCodeAt(l+1)?(l+=2,f=30):1===a&&47===C.charCodeAt(l+1)&&42!==C.charCodeAt(l+2)?(l+=2,f=28):(l++,f=27);case 61:if(x(C,l)){if(l=S(C,l,E),i)continue;return f=7}return 61===C.charCodeAt(l+1)?61===C.charCodeAt(l+2)?(l+=3,f=34):(l+=2,f=32):62===C.charCodeAt(l+1)?(l+=2,f=36):(l++,f=58);case 62:if(x(C,l)){if(l=S(C,l,E),i)continue;return f=7}return l++,f=29;case 63:return l++,f=55;case 91:return l++,f=21;case 93:return l++,f=22;case 94:return 61===C.charCodeAt(l+1)?(l+=2,f=70):(l++,f=50);case 123:return l++,f=17;case 124:if(x(C,l)){if(l=S(C,l,E),i)continue;return f=7}return 124===C.charCodeAt(l+1)?(l+=2,f=54):61===C.charCodeAt(l+1)?(l+=2,f=69):(l++,f=49);case 125:return l++,f=18;case 126:return l++,f=52;case 64:return l++,f=57;case 92:var c=J();return c>=0&&P(c,n)?(l+=6,b=String.fromCharCode(c)+z(),f=K()):(E(e.Diagnostics.Invalid_character),l++,f=0);default:if(P(t,n)){for(l++;l<_&&F(t=C.charCodeAt(l),n);)l++;return b=C.substring(p,l),92===t&&(b+=z()),f=K()}if(g(t)){l++;continue}if(y(t)){D|=1,l++;continue}return E(e.Diagnostics.Invalid_character),l++,f=0}}}function V(){if(d=p=l,l>=_)return f=1;var e=C.charCodeAt(l);if(60===e)return 47===C.charCodeAt(l+1)?(l+=2,f=28):(l++,f=27);if(123===e)return l++,f=17;for(var t=0;l<_&&123!==(e=C.charCodeAt(l));){if(60===e){if(x(C,l))return l=S(C,l,E),f=7;break}y(e)&&0===t?t=-1:m(e)||(t=l),l++}return-1===t?11:10}function W(e,t){var r=l,n=d,i=p,a=f,o=b,s=D,c=e();return c&&!t||(l=r,d=n,p=i,f=a,b=o,D=s),c}function H(e,t,r){C=e||"",_=void 0===r?C.length:t+r,G(t||0)}function G(t){e.Debug.assert(t>=0),l=t,d=t,p=t,f=0,b=void 0,D=0}}}(s||(s={})),function(e){e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)}}(s||(s={})),function(e){e.emptyArray=[],e.resolvingEmptyArray=[],e.emptyMap=e.createMap(),e.emptyUnderscoreEscapedMap=e.emptyMap,e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.getDeclarationOfKind=function(e,t){var r=e.declarations;if(r)for(var n=0,i=r;n=0);var n=e.getLineStarts(r),i=t,a=r.text;if(i+1===n.length)return a.length-1;var o=n[i],s=n[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function _(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function d(e){return!_(e)}function f(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function m(t,r,n){return _(t)?t.pos:e.isJSDocNode(t)?e.skipTrivia((r||u(t)).text,t.pos,!1,!0):n&&e.hasJSDocNodes(t)?m(t.jsDoc[0]):303===t.kind&&t._children.length>0?m(t._children[0],r,n):e.skipTrivia((r||u(t)).text,t.pos)}function g(e,t,r){return void 0===r&&(r=!1),y(e.text,t,r)}function y(t,r,n){return void 0===n&&(n=!1),_(r)?"":t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end)}function h(e,t){return void 0===t&&(t=!1),g(u(e),e,t)}function v(e){return e.pos}function b(e){var t=e.emitNode;return t&&t.flags||0}function x(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function S(e){var t=Be(e);return 235===t.kind&&272===t.parent.kind}function D(t){return e.isModuleDeclaration(t)&&(9===t.name.kind||k(t))}function k(e){return!!(512&e.flags)}function T(t){switch(t.parent.kind){case 277:return e.isExternalModule(t.parent);case 243:return D(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function C(t,r){switch(t.kind){case 277:case 244:case 272:case 242:case 223:case 224:case 225:case 155:case 154:case 156:case 157:case 237:case 194:case 195:return!0;case 216:return!e.isFunctionLike(r)}return!1}function E(e){switch(e.kind){case 247:case 246:return!0;default:return!1}}function N(e){return e&&0!==s(e)?h(e):"(Missing)"}function A(t){switch(t.kind){case 71:return t.escapedText;case 9:case 8:return x(t.text);case 147:return Fe(t.expression)?x(t.expression.text):void 0;default:e.Debug.assertNever(t)}}function P(t,r,n,i,a,o,s){var c=w(t,r);return e.createFileDiagnostic(t,c.start,c.length,n,i,a,o,s)}function F(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}function w(t,r){var n=r;switch(r.kind){case 277:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):F(t,i);case 235:case 184:case 238:case 207:case 239:case 242:case 241:case 276:case 237:case 194:case 154:case 156:case 157:case 240:case 152:case 151:n=r.name;break;case 195:return function(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&216===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(o<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(o,n.end)}function I(t){return!!(2&e.getCombinedNodeFlags(t))}function O(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function M(e){return 219===e.kind&&9===e.expression.kind}e.toPath=i,e.changesAffectModuleResolution=function(t,r){return!(t&&t.module===r.module&&t.moduleResolution===r.moduleResolution&&t.noResolve===r.noResolve&&t.target===r.target&&t.noLib===r.noLib&&t.jsx===r.jsx&&t.allowJs===r.allowJs&&t.rootDir===r.rootDir&&t.configFilePath===r.configFilePath&&t.baseUrl===r.baseUrl&&t.maxNodeModuleJsDepth===r.maxNodeModuleJsDepth&&e.arrayIsEqualTo(t.lib,r.lib)&&e.arrayIsEqualTo(t.typeRoots,r.typeRoots)&&e.arrayIsEqualTo(t.rootDirs,r.rootDirs)&&e.equalOwnProperties(t.paths,r.paths))},e.findAncestor=a,e.forEachEntry=function(e,t){for(var r,n=e.entries(),i=n.next(),a=i.value,o=i.done;!o;a=(r=n.next()).value,o=r.done,r){var s=a[0],c=t(a[1],s);if(c)return c}},e.forEachKey=function(e,t){for(var r,n=e.keys(),i=n.next(),a=i.value,o=i.done;!o;a=(r=n.next()).value,o=r.done,r){var s=t(a);if(s)return s}},e.copyEntries=o,e.arrayToSet=function(t,r){return e.arrayToMap(t,r||function(e){return e},function(){return!0})},e.cloneMap=function(t){var r=e.createMap();return o(t,r),r},e.usingSingleLineStringWriter=function(e){var t=n.getText();try{return e(n),n.getText()}finally{n.clear(),n.writeKeyword(t)}},e.getFullWidth=s,e.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},e.setResolvedModule=function(t,r,n){t.resolvedModules||(t.resolvedModules=e.createMap()),t.resolvedModules.set(r,n)},e.setResolvedTypeReferenceDirective=function(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createMap()),t.resolvedTypeReferenceDirectiveNames.set(r,n)},e.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&(r=e.packageId,n=t.packageId,r===n||!!r&&!!n&&r.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version);var r,n},e.packageIdToString=function(e){var t=e.name,r=e.subModuleName,n=e.version;return(r?t+"/"+r:t)+"@"+n},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary},e.hasChangesInResolutions=function(t,r,n,i){e.Debug.assert(t.length===r.length);for(var a=0;a=0),e.getLineStarts(r)[t]},e.nodePosToString=function(t){var r=u(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"},e.getEndLinePosition=l,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},e.nodeIsMissing=_,e.nodeIsPresent=d,e.addStatementsAfterPrologue=function(e,t){if(void 0===t||0===t.length)return e;for(var r=0;r/;var L=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var R=/^(\/\/\/\s*/;function B(t){if(161<=t.kind&&t.kind<=181)return!0;switch(t.kind){case 119:case 142:case 134:case 137:case 122:case 138:case 140:case 131:return!0;case 105:return 198!==t.parent.kind;case 209:return!At(t);case 148:return 179===t.parent.kind||174===t.parent.kind;case 71:146===t.parent.kind&&t.parent.right===t?t=t.parent:187===t.parent.kind&&t.parent.name===t&&(t=t.parent),e.Debug.assert(71===t.kind||146===t.kind||187===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 146:case 187:case 99:var r=t.parent;if(165===r.kind)return!1;if(181===r.kind)return!r.isTypeOf;if(161<=r.kind&&r.kind<=181)return!0;switch(r.kind){case 209:return!At(r);case 148:return t===r.constraint;case 152:case 151:case 149:case 235:return t===r.type;case 237:case 194:case 195:case 155:case 154:case 153:case 156:case 157:return t===r.type;case 158:case 159:case 160:case 192:return t===r.type;case 189:case 190:return e.contains(r.typeArguments,t);case 191:return!1}}return!1}function j(e){if(e)switch(e.kind){case 184:case 276:case 149:case 273:case 152:case 151:case 274:case 235:return!0}return!1}function J(e){return 236===e.parent.kind&&217===e.parent.parent.kind}function z(e,t,r){return e.properties.filter(function(e){if(273===e.kind){var n=A(e.name);return t===n||!!r&&r===n}return!1})}function K(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function U(t,r){var n=K(t);return n?z(n,r):e.emptyArray}function q(t,r){for(e.Debug.assert(277!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 147:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 150:149===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 195:if(!r)continue;case 237:case 194:case 242:case 152:case 151:case 154:case 153:case 155:case 156:case 157:case 158:case 159:case 160:case 241:case 277:return t}}}function V(e,t,r){switch(e.kind){case 238:return!0;case 152:return 238===t.kind;case 156:case 157:case 154:return void 0!==e.body&&238===t.kind;case 149:return void 0!==t.body&&(155===t.kind||154===t.kind||157===t.kind)&&238===r.kind}return!1}function W(e,t,r){return void 0!==e.decorators&&V(e,t,r)}function H(e,t,r){return W(e,t,r)||G(e,t)}function G(t,r){switch(t.kind){case 238:return e.some(t.members,function(e){return H(e,t,r)});case 154:case 157:return e.some(t.parameters,function(e){return W(e,t,r)});default:return!1}}function X(e){var t=e.parent;return(260===t.kind||259===t.kind||261===t.kind)&&t.tagName===e}function Q(e){switch(e.kind){case 97:case 95:case 101:case 86:case 12:case 185:case 186:case 187:case 188:case 189:case 190:case 191:case 210:case 192:case 211:case 193:case 194:case 207:case 195:case 198:case 196:case 197:case 200:case 201:case 202:case 203:case 206:case 204:case 13:case 208:case 258:case 259:case 262:case 205:case 199:case 212:return!0;case 146:for(;146===e.parent.kind;)e=e.parent;return 165===e.parent.kind||X(e);case 71:if(165===e.parent.kind||X(e))return!0;case 8:case 9:case 99:return Y(e);default:return!1}}function Y(e){var t=e.parent;switch(t.kind){case 235:case 149:case 152:case 151:case 276:case 273:case 184:return t.initializer===e;case 219:case 220:case 221:case 222:case 228:case 229:case 230:case 269:case 232:return t.expression===e;case 223:var r=t;return r.initializer===e&&236!==r.initializer.kind||r.condition===e||r.incrementor===e;case 224:case 225:var n=t;return n.initializer===e&&236!==n.initializer.kind||n.expression===e;case 192:case 210:case 214:case 147:return e===t.expression;case 150:case 268:case 267:case 275:return!0;case 209:return t.expression===e&&At(t);default:return Q(t)}}function $(e){return 246===e.kind&&257===e.moduleReference.kind}function Z(e){return ee(e)}function ee(e){return!!e&&!!(65536&e.flags)}function te(t){return ee(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&54===t.initializer.operatorToken.kind&&t.name&&Pt(t.name)&&ne(t.name,t.initializer.left)?t.initializer.right:t.initializer}function re(t,r){if(e.isCallExpression(t)){var n=xe(t.expression);return 194===n.kind||195===n.kind?t:void 0}return 194===t.kind||207===t.kind||195===t.kind?t:e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function ne(t,r){return e.isIdentifier(t)&&e.isIdentifier(r)?t.escapedText===r.escapedText:e.isIdentifier(t)&&e.isPropertyAccessExpression(r)?(99===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))&&ne(t,r.name):!(!e.isPropertyAccessExpression(t)||!e.isPropertyAccessExpression(r))&&(t.name.escapedText===r.name.escapedText&&ne(t.expression,r.expression))}function ie(t){if(!ee(t)||58!==t.operatorToken.kind||!e.isPropertyAccessExpression(t.left))return 0;var r=t.left;return Pt(r.expression)&&"prototype"===r.name.escapedText&&e.isObjectLiteralExpression(oe(t))?6:ae(r)}function ae(t){if(99===t.expression.kind)return 4;if(e.isIdentifier(t.expression)&&"module"===t.expression.escapedText&&"exports"===t.name.escapedText)return 2;if(Pt(t.expression)){if(wt(t.expression))return 3;for(var r=t;e.isPropertyAccessExpression(r.expression);)r=r.expression;e.Debug.assert(e.isIdentifier(r.expression));var n=r.expression;return"exports"===n.escapedText||"module"===n.escapedText&&"exports"===r.name.escapedText?1:5}return 0}function oe(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function se(t){switch(t.parent.kind){case 247:case 253:return t.parent;case 257:return t.parent.parent;case 189:return t.parent;case 180:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function ce(e){return 301===e.kind||295===e.kind}function ue(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==ie(t.expression)&&e.isBinaryExpression(t.expression.right)&&54===t.expression.right.operatorToken.kind?t.expression.right.right:void 0}function le(e){switch(e.kind){case 217:var t=_e(e);return t&&t.initializer;case 152:case 273:return e.initializer}}function _e(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function de(t){return e.isModuleDeclaration(t)&&t.body&&242===t.body.kind?t.body:void 0}function pe(t){var r=t.parent;return 273===r.kind||152===r.kind||219===r.kind&&187===t.kind||de(r)||e.isBinaryExpression(t)&&58===t.operatorToken.kind?r:r.parent&&(_e(r.parent)===t||e.isBinaryExpression(r)&&58===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(_e(r.parent.parent)||le(r.parent.parent)===t||ue(r.parent.parent))?r.parent.parent:void 0}function fe(e){return me(ge(e))}function me(t){var r,n=ue(t)||(r=t,e.isExpressionStatement(r)&&r.expression&&e.isBinaryExpression(r.expression)&&58===r.expression.operatorToken.kind?r.expression.right:void 0)||le(t)||_e(t)||de(t)||t;return n&&e.isFunctionLike(n)?n:void 0}function ge(t){return e.Debug.assertDefined(a(t.parent,e.isJSDoc)).parent}function ye(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&288===r.kind}function he(e){for(var t=e.parent;;){switch(t.kind){case 202:var r=t.operatorToken.kind;return Ct(r)&&t.left===e?58===r?1:2:0;case 200:case 201:var n=t.operator;return 43===n||44===n?2:0;case 224:case 225:return t.initializer===e?1:0;case 193:case 185:case 206:case 211:e=t;break;case 274:if(t.name!==e)return 0;e=t.parent;break;case 273:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function ve(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function be(e){return ve(e,193)}function xe(e){for(;193===e.kind;)e=e.expression;return e}function Se(t){var r=e.isExportAssignment(t)?t.expression:t.right;return Pt(r)||e.isClassExpression(r)}function De(t){if(ee(t)){var r=e.getJSDocAugmentsTag(t);if(r)return r.class}return ke(t)}function ke(e){var t=Ee(e.heritageClauses,85);return t&&t.types.length>0?t.types[0]:void 0}function Te(e){var t=Ee(e.heritageClauses,108);return t?t.types:void 0}function Ce(e){var t=Ee(e.heritageClauses,85);return t?t.types:void 0}function Ee(e,t){if(e)for(var r=0,n=e;r0&&e.parameters[0].name&&"new"===e.parameters[0].name.escapedText},e.isJSDocTypeAlias=ce,e.isTypeAlias=function(t){return ce(t)||e.isTypeAliasDeclaration(t)},e.getJSDocCommentsAndTags=function(t){var r;j(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(r=e.addRange(r,t.initializer.jsDoc));for(var n=t;n&&n.parent;){if(e.hasJSDocNodes(n)&&(r=e.addRange(r,n.jsDoc)),149===n.kind){r=e.addRange(r,e.getJSDocParameterTags(n));break}n=pe(n)}return r||e.emptyArray},e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var r=t.name.escapedText,n=fe(t);if(n){var i=e.find(n.parameters,function(e){return 71===e.name.kind&&e.name.escapedText===r});return i&&i.symbol}}},e.getHostSignatureFromJSDoc=fe,e.getHostSignatureFromJSDocHost=me,e.getJSDocHost=ge,e.getTypeParameterFromJsDoc=function(t){var r=t.name.escapedText,n=t.parent.parent.parent.typeParameters;return e.find(n,function(e){return e.name.escapedText===r})},e.hasRestParameter=function(t){var r=e.lastOrUndefined(t.parameters);return!!r&&ye(r)},e.isRestParameter=ye,function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=he,e.isAssignmentTarget=function(e){return 0!==he(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 216:case 217:case 229:case 220:case 230:case 244:case 269:case 270:case 231:case 223:case 224:case 225:case 221:case 222:case 233:case 272:return!0}return!1},e.isValueSignatureDeclaration=function(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t)},e.walkUpParenthesizedTypes=function(e){return ve(e,175)},e.walkUpParenthesizedExpressions=be,e.skipParentheses=xe,e.isDeleteTarget=function(e){return(187===e.kind||188===e.kind)&&(e=be(e.parent))&&196===e.kind},e.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=function(t){return!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t},e.isAnyDeclarationName=function(t){switch(t.kind){case 71:case 9:case 8:var r=t.parent;if(e.isDeclaration(r))return r.name===t;if(e.isQualifiedName(t.parent)){var n=t.parent.parent;return e.isJSDocParameterTag(n)&&n.name===t.parent}var i=t.parent.parent;return e.isBinaryExpression(i)&&0!==ie(i)&&e.getNameOfDeclaration(i)===t;default:return!1}},e.isLiteralComputedPropertyDeclarationName=function(t){return(9===t.kind||8===t.kind)&&147===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 152:case 151:case 154:case 153:case 156:case 157:case 276:case 273:case 187:return t.name===e;case 146:if(t.right===e){for(;146===t.kind;)t=t.parent;return 165===t.kind||162===t.kind}return!1;case 184:case 251:return t.propertyName===e;case 255:case 265:return!0}return!1},e.isAliasSymbolDeclaration=function(t){return 246===t.kind||245===t.kind||248===t.kind&&!!t.name||249===t.kind||251===t.kind||255===t.kind||252===t.kind&&Se(t)||e.isBinaryExpression(t)&&2===ie(t)},e.exportAssignmentIsAlias=Se,e.getEffectiveBaseTypeNode=De,e.getClassExtendsHeritageElement=ke,e.getClassImplementsHeritageClauseElements=Te,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?Ce(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(De(t)),Te(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=Ce,e.getHeritageClause=Ee,e.tryResolveScriptReference=function(t,r,n){if(!t.getCompilerOptions().noResolve){var i=e.isRootedDiskPath(n.fileName)?n.fileName:e.combinePaths(e.getDirectoryPath(r.fileName),n.fileName);return t.getSourceFile(i)}},e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=Ne,e.isContextualKeyword=Ae,e.isNonContextualKeyword=Pe,e.isStringANonContextualKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&Pe(r)},e.isTrivia=function(e){return 2<=e&&e<=7},function(e){e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator"}(e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 237:case 194:case 154:e.asteriskToken&&(t|=1);case 195:vt(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 237:case 194:case 195:case 154:return void 0!==e.body&&void 0===e.asteriskToken&&vt(e,256)}return!1},e.isStringOrNumericLiteral=Fe,e.hasDynamicName=we,e.isDynamicName=Ie,e.isWellKnownSymbolSyntactically=Oe,e.getPropertyNameForPropertyNameNode=Me,e.isPropertyNameLiteral=function(e){switch(e.kind){case 71:case 9:case 13:case 8:return!0;default:return!1}},e.getTextOfIdentifierOrLiteral=function(t){return 71===t.kind?e.idText(t):t.text},e.getEscapedTextOfIdentifierOrLiteral=function(e){return 71===e.kind?e.escapedText:x(e.text)},e.getPropertyNameForKnownSymbolName=Le,e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isESSymbolIdentifier=Re,e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 149===Be(e).kind},e.getRootDeclaration=Be,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 155===t||194===t||237===t||195===t||154===t||156===t||157===t||242===t||277===t},e.nodeIsSynthesized=je,e.getOriginalSourceFile=function(t){return e.getParseTreeNode(t,e.isSourceFile)||t},function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=function(e){var t=ze(e),r=190===e.kind&&void 0!==e.arguments;return Je(e.kind,t,r)},e.getOperatorAssociativity=Je,e.getExpressionPrecedence=function(e){var t=ze(e),r=190===e.kind&&void 0!==e.arguments;return Ke(e.kind,t,r)},e.getOperator=ze,e.getOperatorPrecedence=Ke,e.getBinaryOperatorPrecedence=Ue,e.createDiagnosticCollection=function(){var t=[],r=[],n=e.createMap(),i=!1;return{add:function(a){var o;a.file?(o=n.get(a.file.fileName))||(o=[],n.set(a.file.fileName,o),e.insertSorted(r,a.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,t=t.slice()),o=t),e.insertSorted(o,a,e.compareDiagnostics)},lookup:function(r){var i;if(i=r.file?n.get(r.file.fileName):t){var a=e.binarySearch(i,r,e.identity,e.compareDiagnosticsSkipRelatedInformation);return a>=0?i[a]:void 0}},getGlobalDiagnostics:function(){return i=!0,t},getDiagnostics:function(i){if(i)return n.get(i)||[];var a=e.flatMap(r,function(e){return n.get(e)});return t.length?(a.unshift.apply(a,t),a):a},reattachFileDiagnostics:function(t){e.forEach(n.get(t.fileName),function(e){return e.file=t})}}};var qe=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ve=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,We=/[\\\`\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,He=e.createMapFromTemplate({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","Â…":"\\u0085"});function Ge(e,t){var r=96===t?We:39===t?Ve:qe;return e.replace(r,Xe)}function Xe(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return He.get(e)||Qe(e.charCodeAt(0))}function Qe(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}e.escapeString=Ge,e.isIntrinsicJsxName=function(e){var t=e.charCodeAt(0);return t>=97&&t<=122||e.indexOf("-")>-1};var Ye=/[^\u0000-\u007F]/g;function $e(e,t){return e=Ge(e,t),Ye.test(e)?e.replace(Ye,function(e){return Qe(e.charCodeAt(0))}):e}e.escapeNonAsciiString=$e;var Ze=[""," "];function et(e){return void 0===Ze[e]&&(Ze[e]=et(e-1)+Ze[1]),Ze[e]}function tt(){return Ze[1].length}function rt(e,t,r){return t.moduleName||nt(e,t.fileName,r&&r.fileName)}function nt(t,r,n){var a=function(e){return t.getCanonicalFileName(e)},o=i(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),a),s=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),c=e.getRelativePathToDirectoryOrUrl(o,s,o,a,!1),u=e.removeFileExtension(c);return n?e.ensurePathIsNonModuleName(u):u}function it(e,t,r){return!(t.noEmitForJsFiles&&Z(e)||e.isDeclarationFile||r(e))}function at(e,t,r){return ot(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})}function ot(t,r,n,i,a){var o=e.getNormalizedAbsolutePath(t,n);return o=0===a(o).indexOf(a(i))?o.substring(i.length):o,e.combinePaths(r,o)}function st(t,r){return e.getLineAndCharacterOfPosition(t,r).line}function ct(t,r){return e.computeLineAndCharacterOfPosition(t,r).line}function ut(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&<(e.parameters[0]);return e.parameters[t?1:0]}}function lt(e){return _t(e.name)}function _t(e){return!!e&&71===e.kind&&dt(e)}function dt(e){return 99===e.originalKeywordKind}function pt(t){return t.type||(ee(t)?e.getJSDocType(t):void 0)}function ft(e,t,r,n){mt(e,t,r.pos,n)}function mt(e,t,r,n){n&&n.length&&r!==n[0].pos&&ct(e,r)!==ct(e,n[0].pos)&&t.writeLine()}function gt(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.write(" ");for(var c=!1,u=0,l=n;u=58&&e<=70}function Et(t){if(e.isExpressionWithTypeArguments(t)&&85===t.parent.token&&e.isClassLike(t.parent.parent))return t.parent.parent}function Nt(t,r){return e.isBinaryExpression(t)&&(r?58===t.operatorToken.kind:Ct(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function At(e){return void 0!==Et(e)}function Pt(e){return 71===e.kind||Ft(e)}function Ft(t){return e.isPropertyAccessExpression(t)&&Pt(t.expression)}function wt(t){return e.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText}e.getIndentString=et,e.getIndentSize=tt,e.createTextWriter=function(t){var r,n,i,a,o;function s(t){var n=e.computeLineStarts(t);n.length>1?(a=a+n.length-1,o=r.length-t.length+e.last(n),i=o-r.length==0):i=!1}function c(e){e&&e.length&&(i&&(e=et(n)+e,i=!1),r+=e,s(e))}function u(){r="",n=0,i=!0,a=0,o=0}return u(),{write:c,rawWrite:function(e){void 0!==e&&(r+=e,s(e))},writeTextOfNode:function(e,t){var r=y(e,t);c(r),s(r)},writeLiteral:function(e){e&&e.length&&c(e)},writeLine:function(){i||(a++,o=(r+=t).length,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*tt():r.length-o},getText:function(){return r},isAtStartOfLine:function(){return i},clear:u,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:c,writeOperator:c,writeParameter:c,writeProperty:c,writePunctuation:c,writeSpace:c,writeStringLiteral:c,writeSymbol:c}},e.getResolvedExternalModuleName=rt,e.getExternalModuleNameFromDeclaration=function(e,t,r){var n=t.getExternalModuleFileFromDeclaration(r);if(n&&!n.isDeclarationFile)return rt(e,n)},e.getExternalModuleNameFromPath=nt,e.getOwnEmitOutputFilePath=function(t,r,n){var i=r.getCompilerOptions();return(i.outDir?e.removeFileExtension(at(t,r,i.outDir)):e.removeFileExtension(t))+n},e.getDeclarationEmitOutputFilePath=function(t,r){var n=r.getCompilerOptions(),i=n.declarationDir||n.outDir,a=i?at(t,r,i):t;return e.removeFileExtension(a)+".d.ts"},e.getDeclarationEmitOutputFilePathWorker=function(t,r,n,i,a){var o=r.declarationDir||r.outDir,s=o?ot(t,o,n,i,a):t;return e.removeFileExtension(s)+".d.ts"},e.getSourceFilesToEmit=function(t,r){var n=t.getCompilerOptions(),i=function(e){return t.isSourceFileFromExternalLibrary(e)};if(n.outFile||n.out){var a=e.getEmitModuleKind(n),o=a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(o||!e.isExternalModule(t))&&it(t,n,i)})}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,function(e){return it(e,n,i)})},e.sourceFileMayBeEmitted=it,e.getSourceFilePathInNewDir=at,e.getSourceFilePathInNewDirWorker=ot,e.writeFile=function(t,r,n,i,a,o){t.writeFile(n,i,a,function(t){r.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))},o)},e.getLineOfLocalPosition=st,e.getLineOfLocalPositionFromLineMap=ct,e.getFirstConstructorWithBody=function(t){return e.find(t.members,function(t){return e.isConstructorDeclaration(t)&&d(t.body)})},e.getSetAccessorTypeAnnotationNode=function(e){var t=ut(e);return t&&t.type},e.getThisParameter=function(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(lt(r))return r}},e.parameterIsThisKeyword=lt,e.isThisIdentifier=_t,e.identifierIsThisKeyword=dt,e.getAllAccessorDeclarations=function(t,r){var n,i,a,o;return we(r)?(n=r,156===r.kind?a=r:157===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(e){156!==e.kind&&157!==e.kind||vt(e,32)!==vt(r,32)||Me(e.name)===Me(r.name)&&(n?i||(i=e):n=e,156!==e.kind||a||(a=e),157!==e.kind||o||(o=e))}),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=pt,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(t){return e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(ee(t)?e.getJSDocReturnType(t):void 0)},e.getJSDocTypeParameterDeclarations=function(t){return e.flatMap(e.getJSDocTags(t),function(t){return function(t){return e.isJSDocTemplateTag(t)&&!(289===t.parent.kind&&t.parent.tags.some(ce))}(t)?t.typeParameters:void 0})},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=ut(e);return t&&pt(t)},e.emitNewLineBeforeLeadingComments=ft,e.emitNewLineBeforeLeadingCommentsOfPosition=mt,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&ct(e,r)!==ct(e,n)&&t.writeLine()},e.emitComments=gt,e.emitDetachedComments=function(t,r,n,i,a,o,s){var c,u;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),function(e){return f(t,e.pos)})):c=e.getLeadingCommentRanges(t,a.pos),c){for(var l=[],_=void 0,d=0,p=c;d=g+2)break}l.push(m),_=m}l.length&&(g=ct(r,e.last(l).end),ct(r,e.skipTrivia(t,a.pos))>=g+2&&(ft(r,n,a,c),gt(t,r,n,l,!1,!0,o,i),u={nodePos:a.pos,detachedCommentEndPos:e.last(l).end}))}return u},e.writeCommentRange=function(t,r,n,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(r,i),c=r.length,u=void 0,l=i,_=s.line;l0){var f=p%tt(),m=et((p-f)/tt());for(n.rawWrite(m);f;)n.rawWrite(" "),f--}else n.rawWrite("")}yt(t,a,n,o,l,d),l=d}else n.write(t.substring(i,a))},e.hasModifiers=function(e){return 0!==Dt(e)},e.hasModifier=vt,e.hasStaticModifier=bt,e.hasReadonlyModifier=xt,e.getSelectedModifierFlags=St,e.getModifierFlags=Dt,e.getModifierFlagsNoCache=kt,e.modifierToFlag=Tt,e.isLogicalOperator=function(e){return 54===e||53===e||51===e},e.isAssignmentOperator=Ct,e.tryGetClassExtendingExpressionWithTypeArguments=Et,e.isAssignmentExpression=Nt,e.isDestructuringAssignment=function(e){if(Nt(e,!0)){var t=e.left.kind;return 186===t||185===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=At,e.isExpressionWithTypeArgumentsInClassImplementsClause=function(t){return 209===t.kind&&Pt(t.expression)&&t.parent&&108===t.parent.token&&t.parent.parent&&e.isClassLike(t.parent.parent)},e.isEntityNameExpression=Pt,e.isPropertyAccessEntityNameExpression=Ft,e.isPrototypeAccess=wt,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 146===e.parent.kind&&e.parent.right===e||187===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 186===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 185===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){return function(t){return t&&e.length(t.declarations)>0&&vt(t.declarations[0],512)}(t)?t.declarations[0].localSymbol:void 0},e.tryExtractTypeScriptExtension=function(t){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(r){return e.fileExtensionIs(t,r)})};var It="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Ot(t){for(var r,n,i,a,o="",s=function(t){for(var r=[],n=t.length,i=0;i>6|192),r.push(63&a|128)):a<65536?(r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)):a<131072?(r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return r}(t),c=0,u=s.length;c>2,n=(3&s[c])<<4|s[c+1]>>4,i=(15&s[c+1])<<2|s[c+2]>>6,a=63&s[c+2],c+1>=u?i=a=64:c+2>=u&&(a=64),o+=It.charAt(r)+It.charAt(n)+It.charAt(i)+It.charAt(a),c+=3;return o}e.convertToBase64=Ot,e.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Ot(t)},e.base64decode=function(e,t){if(e&&e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i>4&3,l=(15&o)<<4|s>>2&15,_=(3&s)<<6|63&c;0===l&&0!==s?n.push(u):0===_&&0!==c?n.push(u,l):n.push(u,l,_),i+=4}return function(e){for(var t="",r=0,n=e.length;r0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a="",o=t,s=i.length-1;s>=0&&0!==o;s--){var c=i[s],u=c[0],l=c[1];0!==u&&(o&u)===u&&(o&=~u,a=l+(a?", ":"")+a)}if(0===o)return a}else for(var _=0,d=i;_0?Jt(e,e.decorators.end):e}function Kt(e,t,r){return Ut(qt(e,r),t.end,r)}function Ut(e,t,r){return e===t||st(r,e)===st(r,t)}function qt(t,r){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(r.text,t.pos)}function Vt(e){return void 0!==e.initializer}function Wt(e){return 33554432&e.flags?e.checkFlags:0}function Ht(e){var t=e.parent;if(!t)return 0;switch(t.kind){case 201:case 200:var r=t.operator;return 43===r||44===r?o():0;case 202:var n=t,i=n.left,a=n.operatorToken;return i===e&&Ct(a.kind)?o():0;case 187:return t.name!==e?0:Ht(t);default:return 0}function o(){return t.parent&&219===t.parent.kind?1:2}}function Gt(t,r){for(;;){var n=r(t);if(void 0!==n)return n;var i=e.getDirectoryPath(t);if(i===t)return;t=i}}function Xt(e){if(32&e.flags){var t=Qt(e);return!!t&&vt(t,128)}return!1}function Qt(t){return e.find(t.declarations,e.isClassLike)}function Yt(e){return 131072&e.flags?e.objectFlags:0}e.getNewLineCharacter=function(t,r){switch(t.newLine){case 0:return Lt;case 1:return Rt}return r?r():e.sys?e.sys.newLine:Lt},e.formatSyntaxKind=function(t){return Bt(t,e.SyntaxKind,!1)},e.formatModifierFlags=function(t){return Bt(t,e.ModifierFlags,!0)},e.formatTransformFlags=function(t){return Bt(t,e.TransformFlags,!0)},e.formatEmitFlags=function(t){return Bt(t,e.EmitFlags,!0)},e.formatSymbolFlags=function(t){return Bt(t,e.SymbolFlags,!0)},e.formatTypeFlags=function(t){return Bt(t,e.TypeFlags,!0)},e.formatObjectFlags=function(t){return Bt(t,e.ObjectFlags,!0)},e.createRange=jt,e.moveRangeEnd=function(e,t){return jt(e.pos,t)},e.moveRangePos=Jt,e.moveRangePastDecorators=zt,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?Jt(e,e.modifiers.end):zt(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,r){return jt(t,t+e.tokenToString(r).length)},e.rangeIsOnSingleLine=function(e,t){return Kt(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,r){return Ut(qt(e,r),qt(t,r),r)},e.rangeEndPositionsAreOnSameLine=function(e,t,r){return Ut(e.end,t.end,r)},e.rangeStartIsOnSameLineAsRangeEnd=Kt,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return Ut(e.end,qt(t,r),r)},e.positionsAreOnSameLine=Ut,e.getStartPositionOfRange=qt,e.isDeclarationNameOfEnumOrNamespace=function(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 241:case 242:return r===r.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,Vt)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=Wt,e.getDeclarationModifierFlagsFromSymbol=function(t){if(t.valueDeclaration){var r=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?r:-29&r}if(6&Wt(t)){var n=t.checkFlags;return(256&n?8:64&n?4:16)|(512&n?32:0)}return 4194304&t.flags?36:0},e.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===Ht(e)},e.isWriteAccess=function(e){return 0!==Ht(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(Mt||(Mt={})),e.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"===p(t[n])){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMap=function(e,t,r){var n=r.createNewValue,i=r.onDeleteValue,a=r.onExistingValue;e.forEach(function(r,n){var o=t.get(n);void 0===o?(e.delete(n),i(r,n)):a&&a(r,o,n)}),t.forEach(function(t,r){e.has(r)||e.set(r,n(r,t))})},e.forEachAncestorDirectory=Gt,e.isAbstractConstructorType=function(e){return!!(16&Yt(e))&&!!e.symbol&&Xt(e.symbol)},e.isAbstractConstructorSymbol=Xt,e.getClassLikeDeclarationOfSymbol=Qt,e.getObjectFlags=Yt,e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(e,t){return!!Gt(e,function(e){return!!t(e)||void 0})},e.isUMDExportSymbol=function(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])},e.showModuleSpecifier=function(t){var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:h(r)},e.getLastChild=function(t){var r;return e.forEachChild(t,function(e){d(e)&&(r=e)},function(e){for(var t=e.length-1;t>=0;t--)if(d(e[t])){r=e[t];break}}),r},e.addToSeen=function(e,t,r){return void 0===r&&(r=!0),t=String(t),!e.has(t)&&(e.set(t,r),!0)},e.isObjectTypeDeclaration=function(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)}}(s||(s={})),function(e){function t(e){return e.start+e.length}function r(e){return 0===e.length}function n(e,t){var r=a(e,t);return r&&0===r.length?void 0:r}function i(e,t,r,n){return r<=e+t&&r+n>=e}function a(e,r){var n=Math.max(e.start,r.start),i=Math.min(t(e),t(r));return n<=i?s(n,i):void 0}function o(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function s(e,t){return o(e,t-e)}function c(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function u(t){return!!e.isBindingPattern(t)&&e.every(t.elements,l)}function l(t){return!!e.isOmittedExpression(t)||u(t.name)}function _(t){for(var r=t.parent;e.isBindingElement(r.parent);)r=r.parent.parent;return r.parent}function d(t,r){e.isBindingElement(t)&&(t=_(t));var n=r(t);return 235===t.kind&&(t=t.parent),t&&236===t.kind&&(n|=r(t),t=t.parent),t&&217===t.kind&&(n|=r(t)),n}function p(e,t){if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0}function f(e){return 0==(8&e.flags)}function m(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function g(t){var r=v(t);return r&&e.isIdentifier(r)?r:void 0}function y(t){return t.name||function(t){var r=t.parent.parent;if(r){if(e.isDeclaration(r))return g(r);switch(r.kind){case 217:return r.declarationList&&r.declarationList.declarations[0]?g(r.declarationList.declarations[0]):void 0;case 219:var n=r.expression;switch(n.kind){case 187:return n.name;case 188:var i=n.argumentExpression;if(e.isIdentifier(i))return i}return;case 1:return;case 193:return g(r.expression);case 231:return e.isDeclaration(r.statement)||e.isExpression(r.statement)?g(r.statement):void 0;default:e.Debug.assertNever(r,"Found typedef tag attached to node which it should not be!")}}}(t)}function h(t){switch(t.kind){case 71:return t;case 302:case 296:var r=t.name;if(146===r.kind)return r.right;break;case 202:var n=t;switch(e.getSpecialPropertyAssignmentKind(n)){case 1:case 4:case 5:case 3:return n.left.name;default:return}case 301:return y(t);case 252:var i=t.expression;return e.isIdentifier(i)?i:void 0}return t.name}function v(t){if(void 0!==t)return h(t)||(e.isFunctionExpression(t)||e.isClassExpression(t)?function(t){if(!t.parent)return;if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isPropertyAccessExpression(t.parent.left))return t.parent.left.name}}(t):void 0)}function b(t){if(t.name){if(e.isIdentifier(t.name)){var r=t.name.escapedText;return D(t.parent).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===r})}var n=t.parent.parameters.indexOf(t);e.Debug.assert(n>-1,"Parameters should always be in their parents' parameter list");var i=D(t.parent).filter(e.isJSDocParameterTag);if(n=e.start&&r=e.pos&&t<=e.end},e.textSpanContainsTextSpan=function(e,r){return r.start>=e.start&&t(r)<=t(e)},e.textSpanOverlapsWith=function(e,t){return void 0!==n(e,t)},e.textSpanOverlap=n,e.textSpanIntersectsWithTextSpan=function(e,t){return i(e.start,e.length,t.start,t.length)},e.textSpanIntersectsWith=function(e,t,r){return i(e.start,e.length,t,r)},e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=function(e,r){return r<=t(e)&&r>=e.start},e.textSpanIntersection=a,e.createTextSpan=o,e.createTextRange=function(t,r){return void 0===r&&(r=t),e.Debug.assert(r>=t),{pos:t,end:r}},e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return r(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(r){if(0===r.length)return e.unchangedTextChangeRange;if(1===r.length)return r[0];for(var n=r[0],i=n.span.start,a=t(n.span),o=i+n.newLength,u=1;u=146}function r(e){return 8<=e&&e<=13}function n(e){return 13<=e&&e<=16}function i(e){switch(e){case 117:case 120:case 76:case 124:case 79:case 84:case 114:case 112:case 113:case 132:case 115:return!0}return!1}function a(t){return!!(92&e.modifierToFlag(t))}function o(e){return e&&c(e.kind)}function s(e){switch(e){case 237:case 154:case 155:case 156:case 157:case 194:case 195:return!0;default:return!1}}function c(e){switch(e){case 153:case 158:case 291:case 159:case 160:case 163:case 287:case 164:return!0;default:return s(e)}}function u(e){var t=e.kind;return 155===t||152===t||154===t||156===t||157===t||160===t||215===t}function l(e){var t=e.kind;return 159===t||158===t||151===t||153===t||160===t}function _(e){switch(e.kind){case 182:case 186:return!0}return!1}function d(e){switch(e.kind){case 183:case 185:return!0}return!1}function p(e){switch(e){case 187:case 188:case 190:case 189:case 258:case 259:case 262:case 191:case 185:case 193:case 186:case 207:case 194:case 71:case 12:case 8:case 9:case 13:case 204:case 86:case 95:case 99:case 101:case 97:case 211:case 212:case 91:return!0;default:return!1}}function f(e){switch(e){case 200:case 201:case 196:case 197:case 198:case 199:case 192:return!0;default:return p(e)}}function m(t){return function(e){switch(e){case 203:case 205:case 195:case 202:case 206:case 210:case 208:case 306:case 305:return!0;default:return f(e)}}(e.skipPartiallyEmittedExpressions(t).kind)}function g(e){return 305===e.kind}function y(e){return 304===e.kind}function h(e){return 237===e||256===e||238===e||239===e||240===e||241===e||242===e||247===e||246===e||253===e||252===e||245===e}function v(e){return 227===e||226===e||234===e||221===e||219===e||218===e||224===e||225===e||223===e||220===e||231===e||228===e||230===e||232===e||233===e||217===e||222===e||229===e||304===e||308===e||307===e}function b(e){return e.kind>=292&&e.kind<=302}function x(e){return!!e.initializer}e.isSyntaxList=function(e){return 303===e.kind},e.isNode=function(e){return t(e.kind)},e.isNodeKind=t,e.isToken=function(e){return e.kind>=0&&e.kind<=145},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=r,e.isLiteralExpression=function(e){return r(e.kind)},e.isTemplateLiteralKind=n,e.isTemplateLiteralToken=function(e){return n(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 15===t||16===t},e.isStringTextContainingNode=function(e){return 9===e.kind||n(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isModifierKind=i,e.isParameterPropertyModifier=a,e.isClassMemberModifier=function(e){return a(e)||115===e},e.isModifier=function(e){return i(e.kind)},e.isEntityName=function(e){var t=e.kind;return 146===t||71===t},e.isPropertyName=function(e){var t=e.kind;return 71===t||9===t||8===t||147===t},e.isBindingName=function(e){var t=e.kind;return 71===t||182===t||183===t},e.isFunctionLike=o,e.isFunctionLikeDeclaration=function(e){return e&&s(e.kind)},e.isFunctionLikeKind=c,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&o(t.parent)},e.isClassElement=u,e.isClassLike=function(e){return e&&(238===e.kind||207===e.kind)},e.isAccessor=function(e){return e&&(156===e.kind||157===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 154:case 156:case 157:return!0;default:return!1}},e.isTypeElement=l,e.isClassOrTypeElement=function(e){return l(e)||u(e)},e.isObjectLiteralElementLike=function(e){var t=e.kind;return 273===t||274===t||275===t||154===t||156===t||157===t},e.isTypeNode=function(e){return(t=e.kind)>=161&&t<=181||119===t||142===t||134===t||135===t||122===t||137===t||138===t||99===t||105===t||140===t||95===t||131===t||209===t||282===t||283===t||284===t||285===t||286===t||287===t||288===t;var t},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 163:case 164:return!0}return!1},e.isBindingPattern=function(e){if(e){var t=e.kind;return 183===t||182===t}return!1},e.isAssignmentPattern=function(e){var t=e.kind;return 185===t||186===t},e.isArrayBindingElement=function(e){var t=e.kind;return 184===t||208===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 235:case 149:case 184:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return _(e)||d(e)},e.isObjectBindingOrAssignmentPattern=_,e.isArrayBindingOrAssignmentPattern=d,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 187===t||146===t||181===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 187===t||146===t},e.isCallLikeExpression=function(e){switch(e.kind){case 260:case 259:case 189:case 190:case 191:case 150:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 189===e.kind||190===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 204===t||13===t},e.isLeftHandSideExpression=function(t){return p(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpression=function(t){return f(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 201:return!0;case 200:return 43===e.operator||44===e.operator;default:return!1}},e.isExpression=m,e.isAssertionExpression=function(e){var t=e.kind;return 192===t||210===t},e.isPartiallyEmittedExpression=g,e.isNotEmittedStatement=y,e.isNotEmittedOrPartiallyEmittedNode=function(e){return y(e)||g(e)},e.isIterationStatement=function e(t,r){switch(t.kind){case 223:case 224:case 225:case 221:case 222:return!0;case 231:return r&&e(t.statement,r)}return!1},e.isForInOrOfStatement=function(e){return 224===e.kind||225===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||m(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||m(t)},e.isModuleBody=function(e){var t=e.kind;return 243===t||242===t||71===t},e.isNamespaceBody=function(e){var t=e.kind;return 243===t||242===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 71===t||242===t},e.isNamedImportBindings=function(e){var t=e.kind;return 250===t||249===t},e.isModuleOrEnumDeclaration=function(e){return 242===e.kind||241===e.kind},e.isDeclaration=function(t){return 148===t.kind?300!==t.parent.kind||e.isInJavaScriptFile(t):195===(r=t.kind)||184===r||238===r||207===r||155===r||241===r||276===r||255===r||237===r||194===r||156===r||248===r||246===r||251===r||239===r||265===r||154===r||153===r||242===r||245===r||249===r||149===r||273===r||152===r||151===r||157===r||274===r||240===r||148===r||235===r||301===r||295===r||302===r;var r},e.isDeclarationStatement=function(e){return h(e.kind)},e.isStatementButNotDeclaration=function(e){return v(e.kind)},e.isStatement=function(t){var r=t.kind;return v(r)||h(r)||function(t){return 216===t.kind&&((void 0===t.parent||233!==t.parent.kind&&272!==t.parent.kind)&&!e.isFunctionBlock(t))}(t)},e.isModuleReference=function(e){var t=e.kind;return 257===t||146===t||71===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 99===t||71===t||187===t},e.isJsxChild=function(e){var t=e.kind;return 258===t||268===t||259===t||10===t||262===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 265===t||267===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 9===t||268===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 260===t||259===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 269===t||270===t},e.isJSDocNode=function(e){return e.kind>=281&&e.kind<=302},e.isJSDocCommentContainingNode=function(t){return 289===t.kind||b(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)},e.isJSDocTag=b,e.isSetAccessor=function(e){return 157===e.kind},e.isGetAccessor=function(e){return 156===e.kind},e.hasJSDocNodes=function(e){var t=e.jsDoc;return!!t&&t.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=x,e.hasOnlyExpressionInitializer=function(t){return x(t)&&!e.isForStatement(t)&&!e.isForInStatement(t)&&!e.isForOfStatement(t)&&!e.isJsxAttribute(t)},e.isObjectLiteralElement=function(e){switch(e.kind){case 265:case 267:case 273:case 274:case 154:case 156:case 157:return!0;default:return!1}},e.isTypeReferenceType=function(e){return 162===e.kind||209===e.kind};var S=1073741823;e.guessIndentation=function(t){for(var r=S,n=0,i=t;n=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function p(e){return!(!e.declaration&&!e.composite)}e.isNamedImportsOrExports=function(e){return 250===e.kind||254===e.kind},e.objectAllocator={getNodeConstructor:function(){return i},getTokenConstructor:function(){return i},getIdentifierConstructor:function(){return i},getSourceFileConstructor:function(){return i},getSymbolConstructor:function(){return t},getTypeConstructor:function(){return r},getSignatureConstructor:function(){return n},getSourceMapSourceConstructor:function(){return a}},e.formatStringFromArgs=o,e.getLocaleSpecificMessage=s,e.createFileDiagnostic=function(t,r,n,i){e.Debug.assertGreaterThanOrEqual(r,0),e.Debug.assertGreaterThanOrEqual(n,0),t&&(e.Debug.assertLessThanOrEqual(r,t.text.length),e.Debug.assertLessThanOrEqual(r+n,t.text.length));var a=s(i);return arguments.length>4&&(a=o(a,arguments,4)),{file:t,start:r,length:n,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary}},e.formatMessage=function(e,t){var r=s(t);return arguments.length>2&&(r=o(r,arguments,2)),r},e.createCompilerDiagnostic=function(e){var t=s(e);return arguments.length>1&&(t=o(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary}},e.createCompilerDiagnosticFromMessageChain=function(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}},e.chainDiagnosticMessages=function(e,t){var r=s(t);return arguments.length>2&&(r=o(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e}},e.concatenateDiagnosticMessageChains=function(e,t){for(var r=e;r.next;)r=r.next;return r.next=t,e},e.compareDiagnostics=u,e.compareDiagnosticsSkipRelatedInformation=l,e.getEmitScriptTarget=_,e.getEmitModuleKind=d,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;return void 0===r&&(r=d(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r},e.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!p(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(t){var r=d(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:t.esModuleInterop?r!==e.ModuleKind.None&&r=97&&e<=122||e>=65&&e<=90}function v(t){if(!t)return 0;var r=t.charCodeAt(0);if(47===r||92===r){if(t.charCodeAt(1)!==r)return 1;var n=t.indexOf(47===r?e.directorySeparator:f,2);return n<0?t.length:n+1}if(h(r)&&58===t.charCodeAt(1)){var i=t.charCodeAt(2);if(47===i||92===i)return 3;if(2===t.length)return 2}var a=t.indexOf(m);if(-1!==a){var o=a+m.length,s=t.indexOf(e.directorySeparator,o);if(-1!==s){var c=t.slice(0,a),u=t.slice(o,s);if("file"===c&&(""===u||"localhost"===u)&&h(t.charCodeAt(s+1))){var l=function(e,t){var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){var n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(t,s+2);if(-1!==l){if(47===t.charCodeAt(l))return~(l+1);if(l===t.length)return~l}}return~(s+1)}return~t.length}return 0}function b(e){var t=v(e);return t<0?~t:t}function x(e){return v(e)>0}function S(t,r){return void 0===r&&(r=""),function(t,r){var n=t.substring(0,r),i=t.substring(r).split(e.directorySeparator);return i.length&&!e.lastOrUndefined(i)&&i.pop(),[n].concat(i)}(t=e.combinePaths(r,t),b(t))}function D(t){if(!e.some(t))return[];for(var r=[t[0]],n=1;n1){if(".."!==r[r.length-1]){r.pop();continue}}else if(r[0])continue;r.push(i)}}return r}function k(e,t){return D(S(e,t))}function T(t){if(0===t.length)return"";var r=t[0]&&e.ensureTrailingDirectorySeparator(t[0]);return 1===t.length?r:r+t.slice(1).join(e.directorySeparator)}e.normalizeSlashes=y,e.getRootLength=b,e.normalizePath=function(t){return e.resolvePath(t)},e.normalizePathAndParts=function(t){var r=D(S(t=y(t))),n=r[0],i=r.slice(1);if(i.length){var a=n+i.join(e.directorySeparator);return{path:e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(a):a,parts:i}}return{path:n,parts:i}},e.getDirectoryPath=function(t){var r=b(t=y(t));return r===t.length?t:(t=e.removeTrailingDirectorySeparator(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))},e.isUrl=function(e){return v(e)<0},e.pathIsRelative=function(e){return/^\.\.?($|[\\/])/.test(e)},e.isRootedDiskPath=x,e.isDiskPathRoot=function(e){var t=v(e);return t>0&&t===e.length},e.convertToRelativePath=function(t,r,n){return x(t)?e.getRelativePathToDirectoryOrUrl(r,t,r,n,!1):t},e.getPathComponents=S,e.reducePathComponents=D,e.getNormalizedPathComponents=k,e.getNormalizedAbsolutePath=function(e,t){return T(k(e,t))},e.getPathFromPathComponents=T}(s||(s={})),function(e){function t(t,r,n,i){var a,o=e.reducePathComponents(e.getPathComponents(t)),s=e.reducePathComponents(e.getPathComponents(r));for(a=0;a0==e.getRootLength(n)>0,"Paths must either both be absolute or both be relative");var a="function"==typeof i?i:e.identity,o=t(r,n,"boolean"==typeof i&&i?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,a);return e.getPathFromPathComponents(o)}function n(t){return 0!==e.getRootLength(t)||e.pathIsRelative(t)?t:"./"+t}function i(t,r,n){if(t=e.normalizeSlashes(t),e.getRootLength(t)===t.length)return"";var i=(t=c(t)).slice(Math.max(e.getRootLength(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?j(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function a(t){for(var r=[],n=1;n0;)u+=")?",f--;return u}(t,r,n,v[n])})}function S(e){return!/[.*?]/.test(e)}function D(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function k(t,r,n,i,o){t=e.normalizePath(t);var s=a(o=e.normalizePath(o),t);return{includeFilePatterns:e.map(x(n,s,"files"),function(e){return"^"+e+"$"}),includeFilePattern:b(n,s,"files"),includeDirectoryPattern:b(n,s,"directories"),excludePattern:b(r,s,"exclude"),basePaths:function(t,r,n){var i=[t];if(r){for(var o=[],s=0,c=r;s=0;n--)if(e.fileExtensionIs(t,r[n]))return P(n,r);return 0},e.adjustExtensionPriority=P,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var F,w=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function I(t,r){return e.fileExtensionIs(t,r)?O(t,r):void 0}function O(e,t){return e.substring(0,e.length-t.length)}function M(t,r,n,i){var a=void 0!==n&&void 0!==i?j(t,n,i):j(t);return a?t.slice(0,t.length-a.length)+(e.startsWith(r,".")?r:"."+r):t}function L(t){F.assert(e.hasZeroOrOneAsteriskCharacter(t));var r=t.indexOf("*");return-1===r?void 0:{prefix:t.substr(0,r),suffix:t.substr(r+1)}}function R(e){return".ts"===e||".tsx"===e||".d.ts"===e}function B(t){return e.find(w,function(r){return e.fileExtensionIs(t,r)})}function j(t,r,n){if(r)return function(t,r,n){"string"==typeof r&&(r=[r]);for(var i=0,a=r;i=o.length&&"."===t.charAt(t.length-o.length)){var s=t.slice(t.length-o.length);if(n(s,o))return s}}return""}(t,r,n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var a=i(t),o=a.lastIndexOf(".");return o>=0?a.substring(o):""}e.removeFileExtension=function(e){for(var t=0,r=w;t=0)},e.extensionIsTypeScript=R,e.resolutionExtensionIsTypeScriptOrJson=function(e){return R(e)||".json"===e},e.extensionFromPath=function(e){var t=B(e);return void 0!==t?t:F.fail("File "+e+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==B(e)},e.tryGetExtensionFromPath=B,e.getAnyExtensionFromPath=j,e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=function(t,r){for(var n=[],i=0,a=t;in&&(n=a)}return{min:r,max:n}}}(s||(s={})),function(e){var t,r,n,i,a,o,s;function c(e,t){return t&&e(t)}function u(e,t,r){if(r){if(t)return t(r);for(var n=0,i=r;nt.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})});break;case"jsx":return;default:e.Debug.fail("Unhandled pragma kind")}})}!function(e){e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"}(t||(t={})),e.createNode=function(t,o,s){return 277===t?new(a||(a=e.objectAllocator.getSourceFileConstructor()))(t,o,s):71===t?new(i||(i=e.objectAllocator.getIdentifierConstructor()))(t,o,s):e.isNodeKind(t)?new(r||(r=e.objectAllocator.getNodeConstructor()))(t,o,s):new(n||(n=e.objectAllocator.getTokenConstructor()))(t,o,s)},e.isJSDocLikeText=l,e.forEachChild=_,e.createSourceFile=function(t,r,n,i,a){var s;return void 0===i&&(i=!1),e.performance.mark("beforeParse"),s=100===n?o.parseJsonText(t,r,n,void 0,i):o.parseSourceFile(t,r,n,void 0,i,a),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),s},e.parseIsolatedEntityName=function(e,t){return o.parseIsolatedEntityName(e,t)},e.parseJsonText=function(e,t){return o.parseJsonText(e,t)},e.isExternalModule=function(e){return void 0!==e.externalModuleIndicator},e.updateSourceFile=function(e,t,r,n){void 0===n&&(n=!1);var i=s.updateSourceFile(e,t,r,n);return i.flags|=1572864&e.flags,i},e.parseIsolatedJSDocComment=function(e,t,r){var n=o.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&o.fixupParentReferences(n.jsDoc),n},e.parseJSDocTypeExpressionForTests=function(e,t,r){return o.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)},function(t){var r,n,i,a,o,s,c,u,m,g,y,h,v,b,S,D,k,T=e.createScanner(6,!0),C=10240,E=!1;function N(t,r,n,i,a){void 0===n&&(n=2),P(r,n,i,6),(o=M(t,2,6,!1)).flags=b,ne();var c=te();if(1===re())o.statements=be([],c,c),o.endOfFileToken=me();else{var u=he(219);switch(re()){case 21:u.expression=Er();break;case 101:case 86:case 95:u.expression=me();break;case 38:ce(function(){return 8===ne()&&56!==ne()})?u.expression=sr():u.expression=Ar();break;case 8:case 9:if(ce(function(){return 56!==ne()})){u.expression=rt();break}default:u.expression=Ar()}xe(u),o.statements=be([u],c),o.endOfFileToken=fe(1,e.Diagnostics.Unexpected_token)}a&&O(o),o.parseDiagnostics=s;var l=o;return F(),l}function A(e){return 4===e||2===e||1===e||6===e?1:0}function P(t,o,u,l){switch(r=e.objectAllocator.getNodeConstructor(),n=e.objectAllocator.getTokenConstructor(),i=e.objectAllocator.getIdentifierConstructor(),a=e.objectAllocator.getSourceFileConstructor(),m=t,c=u,s=[],v=0,y=e.createMap(),h=0,g=0,l){case 1:case 2:b=65536;break;case 6:b=16842752;break;default:b=0}E=!1,T.setText(m),T.setOnError(ee),T.setScriptTarget(o),T.setLanguageVariant(A(l))}function F(){T.setText(""),T.setOnError(void 0),s=void 0,o=void 0,y=void 0,c=void 0,m=void 0}function w(t,r,n,i){var a=d(t);return a&&(b|=4194304),(o=M(t,r,i,a)).flags=b,ne(),p(o,m),f(o,function(t,r,n){s.push(e.createFileDiagnostic(o,t,r,n))}),o.statements=qe(0,Wr),e.Debug.assert(1===re()),o.endOfFileToken=I(me()),function(t){t.externalModuleIndicator=e.forEach(t.statements,On)||function(e){return 1048576&e.flags?Mn(e):void 0}(t)}(o),o.nodeCount=g,o.identifierCount=h,o.identifiers=y,o.parseDiagnostics=s,n&&O(o),o}function I(t){e.Debug.assert(!t.jsDoc);var r=e.mapDefined(e.getJSDocCommentRanges(t,o.text),function(e){return k.parseJSDocComment(t,e.pos,e.end-e.pos)});return r.length&&(t.jsDoc=r),t}function O(t){var r=t;return void _(t,function t(n){if(n.parent!==r){n.parent=r;var i=r;if(r=n,_(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;a107)}function _e(t,r,n){return void 0===n&&(n=!0),re()===t?(n&&ne(),!0):(r?Q(r):Q(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function de(e){return re()===e&&(ne(),!0)}function pe(e){if(re()===e)return me()}function fe(t,r,n){return pe(t)||Se(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function me(){var e=he(re());return ne(),xe(e)}function ge(){return 25===re()||(18===re()||1===re()||T.hasPrecedingLineBreak())}function ye(){return ge()?(25===re()&&ne(),!0):_e(25)}function he(t,a){g++;var o=a>=0?a:T.getStartPos();return e.isNodeKind(t)||0===t?new r(t,o,o):71===t?new i(t,o,o):new n(t,o,o)}function ve(e,t){var r=he(e,t);return 2&T.getTokenFlags()&&I(r),r}function be(e,t,r){var n=e.length,i=n>=1&&n<=4?e.slice():e;return i.pos=t,i.end=void 0===r?T.getStartPos():r,i}function xe(e,t){return e.end=void 0===t?T.getStartPos():t,b&&(e.flags|=b),E&&(E=!1,e.flags|=32768),e}function Se(t,r,n,i){r?Y(T.getStartPos(),0,n,i):n&&Q(n,i);var a=he(t);return 71===t?a.escapedText="":(e.isLiteralKind(t)||e.isTemplateLiteralKind(t))&&(a.text=""),xe(a)}function De(e){var t=y.get(e);return void 0===t&&y.set(e,t=e),t}function ke(t,r){if(h++,t){var n=he(71);return 71!==re()&&(n.originalKeywordKind=re()),n.escapedText=e.escapeLeadingUnderscores(De(T.getTokenValue())),ne(),xe(n)}return Se(71,1===re(),r||e.Diagnostics.Identifier_expected)}function Te(e){return ke(le(),e)}function Ce(t){return ke(e.tokenIsIdentifierOrKeyword(re()),t)}function Ee(){return e.tokenIsIdentifierOrKeyword(re())||9===re()||8===re()}function Ne(e){if(9===re()||8===re()){var t=rt();return t.text=De(t.text),t}return e&&21===re()?function(){var e=he(147);return _e(21),e.expression=U(Ht),_e(22),xe(e)}():Ce()}function Ae(){return Ne(!0)}function Pe(e){return re()===e&&ue(we)}function Fe(){return ne(),!T.hasPrecedingLineBreak()&&Ie()}function we(){switch(re()){case 76:return 83===ne();case 84:return ne(),79===re()?ce(Oe):39!==re()&&118!==re()&&17!==re()&&Ie();case 79:return Oe();case 115:case 125:case 136:return ne(),Ie();default:return Fe()}}function Ie(){return 21===re()||17===re()||39===re()||24===re()||Ee()}function Oe(){return ne(),75===re()||89===re()||109===re()||117===re()&&ce(jr)||120===re()&&ce(Jr)}function Me(t,r){if(We(t))return!0;switch(t){case 0:case 1:case 3:return!(25===re()&&r)&&qr();case 2:return 73===re()||79===re();case 4:return ce(vt);case 5:return ce(dn)||25===re()&&!r;case 6:return 21===re()||Ee();case 12:return 21===re()||39===re()||24===re()||Ee();case 17:return Ee();case 9:return 21===re()||24===re()||Ee();case 7:return 17===re()?ce(Le):r?le()&&!Je():Vt()&&!Je();case 8:return en();case 10:return 26===re()||24===re()||en();case 18:return le();case 15:if(26===re())return!0;case 11:return 24===re()||Wt();case 16:return _t();case 19:case 20:return 26===re()||Ot();case 21:return Dn();case 22:return e.tokenIsIdentifierOrKeyword(re());case 13:return e.tokenIsIdentifierOrKeyword(re())||17===re();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Le(){if(e.Debug.assert(17===re()),18===ne()){var t=ne();return 26===t||17===t||85===t||108===t}return!0}function Re(){return ne(),le()}function Be(){return ne(),e.tokenIsIdentifierOrKeyword(re())}function je(){return ne(),e.tokenIsIdentifierOrKeywordOrGreaterThan(re())}function Je(){return(108===re()||85===re())&&ce(ze)}function ze(){return ne(),Wt()}function Ke(){return ne(),Ot()}function Ue(e){if(1===re())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 18===re();case 3:return 18===re()||73===re()||79===re();case 7:return 17===re()||85===re()||108===re();case 8:return function(){if(ge())return!0;if(nr(re()))return!0;if(36===re())return!0;return!1}();case 18:return 29===re()||19===re()||17===re()||85===re()||108===re();case 11:return 20===re()||25===re();case 15:case 20:case 10:return 22===re();case 16:case 17:return 20===re()||22===re();case 19:return 26!==re();case 21:return 17===re()||18===re();case 13:return 29===re()||41===re();case 14:return 27===re()&&ce(Nn);default:return!1}}function qe(e,t){var r=v;v|=1<=0&&(c.hasTrailingComma=!0),c}function Xe(){var e=be([],te());return e.isMissingList=!0,e}function Qe(e,t,r,n){if(_e(r)){var i=Ge(e,t);return _e(n),i}return Xe()}function Ye(e,t){for(var r=e?Ce(t):Te(t),n=T.getStartPos();de(23);){if(27===re()){r.jsdocDotPos=n;break}n=T.getStartPos(),r=$e(r,Ze(e))}return r}function $e(e,t){var r=he(146,e.pos);return r.left=e,r.right=t,xe(r)}function Ze(t){if(T.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(re())&&ce(Br))return Se(71,!0,e.Diagnostics.Identifier_expected);return t?Ce():Te()}function et(){var t,r=he(204);r.head=(t=nt(re()),e.Debug.assert(14===t.kind,"Template head has wrong token kind"),t),e.Debug.assert(14===r.head.kind,"Template head has wrong token kind");var n=[],i=te();do{n.push(tt())}while(15===e.last(n).literal.kind);return r.templateSpans=be(n,i),xe(r)}function tt(){var t,r,n=he(214);return n.expression=U(Ht),18===re()?(u=T.reScanTemplateToken(),r=nt(re()),e.Debug.assert(15===r.kind||16===r.kind,"Template fragment has wrong token kind"),t=r):t=fe(16,e.Diagnostics._0_expected,e.tokenToString(18)),n.literal=t,xe(n)}function rt(){return nt(re())}function nt(e){var t=he(e),r=T.getTokenValue();return t.text=r,T.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),T.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=1008&T.getTokenFlags()),ne(),xe(t),t}function it(){var t=he(162);return t.typeName=Ye(!0,e.Diagnostics.Type_expected),T.hasPrecedingLineBreak()||27!==re()||(t.typeArguments=Qe(19,Kt,27,29)),xe(t)}function at(e){var t=he(282);return e?Lt(286,t):(ne(),xe(t))}function ot(){var e=he(149);return 99!==re()&&94!==re()||(e.name=Ce(),_e(56)),e.type=st(),xe(e)}function st(){var e=pe(24),t=Kt();if(e){var r=he(288,e.pos);r.type=t,t=xe(r)}return 58===re()?Lt(286,t):t}function ct(){var e=he(148);return e.name=Te(),de(85)&&(Ot()||!Wt()?e.constraint=Kt():e.expression=cr()),de(58)&&(e.default=Kt()),xe(e)}function ut(){if(27===re())return Qe(18,ct,27,29)}function lt(){if(de(56))return Kt()}function _t(){return 24===re()||en()||e.isModifierKind(re())||57===re()||Ot(!0)}function dt(){var t=ve(149);return 99===re()?(t.name=ke(!0),t.type=lt(),xe(t)):(t.decorators=pn(),t.modifiers=fn(),t.dotDotDotToken=pe(24),t.name=tn(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(re())&&ne(),t.questionToken=pe(55),t.type=lt(),t.initializer=Gt(),xe(t))}function pt(t,r,n){32&r||(n.typeParameters=ut());var i=function(e,t){if(!_e(19))return e.parameters=Xe(),!1;var r=W(),n=X();return B(!!(1&t)),J(!!(2&t)),e.parameters=Ge(16,32&t?ot:dt),B(r),J(n),_e(20)}(n,r);return(!function(t,r){if(36===t)return _e(t),!0;if(de(56))return!0;if(r&&36===re())return Q(e.Diagnostics._0_expected,e.tokenToString(56)),ne(),!0;return!1}(t,!!(4&r))||(n.type=function(){var e=le()&&ue(zt),t=Kt();if(e){var r=he(161,e.pos);return r.parameterName=e,r.type=t,xe(r)}return t}(),!function t(r){switch(r.kind){case 162:return e.nodeIsMissing(r.typeName);case 163:case 164:var n=r,i=n.parameters,a=n.type;return!!i.isMissingList||t(a);case 175:return t(r.type);default:return!1}}(n.type)))&&i}function ft(){de(26)||ye()}function mt(e){var t=ve(e);return 159===e&&_e(94),pt(56,4,t),ft(),xe(t)}function gt(){return 21===re()&&ce(yt)}function yt(){if(ne(),24===re()||22===re())return!0;if(e.isModifierKind(re())){if(ne(),le())return!0}else{if(!le())return!1;ne()}return 56===re()||26===re()||55===re()&&(ne(),56===re()||26===re()||22===re())}function ht(e){return e.kind=160,e.parameters=Qe(16,dt,21,22),e.type=qt(),ft(),xe(e)}function vt(){if(19===re()||27===re())return!0;for(var t=!1;e.isModifierKind(re());)t=!0,ne();return 21===re()||(Ee()&&(t=!0,ne()),!!t&&(19===re()||27===re()||55===re()||56===re()||26===re()||ge()))}function bt(){if(19===re()||27===re())return mt(158);if(94===re()&&ce(xt))return mt(159);var e=ve(0);return e.modifiers=fn(),gt()?ht(e):function(e){return e.name=Ae(),e.questionToken=pe(55),19===re()||27===re()?(e.kind=153,pt(56,4,e)):(e.kind=151,e.type=qt(),58===re()&&(e.initializer=Gt())),ft(),xe(e)}(e)}function xt(){return ne(),19===re()||27===re()}function St(){return 23===ne()}function Dt(){switch(ne()){case 19:case 27:case 23:return!0}return!1}function kt(){var e;return _e(17)?(e=qe(4,bt),_e(18)):e=Xe(),e}function Tt(){return ne(),37===re()||38===re()?132===ne():(132===re()&&ne(),21===re()&&Re()&&92===ne())}function Ct(){var e=he(179);return _e(17),132!==re()&&37!==re()&&38!==re()||(e.readonlyToken=me(),132!==e.readonlyToken.kind&&fe(132)),_e(21),e.typeParameter=function(){var e=he(148);return e.name=Te(),_e(92),e.constraint=Kt(),xe(e)}(),_e(22),55!==re()&&37!==re()&&38!==re()||(e.questionToken=me(),55!==e.questionToken.kind&&fe(55)),e.type=qt(),ye(),_e(18),xe(e)}function Et(){var e=te();if(de(24)){var t=he(170,e);return t.type=Kt(),xe(t)}var r=Kt();return 2097152&b||284!==r.kind||r.pos!==r.type.pos||(r.kind=169),r}function Nt(){var e=me();return 23===re()?void 0:e}function At(e){var t,r=he(180);e&&((t=he(200)).operator=38,ne());var n=101===re()||86===re()?me():nt(re());return e&&(t.operand=n,xe(t),n=t),r.literal=n,xe(r)}function Pt(){return ne(),91===re()}function Ft(){o.flags|=524288;var t=he(181);return de(103)&&(t.isTypeOf=!0),_e(91),_e(19),t.argument=Kt(),_e(20),de(23)&&(t.qualifier=Ye(!0,e.Diagnostics.Type_expected)),t.typeArguments=Sn(),xe(t)}function wt(){return 8===ne()}function It(){switch(re()){case 119:case 142:case 137:case 134:case 138:case 122:case 140:case 131:case 135:return ue(Nt)||it();case 39:return at(!1);case 61:return at(!0);case 55:return n=T.getStartPos(),ne(),26===re()||18===re()||20===re()||29===re()||58===re()||49===re()?xe(r=he(283,n)):((r=he(284,n)).type=Kt(),xe(r));case 89:return function(){if(ce(En)){var e=ve(287);return ne(),pt(56,36,e),xe(e)}var t=he(162);return t.typeName=Ce(),xe(t)}();case 51:return function(){var e=he(285);return ne(),e.type=It(),xe(e)}();case 13:case 9:case 8:case 101:case 86:return At();case 38:return ce(wt)?At(!0):it();case 105:case 95:return me();case 99:var e=(t=he(176),ne(),xe(t));return 127!==re()||T.hasPrecedingLineBreak()?e:function(e){ne();var t=he(161,e.pos);return t.parameterName=e,t.type=Kt(),xe(t)}(e);case 103:return ce(Pt)?Ft():function(){var e=he(165);return _e(103),e.exprName=Ye(!0),xe(e)}();case 17:return ce(Tt)?Ct():function(){var e=he(166);return e.members=kt(),xe(e)}();case 21:return function(){var e=he(168);return e.elementTypes=Qe(20,Et,21,22),xe(e)}();case 19:return function(){var e=he(175);return _e(19),e.type=Kt(),_e(20),xe(e)}();case 91:return Ft();default:return it()}var t,r,n}function Ot(e){switch(re()){case 119:case 142:case 137:case 134:case 122:case 138:case 141:case 105:case 140:case 95:case 99:case 103:case 131:case 17:case 21:case 27:case 49:case 48:case 94:case 9:case 8:case 101:case 86:case 135:case 39:case 55:case 51:case 24:case 126:case 91:return!0;case 38:return!e&&ce(wt);case 19:return!e&&ce(Mt);default:return le()}}function Mt(){return ne(),20===re()||_t()||Ot()}function Lt(e,t){ne();var r=he(e,t.pos);return r.type=t,xe(r)}function Rt(){var e=re();switch(e){case 128:case 141:return function(e){var t=he(177);return _e(e),t.operator=e,t.type=Rt(),xe(t)}(e);case 126:return function(){var e=he(174);_e(126);var t=he(148);return t.name=Te(),e.typeParameter=xe(t),xe(e)}()}return function(){for(var e=It();!T.hasPrecedingLineBreak();)switch(re()){case 51:e=Lt(285,e);break;case 55:if(!(2097152&b)&&ce(Ke))return e;e=Lt(284,e);break;case 21:var t;_e(21),Ot()?((t=he(178,e.pos)).objectType=e,t.indexType=Kt(),_e(22),e=xe(t)):((t=he(167,e.pos)).elementType=e,_e(22),e=xe(t));break;default:return e}return e}()}function Bt(e,t,r){de(r);var n=t();if(re()===r){for(var i=[n];de(r);)i.push(t());var a=he(e,n.pos);a.types=be(i,n.pos),n=xe(a)}return n}function jt(){return Bt(172,Rt,48)}function Jt(){if(ne(),20===re()||24===re())return!0;if(function(){if(e.isModifierKind(re())&&fn(),le()||99===re())return ne(),!0;if(21===re()||17===re()){var t=s.length;return tn(),t===s.length}return!1}()){if(56===re()||26===re()||55===re()||58===re())return!0;if(20===re()&&(ne(),36===re()))return!0}return!1}function zt(){var e=Te();if(127===re()&&!T.hasPrecedingLineBreak())return ne(),e}function Kt(){return z(20480,Ut)}function Ut(e){if(27===re()||19===re()&&ce(Jt)||94===re())return function(){var e=te(),t=ve(de(94)?164:163,e);return pt(36,4,t),xe(t)}();var t=Bt(171,jt,49);if(!e&&!T.hasPrecedingLineBreak()&&de(85)){var r=he(173,t.pos);return r.checkType=t,r.extendsType=Ut(!0),_e(55),r.trueType=Ut(),_e(56),r.falseType=Ut(),xe(r)}return t}function qt(){return de(56)?Kt():void 0}function Vt(){switch(re()){case 99:case 97:case 95:case 101:case 86:case 8:case 9:case 13:case 14:case 19:case 21:case 17:case 89:case 75:case 94:case 41:case 63:case 71:return!0;case 91:return ce(Dt);default:return le()}}function Wt(){if(Vt())return!0;switch(re()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 43:case 44:case 27:case 121:case 116:return!0;default:return!!function(){if(H()&&92===re())return!1;return e.getBinaryOperatorPrecedence(re())>0}()||le()}}function Ht(){var e=G();e&&j(!1);for(var t,r=Xt();t=pe(26);)r=ar(r,t,Xt());return e&&j(!0),r}function Gt(){return de(58)?Xt():void 0}function Xt(){if(function(){if(116===re())return!!W()||ce(zr);return!1}())return t=he(205),ne(),T.hasPrecedingLineBreak()||39!==re()&&!Wt()?xe(t):(t.asteriskToken=pe(39),t.expression=Xt(),xe(t));var t,r=function(){var t=function(){if(19===re()||27===re()||120===re())return ce(Yt);if(36===re())return 1;return 0}();if(0===t)return;var r=1===t?er(!0):ue($t);if(!r)return;var n=e.hasModifier(r,256),i=re();return r.equalsGreaterThanToken=fe(36),r.body=36===i||17===i?tr(n):Te(),xe(r)}()||function(){if(120===re()&&1===ce(Zt)){var e=mn(),t=rr(0);return Qt(t,e)}return}();if(r)return r;var n=rr(0);return 71===n.kind&&36===re()?Qt(n):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(ie())?ar(n,me(),Xt()):function(t){var r=pe(55);if(!r)return t;var n=he(203,t.pos);return n.condition=t,n.questionToken=r,n.whenTrue=z(C,Xt),n.colonToken=fe(56),n.whenFalse=e.nodeIsPresent(n.colonToken)?Xt():Se(71,!1,e.Diagnostics._0_expected,e.tokenToString(56)),xe(n)}(n)}function Qt(t,r){var n;e.Debug.assert(36===re(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>"),r?(n=he(195,r.pos)).modifiers=r:n=he(195,t.pos);var i=he(149,t.pos);return i.name=t,xe(i),n.parameters=be([i],i.pos,i.end),n.equalsGreaterThanToken=fe(36),n.body=tr(!!r),I(xe(n))}function Yt(){if(120===re()){if(ne(),T.hasPrecedingLineBreak())return 0;if(19!==re()&&27!==re())return 0}var t=re(),r=ne();if(19===t){if(20===r)switch(ne()){case 36:case 56:case 17:return 1;default:return 0}if(21===r||17===r)return 2;if(24===r)return 1;if(e.isModifierKind(r)&&120!==r&&ce(Re))return 1;if(!le())return 0;switch(ne()){case 56:return 1;case 55:return ne(),56===re()||26===re()||58===re()||20===re()?1:0;case 26:case 58:case 20:return 2}return 0}return e.Debug.assert(27===t),le()?1===o.languageVariant?ce(function(){var e=ne();if(85===e)switch(ne()){case 58:case 29:return!1;default:return!0}else if(26===e)return!0;return!1})?1:0:2:0}function $t(){return er(!1)}function Zt(){if(120===re()){if(ne(),T.hasPrecedingLineBreak()||36===re())return 0;var e=rr(0);if(!T.hasPrecedingLineBreak()&&71===e.kind&&36===re())return 1}return 0}function er(t){var r=ve(195);if(r.modifiers=mn(),(pt(56,e.hasModifier(r,256)?2:0,r)||t)&&(t||36===re()||17===re()))return r}function tr(e){return 17===re()?Ir(e?2:0):25===re()||89===re()||75===re()||!qr()||17!==re()&&89!==re()&&75!==re()&&57!==re()&&Wt()?e?q(Xt):z(16384,Xt):Ir(16|(e?2:0))}function rr(e){return ir(e,cr())}function nr(e){return 92===e||145===e}function ir(t,r){for(;;){ie();var n=e.getBinaryOperatorPrecedence(re());if(!(40===re()?n>=t:n>t))break;if(92===re()&&H())break;if(118===re()){if(T.hasPrecedingLineBreak())break;ne(),r=or(r,Kt())}else r=ar(r,me(),rr(n))}return r}function ar(e,t,r){var n=he(202,e.pos);return n.left=e,n.operatorToken=t,n.right=r,xe(n)}function or(e,t){var r=he(210,e.pos);return r.expression=e,r.type=t,xe(r)}function sr(){var e=he(200);return e.operator=re(),ne(),e.operand=ur(),xe(e)}function cr(){if(function(){switch(re()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==o.languageVariant)return!1;default:return!0}}()){var t=lr();return 40===re()?ir(e.getBinaryOperatorPrecedence(re()),t):t}var r=re(),n=ur();if(40===re()){var i=e.skipTrivia(m,n.pos),a=n.end;192===n.kind?$(i,a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):$(i,a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(r))}return n}function ur(){switch(re()){case 37:case 38:case 52:case 51:return sr();case 80:return e=he(196),ne(),e.expression=ur(),xe(e);case 103:return function(){var e=he(197);return ne(),e.expression=ur(),xe(e)}();case 105:return function(){var e=he(198);return ne(),e.expression=ur(),xe(e)}();case 27:return function(){var e=he(192);return _e(27),e.type=Kt(),_e(29),e.expression=ur(),xe(e)}();case 121:if(121===re()&&(X()||ce(zr)))return function(){var e=he(199);return ne(),e.expression=ur(),xe(e)}();default:return lr()}var e}function lr(){if(43===re()||44===re())return(t=he(200)).operator=re(),ne(),t.operand=_r(),xe(t);if(1===o.languageVariant&&27===re()&&ce(je))return pr(!0);var t,r=_r();return e.Debug.assert(e.isLeftHandSideExpression(r)),43!==re()&&44!==re()||T.hasPrecedingLineBreak()?r:((t=he(201,r.pos)).operand=r,t.operator=re(),ne(),xe(t))}function _r(){var t;if(91===re())if(ce(xt))o.flags|=524288,t=me();else if(ce(St)){var r=T.getStartPos();ne(),ne();var n=he(212,r);n.keywordToken=91,n.name=Ce(),t=xe(n),o.flags|=1048576}else t=dr();else t=97===re()?function(){var t=me();if(19===re()||23===re()||21===re())return t;var r=he(187,t.pos);return r.expression=t,fe(23,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),r.name=Ze(!0),xe(r)}():dr();return function(e){for(;;)if(e=vr(e),27!==re()){if(19!==re())return e;var t=he(189,e.pos);t.expression=e,t.arguments=Sr(),e=xe(t)}else{var r=ue(Dr);if(!r)return e;if(br()){e=xr(e,r);continue}var t=he(189,e.pos);t.expression=e,t.typeArguments=r,t.arguments=Sr(),e=xe(t)}}(t)}function dr(){return vr(kr())}function pr(t){var r,n=function(e){var t=T.getStartPos();if(_e(27),29===re()){var r=he(263,t);return oe(),xe(r)}var n,i=gr(),a=Sn(),o=(s=he(266),s.properties=qe(13,hr),xe(s));var s;29===re()?(n=he(260,t),oe()):(_e(41),e?_e(29):(_e(29,void 0,!1),oe()),n=he(259,t));return n.tagName=i,n.typeArguments=a,n.attributes=o,xe(n)}(t);if(260===n.kind)(i=he(258,n.pos)).openingElement=n,i.children=mr(i.openingElement),i.closingElement=function(e){var t=he(261);_e(28),t.tagName=gr(),e?_e(29):(_e(29,void 0,!1),oe());return xe(t)}(t),x(i.openingElement.tagName,i.closingElement.tagName)||Z(i.closingElement,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(m,i.openingElement.tagName)),r=xe(i);else if(263===n.kind){var i;(i=he(262,n.pos)).openingFragment=n,i.children=mr(i.openingFragment),i.closingFragment=function(t){var r=he(264);_e(28),e.tokenIsIdentifierOrKeyword(re())&&Z(gr(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);t?_e(29):(_e(29,void 0,!1),oe());return xe(r)}(t),r=xe(i)}else e.Debug.assert(259===n.kind),r=n;if(t&&27===re()){var a=ue(function(){return pr(!0)});if(a){Q(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=he(202,r.pos);return o.end=a.end,o.left=r,o.right=a,o.operatorToken=Se(26,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return r}function fr(t,r){switch(r){case 1:return void(e.isJsxOpeningFragment(t)?Z(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag):Z(t.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(m,t.tagName)));case 28:case 7:return;case 10:case 11:return(n=he(10)).containsOnlyWhiteSpaces=11===u,u=T.scanJsxToken(),xe(n);case 17:return yr(!1);case 27:return pr(!1);default:return e.Debug.assertNever(r)}var n}function mr(e){var t=[],r=te(),n=v;for(v|=16384;;){var i=fr(e,u=T.reScanJsxToken());if(!i)break;t.push(i)}return v=n,be(t,r)}function gr(){ae();for(var e=99===re()?me():Ce();de(23);){var t=he(187,e.pos);t.expression=e,t.name=Ze(!0),e=xe(t)}return e}function yr(e){var t=he(268);if(_e(17))return 18!==re()&&(t.dotDotDotToken=pe(24),t.expression=Xt()),e?_e(18):(_e(18,void 0,!1),oe()),xe(t)}function hr(){if(17===re())return function(){var e=he(267);return _e(17),_e(24),e.expression=Ht(),_e(18),xe(e)}();ae();var e=he(265);if(e.name=Ce(),58===re())switch(u=T.scanJsxAttributeValue()){case 9:e.initializer=rt();break;default:e.initializer=yr(!0)}return xe(e)}function vr(t){for(;;){if(pe(23)){var r=he(187,t.pos);r.expression=t,r.name=Ze(!0),t=xe(r)}else if(51!==re()||T.hasPrecedingLineBreak())if(G()||!de(21)){if(!br())return t;t=xr(t,void 0)}else{var n=he(188,t.pos);if(n.expression=t,22===re())n.argumentExpression=Se(71,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var i=U(Ht);e.isStringOrNumericLiteral(i)&&(i.text=De(i.text)),n.argumentExpression=i}_e(22),t=xe(n)}else{ne();var a=he(211,t.pos);a.expression=t,t=xe(a)}}}function br(){return 13===re()||14===re()}function xr(e,t){var r=he(191,e.pos);return r.tag=e,r.typeArguments=t,r.template=13===re()?rt():et(),xe(r)}function Sr(){_e(19);var e=Ge(11,Cr);return _e(20),e}function Dr(){if(de(27)){var e=Ge(19,Kt);if(_e(29))return e&&function(){switch(re()){case 19:case 13:case 14:case 23:case 20:case 22:case 56:case 25:case 55:case 32:case 34:case 33:case 35:case 53:case 54:case 50:case 48:case 49:case 18:case 1:return!0;case 26:case 17:default:return!1}}()?e:void 0}}function kr(){switch(re()){case 8:case 9:case 13:return rt();case 99:case 97:case 95:case 101:case 86:return me();case 19:return t=ve(193),_e(19),t.expression=U(Ht),_e(20),xe(t);case 21:return Er();case 17:return Ar();case 120:if(!ce(Jr))break;return Pr();case 75:return hn(ve(0),207);case 89:return Pr();case 94:return function(){var t=T.getStartPos();if(_e(94),de(23)){var r=he(212,t);return r.keywordToken=94,r.name=Ce(),xe(r)}var n,i=kr();for(;;){i=vr(i),n=ue(Dr),br()&&(e.Debug.assert(!!n,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),i=xr(i,n),n=void 0);break}var a=he(190,t);a.expression=i,a.typeArguments=n,(a.typeArguments||19===re())&&(a.arguments=Sr());return xe(a)}();case 41:case 63:if(12===(u=T.reScanSlashToken()))return rt();break;case 14:return et()}var t;return Te(e.Diagnostics.Expression_expected)}function Tr(){return 24===re()?(e=he(206),_e(24),e.expression=Xt(),xe(e)):26===re()?he(208):Xt();var e}function Cr(){return z(C,Tr)}function Er(){var e=he(185);return _e(21),T.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Ge(15,Tr),_e(22),xe(e)}function Nr(){var e=ve(0);if(pe(24))return e.kind=275,e.expression=Xt(),xe(e);if(e.decorators=pn(),e.modifiers=fn(),Pe(125))return _n(e,156);if(Pe(136))return _n(e,157);var t=pe(39),r=le();if(e.name=Ae(),e.questionToken=pe(55),t||19===re()||27===re())return un(e,t);if(r&&(26===re()||18===re()||58===re())){e.kind=274;var n=pe(58);n&&(e.equalsToken=n,e.objectAssignmentInitializer=U(Xt))}else e.kind=273,_e(56),e.initializer=U(Xt);return xe(e)}function Ar(){var e=he(186);return _e(17),T.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Ge(12,Nr,!0),_e(18),xe(e)}function Pr(){var t=G();t&&j(!1);var r=ve(194);r.modifiers=fn(),_e(89),r.asteriskToken=pe(39);var n=r.asteriskToken?1:0,i=e.hasModifier(r,256)?2:0;return r.name=n&&i?K(20480,Fr):n?function(e){return K(4096,e)}(Fr):i?q(Fr):Fr(),pt(56,n|i,r),r.body=Ir(n|i),t&&j(!0),xe(r)}function Fr(){return le()?Te():void 0}function wr(e,t){var r=he(216);return _e(17,t)||e?(T.hasPrecedingLineBreak()&&(r.multiLine=!0),r.statements=qe(1,Wr),_e(18)):r.statements=Xe(),xe(r)}function Ir(e,t){var r=W();B(!!(1&e));var n=X();J(!!(2&e));var i=G();i&&j(!1);var a=wr(!!(16&e),t);return i&&j(!0),B(r),J(n),a}function Or(){var e=te();_e(88);var t,r,n=pe(121);if(_e(19),25!==re()&&(t=104===re()||110===re()||76===re()?an(!0):K(2048,Ht)),n?_e(145):de(145)){var i=he(225,e);i.awaitModifier=n,i.initializer=t,i.expression=U(Xt),_e(20),r=i}else if(de(92)){var a=he(224,e);a.initializer=t,a.expression=U(Ht),_e(20),r=a}else{var o=he(223,e);o.initializer=t,_e(25),25!==re()&&20!==re()&&(o.condition=U(Ht)),_e(25),20!==re()&&(o.incrementor=U(Ht)),_e(20),r=o}return r.statement=Wr(),xe(r)}function Mr(e){var t=he(e);return _e(227===e?72:77),ge()||(t.label=Te()),ye(),xe(t)}function Lr(){return 73===re()?(e=he(269),_e(73),e.expression=U(Ht),_e(56),e.statements=qe(3,Wr),xe(e)):function(){var e=he(270);return _e(79),_e(56),e.statements=qe(3,Wr),xe(e)}();var e}function Rr(){var e=he(233);return _e(102),e.tryBlock=wr(!1),e.catchClause=74===re()?function(){var e=he(272);_e(74),de(19)?(e.variableDeclaration=nn(),_e(20)):e.variableDeclaration=void 0;return e.block=wr(!1),xe(e)}():void 0,e.catchClause&&87!==re()||(_e(87),e.finallyBlock=wr(!1)),xe(e)}function Br(){return ne(),e.tokenIsIdentifierOrKeyword(re())&&!T.hasPrecedingLineBreak()}function jr(){return ne(),75===re()&&!T.hasPrecedingLineBreak()}function Jr(){return ne(),89===re()&&!T.hasPrecedingLineBreak()}function zr(){return ne(),(e.tokenIsIdentifierOrKeyword(re())||8===re()||9===re())&&!T.hasPrecedingLineBreak()}function Kr(){for(;;)switch(re()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 139:return ne(),!T.hasPrecedingLineBreak()&&le();case 129:case 130:return Qr();case 117:case 120:case 124:case 112:case 113:case 114:case 132:if(ne(),T.hasPrecedingLineBreak())return!1;continue;case 144:return ne(),17===re()||71===re()||84===re();case 91:return ne(),9===re()||39===re()||17===re()||e.tokenIsIdentifierOrKeyword(re());case 84:if(ne(),58===re()||39===re()||17===re()||79===re()||118===re())return!0;continue;case 115:ne();continue;default:return!1}}function Ur(){return ce(Kr)}function qr(){switch(re()){case 57:case 25:case 17:case 104:case 110:case 89:case 75:case 83:case 90:case 81:case 106:case 88:case 77:case 72:case 96:case 107:case 98:case 100:case 102:case 78:case 74:case 87:return!0;case 91:return Ur()||ce(Dt);case 76:case 84:return Ur();case 120:case 124:case 109:case 129:case 130:case 139:case 144:return!0;case 114:case 112:case 113:case 115:case 132:return Ur()||!ce(Br);default:return Wt()}}function Vr(){return ne(),le()||17===re()||21===re()}function Wr(){switch(re()){case 25:return e=he(218),_e(25),xe(e);case 17:return wr(!1);case 104:return sn(ve(235));case 110:if(ce(Vr))return sn(ve(235));break;case 89:return cn(ve(237));case 75:return yn(ve(238));case 90:return function(){var e=he(220);return _e(90),_e(19),e.expression=U(Ht),_e(20),e.thenStatement=Wr(),e.elseStatement=de(82)?Wr():void 0,xe(e)}();case 81:return function(){var e=he(221);return _e(81),e.statement=Wr(),_e(106),_e(19),e.expression=U(Ht),_e(20),de(25),xe(e)}();case 106:return function(){var e=he(222);return _e(106),_e(19),e.expression=U(Ht),_e(20),e.statement=Wr(),xe(e)}();case 88:return Or();case 77:return Mr(226);case 72:return Mr(227);case 96:return function(){var e=he(228);return _e(96),ge()||(e.expression=U(Ht)),ye(),xe(e)}();case 107:return function(){var e=he(229);return _e(107),_e(19),e.expression=U(Ht),_e(20),e.statement=K(8388608,Wr),xe(e)}();case 98:return function(){var e=he(230);_e(98),_e(19),e.expression=U(Ht),_e(20);var t=he(244);return _e(17),t.clauses=qe(2,Lr),_e(18),e.caseBlock=xe(t),xe(e)}();case 100:return function(){var e=he(232);return _e(100),e.expression=T.hasPrecedingLineBreak()?void 0:U(Ht),ye(),xe(e)}();case 102:case 74:case 87:return Rr();case 78:return function(){var e=he(234);return _e(78),ye(),xe(e)}();case 57:return Gr();case 120:case 109:case 139:case 129:case 130:case 124:case 76:case 83:case 84:case 91:case 112:case 113:case 114:case 117:case 115:case 132:case 144:if(Ur())return Gr()}var e;return function(){var e=ve(0),t=U(Ht);return 71===t.kind&&de(56)?(e.kind=231,e.label=t,e.statement=Wr()):(e.kind=219,e.expression=t,ye()),xe(e)}()}function Hr(e){return 124===e.kind}function Gr(){var t=ve(0);if(t.decorators=pn(),t.modifiers=fn(),e.some(t.modifiers,Hr)){for(var r=0,n=t.modifiers;r=0),e.Debug.assert(t<=a),e.Debug.assert(a<=i.length),l(i,t)){var o,s,c,_=[];return T.scanRange(t+3,n-5,function(){var e,r,n=1,u=t-Math.max(i.lastIndexOf("\n",t),0)+4;function l(t){e||(e=u),_.push(t),u+=t.length}for(F();w(5););w(4)&&(n=0,u=0);e:for(;;){switch(re()){case 57:0===n||1===n?(p(_),v(y(u)),n=0,e=void 0,u++):l(T.getTokenText());break;case 4:_.push(T.getTokenText()),n=0,u=0;break;case 39:var f=T.getTokenText();1===n||2===n?(n=2,l(f)):(n=1,u+=f.length);break;case 71:l(T.getTokenText()),n=2;break;case 5:var m=T.getTokenText();2===n?_.push(m):void 0!==e&&u+m.length>e&&_.push(m.slice(e-u-1)),u+=m.length;break;case 1:break e;default:n=2,l(T.getTokenText())}F()}return d(_),p(_),(r=he(289,t)).tags=o&&be(o,s,c),r.comment=_.length?_.join(""):void 0,xe(r,a)})}function d(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function p(e){for(;e.length&&("\n"===e[e.length-1]||"\r"===e[e.length-1]);)e.pop()}function f(){for(;;){if(F(),1===re())return!0;if(5!==re()&&4!==re())return!1}}function g(){if(5!==re()&&4!==re()||!ce(f))for(;5===re()||4===re();)F()}function y(t){e.Debug.assert(57===re());var n=he(57,T.getTokenPos());n.end=T.getTextPos(),F();var i,a=I();switch(g(),a.escapedText){case"augments":case"extends":i=function(e,t){var r=he(293,e.pos);return r.atToken=e,r.tagName=t,r.class=function(){var e=de(17),t=he(209);t.expression=function(){for(var e=I();de(23);){var t=he(187,e.pos);t.expression=e,t.name=I(),e=xe(t)}return e}(),t.typeArguments=Sn();var r=xe(t);return e&&_e(18),r}(),xe(r)}(n,a);break;case"class":case"constructor":i=function(e,t){var r=he(294,e.pos);return r.atToken=e,r.tagName=t,xe(r)}(n,a);break;case"this":i=function(e,t){var n=he(298,e.pos);return n.atToken=e,n.tagName=t,n.typeExpression=r(!0),g(),xe(n)}(n,a);break;case"arg":case"argument":case"param":return D(n,a,2,t);case"return":case"returns":i=function(t,r){e.forEach(o,function(e){return 297===e.kind})&&$(r.pos,T.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var n=he(297,t.pos);return n.atToken=t,n.tagName=r,n.typeExpression=b(),xe(n)}(n,a);break;case"template":i=function(t,n){var i;17===re()&&(i=r());var a=[],o=te();do{g();var s=he(148);s.name=I(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),g(),xe(s),a.push(s)}while(w(26));i&&(e.first(a).constraint=i.type);var c=he(300,t.pos);return c.atToken=t,c.tagName=n,c.typeParameters=be(a,o),xe(c),c}(n,a);break;case"type":i=k(n,a);break;case"typedef":i=function(t,r,n){var i=b();g();var a,o=he(301,t.pos);if(o.atToken=t,o.tagName=r,o.fullName=C(),o.name=E(o.fullName),g(),o.comment=h(n),o.typeExpression=i,!i||S(i.type)){for(var s=void 0,c=void 0,u=void 0,l=T.getStartPos();s=ue(function(){return A(1)});)if(c||(c=he(290,l)),299===s.kind){if(u)break;u=s}else c.jsDocPropertyTags=e.append(c.jsDocPropertyTags,s);c&&(i&&167===i.type.kind&&(c.isArrayType=!0),o.typeExpression=u&&u.typeExpression&&!S(u.typeExpression.type)?u.typeExpression:xe(c),a=o.typeExpression.end)}return xe(o,a||void 0!==o.comment?T.getStartPos():(o.fullName||o.typeExpression||o.tagName).end)}(n,a,t);break;case"callback":i=function(t,r,n){var i,a=he(295,t.pos);a.atToken=t,a.tagName=r,a.fullName=C(),a.name=E(a.fullName),g(),a.comment=h(n);var o=he(291,T.getStartPos());o.parameters=[];for(;i=ue(function(){return A(4)});)o.parameters=e.append(o.parameters,i);var s=ue(function(){if(w(57)){var e=y(n);if(e&&297===e.kind)return e}});s&&(o.type=s);return a.typeExpression=xe(o),xe(a)}(n,a,t);break;default:i=function(e,t){var r=he(292,e.pos);return r.atToken=e,r.tagName=t,xe(r)}(n,a)}return i.comment||(i.comment=h(t+i.end-i.pos)),i}function h(t){var r,n=[],i=0;function a(e){r||(r=t),n.push(e),t+=e.length}var o=re();e:for(;;){switch(o){case 4:i>=1&&(i=0,n.push(T.getTokenText())),t=0;break;case 57:T.setTextPos(T.getTextPos()-1);case 1:break e;case 5:if(2===i)a(T.getTokenText());else{var s=T.getTokenText();void 0!==r&&t+s.length>r&&n.push(s.slice(r-t-1)),t+=s.length}break;case 17:i=2,ce(function(){return 57===F()&&e.tokenIsIdentifierOrKeyword(F())&&"link"===T.getTokenText()})&&(a(T.getTokenText()),F(),a(T.getTokenText()),F()),a(T.getTokenText());break;case 39:if(0===i){i=1,t+=1;break}default:i=2,a(T.getTokenText())}o=F()}return d(n),p(n),0===n.length?void 0:n.join("")}function v(e){e&&(o?o.push(e):(o=[e],s=e.pos),c=e.end)}function b(){return g(),17===re()?r():void 0}function x(){if(13===re())return{name:ke(!0),isBracketed:!1};var e=de(21),t=function(){var e=I();de(21)&&_e(22);for(;de(23);){var t=I();de(21)&&_e(22),e=$e(e,t)}return e}();return e&&(g(),pe(58)&&Ht(),_e(22)),{name:t,isBracketed:e}}function S(t){switch(t.kind){case 135:return!0;case 167:return S(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText}}function D(t,r,n,i){var a=b(),o=!a;g();var s=x(),c=s.name,u=s.isBracketed;g(),o&&(a=b());var l,_=he(1===n?302:296,t.pos);void 0!==i&&(l=h(i+T.getStartPos()-t.pos));var d=4!==n&&function(t,r,n){if(t&&S(t.type)){for(var i=he(281,T.getTokenPos()),a=void 0,o=void 0,s=T.getStartPos(),c=void 0;a=ue(function(){return A(n,r)});)296!==a.kind&&302!==a.kind||(c=e.append(c,a));if(c)return(o=he(290,s)).jsDocPropertyTags=c,167===t.type.kind&&(o.isArrayType=!0),i.type=xe(o),xe(i)}}(a,c,n);return d&&(a=d,o=!0),_.atToken=t,_.tagName=r,_.typeExpression=a,_.name=c,_.isNameFirst=o,_.isBracketed=u,_.comment=l,xe(_)}function k(t,n){e.forEach(o,function(e){return 299===e.kind})&&$(n.pos,T.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var i=he(299,t.pos);return i.atToken=t,i.tagName=n,i.typeExpression=r(!0),xe(i)}function C(t){var r=T.getTokenPos();if(e.tokenIsIdentifierOrKeyword(re())){var n=I();if(de(23)){var i=he(242,r);return t&&(i.flags|=4),i.name=n,i.body=C(!0),xe(i)}return t&&(n.isInJSDocNamespace=!0),n}}function E(t){if(t)for(var r=t;;){if(e.isIdentifier(r)||!r.body)return e.isIdentifier(r)?r:r.name;r=r.body}}function N(t,r){for(;!e.isIdentifier(t)||!e.isIdentifier(r);){if(e.isIdentifier(t)||e.isIdentifier(r)||t.right.escapedText!==r.right.escapedText)return!1;t=t.left,r=r.left}return t.escapedText===r.escapedText}function A(t,r){for(var n=!0,i=!1;;)switch(F()){case 57:if(n){var a=P(t);return!(a&&(296===a.kind||302===a.kind)&&4!==t&&r&&(e.isIdentifier(a.name)||!N(r,a.name.left)))&&a}i=!1;break;case 4:n=!0,i=!1;break;case 39:i&&(n=!1),i=!0;break;case 71:n=!1;break;case 1:return!1}}function P(t){e.Debug.assert(57===re());var r=he(57);r.end=T.getTextPos(),F();var n,i=I();switch(g(),i.escapedText){case"type":return 1===t&&k(r,i);case"prop":case"property":n=1;break;case"arg":case"argument":case"param":n=6;break;default:return!1}if(!(t&n))return!1;var a=D(r,i,t,void 0);return a.comment=h(a.end-a.pos),a}function F(){return u=T.scanJSDocToken()}function w(e){return re()===e&&(F(),!0)}function I(t){if(!e.tokenIsIdentifierOrKeyword(re()))return Se(71,!t,t||e.Diagnostics.Identifier_expected);var r=T.getTokenPos(),n=T.getTextPos(),i=he(71,r);return i.escapedText=e.escapeLeadingUnderscores(T.getTokenText()),xe(i,n),F(),i}}t.parseJSDocTypeExpressionForTests=function(e,t,n){P(e,6,void 0,1),o=M("file.js",6,1,!1),T.setText(e,t,n),u=T.scan();var i=r(),a=s;return F(),i?{jsDocTypeExpression:i,diagnostics:a}:void 0},t.parseJSDocTypeExpression=r,t.parseIsolatedJSDocComment=function(e,t,r){P(e,6,void 0,1),o={languageVariant:0,text:e};var n=a(t,r),i=s;return F(),n?{jsDoc:n,diagnostics:i}:void 0},t.parseJSDocComment=function(e,t,r){var n,i=u,c=s.length,l=E,_=a(t,r);return _&&(_.parent=e),65536&b&&(o.jsDocDiagnostics||(o.jsDocDiagnostics=[]),(n=o.jsDocDiagnostics).push.apply(n,s)),u=i,s.length=c,E=l,_},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments"}(n||(n={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(i||(i={})),t.parseJSDocCommentWorker=a}(k=t.JSDocParser||(t.JSDocParser={}))}(o||(o={})),function(t){function r(t,r,i,o,s,c){return void(r?l(t):u(t));function u(t){var r="";if(c&&n(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=i,t.end+=i,c&&n(t)&&e.Debug.assert(r===s.substring(t.pos,t.end)),_(t,u,l),e.hasJSDocNodes(t))for(var d=0,p=t.jsDoc;d=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end),t.pos=Math.min(t.pos,i),t.end>=n?t.end+=a:t.end=Math.min(t.end,i),e.Debug.assert(t.pos<=t.end),t.parent&&(e.Debug.assert(t.pos>=t.parent.pos),e.Debug.assert(t.end<=t.parent.end))}function a(t,r){if(r){var n=t.pos,i=function(t){e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;ar),!0;if(a.pos>=i.pos&&(i=a),ri.pos&&(i=a)}return i}function c(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),u=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===u)}}var u;t.updateSourceFile=function(t,n,u,l){if(c(t,n,u,l=l||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(u))return t;if(0===t.statements.length)return o.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind);var d=t;e.Debug.assert(!d.hasBeenIncrementallyParsed),d.hasBeenIncrementallyParsed=!0;var p=t.text,f=function(t){var r=t.statements,n=0;e.Debug.assert(n=t.pos&&e=t.pos&&e0&&i<=1;i++){var a=s(t,n);e.Debug.assert(a.pos<=n);var o=a.pos;n=Math.max(0,o-1)}var c=e.createTextSpanFromBounds(n,e.textSpanEnd(r.span)),u=r.newLength+(r.span.start-n);return e.createTextChangeRange(c,u)}(t,u);c(t,n,m,l),e.Debug.assert(m.span.start<=u.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(u.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(u)));var g=e.textChangeRangeNewSpan(m).length-m.span.length;return function(t,n,o,s,c,u,l,d){return void p(t);function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,u,l,d);else{var m=t.end;if(m>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),_(t,p,f),e.hasJSDocNodes(t))for(var g=0,y=t.jsDoc;go)r(t,!0,c,u,l,d);else{var a=t.end;if(a>=n){t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c);for(var _=0,f=t;_/im,h=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function v(t,r,n){var i=2===r.kind&&y.exec(n);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,u=o.args;c=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,s.concat([u]).join(" -> "))),{raw:t||h(n,c)};var l=t?function(t,r,n,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=w(t.compilerOptions,n,a,i),c=O(t.typeAcquisition||t.typingOptions,n,a,i);if(t.compileOnSave=function(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=L(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i}(t,n,a),t.extends)if(e.isString(t.extends)){var u=i?T(i,n):n;o=P(t.extends,r,u,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,typeAcquisition:c,extendedConfigPath:o}}(t,i,a,o,c):function(t,n,i,a,o){var s,c,u,l=F(a),_={onSetValidOptionKeyValueInParent:function(t,r,n){e.Debug.assert("compilerOptions"===t||"typeAcquisition"===t||"typingOptions"===t);var o="compilerOptions"===t?l:"typeAcquisition"===t?s||(s=I(a)):c||(c=I(a));o[r.name]=function t(r,n,i){if(k(i))return;if("list"===r.type){var a=r;return a.element.isFilePath||!e.isString(a.element.type)?e.filter(e.map(i,function(e){return t(a.element,n,e)}),function(e){return!!e}):i}if(!e.isString(r.type))return r.type.get(e.isString(i)?i.toLowerCase():i);return R(r,n,i)}(r,i,n)},onSetValidOptionKeyValueInRoot:function(r,s,c,l){switch(r){case"extends":var _=a?T(a,i):i;return void(u=P(c,n,_,o,function(r,n){return e.createDiagnosticForNodeInSourceFile(t,l,r,n)}));case"files":return void(0===c.length&&o.push(e.createDiagnosticForNodeInSourceFile(t,l,e.Diagnostics.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")))}},onSetUnknownOptionKeyValueInRoot:function(r,n,i,a){"excludes"===r&&o.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},d=v(t,o,!0,(void 0===r&&(r={name:void 0,type:"object",elementOptions:y([{name:"compilerOptions",type:"object",elementOptions:y(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:y(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:y(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{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"}},e.compileOnSaveCommandLineOption])}),r),_);s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:I(a));return{raw:d,options:l,typeAcquisition:s,extendedConfigPath:u}}(n,i,a,o,c);if(l.extendedConfigPath){s=s.concat([u]);var _=function(t,r,n,i,a,o){var s,c=m(r,function(e){return n.readFile(e)});t&&(t.extendedSourceFiles||(t.extendedSourceFiles=[])).push(c.fileName);if(c.parseDiagnostics.length)return void o.push.apply(o,c.parseDiagnostics);var u=e.getDirectoryPath(r),l=A(void 0,c,n,u,e.getBaseFileName(r),a,o);t&&(s=t.extendedSourceFiles).push.apply(s,c.extendedSourceFiles);if(N(l)){var _=e.convertToRelativePath(u,i,e.identity),d=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(_,t)},p=function(t){f[t]&&(f[t]=e.map(f[t],d))},f=l.raw;p("include"),p("exclude"),p("files")}return l}(n,l.extendedConfigPath,i,a,s,c);if(_&&N(_)){var d=_.raw,p=l.raw,f=function(e){var t=p[e]||d[e];t&&(p[e]=t)};f("include"),f("exclude"),f("files"),void 0===p.compileOnSave&&(p.compileOnSave=d.compileOnSave),l.options=e.assign({},_.options,l.options)}}return l}function P(t,r,n,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,n);if(r.fileExists(o)||e.endsWith(o,".json")||(o+=".json",r.fileExists(o)))return o;i.push(a(e.Diagnostics.File_0_does_not_exist,t))}else i.push(a(e.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,t))}function F(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function w(t,r,n,i){var a=F(i);return M(e.optionDeclarations,t,r,a,e.Diagnostics.Unknown_compiler_option_0,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function I(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function O(t,r,n,i){var o=I(i),s=a(t);return M(e.typeAcquisitionDeclarations,s,r,o,e.Diagnostics.Unknown_type_acquisition_option_0,n),o}function M(t,r,n,i,a,o){if(r){var s=y(t);for(var c in r){var u=s.get(c);u?i[u.name]=L(u,r[c],n,o):o.push(e.createCompilerDiagnostic(a,c))}}}function L(t,r,n,i){if(x(t,r)){var a=t.type;return"list"===a&&e.isArray(r)?function(t,r,n,i){return e.filter(e.map(r,function(e){return L(t.element,e,n,i)}),function(e){return!!e})}(t,r,n,i):e.isString(a)?R(t,n,r):B(t,r,i)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,b(t)))}function R(t,r,n){return t.isFilePath&&""===(n=e.normalizePath(e.combinePaths(r,n)))&&(n="."),n}function B(e,t,r){if(!k(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return i;r.push(s(e))}}function j(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}e.libs=i.map(function(e){return e[0]}),e.libMap=e.createMapFromEntries(i),e.optionDeclarations=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"target",shortName:"t",type:e.createMapFromTemplate({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,esnext:6}),paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT},{name:"module",shortName:"m",type:e.createMapFromTemplate({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,esnext:e.ModuleKind.ESNext}),paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation},{name:"allowJs",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:e.createMapFromTemplate({preserve:1,"react-native":3,react:2}),paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file},{name:"declarationMap",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file},{name:"emitDeclarationOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files},{name:"sourceMap",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file},{name:"outDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_project_compilation},{name:"removeComments",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_outputs},{name:"importHelpers",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"downlevelIteration",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictPropertyInitialization",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:e.createMapFromTemplate({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic}),paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",isFilePath:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",isTSConfigOnly:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation},{name:"allowSyntheticDefaultImports",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"sourceRoot",type:"string",paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_verbose_diagnostic_information},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"resolveJsonModule",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Include_modules_imported_with_json_extension},{name:"listFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"out",type:"string",isFilePath:!1,category:e.Diagnostics.Advanced_Options,paramType:e.Diagnostics.FILE,description:e.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file},{name:"reactNamespace",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"locale",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us},{name:"newLine",type:e.createMapFromTemplate({crlf:0,lf:1}),paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts},{name:"noResolve",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files},{name:"stripInternal",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"noImplicitUseStrict",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported},{name:"preserveConstEnums",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.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:e.Diagnostics.List_of_language_service_plugins}],e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}}],e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0},e.convertEnableAutoDiscoveryToEnable=a,e.createCompilerDiagnosticForInvalidCustomType=s,e.parseCustomTypeOption=u,e.parseListTypeOption=l,e.parseCommandLine=function(t,r){var n={},i=[],a=[];return o(t),{options:n,fileNames:i,projectReferences:void 0,errors:a};function o(t){for(var r=0;r=n.length)break;var c=s;if(34===n.charCodeAt(c)){for(s++;s32;)s++;i.push(n.substring(c,s))}}o(i)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t))}},e.getOptionFromName=_,e.printVersion=function(){e.sys.write(d(e.Diagnostics.Version_0,e.version)+e.sys.newLine)},e.printHelp=function(t,r){void 0===r&&(r="");var n=[],i=d(e.Diagnostics.Syntax_Colon_0,"").length,a=d(e.Diagnostics.Examples_Colon_0,"").length,o=Math.max(i,a),s=P(o-i);s+="tsc "+r+"["+d(e.Diagnostics.options)+"] ["+d(e.Diagnostics.file)+"...]",n.push(d(e.Diagnostics.Syntax_Colon_0,s)),n.push(e.sys.newLine+e.sys.newLine);var c=P(o);n.push(d(e.Diagnostics.Examples_Colon_0,P(o-a)+"tsc hello.ts")+e.sys.newLine),n.push(c+"tsc --outFile file.js file.ts"+e.sys.newLine),n.push(c+"tsc @args.txt"+e.sys.newLine),n.push(c+"tsc --build tsconfig.json"+e.sys.newLine),n.push(e.sys.newLine),n.push(d(e.Diagnostics.Options_Colon)+e.sys.newLine),o=0;for(var u=[],l=[],_=e.createMap(),p=0,f=t;p";u.push(v),l.push(d(e.Diagnostics.Insert_command_line_options_and_files_from_a_file)),o=Math.max(v.length,o);for(var b=0;b0)for(var v=0,b=a.readDirectory(r,f,d,_,void 0);vr.length){var g=m.substring(r.length+1);n=(e.forEach(e.supportedJavascriptExtensions,function(t){return e.tryRemoveExtension(g,t)})||g)+".d.ts"}else n="index.d.ts"}}e.endsWith(n,".d.ts")||(n=S(n));var y="string"==typeof p.name&&"string"==typeof p.version?{name:p.name,subModuleName:n,version:p.version}:void 0;return c&&(y?t(s,e.Diagnostics.Found_package_json_at_0_Package_ID_is_1,d,e.packageIdToString(y)):t(s,e.Diagnostics.Found_package_json_at_0,d)),{found:!0,packageJsonContent:p,packageId:y}}return _&&c&&t(s,e.Diagnostics.File_0_does_not_exist,d),i.push(d),{found:!1,packageJsonContent:void 0,packageId:void 0}}function F(t){return e.combinePaths(t,"package.json")}function w(t,r,n,a,o,s){var c,u,l=e.normalizePath(e.combinePaths(n,r)),_=P(l,"",o,!a,s);if(_.found)c=_.packageJsonContent,u=_.packageId;else{var d=I(r),p=d.packageName,f=d.rest;if(""!==f)u=P(e.combinePaths(n,p),f,o,!a,s).packageId}return i(u,T(t,l,o,!a,s)||A(t,l,o,!a,s,c))}function I(t){var r=t.indexOf(e.directorySeparator);return"@"===t[0]&&(r=t.indexOf(e.directorySeparator,r+1)),-1===r?{packageName:t,rest:""}:{packageName:t.slice(0,r),rest:t.slice(r+1)}}function O(e,t,r,n,i,a){return M(e,t,r,n,i,!1,a)}function M(t,r,n,i,a,o,s){var c=s&&s.getOrCreateCacheForModuleName(r);return e.forEachAncestorDirectory(e.normalizeSlashes(n),function(n){if("node_modules"!==e.getBaseFileName(n)){var s=J(c,r,n,a.traceEnabled,a.host,i);return s||K(L(t,r,n,i,a,o))}})}function L(r,n,i,a,s,c){void 0===c&&(c=!1);var u=e.combinePaths(i,"node_modules"),l=D(u,s.host);!l&&s.traceEnabled&&t(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,u);var _=c?void 0:w(r,n,u,l,a,s);if(_)return _;if(r!==o.JavaScript&&r!==o.Json){var d=e.combinePaths(u,"@types"),p=l;return l&&!D(d,s.host)&&(s.traceEnabled&&t(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),p=!1),w(o.DtsOnly,function(r,n){var i=B(r);n.traceEnabled&&i!==r&&t(n.host,e.Diagnostics.Scoped_package_detected_looking_in_0,i);return i}(n,s),d,p,a,s)}}e.directoryProbablyExists=D,e.getPackageName=I;var R="__";function B(t){if(e.startsWith(t,"@")){var r=t.replace(e.directorySeparator,R);if(r!==t)return r.slice(1)}return t}function j(t){return e.stringContains(t,R)?"@"+t.replace(R,e.directorySeparator):t}function J(r,n,i,a,o,s){var c=r&&r.get(i);if(c)return a&&t(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,i),s.push.apply(s,c.failedLookupLocations),{value:c.resolvedModule&&{path:c.resolvedModule.resolvedFileName,extension:c.resolvedModule.extension,packageId:c.resolvedModule.packageId}}}function z(t,n,i,a,s){var u=r(i,a),l={compilerOptions:i,host:a,traceEnabled:u},_=[],d=e.getDirectoryPath(n),p=f(o.TypeScript)||f(o.JavaScript);return c(p&&p.value,void 0,!1,_);function f(r){var n=m(r,t,d,k,_,l);if(n)return{value:n};var i=s&&s.getOrCreateCacheForModuleName(t);if(e.isExternalModuleNameRelative(t)){var c=e.normalizePath(e.combinePaths(d,t));return K(k(r,c,_,!1,l))}var p=e.forEachAncestorDirectory(d,function(n){var o=J(i,t,n,u,a,_);if(o)return o;var s=e.normalizePath(e.combinePaths(n,t));return K(k(r,s,_,!1,l))});return p||(r===o.TypeScript?function(e,t,r,n){return M(o.DtsOnly,e,t,r,n,!0,void 0)}(t,d,_,l):void 0)}}function K(e){return void 0!==e?{value:e}:void 0}e.getTypesPackageName=function(e){return"@types/"+B(e)},e.getMangledNameForScopedPackage=B,e.getPackageNameFromAtTypesDirectory=function(t){var r=e.removePrefix(t,"@types/");return r!==t?j(r):t},e.getUnmangledNameForScopedPackage=j,e.classicNameResolver=z,e.loadModuleFromGlobalCache=function(n,i,a,s,u){var l=r(a,s);l&&t(s,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,i,n,u);var _={compilerOptions:a,host:s,traceEnabled:l},d=[];return c(L(o.DtsOnly,n,u,d,_),void 0,!0,d)}}(s||(s={})),function(e){var t;function r(t){return t.body?function t(n){switch(n.kind){case 239:case 240:return 0;case 241:if(e.isEnumConst(n))return 2;break;case 247:case 246:if(!e.hasModifier(n,1))return 0;break;case 243:var i=0;return e.forEachChild(n,function(r){var n=t(r);switch(n){case 0:return;case 2:return void(i=2);case 1:return i=1,!0;default:e.Debug.assertNever(n)}}),i;case 242:return r(n);case 71:if(n.isInJSDocNamespace)return 0}return 1}(t.body):1}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=r,function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"}(t||(t={}));var i=function(){var t,i,d,p,f,m,g,y,h,v,b,x,S,D,k,T,C,E,N,A,P,F,w,I,O=0,M={flags:1},L={flags:1},R=0;function B(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return function(r,n){t=r,i=n,d=e.getEmitScriptTarget(i),P=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,n),w=e.createUnderscoreEscapedMap(),O=0,I=t.isDeclarationFile,F=e.objectAllocator.getSymbolConstructor(),t.locals||(Ne(t),t.symbolCount=O,t.classifiableNames=w,function(){if(!h)return;for(var r=f,n=y,i=g,a=p,o=b,s=0,c=h;s=108&&r.originalKeywordKind<=116)||e.isIdentifierName(r)||4194304&r.flags||t.parseDiagnostics.length||t.bindDiagnostics.push(B(r,function(r){if(e.getContainingClass(r))return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(t.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}(r),e.declarationNameToString(r)))}function De(r,n){if(n&&71===n.kind){var i=n;if(o=i,e.isIdentifier(o)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var a=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,a.start,a.length,function(r){if(e.getContainingClass(r))return e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Invalid_use_of_0_in_strict_mode}(r),e.idText(i)))}}var o}function ke(e){P&&De(e,e.name)}function Te(r){if(d<2&&277!==g.kind&&242!==g.kind&&!e.isFunctionLike(g)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,function(r){if(e.getContainingClass(r))return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(r)))}}function Ce(r,n,i,a,o){var s=e.getSpanOfTokenAtPosition(t,r.pos);t.bindDiagnostics.push(e.createFileDiagnostic(t,s.start,s.length,n,i,a,o))}function Ee(r,i,a,o){!function(r,i,a){var o=e.createFileDiagnostic(t,i.pos,i.end-i.pos,a);r?t.bindDiagnostics.push(o):t.bindSuggestionDiagnostics=e.append(t.bindSuggestionDiagnostics,n({},o,{category:e.DiagnosticCategory.Suggestion}))}(r,{pos:e.getTokenPosOfNode(i,t),end:a.end},o)}function Ne(r){if(r){r.parent=p;var n=P;if(function(r){switch(r.kind){case 71:if(r.isInJSDocNamespace){for(var n=r.parent;n&&!e.isJSDocTypeAlias(n);)n=n.parent;xe(n,524288,67901928);break}case 99:return b&&(e.isExpression(r)||274===p.kind)&&(r.flowNode=b),Se(r);case 187:b&&Q(r)&&(r.flowNode=b),e.isSpecialPropertyDeclaration(r)&&function(t){99===t.expression.kind?Oe(t):e.isPropertyAccessEntityNameExpression(t)&&277===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?Me(t,t.parent):Le(t))}(r);break;case 202:var i=e.getSpecialPropertyAssignmentKind(r);switch(i){case 1:Ie(r);break;case 2:!function(r){if(!we(r))return;var n=e.getRightMostAssignedExpression(r.right);if(e.isEmptyObjectLiteral(n)||f===t&&o(t,n))return;var i=e.exportAssignmentIsAlias(r)?2097152:1049092;K(t.symbol.exports,t.symbol,r,i,0)}(r);break;case 3:Me(r.left,r);break;case 6:!function(e){e.left.parent=e,e.right.parent=e;var t=e.left;Re(t,t,!1)}(r);break;case 4:Oe(r);break;case 5:!function(r){var n=r.left;r.left.parent=r,r.right.parent=r,e.isIdentifier(n.expression)&&f===t&&s(t,n.expression)?Ie(r):Le(n)}(r);break;case 0:break;default:e.Debug.fail("Unknown special property assignment kind")}return function(t){P&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&De(t,t.left)}(r);case 272:return function(e){P&&e.variableDeclaration&&De(e,e.variableDeclaration.name)}(r);case 196:return function(r){if(P&&71===r.expression.kind){var n=e.getErrorSpanForNode(t,r.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(r);case 8:return function(r){P&&32&r.numericLiteralFlags&&t.bindDiagnostics.push(B(r,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(r);case 201:return function(e){P&&De(e,e.operand)}(r);case 200:return function(e){P&&(43!==e.operator&&44!==e.operator||De(e,e.operand))}(r);case 229:return function(t){P&&Ce(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(r);case 176:return void(v=!0);case 161:break;case 148:return function(t){if(e.isJSDocTemplateTag(t.parent)){var r=e.find(t.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),K(r.locals,void 0,t,262144,67639784)):ye(t,262144,67639784)}else if(174===t.parent.kind){var n=function(t){var r=e.findAncestor(t,function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t});return r&&r.parent}(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),K(n.locals,void 0,t,262144,67639784)):be(t,262144,z(t))}else ye(t,262144,67639784)}(r);case 149:return ze(r);case 235:return Je(r);case 184:return r.flowNode=b,Je(r);case 152:case 151:return function(e){return Ke(e,4|(e.questionToken?16777216:0),0)}(r);case 273:case 274:return Ke(r,4,0);case 276:return Ke(r,8,68008959);case 158:case 159:case 160:return ye(r,131072,0);case 154:case 153:return Ke(r,8192|(r.questionToken?16777216:0),e.isObjectLiteralMethod(r)?0:67208127);case 237:return function(r){t.isDeclarationFile||4194304&r.flags||e.isAsyncFunction(r)&&(A|=1024);ke(r),P?(Te(r),xe(r,16,67215791)):ye(r,16,67215791)}(r);case 155:return ye(r,16384,0);case 156:return Ke(r,32768,67150783);case 157:return Ke(r,65536,67183551);case 163:case 287:case 291:case 164:return function(t){var r=j(131072,z(t));J(r,t,131072);var n=j(2048,"__type");J(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)}(r);case 166:case 290:case 179:return function(e){return be(e,2048,"__type")}(r);case 186:return function(r){var n;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(n||(n={})),P)for(var i=e.createUnderscoreEscapedMap(),a=0,o=r.properties;a145){var i=p;p=r;var a=me(r);0===a?q(r):function(t,r){var n=f,i=m,a=g;1&r?(195!==t.kind&&(m=f),f=g=t,32&r&&(f.locals=e.createSymbolTable()),ge(f)):2&r&&((g=t).locals=void 0);if(4&r){var o=b,s=x,c=S,u=D,l=E,_=N,d=16&r&&!e.hasModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);d||(b={flags:2},144&r&&(b.container=t)),D=d||155===t.kind?Z():void 0,x=void 0,S=void 0,E=void 0,N=!1,q(t),t.flags&=-1409,!(1&b.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=128,N&&(t.flags|=256)),277===t.kind&&(t.flags|=A),D&&(re(D,b),b=se(D),155===t.kind&&(t.returnFlowNode=b)),d||(b=o),x=s,S=c,D=u,E=l,N=_}else 64&r?(v=!1,q(t),t.flags=v?64|t.flags:-65&t.flags):q(t);f=n,m=i,g=a}(r,a),p=i}else if(!I&&0==(536870912&r.transformFlags)){R|=u(r,0);var i=p;1===r.kind&&(p=r),Ae(r),p=i}P=n}}function Ae(t){if(e.hasJSDocNodes(t))if(e.isInJavaScriptFile(t))for(var r=0,n=t.jsDoc;r=161&&e<=181)return-3;switch(e){case 189:case 190:case 185:return 940049729;case 242:return 977327425;case 149:return 939525441;case 195:return 1003902273;case 194:case 237:return 1003935041;case 236:return 948962625;case 238:case 207:return 942011713;case 155:return 1003668801;case 154:case 156:case 157:return 1003668801;case 119:case 134:case 131:case 137:case 135:case 122:case 138:case 105:case 148:case 151:case 153:case 158:case 159:case 160:case 239:case 240:return-3;case 186:return 942740801;case 272:return 940574017;case 182:case 183:return 940049729;case 192:case 210:case 305:case 193:case 97:return 536872257;case 187:case 188:return 671089985;default:return 939525441}}function _(t,r){r.parent=t,e.forEachChild(r,function(e){return _(r,e)})}e.bindSourceFile=function(t,r){e.performance.mark("beforeBind"),i(t,r),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=o,e.computeTransformFlagsForNode=u,e.getTransformFlagsSubtreeExclusions=l}(s||(s={})),function(e){e.createGetSymbolWalker=function(t,r,n,i,a,o,s,c,u,l){return function(_){void 0===_&&(_=function(){return!0});var d=[],p=[];return{walkType:function(t){try{return f(t),{visitedTypes:e.getOwnValues(d),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(d),e.clear(p)}},walkSymbol:function(t){try{return y(t),{visitedTypes:e.getOwnValues(d),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(d),e.clear(p)}}};function f(t){if(t&&!d[t.id]){d[t.id]=t;var r=y(t.symbol);if(!r){if(131072&t.flags){var n=t,a=n.objectFlags;4&a&&function(t){f(t.target),e.forEach(t.typeArguments,f)}(t),32&a&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(t),3&a&&(g(o=t),e.forEach(o.typeParameters,f),e.forEach(i(o),f),f(o.thisType)),24&a&&g(n)}var o;65536&t.flags&&function(e){f(u(e))}(t),786432&t.flags&&function(t){e.forEach(t.types,f)}(t),1048576&t.flags&&function(e){f(e.type)}(t),2097152&t.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(t)}}}function m(i){var a=r(i);a&&f(a.type),e.forEach(i.typeParameters,f);for(var o=0,s=i.parameters;o0?e.createPropertyAccess(t(n,i-1),l):l}91===c&&(s=s.substring(1,s.length-1),c=s.charCodeAt(0));var _=void 0;return e.isSingleOrDoubleQuote(c)?(_=e.createLiteral(s.substring(1,s.length-1).replace(/\\./g,function(e){return e.substring(1)}))).singleQuote=39===c:""+ +s===s&&(_=e.createLiteral(+s)),_||((_=e.setEmitFlags(e.createIdentifier(s,a),16777216)).symbol=o),e.createElementAccess(t(n,i-1),_)}(i,i.length-1)}(r,t,n)})},symbolToTypeParameterDeclarations:function(e,r,n,i){return t(r,n,i,function(t){return f(e,t)})},symbolToParameterDeclaration:function(e,r,n,i){return t(r,n,i,function(t){return d(e,t)})},typeParameterToDeclaration:function(e,r,n,i){return t(r,n,i,function(t){return _(e,t)})}};function t(t,r,n,i){e.Debug.assert(void 0===t||0==(8&t.flags));var a={enclosingDeclaration:t,flags:r||0,tracker:n&&n.trackSymbol?n:{trackSymbol:e.noop},encounteredError:!1,visitedSymbols:void 0,inferTypeParameters:void 0,approximateLength:0},o=i(a);return a.encounteredError?void 0:o}function r(t){return t.truncating?t.truncating:t.truncating=!(1&t.flags)&&t.approximateLength>e.defaultMaximumTruncationLength}function n(t,_){m&&m.throwIfCancellationRequested&&m.throwIfCancellationRequested();var d=8388608&_.flags;if(_.flags&=-8388609,t){if(1&t.flags)return _.approximateLength+=3,e.createKeywordTypeNode(119);if(2&t.flags)return e.createKeywordTypeNode(142);if(4&t.flags)return _.approximateLength+=6,e.createKeywordTypeNode(137);if(8&t.flags)return _.approximateLength+=6,e.createKeywordTypeNode(134);if(16&t.flags)return _.approximateLength+=7,e.createKeywordTypeNode(122);if(512&t.flags&&!(262144&t.flags)){var p=bn(t.symbol),f=h(p,_,67901928,!1),g=ea(p)===t?f:e.createQualifiedName(f,e.symbolName(t.symbol));return _.approximateLength+=e.symbolName(t.symbol).length,e.createTypeReferenceNode(g,void 0)}if(544&t.flags){var v=h(t.symbol,_,67901928,!1);return _.approximateLength+=e.symbolName(t.symbol).length,e.createTypeReferenceNode(v,void 0)}if(64&t.flags)return _.approximateLength+=t.value.length+2,e.createLiteralTypeNode(e.setEmitFlags(e.createLiteral(t.value),16777216));if(128&t.flags)return _.approximateLength+=(""+t.value).length,e.createLiteralTypeNode(e.createLiteral(t.value));if(256&t.flags)return _.approximateLength+=t.intrinsicName.length,"true"===t.intrinsicName?e.createTrue():e.createFalse();if(2048&t.flags){if(!(1048576&_.flags)){if(Bn(t.symbol,_.enclosingDeclaration))return _.approximateLength+=6,y(t.symbol,_,67216319);_.tracker.reportInaccessibleUniqueSymbolError&&_.tracker.reportInaccessibleUniqueSymbolError()}return _.approximateLength+=13,e.createTypeOperatorNode(141,e.createKeywordTypeNode(138))}if(4096&t.flags)return _.approximateLength+=4,e.createKeywordTypeNode(105);if(8192&t.flags)return _.approximateLength+=9,e.createKeywordTypeNode(140);if(16384&t.flags)return _.approximateLength+=4,e.createKeywordTypeNode(95);if(32768&t.flags)return _.approximateLength+=5,e.createKeywordTypeNode(131);if(1024&t.flags)return _.approximateLength+=6,e.createKeywordTypeNode(138);if(16777216&t.flags)return _.approximateLength+=6,e.createKeywordTypeNode(135);if(65536&t.flags&&t.isThisType)return 4194304&_.flags&&(_.encounteredError||32768&_.flags||(_.encounteredError=!0),_.tracker.reportInaccessibleThisError&&_.tracker.reportInaccessibleThisError()),_.approximateLength+=4,e.createThis();var b=e.getObjectFlags(t);if(4&b)return e.Debug.assert(!!(131072&t.flags)),function(t){var r=t.typeArguments||e.emptyArray;if(t.target===Be){if(2&_.flags){var i=n(r[0],_);return e.createTypeReferenceNode("Array",[i])}var o=n(r[0],_);return e.createArrayTypeNode(o)}if(8&t.target.objectFlags){if(r.length>0){var s=es(t),c=a(r.slice(0,s),_),u=t.target.hasRestElement;if(c&&c.length>0){for(var l=t.target.minLength;l0){var S=(t.target.typeParameters||e.emptyArray).length;x=a(r.slice(l,S),_)}var D=_.flags;_.flags|=16;var k=y(t.symbol,_,67901928,x);return _.flags=D,p?M(p,k):k}(t);if(65536&t.flags||3&b){if(65536&t.flags&&e.contains(_.inferTypeParameters,t))return _.approximateLength+=e.symbolName(t.symbol).length+6,e.createInferTypeNode(u(t,_,void 0));if(4&_.flags&&65536&t.flags&&e.length(t.symbol.declarations)&&e.isTypeParameterDeclaration(t.symbol.declarations[0])&&c(t,_)&&!Rn(t.symbol,_.enclosingDeclaration)){var v=t.symbol.declarations[0].name;return _.approximateLength+=e.idText(v).length,e.createTypeReferenceNode(e.getGeneratedNameForNode(v,24),void 0)}return t.symbol?y(t.symbol,_,67901928):e.createTypeReferenceNode(e.createIdentifier("?"),void 0)}if(!d&&t.aliasSymbol&&(16384&_.flags||Rn(t.aliasSymbol,_.enclosingDeclaration))){var x=a(t.aliasTypeArguments,_);return!An(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?y(t.aliasSymbol,_,67901928,x):e.createTypeReferenceNode(e.createIdentifier(""),x)}if(!(786432&t.flags)){if(48&b)return e.Debug.assert(!!(131072&t.flags)),I(t);if(1048576&t.flags){var S=t.type;_.approximateLength+=6;var D=n(S,_);return e.createTypeOperatorNode(D)}if(2097152&t.flags){var k=n(t.objectType,_),D=n(t.indexType,_);return _.approximateLength+=2,e.createIndexedAccessTypeNode(k,D)}if(4194304&t.flags){var T=n(t.checkType,_),C=_.inferTypeParameters;_.inferTypeParameters=t.root.inferTypeParameters;var E=n(t.extendsType,_);_.inferTypeParameters=C;var N=n(mc(t),_),A=n(gc(t),_);return _.approximateLength+=15,e.createConditionalTypeNode(T,E,N,A)}return 8388608&t.flags?n(t.typeVariable,_):e.Debug.fail("Should be unreachable.")}var P=262144&t.flags?function(e){for(var t=[],r=0,n=0;n0){var w=e.createUnionOrIntersectionTypeNode(262144&t.flags?171:172,F);return w}_.encounteredError||262144&_.flags||(_.encounteredError=!0)}else _.encounteredError=!0;function I(t){var r,n=t.symbol;if(n){var i=16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags;if(r=(i?"+":"")+l(n),Xp(n.valueDeclaration)){var a=t===$p(n)?67901928:67216319;return y(n,_,a)}if(32&n.flags&&!Ni(n)&&!(207===n.valueDeclaration.kind&&2048&_.flags)||896&n.flags||function(){var t=!!(8192&n.flags)&&e.some(n.declarations,function(t){return e.hasModifier(t,32)}),i=!!(16&n.flags)&&(n.parent||e.forEach(n.declarations,function(e){return 277===e.parent.kind||243===e.parent.kind}));if(t||i)return(!!(4096&_.flags)||_.visitedSymbols&&_.visitedSymbols.has(r))&&(!(8&_.flags)||Bn(n,_.enclosingDeclaration))}())return y(n,_,67216319);if(_.visitedSymbols&&_.visitedSymbols.has(r)){var o=function(t){if(t.symbol&&2048&t.symbol.flags){var r=e.findAncestor(t.symbol.declarations[0].parent,function(e){return 175!==e.kind});if(240===r.kind)return vn(r)}}(t);return o?y(o,_,67901928):(_.approximateLength+=3,e.createKeywordTypeNode(119))}_.visitedSymbols||(_.visitedSymbols=e.createMap()),_.visitedSymbols.set(r,!0);var s=O(t);return _.visitedSymbols.delete(r),s}return O(t)}function O(t){if(za(t))return function(t){e.Debug.assert(!!(131072&t.flags));var r,i=t.declaration.readonlyToken?e.createToken(t.declaration.readonlyToken.kind):void 0,a=t.declaration.questionToken?e.createToken(t.declaration.questionToken.kind):void 0;r=La(t)?e.createTypeOperatorNode(n(Ra(t),_)):n(Ia(t),_);var o=u(wa(t),_,r),s=n(Oa(t),_),c=e.createMappedTypeNode(i,o,a,s);return _.approximateLength+=10,e.setEmitFlags(c,1)}(t);var a=Ka(t);if(!a.properties.length&&!a.stringIndexInfo&&!a.numberIndexInfo){if(!a.callSignatures.length&&!a.constructSignatures.length)return _.approximateLength+=2,e.setEmitFlags(e.createTypeLiteralNode(void 0),1);if(1===a.callSignatures.length&&!a.constructSignatures.length){var c=a.callSignatures[0],l=s(c,163,_);return l}if(1===a.constructSignatures.length&&!a.callSignatures.length){var c=a.constructSignatures[0],l=s(c,164,_);return l}}var d=_.flags;_.flags|=4194304;var p=function(t){if(r(_))return[e.createPropertySignature(void 0,"...",void 0,void 0,void 0)];for(var n=[],a=0,c=t.callSignatures;a2)return[n(t[0],i),e.createTypeReferenceNode("... "+(t.length-2)+" more ...",void 0),n(t[t.length-1],i)]}for(var o=[],s=0,c=0,u=t;c=o?4096:0,c=br(1,i,a);return c.type=n===s?Ls(e):e,c});return e.concatenate(t.parameters.slice(0,r),c)}}return t.parameters}(t).map(function(e){return d(e,i,155===r)});if(t.thisParameter){var u=d(t.thisParameter,i);c.unshift(u)}var l=Io(t);if(l){var p=1===l.kind?e.setEmitFlags(e.createIdentifier(l.parameterName),16777216):e.createThisTypeNode(),f=n(l.type,i);s=e.createTypePredicateNode(p,f)}else{var m=Oo(t);s=m&&n(m,i)}return 256&i.flags?s&&119===s.kind&&(s=void 0):s||(s=e.createKeywordTypeNode(119)),i.approximateLength+=3,e.createSignatureDeclaration(r,a,c,s,o)}function c(e,t){return!!Mr(t.enclosingDeclaration,e.symbol.escapedName,67901928,void 0,e.symbol.escapedName,!1)}function u(t,r,i){var a=r.flags;r.flags&=-513;var o=4&r.flags&&t.symbol.declarations[0]&&e.isTypeParameterDeclaration(t.symbol.declarations[0])&&c(t,r),s=o?e.getGeneratedNameForNode(t.symbol.declarations[0].name,24):h(t.symbol,r,67901928,!0),u=no(t),l=u&&n(u,r);return r.flags=a,e.createTypeParameterDeclaration(s,i,l)}function _(e,t,r){void 0===r&&(r=Ga(e));var i=r&&n(r,t);return u(e,t,i)}function d(t,r,i){var a=e.getDeclarationOfKind(t,149);a||xr(t)||(a=e.getDeclarationOfKind(t,296));var o=Fi(t);a&&yy(a)&&(o=il(o));var s=n(o,r),c=!(8192&r.flags)&&i&&a&&a.modifiers?a.modifiers.map(e.getSynthesizedClone):void 0,u=a&&e.isRestParameter(a)||8192&e.getCheckFlags(t),l=u?e.createToken(24):void 0,_=a&&a.name?71===a.name.kind?e.setEmitFlags(e.getSynthesizedClone(a.name),16777216):146===a.name.kind?e.setEmitFlags(e.getSynthesizedClone(a.name.right),16777216):function t(r){var n=e.visitEachChild(r,t,e.nullTransformationContext,void 0,t),i=e.nodeIsSynthesized(n)?n:e.getSynthesizedClone(n);return 184===i.kind&&(i.initializer=void 0),e.setEmitFlags(i,16777217)}(a.name):e.symbolName(t),d=a&&xo(a)||4096&e.getCheckFlags(t),p=d?e.createToken(55):void 0,f=e.createParameter(void 0,c,l,_,p,s,void 0);return r.approximateLength+=e.symbolName(t).length+3,f}function p(t,r,n,i){var a;r.tracker.trackSymbol(t,r.enclosingDeclaration,n);var o=262144&t.flags;return!o&&(r.enclosingDeclaration||64&r.flags)?(a=e.Debug.assertDefined(function t(n,a,o){var s=Mn(n,r.enclosingDeclaration,a,!!(128&r.flags));if(!s||Ln(s[0],r.enclosingDeclaration,1===s.length?a:On(a))){var c=xn(s?s[0]:n,r.enclosingDeclaration);if(e.length(c))for(var u=0,l=c;u0)):a=[t],a}function f(t,r){var n,i=Dg(t);return 524384&i.flags&&(n=e.createNodeArray(e.map(Bi(t),function(e){return _(e,r)}))),n}function g(t,r,n){e.Debug.assert(t&&0<=r&&r1?h(a,a.length-1,1):void 0,c=i||g(a,0,r),u=function(t,r){var n=e.getDeclarationOfKind(t,277);if(n&&void 0!==n.moduleName)return n.moduleName;if(n){if(!r.enclosingDeclaration||!r.tracker.moduleResolverHost)return t.escapedName.substring(1,t.escapedName.length-1);var i=e.getSourceFileOfNode(e.getOriginalNode(r.enclosingDeclaration)),a=Pr(t),o=a.specifierCache&&a.specifierCache.get(i.path);return o||(o=e.flatten(e.moduleSpecifiers.getModuleSpecifiers(t,E,i,r.tracker.moduleResolverHost,r.tracker.moduleResolverHost.getSourceFiles(),{importModuleSpecifierPreference:"non-relative"}))[0],a.specifierCache=a.specifierCache||e.createMap(),a.specifierCache.set(i.path,o)),o}if(r.tracker.trackReferencedAmbientModule){var s=e.filter(t.declarations,e.isAmbientModule);if(e.length(s))for(var c=0,u=s;ca){var l=h(t,n-1,a);return e.isEntityName(l)?e.createQualifiedName(l,_):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return _}}function h(t,r,n,i){var a=p(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=g(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=Zn(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}}(),j=br(4,"undefined");j.declarations=[];var J,z,K=br(4,"arguments"),U=br(4,"require"),q=br(4,"module"),V={getNodeCount:function(){return e.sum(a.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(a.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(a.getSourceFiles(),"symbolCount")+S},getTypeCount:function(){return x},isUndefinedSymbol:function(e){return e===j},isArgumentsSymbol:function(e){return e===K},isUnknownSymbol:function(e){return e===Z},getMergedSymbol:hn,getDiagnostics:Wg,getGlobalDiagnostics:function(){return Hg(),Ht.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(t,r){return(r=e.getParseTreeNode(r))?function(t,r){if(t=t.exportSymbol||t,71===r.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&!e.isAssignmentTarget(r))){var n=em(r);if(Dn(Fr(r).resolvedSymbol)===t)return n}return Fi(t)}(t,r):ie},getSymbolsOfParameterPropertyDeclaration:function(t,r){var n=e.getParseTreeNode(t,e.isParameter);return void 0===n?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(t,r){var n=t.parent,i=t.parent.parent,a=Ir(n.locals,r,67216319),o=Ir(ya(i.symbol),r,67216319);return a&&o?[a,o]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:ea,getPropertiesOfType:Wa,getPropertyOfType:function(t,r){return co(t,e.escapeLeadingUnderscores(r))},getTypeOfPropertyOfType:function(t,r){return si(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:fo,getSignaturesOfType:lo,getIndexTypeOfType:mo,getBaseTypes:Vi,getBaseTypeOfLiteralType:Wu,getWidenedType:pl,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?Oc(r):ie},getParameterType:lf,getReturnTypeOfSignature:Oo,getNullableType:nl,getNonNullableType:al,typeToTypeNode:B.typeToTypeNode,indexInfoToIndexSignatureDeclaration:B.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:B.signatureToSignatureDeclaration,symbolToEntityName:B.symbolToEntityName,symbolToExpression:B.symbolToExpression,symbolToTypeParameterDeclarations:B.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:B.symbolToParameterDeclaration,typeParameterToDeclaration:B.typeParameterToDeclaration,getSymbolsInScope:function(t,r){return(t=e.getParseTreeNode(t))?function(t,r){if(8388608&t.flags)return[];var n=e.createSymbolTable(),i=!1;return function(){for(;t;){switch(t.locals&&!wr(t)&&o(t.locals,r),t.kind){case 242:o(vn(t).exports,2623475&r);break;case 241:o(vn(t).exports,8&r);break;case 207:var n=t.name;n&&a(t.symbol,r);case 238:case 239:i||o(ya(vn(t)),67901928&r);break;case 194:var s=t.name;s&&a(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&a(K,r),i=e.hasModifier(t,32),t=t.parent}o(xt,r)}(),ho(n);function a(t,r){if(e.getCombinedLocalAndExportSymbolFlags(t)&r){var i=t.escapedName;n.has(i)||n.set(i,t)}}function o(e,t){t&&e.forEach(function(e){a(e,t)})}}(t,r):[]},getSymbolAtLocation:function(t){return(t=e.getParseTreeNode(t))?ey(t):void 0},getShorthandAssignmentValueSymbol:function(t){return(t=e.getParseTreeNode(t))?function(e){if(e&&274===e.kind)return nn(e.name,69313471)}(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){var r=e.getParseTreeNode(t,e.isExportSpecifier);return r?function(e){return e.parent.parent.moduleSpecifier?Hr(e.parent.parent,e):nn(e.propertyName||e.name,70107135)}(r):void 0},getExportSymbolOfSymbol:function(e){return hn(e.exportSymbol||e)},getTypeAtLocation:function(t){return(t=e.getParseTreeNode(t))?ty(t):ie},getPropertySymbolOfDestructuringAssignment:function(t){var r=e.getParseTreeNode(t,e.isIdentifier);return r?function(t){var r=function t(r){if(e.Debug.assert(186===r.kind||185===r.kind),225===r.parent.kind){var n=og(r.parent.expression,r.parent.awaitModifier);return zf(r,n||ie)}if(202===r.parent.kind){var n=em(r.parent.right);return zf(r,n||ie)}if(273===r.parent.kind){var i=t(r.parent.parent);return jf(i||ie,r.parent)}e.Debug.assert(185===r.parent.kind);var a=t(r.parent),o=sg(a||ie,r.parent,!1,!1)||ie;return Jf(r.parent,a,r.parent.elements.indexOf(r),o||ie)}(t.parent.parent);return r&&co(r,t.escapedText)}(r):void 0},signatureToString:function(t,r,n,i){return Wn(t,e.getParseTreeNode(r),n,i)},typeToString:function(t,r,n){return Hn(t,e.getParseTreeNode(r),n)},symbolToString:function(t,r,n,i){return Vn(t,e.getParseTreeNode(r),n,i)},typePredicateToString:function(t,r,n){return Xn(t,e.getParseTreeNode(r),n)},writeSignature:function(t,r,n,i,a){return Wn(t,e.getParseTreeNode(r),n,i,a)},writeType:function(t,r,n,i){return Hn(t,e.getParseTreeNode(r),n,i)},writeSymbol:function(t,r,n,i,a){return Vn(t,e.getParseTreeNode(r),n,i,a)},writeTypePredicate:function(t,r,n,i){return Xn(t,e.getParseTreeNode(r),n,i)},getAugmentedPropertiesOfType:ny,getRootSymbols:function t(r){var n=function(t){if(6&e.getCheckFlags(t))return e.mapDefined(Pr(t).containingType.types,function(e){return co(e,t.escapedName)});if(33554432&t.flags){var r=t,n=r.leftSpread,i=r.rightSpread,a=r.syntheticOrigin;return n?[n,i]:a?[a]:e.singleElementArray(function(e){for(var t,r=e;r=Pr(r).target;)t=r;return t}(t))}}(r);return n?e.flatMap(n,t):[r]},getContextualType:function(t){var r=e.getParseTreeNode(t,e.isExpression);return r?ad(r):void 0},getContextualTypeForArgumentAtIndex:function(t,r){var n=e.getParseTreeNode(t,e.isCallLikeExpression);return n&&X_(n,r)},getContextualTypeForJsxAttribute:function(t){var r=e.getParseTreeNode(t,e.isJsxAttributeLike);return r&&rd(r)},isContextSensitive:eu,getFullyQualifiedName:rn,getResolvedSignature:function(t,r,n){var i=e.getParseTreeNode(t,e.isCallLikeExpression);J=n;var a=i?Gp(i,r):void 0;return J=void 0,a},getConstantValue:function(t){var r=e.getParseTreeNode(t,xy);return r?Sy(r):void 0},isValidPropertyAccess:function(t,r){var n=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!n&&function(e,t){switch(e.kind){case 187:return cp(e,e.expression,t,pl(rm(e.expression)));case 146:return cp(e,e.left,t,pl(rm(e.left)));case 181:return cp(e,e,t,Oc(e))}}(n,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions:function(t,r,n){var i=e.getParseTreeNode(t,e.isPropertyAccessExpression);return!!i&&function(t,r,n){return cp(t,181===t.kind?t:t.expression,n.escapedName,r)&&(!(8192&n.flags)||(a=lo(al(si(i=r,n.escapedName)),0),e.Debug.assert(0!==a.length),a.some(function(e){var t=Fo(e);return!t||cu(i,function(e,t,r){if(!e.typeParameters)return t;var n=hl(e.typeParameters,e,0);return Nl(n.inferences,r,t),Yc(t,jo(e,Ll(n)))}(e,t,i))})));var i,a}(i,r,n)},getSignatureFromDeclaration:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?Eo(r):void 0},isImplementationOfOverload:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?gy(r):void 0},getImmediateAliasedSymbol:function(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=Pr(t);if(!r.immediateTarget){var n=Ur(t);if(!n)return e.Debug.fail();r.immediateTarget=Xr(n,!0)}return r.immediateTarget},getAliasedSymbol:$r,getEmitResolver:function(e,t){return Wg(e,t),R},getExportsOfModule:dn,getExportsAndPropertiesOfModule:function(t){var r=dn(t),n=un(t);return n!==t&&e.addRange(r,Wa(Fi(n))),r},getSymbolWalker:e.createGetSymbolWalker(function(e){return Mo(e)||te},Io,Oo,Vi,Ka,Fi,Rl,po,Ga,Fg),getAmbientModules:function(){return Oe||(Oe=[],xt.forEach(function(e,t){r.test(t)&&Oe.push(e)})),Oe},getAllAttributesTypeFromJsxOpeningLikeElement:function(t){var r=e.getParseTreeNode(t,e.isJsxOpeningLikeElement);return r?function(e){return Td(e.tagName)?jd(e):Jd(e,!0)}(r):void 0},getJsxIntrinsicTagNamesAt:function(r){var n=Ad(t.IntrinsicElements,r);return n?Wa(n):e.emptyArray},isOptionalParameter:function(t){var r=e.getParseTreeNode(t,e.isParameter);return!!r&&xo(r)},tryGetMemberInModuleExports:function(t,r){return pn(e.escapeLeadingUnderscores(t),r)},tryGetMemberInModuleExportsAndProperties:function(t,r){return function(e,t){var r=pn(e,t);if(r)return r;var n=un(t);if(n!==t){var i=Fi(n);return 32764&i.flags?void 0:co(i,e)}}(e.escapeLeadingUnderscores(t),r)},tryFindAmbientModuleWithoutAugmentations:function(e){return bo(e,!1)},getApparentType:io,getUnionType:Ws,createAnonymousType:wn,createSignature:xa,createSymbol:br,createIndexInfo:Wo,getAnyType:function(){return te},getStringType:function(){return le},getNumberType:function(){return _e},createPromiseType:bf,createArrayType:Ls,getBooleanType:function(){return fe},getFalseType:function(){return de},getTrueType:function(){return pe},getVoidType:function(){return ge},getUndefinedType:function(){return oe},getNullType:function(){return ce},getESSymbolType:function(){return me},getNeverType:function(){return ye},isSymbolAccessible:jn,isArrayLikeType:ju,isTypeInvalidDueToUnionDiscriminant:function(t,r){return r.properties.some(function(r){var n=r.name&&e.getTextOfPropertyName(r.name),i=void 0===n?void 0:si(t,n);if(i&&448&i.flags){var a=ty(r);return!!a&&!iu(a,i)}return!1})},getAllPossiblePropertiesOfTypes:function(t){var r=Ws(t);if(!(262144&r.flags))return ny(r);for(var n=e.createSymbolTable(),i=0,a=t;i>",0,te),ft=xa(void 0,void 0,void 0,e.emptyArray,te,void 0,0,!1,!1),mt=xa(void 0,void 0,void 0,e.emptyArray,ie,void 0,0,!1,!1),gt=xa(void 0,void 0,void 0,e.emptyArray,te,void 0,0,!1,!1),yt=xa(void 0,void 0,void 0,e.emptyArray,he,void 0,0,!1,!1),ht=[gt],vt=Wo(le,!0),bt=Wo(te,!1),xt=e.createSymbolTable(),St=e.createMap(),Dt=e.createMap(),kt=0,Tt=0,Ct=0,Et=!1,Nt=Fc(""),At=Fc(0),Pt=[],Ft=[],wt=[],It=0,Ot=10,Mt=[],Lt=[],Rt=[],Bt=[],jt=[],Jt=[],zt=[],Kt=[],Ut=[],qt=[],Vt=[],Wt=[],Ht=e.createDiagnosticCollection(),Gt=e.createMultiMap();!function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBoolean=4]="TypeofEQBoolean",e[e.TypeofEQSymbol=8]="TypeofEQSymbol",e[e.TypeofEQObject=16]="TypeofEQObject",e[e.TypeofEQFunction=32]="TypeofEQFunction",e[e.TypeofEQHostObject=64]="TypeofEQHostObject",e[e.TypeofNEString=128]="TypeofNEString",e[e.TypeofNENumber=256]="TypeofNENumber",e[e.TypeofNEBoolean=512]="TypeofNEBoolean",e[e.TypeofNESymbol=1024]="TypeofNESymbol",e[e.TypeofNEObject=2048]="TypeofNEObject",e[e.TypeofNEFunction=4096]="TypeofNEFunction",e[e.TypeofNEHostObject=8192]="TypeofNEHostObject",e[e.EQUndefined=16384]="EQUndefined",e[e.EQNull=32768]="EQNull",e[e.EQUndefinedOrNull=65536]="EQUndefinedOrNull",e[e.NEUndefined=131072]="NEUndefined",e[e.NENull=262144]="NENull",e[e.NEUndefinedOrNull=524288]="NEUndefinedOrNull",e[e.Truthy=1048576]="Truthy",e[e.Falsy=2097152]="Falsy",e[e.All=4194303]="All",e[e.BaseStringStrictFacts=933633]="BaseStringStrictFacts",e[e.BaseStringFacts=3145473]="BaseStringFacts",e[e.StringStrictFacts=4079361]="StringStrictFacts",e[e.StringFacts=4194049]="StringFacts",e[e.EmptyStringStrictFacts=3030785]="EmptyStringStrictFacts",e[e.EmptyStringFacts=3145473]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=1982209]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=4194049]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=933506]="BaseNumberStrictFacts",e[e.BaseNumberFacts=3145346]="BaseNumberFacts",e[e.NumberStrictFacts=4079234]="NumberStrictFacts",e[e.NumberFacts=4193922]="NumberFacts",e[e.ZeroStrictFacts=3030658]="ZeroStrictFacts",e[e.ZeroFacts=3145346]="ZeroFacts",e[e.NonZeroStrictFacts=1982082]="NonZeroStrictFacts",e[e.NonZeroFacts=4193922]="NonZeroFacts",e[e.BaseBooleanStrictFacts=933252]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=3145092]="BaseBooleanFacts",e[e.BooleanStrictFacts=4078980]="BooleanStrictFacts",e[e.BooleanFacts=4193668]="BooleanFacts",e[e.FalseStrictFacts=3030404]="FalseStrictFacts",e[e.FalseFacts=3145092]="FalseFacts",e[e.TrueStrictFacts=1981828]="TrueStrictFacts",e[e.TrueFacts=4193668]="TrueFacts",e[e.SymbolStrictFacts=1981320]="SymbolStrictFacts",e[e.SymbolFacts=4193160]="SymbolFacts",e[e.ObjectStrictFacts=1972176]="ObjectStrictFacts",e[e.ObjectFacts=4184016]="ObjectFacts",e[e.FunctionStrictFacts=1970144]="FunctionStrictFacts",e[e.FunctionFacts=4181984]="FunctionFacts",e[e.UndefinedFacts=2457472]="UndefinedFacts",e[e.NullFacts=2340752]="NullFacts"}(_t||(_t={}));var Xt,Qt,Yt,$t,Zt,er,tr,rr,nr,ir=e.createMapFromTemplate({string:1,number:2,boolean:4,symbol:8,undefined:16384,object:16,function:32}),ar=e.createMapFromTemplate({string:128,number:256,boolean:512,symbol:1024,undefined:131072,object:2048,function:4096}),or=e.createMapFromTemplate({string:le,number:_e,boolean:fe,symbol:me,undefined:oe}),sr=Ws(e.arrayFrom(ir.keys(),Fc)),cr=e.createMap(),ur=e.createMap(),lr=e.createMap(),_r=e.createMap(),dr=e.createMap(),pr=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType",e[e.ImmediateBaseConstraint=4]="ImmediateBaseConstraint"}(Yt||(Yt={})),function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential",e[e.Contextual=3]="Contextual"}($t||($t={})),function(e){e[e.None=0]="None",e[e.Bivariant=1]="Bivariant",e[e.Strict=2]="Strict"}(Zt||(Zt={})),function(e){e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"}(er||(er={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(tr||(tr={})),function(e){e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"}(rr||(rr={})),function(e){e[e.Local=0]="Local",e[e.Parameter=1]="Parameter"}(nr||(nr={}));var fr=e.createSymbolTable();fr.set(j.escapedName,j);var mr=e.and(Bg,function(t){return!e.isAccessor(t)});return function(){for(var t=0,r=a.getSourceFiles();t1)}function Pr(e){if(33554432&e.flags)return e;var t=l(e);return Lt[t]||(Lt[t]={})}function Fr(e){var t=u(e);return Rt[t]||(Rt[t]={flags:0})}function wr(t){return 277===t.kind&&!e.isExternalOrCommonJsModule(t)}function Ir(t,r,n){if(n){var i=t.get(r);if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&n)return i;if(2097152&i.flags){var a=$r(i);if(a===Z||a.flags&n)return i}}}}function Or(t,r){var n=e.getSourceFileOfNode(t),i=e.getSourceFileOfNode(r);if(n!==i){if(A&&(n.externalModuleIndicator||i.externalModuleIndicator)||!E.outFile&&!E.out||Bl(r)||4194304&t.flags)return!0;if(u(r,t))return!0;var o=a.getSourceFiles();return o.indexOf(n)<=o.indexOf(i)}if(t.pos<=r.pos){if(184===t.kind){var s=e.getAncestor(r,184);return s?e.findAncestor(s,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos=0)return void hr(i,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,r,h)}}if(l)hr(i,l,r,u.resolvedFileName);else{var v=e.tryExtractTypeScriptExtension(r);v?hr(i,e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,v,e.removeExtension(r,v)):hr(i,n,r)}}}}function cn(t,r,n,i){var o,s=n.packageId,c=n.resolvedFileName,u=s?e.chainDiagnosticMessages(void 0,(o=s.name,a.getSourceFiles().some(function(t){return!!t.resolvedModules&&!!e.forEachEntry(t.resolvedModules,function(t){return t&&t.packageId&&t.packageId.name===e.getTypesPackageName(o)})})?e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_0:e.Diagnostics.Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0),e.getMangledNameForScopedPackage(s.name)):void 0;vr(t,r,e.chainDiagnosticMessages(u,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,c))}function un(t,r){return t&&hn(function(t,r){if(!t||1===r.exports.size)return t;var n=kr(t);return void 0===n.exports&&(n.flags=512|n.flags,n.exports=e.createSymbolTable()),r.exports.forEach(function(e,t){"export="!==t&&n.exports.set(t,n.exports.has(t)?Tr(n.exports.get(t),e):e)}),n}(Yr(t.exports.get("export="),r),t))||t}function ln(t,r,n){var i=un(t,n);if(!n&&i){if(!(1539&i.flags||e.getDeclarationOfKind(i,277)))return hr(r,e.Diagnostics.Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct,Vn(t)),i;if(E.esModuleInterop){var a=r.parent;if(e.isImportDeclaration(a)&&e.getNamespaceDeclarationNode(a)||e.isImportCall(a)){var o=Fi(i),s=uo(o,0);if(s&&s.length||(s=uo(o,1)),s&&s.length){var c=nf(o,i,t),u=br(i.flags,i.escapedName);u.declarations=i.declarations?i.declarations.slice():[],u.parent=i.parent,u.target=i,u.originatingImport=a,i.valueDeclaration&&(u.valueDeclaration=i.valueDeclaration),i.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),i.members&&(u.members=e.cloneMap(i.members)),i.exports&&(u.exports=e.cloneMap(i.exports));var l=Ka(c);return u.type=wn(u,l.members,e.emptyArray,e.emptyArray,l.stringIndexInfo,l.numberIndexInfo),u}}}}return i}function _n(e){return void 0!==e.exports.get("export=")}function dn(e){return ho(mn(e))}function pn(e,t){var r=mn(t);if(r)return r.get(e)}function fn(e){return 32&e.flags?ga(e,"resolvedExports"):1536&e.flags?mn(e):e.exports||T}function mn(e){var t=Pr(e);return t.resolvedExports||(t.resolvedExports=yn(e))}function gn(t,r,n,i){r&&r.forEach(function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&Yr(o)!==Yr(r)){var s=n.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else t.set(a,r),n&&i&&n.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}})}function yn(t){var r=[];return function t(n){if(n&&n.exports&&e.pushIfUnique(r,n)){var i=e.cloneMap(n.exports),a=n.exports.get("__export");if(a){for(var o=e.createSymbolTable(),s=e.createMap(),c=0,u=a.declarations;c=l?u.substr(0,l-"...".length)+"...":u}function Gn(e){return void 0===e&&(e=0),9469291&e}function Xn(t,r,n,i){return void 0===n&&(n=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.createTypePredicateNode(1===t.kind?e.createIdentifier(t.parameterName):e.createThisTypeNode(),B.typeToTypeNode(t.type,r,3113472|Gn(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function Qn(e){return 8===e?"private":16===e?"protected":"public"}function Yn(t){return t&&t.parent&&243===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function $n(t){return 277===t.kind||e.isAmbientModule(t)}function Zn(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],$n)!==e.findAncestor(r.enclosingDeclaration,$n)))return"default";if(t.declarations&&t.declarations.length){var n=t.declarations[0],i=e.getNameOfDeclaration(n);if(i)return e.declarationNameToString(i);if(n.parent&&235===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 207:case 194:case 195:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),207===n.kind?"(Anonymous class)":"(Anonymous function)"}}var a=t.nameType;if(a){if(64&a.flags&&!e.isIdentifierText(a.value,E.target))return'"'+e.escapeString(a.value,34)+'"';if(a&&2048&a.flags)return"["+Zn(a.symbol,r)+"]"}return e.symbolName(t)}function ei(t){if(t){var r=Fr(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 295:case 301:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 184:return ei(t.parent.parent);case 235:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 242:case 238:case 239:case 240:case 237:case 241:case 246:if(e.isExternalModuleAugmentation(t))return!0;var r=oi(t);return 1&e.getCombinedModifierFlags(t)||246!==t.kind&&277!==r.kind&&4194304&r.flags?ei(r):wr(r);case 152:case 151:case 156:case 157:case 154:case 153:if(e.hasModifier(t,24))return!1;case 155:case 159:case 158:case 160:case 149:case 243:case 163:case 164:case 166:case 162:case 167:case 168:case 171:case 172:case 175:return ei(t.parent);case 248:case 249:case 251:return!1;case 148:case 277:case 245:return!0;case 252:default:return!1}}()),r.isVisible}return!1}function ti(t,r){var n,i;return t.parent&&252===t.parent.kind?n=Mr(t,t.escapedText,70107135,void 0,t,!1):255===t.parent.kind&&(n=Gr(t.parent,70107135)),n&&function t(n){e.forEach(n,function(n){var a=Kr(n)||n;if(r?Fr(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,a)),e.isInternalModuleImportEqualsDeclaration(n)){var o=n.moduleReference,s=Fg(o),c=Mr(n,s.escapedText,68009983,void 0,void 0,!1);c&&t(c.declarations)}})}(n.declarations),i}function ri(e,t){var r=ni(e,t);if(r>=0){for(var n=Pt.length,i=r;i=0;r--){if(ii(Pt[r],wt[r]))return-1;if(Pt[r]===e&&wt[r]===t)return r}return-1}function ii(t,r){switch(r){case 0:return!!Pr(t).type;case 2:return!!Pr(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint}return e.Debug.assertNever(r)}function ai(){return Pt.pop(),wt.pop(),Ft.pop()}function oi(t){return e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 235:case 236:case 251:case 250:case 249:case 248:return!1;default:return!0}}).parent}function si(e,t){var r=co(e,t);return r?Fi(r):void 0}function ci(e){return e&&0!=(1&e.flags)}function ui(e){var t=vn(e);return t&&Pr(t).type||gi(e,!1)}function li(t){return 147===t.kind&&!e.isStringOrNumericLiteral(t.expression)}function _i(t,r,n){if(32768&(t=u_(t,function(e){return!(24576&e.flags)})).flags)return De;if(262144&t.flags)return l_(t,function(e){return _i(e,r,n)});for(var i=e.createSymbolTable(),a=e.createUnderscoreEscapedMap(),o=0,s=r;o=2?Os(te):Ve;var s=Bs(e.map(i,function(t){return e.isOmittedExpression(t)?te:hi(t,r,n)}),e.findLastIndex(i,function(t){return!e.isOmittedExpression(t)&&!fd(t)},i.length-(o?2:1))+1,o);return r&&((s=Zo(s)).pattern=t),s}(t,r,n)}function bi(t,r){return function(t,r,n){return t?(n&&gl(r,t),2048&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==vn(r)&&(t=me),pl(t)):(t=e.isParameter(r)&&r.dotDotDotToken?Ve:te,n&&O&&(xi(r)||ml(r,t)),t)}(gi(t,!0),t,r)}function xi(t){var r=e.getRootDeclaration(t);return vm(149===r.kind?r.parent:r)}function Si(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return Oc(r)}function Di(t){var r,n=Pr(t);if(!n.type){if(4194304&t.flags)return n.type=(r=ea(bn(t))).typeParameters?$o(r,e.map(r.typeParameters,function(e){return te})):r;if(t===U||t===q)return n.type=te;var i=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(i))return n.type=te;if(e.isSourceFile(i)){var a=e.cast(i,e.isJsonSourceFile);return n.type=a.statements.length?rm(a.statements[0].expression):De}if(252===i.kind)return n.type=rm(i.expression);if(!ri(t,0))return ie;var o=function(t,r){if(e.isInJavaScriptFile(r)){if(e.isJSDocPropertyLikeTag(r)&&r.typeExpression)return Oc(r.typeExpression.type);if(e.isBinaryExpression(r)||e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent))return ki(r,t,e.getAssignedJavascriptInitializer(e.isBinaryExpression(r)?r.left:r))||yi(t);if(e.isParameter(r)||e.isPropertyDeclaration(r)||e.isPropertySignature(r)||e.isVariableDeclaration(r)||e.isBindingElement(r)){var n=e.isParameter(r)&&vo(r)||!e.isBindingElement(r)&&!e.isVariableDeclaration(r)&&!!r.questionToken,i=Si(r);return i&&mi(i,n)||ki(r,t,e.getDeclaredJavascriptInitializer(r))||bi(r,!0)}}}(t,i);if(!o)if(e.isJSDocPropertyLikeTag(i)||e.isPropertyAccessExpression(i)||e.isIdentifier(i)||e.isClassDeclaration(i)||e.isFunctionDeclaration(i)||e.isMethodDeclaration(i)&&!e.isObjectLiteralMethod(i)||e.isMethodSignature(i)){if(9136&t.flags)return Ai(t);o=Si(i)||te}else if(e.isPropertyAssignment(i))o=Si(i)||Yf(i);else if(e.isJsxAttribute(i))o=Si(i)||Cd(i);else if(e.isShorthandPropertyAssignment(i))o=Si(i)||Qf(i.name,0);else if(e.isObjectLiteralMethod(i))o=Si(i)||$f(i,0);else{if(!(e.isParameter(i)||e.isPropertyDeclaration(i)||e.isPropertySignature(i)||e.isVariableDeclaration(i)||e.isBindingElement(i)))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.showSyntaxKind(i)+" for "+e.Debug.showSymbol(t));o=bi(i,!0)}ai()||(o=Pi(t)),n.type=o}return n.type}function ki(t,r,n){if(n&&e.isInJavaScriptFile(n)&&e.isObjectLiteralExpression(n)){for(var i=e.createSymbolTable();e.isBinaryExpression(t)||e.isPropertyAccessExpression(t);){var a=vn(t);a&&e.hasEntries(a.exports)&&Nr(i,a.exports),t=e.isBinaryExpression(t)?t.parent:t.parent.parent}var o=vn(t);return o&&e.hasEntries(o.exports)&&Nr(i,o.exports),wn(r,i,e.emptyArray,e.emptyArray,bt,void 0)}}function Ti(t){if(t){if(156===t.kind){var r=e.getEffectiveReturnTypeNode(t);return r&&Oc(r)}var n=e.getEffectiveSetAccessorTypeAnnotationNode(t);return n&&Oc(n)}}function Ci(e){return Fo(Eo(e))}function Ei(t){var r=Pr(t);if(!r.type){var n=e.getDeclarationOfKind(t,156),i=e.getDeclarationOfKind(t,157);if(n&&e.isInJavaScriptFile(n)){var a=pi(n);if(a)return r.type=a}if(!ri(t,0))return ie;var o=void 0,s=Ti(n);if(s)o=s;else{var c=Ti(i);c?o=c:n&&n.body?o=Sf(n):(O&&(i?hr(i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Vn(t)):(e.Debug.assert(!!n,"there must existed getter as we are current checking either setter or getter in this function"),hr(n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Vn(t)))),o=te)}ai()||(o=te,O&&hr(e.getDeclarationOfKind(t,156),e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Vn(t))),r.type=o}return r.type}function Ni(e){var t=qi(Hi(e));return 2162688&t.flags?t:void 0}function Ai(t){var r=Pr(t);if(!r.type){var n=e.getDeclarationOfJSInitializer(t.valueDeclaration);if(n){var i=vn(n);i&&(e.hasEntries(i.exports)||e.hasEntries(i.members))&&(r=t=kr(t),e.hasEntries(i.exports)&&(t.exports=t.exports||e.createSymbolTable(),Nr(t.exports,i.exports)),e.hasEntries(i.members)&&(t.members=t.members||e.createSymbolTable(),Nr(t.members,i.members)))}if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))r.type=te;else if(202===t.valueDeclaration.kind||187===t.valueDeclaration.kind&&202===t.valueDeclaration.parent.kind)r.type=yi(t);else{var a=Nn(16,t);if(32&t.flags){var o=Ni(t);r.type=o?Ys([a,o]):a}else r.type=F&&16777216&t.flags?il(a):a}}return r.type}function Pi(t){return e.getEffectiveTypeAnnotationNode(t.valueDeclaration)?(hr(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Vn(t)),ie):(O&&hr(t.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Vn(t)),te)}function Fi(t){return 1&e.getCheckFlags(t)?function(t){var r=Pr(t);if(!r.type)if(100===k)hr(t.valueDeclaration,e.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),r.type=ie;else{if(!ri(t,0))return ie;k++;var n=Yc(Fi(r.target),r.mapper);k--,ai()||(n=Pi(t)),r.type=n}return r.type}(t):2048&e.getCheckFlags(t)?function(e){return kl(e.propertyType,e.mappedType)}(t):7&t.flags?Di(t):9136&t.flags?Ai(t):8&t.flags?function(e){var t=Pr(e);return t.type||(t.type=$i(e)),t.type}(t):98304&t.flags?Ei(t):2097152&t.flags?function(e){var t=Pr(e);if(!t.type){var r=$r(e);t.type=67216319&r.flags?Fi(r):ie}return t.type}(t):ie}function wi(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function Ii(t){return 4&e.getObjectFlags(t)?t.target:t}function Oi(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=Ii(n);return i===r||e.some(Vi(i),t)}return!!(524288&n.flags)&&e.some(n.types,t)}(t)}function Mi(t,r){for(var n=0,i=r;n0)return!0;if(2162688&e.flags){var t=$a(e);return!!t&&Wi(t)&&ji(t)}return!1}function zi(t){return e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration)}function Ki(t,r,n){var i=e.length(r),a=e.isInJavaScriptFile(n);return e.filter(lo(t,1),function(t){return(a||i>=To(t.typeParameters))&&i<=e.length(t.typeParameters)})}function Ui(t,r,n){var i=Ki(t,r,n),a=e.map(r,Oc);return e.sameMap(i,function(t){return e.some(t.typeParameters)?Lo(t,a,e.isInJavaScriptFile(n)):t})}function qi(t){if(!t.resolvedBaseConstructorType){var r=t.symbol.valueDeclaration,n=e.getEffectiveBaseTypeNode(r),i=zi(t);if(!i)return t.resolvedBaseConstructorType=oe;if(!ri(t,1))return ie;var a=rm(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),rm(n.expression)),655360&a.flags&&Ka(a),!ai())return hr(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Vn(t.symbol)),t.resolvedBaseConstructorType=ie;if(!(1&a.flags||a===ue||Ji(a)))return hr(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Hn(a)),t.resolvedBaseConstructorType=ie;t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function Vi(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[Ls(Ws(t.typeParameters||e.emptyArray))]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=io(qi(t));if(!(655361&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=zi(t),a=fs(i),o=r&&r.symbol?ea(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&function(e){var t=e.outerTypeParameters;if(t){var r=t.length-1,n=e.typeArguments;return t[r].symbol!==n[r].symbol}return!0}(o))n=ts(i,r.symbol,a);else if(1&r.flags)n=r;else{var s=Ui(r,i.typeArguments,i);if(!s.length)return hr(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=Oo(s[0])}n===ie?t.resolvedBaseTypes=e.emptyArray:Wi(n)?t===n||Oi(n,t)?(hr(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Hn(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray):(t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0),t.resolvedBaseTypes=[n]):(hr(i.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,Hn(n)),t.resolvedBaseTypes=e.emptyArray)}(t),64&t.symbol.flags&&function(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var r=0,n=t.symbol.declarations;r0)return;for(var i=1;i1){var _=c.thisParameter;if(e.forEach(u,function(e){return e.thisParameter})){var d=Ws(e.map(u,function(e){return e.thisParameter?Fi(e.thisParameter):te}),2);_=sl(c.thisParameter,d)}(l=Sa(c)).thisParameter=_,l.unionSignatures=u}(n||(n=[])).push(l)}}}return n||e.emptyArray}function Ca(e,t){for(var r=[],n=!1,i=0,a=e;i0&&(l=e.map(l,function(e){var t=Sa(e);return t.resolvedReturnType=function(e,t,r){for(var n=[],i=0;i=_&&o<=d){var p=d?Bo(l,Co(a,l.typeParameters,_,i)):Sa(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p)}}return s}(c)),t.constructSignatures=s}}}function wa(e){return e.typeParameter||(e.typeParameter=Zi(vn(e.declaration.typeParameter)))}function Ia(e){return e.constraintType||(e.constraintType=Yc(Ga(wa(e)),e.mapper||C)||ie)}function Oa(e){return e.templateType||(e.templateType=e.declaration.type?Yc(mi(Oc(e.declaration.type),!!(4&Ba(e))),e.mapper||C):ie)}function Ma(e){return e.declaration.typeParameter.constraint}function La(e){var t=Ma(e);return 177===t.kind&&128===t.operator}function Ra(e){if(!e.modifiersType)if(La(e))e.modifiersType=Yc(Oc(Ma(e).type),e.mapper||C);else{var t=Ia(dc(e.declaration)),r=t&&65536&t.flags?Ga(t):t;e.modifiersType=r&&1048576&r.flags?Yc(r.type,e.mapper||C):De}return e.modifiersType}function Ba(e){var t=e.declaration;return(t.readonlyToken?38===t.readonlyToken.kind?2:1:0)|(t.questionToken?38===t.questionToken.kind?8:4:0)}function ja(e){var t=Ba(e);return 8&t?-1:4&t?1:0}function Ja(e){var t=ja(e),r=Ra(e);return t||(za(r)?ja(r):0)}function za(t){return!!(32&e.getObjectFlags(t))&&ac(Ia(t))}function Ka(t){return t.members||(131072&t.flags?4&t.objectFlags?function(t){var r=ca(t.target),n=e.concatenate(r.typeParameters,[r.thisType]);ba(t,r,n,t.typeArguments&&t.typeArguments.length===n.length?t.typeArguments:e.concatenate(t.typeArguments,[t]))}(t):3&t.objectFlags?function(t){ba(t,ca(t),e.emptyArray,e.emptyArray)}(t):2048&t.objectFlags?function(t){for(var r=fo(t.source,0),n=Ba(t.mappedType),i=!(1&n),a=4&n?0:16777216,o=r&&Wo(kl(r.type,t.mappedType),i&&r.isReadonly),s=e.createSymbolTable(),c=0,u=Wa(t.source);c=2):16777216&t.flags?De:1048576&t.flags?Se:t}function ao(t,r){for(var n,i,a=262144&t.flags,o=a?24:0,s=a?0:16777216,c=4,u=0,l=0,_=t.types;l<_.length;l++)if((k=io(_[l]))!==ie){var d=(D=co(k,r))?e.getDeclarationModifierFlagsFromSymbol(D):0;if(!D||d&o){if(a){var p=!_a(r)&&(vd(r)&&fo(k,1)||fo(k,0));p?(u|=p.isReadonly?8:0,i=e.append(i,p.type)):u|=16}}else s&=D.flags,n=e.appendIfUnique(n,D),u|=(Pf(D)?8:0)|(24&d?0:64)|(16&d?128:0)|(8&d?256:0)|(32&d?512:0),Hd(D)||(c=2)}if(n){if(!(1!==n.length||16&u||i))return n[0];for(var f,m,g,y,h=[],v=!0,b=!1,x=0,S=n;x=0),n>=ff(r)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}function So(t){if(!e.isJSDocParameterTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&286===n.type.kind}function Do(e,t,r){return{kind:1,parameterName:e,parameterIndex:t,type:r}}function ko(e){return{kind:0,type:e}}function To(t){var r,n=0;if(t)for(var i=0;i=n&&o<=a){t||(t=[]);for(var s=o;su.arguments.length&&!m||_||vo(p)||(o=i.length)}if(!(156!==t.kind&&157!==t.kind||pa(t)||c&&s)){var g=156===t.kind?157:156,y=e.getDeclarationOfKind(vn(t),g);y&&(s=(r=Gy(y))&&r.symbol)}var h=155===t.kind?Hi(hn(t.parent.symbol)):void 0,v=h?h.localTypeParameters:yo(t),b=function(t,r,n){if(r)return Oc(t.parameters[0].type);if(n)return n;var i=e.getEffectiveReturnTypeNode(t);if(i)return Oc(i);if(156===t.kind&&!pa(t)){var a=e.getDeclarationOfKind(vn(t),157);return Ti(a)}var o=No(t);return o||(e.nodeIsMissing(t.body)?te:void 0)}(t,l,h),x=e.hasRestParameter(t)||e.isInJavaScriptFile(t)&&function(t,r){if(e.isJSDocSignature(t)||!Ao(t))return!1;var n=e.lastOrUndefined(t.parameters),i=n?e.getJSDocParameterTags(n):e.getJSDocTags(t).filter(e.isJSDocParameterTag),a=e.firstDefined(i,function(t){return t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0}),o=br(3,"args",8192);return o.type=a?Ls(Oc(a.type)):Ve,a&&r.pop(),r.push(o),!0}(t,i);n.resolvedSignature=xa(t,v,s,i,b,void 0,o,x,a)}return n.resolvedSignature}function No(t){var r=e.isInJavaScriptFile(t)?e.getJSDocTypeTag(t):void 0,n=r&&r.typeExpression&&lo(Oc(r.typeExpression),0);return n&&1===n.length?Oo(n[0]):void 0}function Ao(t){var r=Fr(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=function t(r){if(!r)return!1;switch(r.kind){case 71:return"arguments"===r.escapedText&&e.isExpressionNode(r);case 152:case 154:case 156:case 157:return 147===r.name.kind&&t(r.name);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function Po(t){if(!t)return e.emptyArray;for(var r=[],n=0;n0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}r.push(Eo(i))}}return r}function Fo(e){if(e.thisParameter)return Fi(e.thisParameter)}function wo(e){return void 0!==Io(e)}function Io(t){if(!t.resolvedTypePredicate){if(t.target){var r=Io(t.target);t.resolvedTypePredicate=r?(i=r,a=t.mapper,e.isIdentifierTypePredicate(i)?{kind:1,parameterName:i.parameterName,parameterIndex:i.parameterIndex,type:Yc(i.type,a)}:{kind:0,type:Yc(i.type,a)}):pt}else if(t.unionSignatures)t.resolvedTypePredicate=function(t){for(var r,n=[],i=0,a=t;i1&&(t+=":"+a),n+=a}return t}function Yo(e,t){for(var r=0,n=0,i=e;na.length)){var u=c&&293!==t.parent.kind;if(hr(t,s===a.length?u?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:u?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Hn(i,void 0,2),s,a.length),!c)return ie}return $o(i,e.concatenate(i.outerTypeParameters,Co(n,a,s,c)))}return ds(t,r)?i:ie}function rs(t,r){var n=ea(t),i=Pr(t),a=i.typeParameters,o=Qo(r),s=i.instantiations.get(o);return s||i.instantiations.set(o,s=Yc(n,jc(a,Co(r,a,To(a),e.isInJavaScriptFile(t.valueDeclaration))))),s}function ns(t){switch(t.kind){case 162:return t.typeName;case 209:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function is(e,t){return e&&nn(e,t)||Z}function as(e,t){var r=fs(e);if(t===Z)return ie;var n=ss(e,t,r);if(n)return n;var i=ta(t);if(i)return ds(e,t)?65536&i.flags?ls(i,e):i:ie;if(!(67216319&t.flags&&_s(e)))return ie;var a=os(e,t,r);return a||(is(ns(e),67901928),Fi(t))}function os(e,t,r){var n=Qp(t),i=Fi(t),a=i.symbol&&i.symbol!==t&&!Zp(i)&&ss(e,i.symbol,r);if(a||n)return a&&n?Ys([n,a]):a||n}function ss(t,r,n){if(96&r.flags){if(r.valueDeclaration&&e.isBinaryExpression(r.valueDeclaration.parent)){var i=os(t,r,n);if(i)return i}return ts(t,r,n)}return 524288&r.flags?function(t,r,n){var i=ea(r),a=Pr(r).typeParameters;if(a){var o=e.length(t.typeArguments),s=To(a);return oa.length?(hr(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Vn(r),s,a.length),ie):rs(r,n)}return ds(t,r)?i:ie}(t,r,n):16&r.flags&&_s(t)&&(r.members||e.getJSDocClassTag(r.valueDeclaration))?$p(r):void 0}function cs(e){return 168===e.kind&&1===e.elementTypes.length}function us(e,t,r){return cs(t)&&cs(r)?us(e,t.elementTypes[0],r.elementTypes[0]):pc(Oc(t))===e?Oc(r):void 0}function ls(t,r){for(var n;r&&!e.isStatement(r)&&289!==r.kind;){var i=r.parent;if(173===i.kind&&r===i.trueType){var a=us(t,i.checkType,i.extendsType);a&&(n=e.append(n,a))}r=i}return n?function(e,t){var r=Cn(8388608);return r.typeVariable=e,r.substitute=t,r}(t,Ys(e.append(n,t))):t}function _s(e){return!!(2097152&e.flags)&&162===e.kind}function ds(t,r){return!t.typeArguments||(hr(t,e.Diagnostics.Type_0_is_not_generic,r?Vn(r):t.typeName?e.declarationNameToString(t.typeName):"(anonymous)"),!1)}function ps(t){var r=Fr(t);if(!r.resolvedType){var n=void 0,i=void 0,a=67901928;_s(t)&&(i=function(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return ds(t),le;case"Number":return ds(t),_e;case"Boolean":return ds(t),fe;case"Void":return ds(t),ge;case"Undefined":return ds(t),oe;case"Null":return ds(t),ce;case"Function":case"function":return ds(t),Re;case"Array":case"array":return r&&r.length?void 0:Ve;case"Promise":case"promise":return r&&r.length?void 0:bf(te);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=Oc(r[0]),i=Wo(Oc(r[1]),!1);return wn(void 0,T,e.emptyArray,e.emptyArray,n===le?i:void 0,n===_e?i:void 0)}return te}return ds(t),te}}}(t),a|=67216319),i||(i=as(t,n=is(ns(t),a))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function fs(t){return e.map(t.typeArguments,Oc)}function ms(e){var t=Fr(e);return t.resolvedType||(t.resolvedType=Pc(pl(rm(e.exprName)))),t.resolvedType}function gs(t,r){function n(e){for(var t=0,r=e.declarations;t=r?16777216:0),""+c);l.type=u,o.push(l)}}}var _=[];for(c=r;c<=s;c++)_.push(Fc(c));var d=br(4,"length");d.type=n?_e:Ws(_),o.push(d);var p=Nn(12);return p.typeParameters=a,p.outerTypeParameters=void 0,p.localTypeParameters=a,p.instantiations=e.createMap(),p.instantiations.set(Qo(p.typeParameters),p),p.target=p,p.typeArguments=p.typeParameters,p.thisType=Cn(65536),p.thisType.isThisType=!0,p.thisType.constraint=p,p.declaredProperties=o,p.declaredCallSignatures=e.emptyArray,p.declaredConstructSignatures=e.emptyArray,p.declaredStringIndexInfo=void 0,p.declaredNumberIndexInfo=void 0,p.minLength=r,p.hasRestElement=n,p.associatedNames=i,p}(t,r,n,i)),o}function Bs(e,t,r,n){void 0===t&&(t=e.length),void 0===r&&(r=!1);var i=e.length;if(1===i&&r)return Ls(e[0]);var a=Rs(i,t,i>0&&r,n);return e.length?$o(a,e):a}function js(e){return e.id}function Js(t,r){return e.binarySearch(t,r,js,e.compareValues)>=0}function zs(t,r,n){var i=n.flags;if(262144&i)return Ks(t,r,n.types);if(!(32768&i||524288&i&&function(e){for(var t=0,r=0,n=e.types;rt[a-1].id?~a:e.binarySearch(t,n,js,e.compareValues);o<0&&(131072&i&&16&n.objectFlags&&n.symbol&&8208&n.symbol.flags&&Us(t,n)||t.splice(~o,0,n))}return r}function Ks(e,t,r){for(var n=0,i=r;n0;)qs(t[--r],t)&&e.orderedRemoveItemAt(t,r)}function Ws(t,r,n,i){if(void 0===r&&(r=1),0===t.length)return ye;if(1===t.length)return t[0];var a=[],o=Ks(a,0,t);if(3&o)return 1&o?268435456&o?ne:te:ae;switch(r){case 1:2240&o&&function(t,r){for(var n=t.length;n>0;){var i=t[--n];(64&i.flags&&4&r||128&i.flags&&8&r||2048&i.flags&&1024&r||192&i.flags&&33554432&i.flags&&Js(t,i.regularType))&&e.orderedRemoveItemAt(t,n)}}(a,o);break;case 2:Vs(a)}return 0===a.length?16384&o?134217728&o?ce:ue:8192&o?134217728&o?oe:se:ye:Gs(a,16749629&o?0:67108864,n,i)}function Hs(t,r){return e.isIdentifierTypePredicate(t)?e.isIdentifierTypePredicate(r)&&t.parameterIndex===r.parameterIndex:!e.isIdentifierTypePredicate(r)}function Gs(e,t,r,n){if(0===e.length)return ye;if(1===e.length)return e[0];var i=Qo(e),a=H.get(i);return a||(a=Cn(262144|Yo(e,24576)|t),H.set(i,a),a.types=e,a.aliasSymbol=r,a.aliasTypeArguments=n),a}function Xs(t,r,n){var i=n.flags;return 524288&i?Qs(t,r,n.types):(16&e.getObjectFlags(n)&&vu(n)?r|=536870912:(r|=-939524097&i,3&i?n===ne&&(r|=268435456):!F&&24576&i||e.contains(t,n)||131072&i&&16&n.objectFlags&&n.symbol&&8208&n.symbol.flags&&Us(t,n)||t.push(n)),r)}function Qs(e,t,r){for(var n=0,i=r;n0;){var i=t[--n];(4&i.flags&&64&r||8&i.flags&&128&r||1024&i.flags&&2048&r)&&e.orderedRemoveItemAt(t,n)}}(i,a),536870912&a&&!(131072&a)&&i.push(De),0===i.length)return ae;if(1===i.length)return i[0];if(262144&a){if(67108864&a&&function(t){for(var r=e.findIndex(t,function(e){return 0!=(67108864&e.flags)}),n=t[r],i=n.types,a=t.length-1,o=function(){var r=t[a];67108864&r.flags&&(i=e.filter(i,function(e){return Js(r.types,e)}),e.orderedRemoveItemAt(t,a)),a--};a>r;)o();return i!==n.types&&(t[r]=Gs(i,67108864&n.flags),!0)}(i))return Ys(i,r,n);var o=e.findIndex(i,function(e){return 0!=(262144&e.flags)}),s=i[o];return Ws(e.map(s.types,function(t){return Ys(e.replaceElement(i,o,t))}),1,r,n)}var c=Qo(i),u=G.get(c);return u||(u=Cn(524288|Yo(i,24576)),G.set(c,u),u.types=i,u.aliasSymbol=r,u.aliasTypeArguments=n),u}function $s(e,t){var r=Cn(1048576);return r.type=e,r.stringsOnly=t,r}function Zs(t,r){if(!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var n=ha(t).nameType;if(!n&&!e.isKnownSymbol(t)){var i=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);n=i&&e.isNumericLiteral(i)?Fc(+i.text):i&&147===i.kind&&e.isNumericLiteral(i.expression)?Fc(+i.expression.text):Fc(e.symbolName(t))}if(n&&n.flags&r)return n}return ye}function ec(t,r){return Ws(e.map(Wa(t),function(e){return Zs(e,r)}))}function tc(t,r){return void 0===r&&(r=L),262144&t.flags?Ys(e.map(t.types,function(e){return tc(e,r)})):524288&t.flags?Ws(e.map(t.types,function(e){return tc(e,r)})):Of(t,14745600)?function(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=$s(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=$s(e,!1))}(t,r):32&e.getObjectFlags(t)?Ia(t):t===ne?ne:1&t.flags?Se:r?fo(t,0)?le:ec(t,64):fo(t,0)?Ws([le,_e,ec(t,2048)]):function(e){var t=fo(e,1);return t!==vt?t:void 0}(t)?Ws([_e,ec(t,2112)]):ec(t,2240)}function rc(t){if(L)return t;var r=ut||(ut=hs("Extract",524288,e.Diagnostics.Cannot_find_global_type_0));return r?rs(r,[t,le]):le}function nc(t,r,n,i){var a=n&&188===n.kind?n:void 0,o=ua(r)?fa(r):a&&_p(a.argumentExpression,r,!1)?e.getPropertyNameForKnownSymbolName(e.idText(a.argumentExpression.name)):void 0;if(void 0!==o){var s=co(t,o);if(s){if(a){if(sp(s,a,99===a.expression.kind),e.isAssignmentTarget(a)&&(Ff(a,s)||wf(a)))return hr(a.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,Vn(s)),ie;i&&(Fr(n).resolvedSymbol=s)}return Fi(s)}if(Qu(t)){var c=Yu(t);if(c&&vd(o)&&+o>=0)return c}}if(!(24576&r.flags)&&Mf(r,3308)){if(ci(t))return t;var u=Mf(r,168)&&fo(t,1)||fo(t,0)||void 0;if(u)return n&&!Mf(r,12)?hr(_=188===n.kind?n.argumentExpression:n.indexType,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Hn(r)):a&&u.isReadonly&&(e.isAssignmentTarget(a)||e.isDeleteTarget(a))&&hr(a,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Hn(t)),u.type;if(32768&r.flags)return ye;if(a&&!Rf(t)){if(O&&!E.suppressImplicitAnyIndexErrors)if(mo(t,1))hr(a.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var l=void 0;void 0!==o&&(l=np(o,t))?void 0!==l&&hr(a.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,o,Hn(t),l):hr(a,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Hn(t))}return te}}if(n){var _=188===n.kind?n.argumentExpression:n.indexType;192&r.flags?hr(_,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,Hn(t)):12&r.flags?hr(_,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Hn(t),Hn(r)):hr(_,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Hn(r))}return ie}function ic(e){return Of(e,148963328)}function ac(e){return Of(e,15794176)}function oc(e){if(131072&e.flags&&!za(e)){var t=Ka(e);return 0===t.properties.length&&0===t.callSignatures.length&&0===t.constructSignatures.length&&!!t.stringIndexInfo&&!t.numberIndexInfo}return!1}function sc(t){return!!(32&e.getObjectFlags(t))&&Oa(t)===ye}function cc(t){return 2097152&t.flags?function(t){if(t.simplified)return t.simplified===Ae?t:t.simplified;t.simplified=Ae;var r=cc(t.objectType);if(524288&r.flags&&ic(r)){if(e.some(r.types,oc)){for(var n=[],i=[],a=0,o=r.types;ac)return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=bp(t,r=zo(r),void 0,s));var u=pf(t),l=mf(t),_=l?mf(r):void 0;if(l&&(!_||u!==c))return 0;var d=r.declaration?r.declaration.kind:0,p=!n&&w&&154!==d&&153!==d&&155!==d,f=-1,m=Fo(t);if(m&&m!==ge){var g=Fo(r);if(g){if(!(b=!p&&s(m,g,!1)||s(g,m,a)))return a&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;f&=b}}for(var y=Math.max(u,c),h=y-1,v=0;v0||iy(r))&&M(n)&&!function(t,r){for(var n=!!(4096&e.getObjectFlags(t)),i=0,a=Wa(t);i0&&N(Oo(_[0]),n,!1)||d.length>0&&N(Oo(d[0]),n,!1)?T(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Hn(r),Hn(n)):T(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Hn(r),Hn(n))}return 0}var f=0,m=u,g=h;if(h=!1,262144&r.flags?f=i===_r?w(r,n,o&&!(32764&r.flags)):function(e,t,r){for(var n=-1,i=0,a=e.types;i0&&e.every(r.properties,function(e){return!!(16777216&e.flags)})}return!!(524288&t.flags)&&e.every(t.types,M)}function L(t,r,n,a){if(i===dr)return function(e,t,r){var n=lo(e,r),i=lo(t,r);if(n.length!==i.length)return 0;for(var a=-1,o=0;o":n+="-"+o.id}return n}function Pu(e,t,r){if(r===dr&&e.id>t.id){var n=e;e=t,t=n}if(Nu(e)&&Nu(t)){var i=[];return Au(e,i)+","+Au(t,i)}return e.id+","+t.id}function Fu(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n=5&&131072&e.flags){var n=e.symbol;if(n)for(var i=0,a=0;a=5)return!0}}return!1}function Mu(t,r,n){if(t===r)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(r)))return 0;if(i){if(Dg(t)!==Dg(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return Pf(t)!==Pf(r)?0:n(Fi(t),Fi(r))}function Lu(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){var n=pf(e),i=pf(t),a=ff(e),o=ff(t),s=gf(e),c=gf(t);if(n===i&&a===o&&s===c)return!0;var u=s?1:0,l=c?1:0;return!!(r&&a<=o&&(u>l||u===l&&n>=i))}(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;t=Jo(t),r=Jo(r);var s=-1;if(!i){var c=Fo(t);if(c){var u=Fo(r);if(u){if(!(d=o(c,u)))return 0;s&=d}}}for(var l=pf(r),_=0;_e.target.minLength||!Yu(t)&&(!!Yu(e)||$u(t)<$u(e))}(e,t)||!!Tl(e,t,!1)&&!!Tl(t,e,!1)}function El(e){return e.candidates?Ws(e.candidates,2):e.contraCandidates?Ys(e.contraCandidates):De}function Nl(t,r,n,i){var a,o;void 0===i&&(i=0);var s,c=!1;function u(t,r){if(xl(r)){if(t===ne){var p=s;return s=t,u(r,r),void(s=p)}if(t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===r.aliasSymbol)for(var f=t.aliasTypeArguments,m=r.aliasTypeArguments,g=0;g1){var r=e.filter(t,Fl);if(r.length){var n=pl(Ws(r,2));return e.concatenate(e.filter(t,function(e){return!Fl(e)}),[n])}}return t}(t.candidates),s=(i=t.typeParameter,!!(a=Ga(i))&&Of(a,1081340)),c=!s&&t.topLevel&&(t.isFixed||!Sl(Oo(n),t.typeParameter)),u=s?e.sameMap(o,Pc):c?e.sameMap(o,Hu):o;return pl(1&r.flags||28&t.priority?Ws(u,2):function(t){if(!F)return Ru(t);var r=e.filter(t,function(e){return!(24576&e.flags)});return r.length?nl(Ru(r),24576&Zu(t)):Ws(t,2)}(u))}function Ol(t,r){var n=t.inferences[r],i=n.inferredType;if(!i){var a=t.signature;if(a)if(n.contraCandidates&&(n.candidates=e.append(n.candidates,wl(n)),n.contraCandidates=void 0),n.candidates)i=Il(n,t,a);else if(2&t.flags)i=he;else{var o=no(n.typeParameter);i=o?Yc(o,zc(function(e,t){return function(r){return e.indexOf(r)>=t?De:r}}(t.signature.typeParameters,r),t)):Ml(!!(4&t.flags))}else i=El(n);n.inferredType=i;var s=Ga(n.typeParameter);if(s){var c=Yc(s,t);t.compareTypes(i,va(c,i))||(n.inferredType=i=c)}}return i}function Ml(e){return e?te:De}function Ll(e){for(var t=[],r=0;r=2||0==(34&r.flags)||272===r.valueDeclaration.parent.kind)){for(var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),i=function(t,r){return!!e.findAncestor(t,function(t){return t===r?"quit":e.isFunctionLike(t)})}(t.parent,n),a=n,o=!1;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent}o&&(i&&(Fr(a).flags|=65536),223===n.kind&&e.getAncestor(r.valueDeclaration,236).parent===n&&function(t,r){for(var n=t;193===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(200===n.parent.kind||201===n.parent.kind){var a=n.parent;i=43===a.operator||44===a.operator}return!!i&&!!e.findAncestor(n,function(e){return e===r?"quit":e===r.statement})}(t,n)&&(Fr(r.valueDeclaration).flags|=2097152),Fr(r.valueDeclaration).flags|=262144),i&&(Fr(r.valueDeclaration).flags|=131072)}}(t,r);var o=F_(Fi(i),t),s=e.getAssignmentTargetKind(t);if(s){if(!(3&i.flags||e.isInJavaScriptFile(t)&&512&i.flags))return hr(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Vn(r)),ie;if(Pf(i))return hr(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,Vn(r)),ie}var c=2097152&i.flags;if(3&i.flags){if(1===s)return o}else{if(!c)return o;a=e.find(r.declarations,f)}if(!a)return o;for(var u=149===e.getRootDeclaration(a).kind,l=T_(a),_=T_(t),d=_!==l,p=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&$l(t.parent.parent);_!==l&&(194===_.kind||195===_.kind||e.isObjectLiteralOrClassExpressionMethod(_))&&(N_(i)||u&&!C_(i));)_=T_(_);var m=u||c||d||p||o!==re&&o!==We&&(!F||0!=(3&o.flags)||Bl(t)||255===t.parent.kind)||211===t.parent.kind||235===a.kind&&a.exclamationToken||4194304&a.flags,g=k_(t,o,m?u?function(e,t){return F&&149===t.kind&&t.initializer&&8192&el(e)&&!(8192&el(rm(t.initializer)))?Hl(e,131072):e}(o,a):o:o===re||o===We?oe:il(o),_,!m);if(o===re||o===We){if(g===re||g===We)return O&&(hr(e.getNameOfDeclaration(a),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Vn(r),Hn(g)),hr(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Vn(r),Hn(g))),$m(g)}else if(!m&&!(8192&el(o))&&8192&el(g))return hr(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,Vn(r)),o;return s?Wu(g):g}function O_(e,t){Fr(e).flags|=2,152===t.kind||155===t.kind?Fr(t.parent).flags|=4:Fr(t).flags|=4}function M_(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,M_)}function L_(e){var t=Fr(e);return void 0===t.hasSuperCall&&(t.superCall=M_(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function R_(e){return qi(ea(vn(e)))===ue}function B_(t,r,n){var i=r.parent;if(e.getEffectiveBaseTypeNode(i)&&!R_(i)){var a=L_(r);(!a||a.end>t.pos)&&hr(t,n)}}function j_(t,r){if(void 0===r&&(r=e.getThisContainer(t,!1)),e.isFunctionLike(r)&&(!W_(t)||e.getThisParameter(r))){if(194===r.kind&&202===r.parent.kind&&3===e.getSpecialPropertyAssignmentKind(r.parent)){var n=rm(r.parent.left.expression.expression).symbol;if(n&&n.members&&16&n.flags)return k_(t,$p(n))}var i=Ci(r)||q_(r);if(i)return k_(t,i)}if(e.isClassLike(r.parent)){var a=vn(r.parent);return k_(t,o=e.hasModifier(r,32)?Fi(a):ea(a).thisType)}var o;if(e.isInJavaScriptFile(t)&&(o=function(t){var r=e.getJSDocType(t);if(r&&287===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return Oc(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return Oc(i.typeExpression)}(r))&&o!==ie)return k_(t,o)}function J_(t,r){return!!e.findAncestor(t,function(e){return e===r?"quit":149===e.kind})}function z_(t){var r=189===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=!1;if(!r)for(;n&&195===n.kind;)n=e.getSuperContainer(n,!0),i=N<2;var a=0;if(!function(t){return!!t&&(r?155===t.kind:!(!e.isClassLike(t.parent)&&186!==t.parent.kind)&&(e.hasModifier(t,32)?154===t.kind||153===t.kind||156===t.kind||157===t.kind:154===t.kind||153===t.kind||156===t.kind||157===t.kind||152===t.kind||151===t.kind||155===t.kind))}(n)){var o=e.findAncestor(t,function(e){return e===n?"quit":147===e.kind});return o&&147===o.kind?hr(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?hr(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):n&&n.parent&&(e.isClassLike(n.parent)||186===n.parent.kind)?hr(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):hr(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),ie}if(r||155!==n.kind||B_(t,n,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),a=e.hasModifier(n,32)||r?512:256,Fr(t).flags|=a,154===n.kind&&e.hasModifier(n,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?Fr(n).flags|=4096:Fr(n).flags|=2048),i&&O_(t.parent,n),186===n.parent.kind)return N<2?(hr(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ie):te;var s=n.parent;if(!e.getEffectiveBaseTypeNode(s))return hr(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),ie;var c=ea(vn(s)),u=c&&Vi(c)[0];return u?155===n.kind&&J_(t,n)?(hr(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),ie):512===a?qi(c):va(u,c.thisType):ie}function K_(t){return 4&e.getObjectFlags(t)&&t.target===qe?t.typeArguments[0]:void 0}function U_(t){return l_(t,function(t){return 524288&t.flags?e.forEach(t.types,K_):K_(t)})}function q_(t){if(195!==t.kind){if(ru(t)){var r=pd(t);if(r){var n=r.thisParameter;if(n)return Fi(n)}}var i=e.isInJavaScriptFile(t);if(M||i){var a=function(e){return 154!==e.kind&&156!==e.kind&&157!==e.kind||186!==e.parent.kind?194===e.kind&&273===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=id(a),s=a,c=o;c;){var u=U_(c);if(u)return Yc(u,od(a));if(273!==s.parent.kind)break;c=id(s=s.parent.parent)}return o?al(o):Hf(a)}var l=t.parent;if(202===l.kind&&58===l.operatorToken.kind){var _=l.left;if(187===_.kind||188===_.kind){var d=_.expression;if(i&&e.isIdentifier(d)){var p=e.getSourceFileOfNode(l);if(p.commonJsModuleIndicator&&Rl(d)===p.symbol)return}return Hf(d)}}}}}function V_(t){var r=t.parent;if(ru(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=Ep(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return Dp(n,i,a,i.length,te,void 0);var o=Fr(n),s=o.resolvedSignature;o.resolvedSignature=ft;var c=a=0}(r)?Oo(r):void 0}function G_(e,t){var r=Ep(e).indexOf(t);return-1===r?void 0:X_(e,r)}function X_(e,t){return lf(Fr(e).resolvedSignature===gt?gt:Gp(e),t)}function Q_(t){var r=t.parent,n=r.left,i=r.operatorToken,a=r.right;switch(i.kind){case 58:return t===a&&function(t){var r=e.getSpecialPropertyAssignmentKind(t);switch(r){case 0:return!0;case 5:return!t.left.symbol;case 1:case 2:case 3:case 4:case 6:return!1;default:return e.Debug.assertNever(r)}}(r)?em(n):void 0;case 54:var o=ad(r);return o||t!==a||e.isDefaultedJavascriptInitializer(r)?o:em(n);case 53:case 26:return t===a?ad(r):void 0;default:return}}function Y_(e,t){return l_(e,function(e){if(917504&e.flags){var r=co(e,t);if(r)return Fi(r);if(Qu(e)){var n=Yu(e);if(n&&vd(t)&&+t>=0)return n}}},!0)}function $_(e,t){return l_(e,function(e){return po(e,t)},!0)}function Z_(e){var t=id(e.parent);if(t){if(!pa(e)){var r=Y_(t,vn(e).escapedName);if(r)return r}return yd(e.name)&&$_(t,1)||$_(t,0)}}function ed(e,t){return e&&(Y_(e,""+t)||$_(e,1)||cg(e,void 0,!1,!1,!1))}function td(t){var r=t.parent;return e.isJsxAttributeLike(r)?ad(t):e.isJsxElement(r)?function(e){var t=id(e.openingElement.tagName),r=Md(Id(e));return t&&!ci(t)&&r&&""!==r?Y_(t,r):void 0}(r):void 0}function rd(t){if(e.isJsxAttribute(t)){var r=id(t.parent);if(!r||ci(r))return;return Y_(r,t.name.escapedText)}return ad(t.parent)}function nd(e){switch(e.kind){case 9:case 8:case 13:case 101:case 86:case 95:case 71:return!0;case 187:case 193:return nd(e.expression)}return!1}function id(t){var r,n=ad(t);if(!((n=n&&l_(n,io))&&262144&n.flags&&e.isObjectLiteralExpression(t)))return n;e:for(var i=0,a=t.properties;i=2)return $o(s,c=Co([Hf(r.tagName),i],s.typeParameters,2,e.isInJavaScriptFile(r)));if(e.length(s.aliasTypeArguments)>=2){var c=Co([Hf(r.tagName),i],s.aliasTypeArguments,2,e.isInJavaScriptFile(r));return rs(s.aliasSymbol,c)}}return i}function cd(r,n,i,a){var o,s=Id(i),c=(o=s,Od(t.ElementAttributesPropertyNameContainer,o)),u=void 0===c?hf(r,De):""===c?Oo(r):function(e,t){var r=Oo(e);return ci(r)?r:si(r,t)}(r,c);if(!u)return a&&c&&e.length(i.attributes.properties)&&hr(i,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(c)),De;if(ci(u=sd(i,s,u)))return u;var l=u,_=Ad(t.IntrinsicClassAttributes,i);if(_!==ie){var d=Bi(_.symbol),p=Oo(r);l=Ea(d?$o(_,Co([p],d,To(d),n)):_,l)}var f=Ad(t.IntrinsicAttributes,i);return f!==ie&&(l=Ea(f,l)),l}function ud(t,r){var n=lo(t,0);if(1===n.length){var i=n[0];if(!function(t,r){for(var n=0;n0&&206===n[i-1].kind,m=i-(f?1:0);if(s&&m>0)return(p=Zo(Bs(o,m,f))).pattern=t,p;if(c&&function(t){return!!(262144&t.flags?e.forEach(t.types,zu):zu(t))}(c)){var g=c.pattern;if(!f&&g&&(183===g.kind||185===g.kind))for(var y=g.elements,h=i;h0&&(o=kc(o,P(),t.symbol,s,0),a=[],n=e.createSymbolTable(),f=!1,m=!1,d=0),!Dd(x=rm(h.expression)))return hr(h,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),ie;o=kc(o,x,t.symbol,s,0),g=y+1;continue}e.Debug.assert(156===h.kind||157===h.kind),zg(h)}!b||2240&b.flags?n.set(v.escapedName,v):cu(b,xe)&&(cu(b,_e)?m=!0:f=!0,i&&(p=!0)),a.push(v)}if(u)for(var C=0,A=Wa(c);C0&&(o=kc(o,P(),t.symbol,s,0)),o):P();function P(){var r=_?bt:f?xd(t.properties,g,a,0):void 0,o=m&&!_?xd(t.properties,g,a,1):void 0,c=wn(t.symbol,n,e.emptyArray,e.emptyArray,r,o),u=E.suppressExcessPropertyErrors?0:33554432;return c.flags|=268435456|u|939524096&d,c.objectFlags|=128,p&&(c.objectFlags|=512),i&&(c.pattern=t),24576&c.flags||(s|=939524096&c.flags),c}}function Dd(t){return!!(16777219&t.flags||29120&el(t)&&Dd(tl(t))||131072&t.flags&&!za(t)||786432&t.flags&&e.every(t.types,Dd))}function kd(t){return!e.stringContains(t,"-")}function Td(t){return 71===t.kind&&e.isIntrinsicJsxName(t.escapedText)}function Cd(e,t){return e.initializer?Qf(e.initializer,t):pe}function Ed(e,t){for(var r=[],n=0,i=e.children;n0&&(o=kc(o,b(),i.symbol,0,4096),a=e.createSymbolTable()),ci(f=Hf(d.expression,r))&&(s=!0),Dd(f)?o=kc(o,f,t.symbol,0,4096):n=n?Ys([n,f]):f}s||a.size>0&&(o=kc(o,b(),i.symbol,0,4096));var g=258===t.parent.kind?t.parent:void 0;if(g&&g.openingElement===t&&g.children.length>0){var y=Ed(g,r);if(!s&&u&&""!==u){c&&hr(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(u));var h=br(33554436,u);h.type=1===y.length?y[0]:Ls(Ws(y));var v=e.createSymbolTable();v.set(u,h),o=kc(o,wn(i.symbol,v,e.emptyArray,e.emptyArray,void 0,void 0),i.symbol,0,4096)}}return s?te:n&&o!==De?Ys([n,o]):n||(o===De?b():o);function b(){var t=wn(i.symbol,a,e.emptyArray,e.emptyArray,void 0,void 0);return t.flags|=268435456,t.objectFlags|=4224,t}}(t.parent,r)}function Ad(e,t){var r=Id(t),n=r&&fn(r),i=n&&Ir(n,e,67901928);return i?ea(i):ie}function Pd(r){var n=Fr(r);if(!n.resolvedSymbol){var i=Ad(t.IntrinsicElements,r);if(i!==ie){if(!e.isIdentifier(r.tagName))return e.Debug.fail();var a=co(i,r.tagName.escapedText);return a?(n.jsxFlags|=1,n.resolvedSymbol=a):mo(i,0)?(n.jsxFlags|=2,n.resolvedSymbol=i.symbol):(hr(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(r.tagName),"JSX."+t.IntrinsicElements),n.resolvedSymbol=Z)}return O&&hr(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(t.IntrinsicElements)),n.resolvedSymbol=Z}return n.resolvedSymbol}function Fd(t,r){for(var n,i=[],a=!!t.typeArguments,o=0,s=r;o1&&hr(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function Md(e){return Od(t.ElementChildrenAttributeNameContainer,e)}function Ld(e){if(e){if(524288&e.flags){for(var t=[],r=0,n=e.types;r=0)return s>=ff(n)&&(gf(n)||spf(n))return!1;var l=a>=ff(n);return o||l}function hp(t,r){var n=e.length(t.typeParameters),i=To(t.typeParameters);return!r||r.length>=i&&r.length<=n}function vp(e){if(131072&e.flags){var t=Ka(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function bp(t,r,n,i){var a=hl(t.typeParameters,t,1,i);return yl(n?Vc(r,n):r,t,function(e,t){Nl(a.inferences,e,t)}),n||Nl(a.inferences,Oo(r),Oo(t),8),Lo(t,Ll(a),e.isInJavaScriptFile(r.declaration))}function xp(e,t,r){var n=lf(e,0),i=Wf(t.attributes,n,C);Nl(r.inferences,i,n);var a=lf(e,0),o=Wf(t.attributes,a,r);return Nl(r.inferences,o,a),Ll(r)}function Sp(e,t,r,n,i){for(var a=0,o=i.inferences;a=i-1){var s=wp(t,r,i-1);if(mp(s))return 213===s.kind?Ls(s.type):Wf(s.expression,a,o)}for(var c=mo(a,1)||te,u=Of(c,1081340),l=[],_=-1,d=n;d=0?Fi(n.parameters[_]):te,p=0;p0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=i.length;if(a&&mp(i[a-1])&&gp(i)===a-1){var o=i[a-1],s=Hf(o.expression);if(Qu(s)){var c=s.typeArguments||e.emptyArray,u=s.target.hasRestElement?c.length-1:-1,l=e.map(c,function(t,r){var n=e.createNode(213,o.pos,o.end);return n.parent=o,n.type=t,n.isSpread=r===u,n});return e.concatenate(i.slice(0,a-1),l)}}return i}}function Np(t,r,n){if(150!==t.kind)return r.length;switch(t.parent.kind){case 238:case 207:return 1;case 152:return 2;case 154:case 156:case 157:return 0===N?2:n.parameters.length>=3?3:2;case 149:return 3;default:return e.Debug.fail()}}function Ap(t){return 238===t.kind?Fi(vn(t)):149===t.kind&&155===(t=t.parent).kind?Fi(vn(t)):152===t.kind||154===t.kind||156===t.kind||157===t.kind?function(t){var r=vn(t.parent);return e.hasModifier(t,32)?Fi(r):ea(r)}(t):(e.Debug.fail("Unsupported decorator target."),ie)}function Pp(t,r){return 0===r?Ap(t.parent):1===r?function(t){if(238===t.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),ie;if(149===t.kind&&155===(t=t.parent).kind)return te;if(152===t.kind||154===t.kind||156===t.kind||157===t.kind){var r=t.name;switch(r.kind){case 71:return Fc(e.idText(r));case 8:case 9:return Fc(r.text);case 147:var n=bd(r);return Mf(n,3072)?n:le;default:return e.Debug.fail("Unsupported property name."),ie}}return e.Debug.fail("Unsupported decorator target."),ie}(t.parent):2===r?function(t){return 238===t.kind?(e.Debug.fail("Class decorators should not have a third synthetic argument."),ie):149===t.kind?_e:152===t.kind?(e.Debug.fail("Property decorators should not have a third synthetic argument."),ie):154===t.kind||156===t.kind||157===t.kind?ws(ty(t)):(e.Debug.fail("Unsupported decorator target."),ie)}(t.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),ie)}function Fp(e,t){return 150===e.kind?Pp(e,t):0===t&&191===e.kind?st||(st=vs("TemplateStringsArray",0,!0))||De:void 0}function wp(e,t,r){if(150!==e.kind&&(0!==r||191!==e.kind))return t[r]}function Ip(e,t,r){return 150===e.kind?e.expression:0===t&&191===e.kind?e.template:r}function Op(t,r,n){for(var i=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY,c=n.length,u=0,l=r;uo&&(o=d),c-1;if(c<=a&&g&&c--,f||g){var y=f&&g?e.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:f?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:e.Diagnostics.Expected_0_arguments_but_got_1_or_more;return e.createDiagnosticForNode(t,y,m,c)}return i1&&(m=x(l,cr,b)),m||(m=x(l,ur,b)),m)return m;if(d){if(u)return d;Tp(t,g,d,ur,void 0,!0)}else p?Ht.add(Op(t,[p],g)):f?kp(f,t.typeArguments,!0,i):a&&e.every(r,function(t){return e.length(t.typeParameters)!==a.length})?Ht.add(Mp(t,r,a)):g?Ht.add(Op(t,r,g)):i&&Ht.add(e.createDiagnosticForNode(t,i));return o||!g?fp(t):function(t,r,n,i){return e.Debug.assert(r.length>0),i||1===r.length||r.some(function(e){return!!e.typeParameters})?function(t,r,n){var i=function(e,t){for(var r=-1,n=-1,i=0;i=t)return i;o>n&&(n=o,r=i)}return r}(r,void 0===J?n.length:J),a=r[i],o=a.typeParameters;if(!o)return a;for(var s=(dp(t)&&t.typeArguments||e.emptyArray).map(function(e){return ty(e)||te});s.length>o.length;)s.pop();for(;s.length0?_[_.indexOf(!0)]=!1:_=void 0}}}}}function Rp(e){var t=e.parameters.length;return e.hasRestParameter?t-1:t}function Bp(e,t){return jp(e,Ws(t,2))}function jp(t,r){return sl(e.first(t),r)}function Jp(e,t,r,n){return ci(e)||ci(t)&&65536&e.flags||!r&&!n&&!(294912&t.flags)&&cu(e,Re)}function zp(t,r){if(t.arguments&&N<1){var n=gp(t.arguments);n>=0&&hr(t.arguments[n],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var i=Qd(t.expression);if(i===he)return yt;if((i=io(i))===ie)return fp(t);if(ci(i))return t.typeArguments&&hr(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),pp(t);var a=lo(i,1);if(a.length){if(!function(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedModifierFlags(n,24);if(!i)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=ea(n.parent.symbol);if(!Yg(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=ty(s);if(function t(r,n){var i=Vi(n);if(!e.length(i))return!1;var a=i[0];if(524288&a.flags){for(var o=a.types,s=e.countWhere(o,ji),c=0,u=0,l=a.types;u0)return Lp(t,i,n)}function Hp(t,r){switch(t.kind){case 189:return function(t,r){if(97===t.expression.kind){var n=z_(t.expression);if(ci(n))return e.forEach(t.arguments,tm),ft;if(n!==ie){var i=e.getEffectiveBaseTypeNode(e.getContainingClass(t));if(i)return Lp(t,Ui(n,i.typeArguments,i),r)}return pp(t)}var a=Qd(t.expression,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined);if(a===he)return yt;var o=io(a);if(o===ie)return fp(t);var s=lo(o,0),c=lo(o,1);return Jp(a,o,s.length,c.length)?(a!==ie&&t.typeArguments&&hr(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),pp(t)):s.length?Lp(t,s,r):(c.length?hr(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Hn(a)):Kp(t,o,0),fp(t))}(t,r);case 190:return zp(t,r);case 191:return function(e,t){var r=rm(e.tag),n=io(r);if(n===ie)return fp(e);var i=lo(n,0),a=lo(n,1);return Jp(r,n,i.length,a.length)?pp(e):i.length?Lp(e,i,t):(Kp(e,n,0),fp(e))}(t,r);case 150:return Vp(t,r);case 260:case 259:return c_(rm(t.tagName),function(n){var i=Wp(t,n,r);if(i&&i!==mt)return i;var a=Rd(t,n);return r&&e.length(a)&&r.push.apply(r,a),e.length(a)?a[0]:mt})||mt}throw e.Debug.assertNever(t,"Branch in 'resolveSignature' should be unreachable.")}function Gp(e,t){var r=Fr(e),n=r.resolvedSignature;if(n&&n!==gt&&!t)return n;r.resolvedSignature=gt;var i=Hp(e,t);return r.resolvedSignature=kt===Tt?i:n,i}function Xp(t){if(t&&e.isInJavaScriptFile(t)){if(e.getJSDocClassTag(t))return!0;var r=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?vn(t):e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionExpression(t.initializer)?vn(t.initializer):void 0;return!!r&&void 0!==r.members}return!1}function Qp(t){var r=t.valueDeclaration,n=r&&r.parent&&(e.isFunctionDeclaration(r)&&vn(r)||e.isBinaryExpression(r.parent)&&vn(r.parent.left)||e.isVariableDeclaration(r.parent)&&vn(r.parent));if(n){var i=e.forEach(n.declarations,Yp);if(i)return rm(i)}}function Yp(t){if(!t.parent)return!1;for(var r=t.parent;r&&187===r.kind;)r=r.parent;if(r&&e.isBinaryExpression(r)&&e.isPrototypeAccess(r.left)&&58===r.operatorToken.kind){var n=e.getInitializerOfBinaryExpression(r);return e.isObjectLiteralExpression(n)&&n}}function $p(t){var r=Pr(t);return r.inferredClassType||(r.inferredClassType=wn(t,ya(t)||T,e.emptyArray,e.emptyArray,void 0,void 0)),r.inferredClassType}function Zp(t){return t.symbol&&16&e.getObjectFlags(t)&&Pr(t.symbol).inferredClassType===t}function ef(t){Jy(t,t.typeArguments)||zy(t.arguments);var r=Gp(t);if(97===t.expression.kind)return ge;if(190===t.kind){var n=r.declaration;if(n&&155!==n.kind&&159!==n.kind&&164!==n.kind&&!e.isJSDocConstructSignature(n)){var i=rm(t.expression).symbol;i||71!==t.expression.kind||(i=Rl(t.expression));var a=i&&function(e){var t;Xp(e.valueDeclaration)&&(t=$p(e));var r=Qp(e),n=Fi(e);return n.symbol&&!Zp(n)&&Xp(n.symbol.valueDeclaration)&&(t=$p(n.symbol)),r&&t?Ys([t,r]):r||t}(i);return a?r.target?Yc(a,r.mapper):a:(O&&hr(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),te)}}if(e.isInJavaScriptFile(t)&&af(t))return function(e){var t=an(e,e);if(t){var r=un(t);if(r)return Fi(r)}return te}(t.arguments[0]);var o,s=Oo(r);if(3072&s.flags&&tf(t))return wc(e.walkUpParenthesizedExpressions(t.parent));if(e.isInJavaScriptFile(t)){var c=e.getDeclarationOfJSInitializer(t);if(c){var u=vn(c);u&&e.hasEntries(u.exports)&&(o=wn(u,u.exports,e.emptyArray,e.emptyArray,bt,void 0))}}return o?Ys([s,o]):s}function tf(t){if(!e.isCallExpression(t))return!1;var r=t.expression;if(e.isPropertyAccessExpression(r)&&"for"===r.name.escapedText&&(r=r.expression),!e.isIdentifier(r)||"Symbol"!==r.escapedText)return!1;var n=bs(!1);return!!n&&n===Mr(r,"Symbol",67216319,void 0,void 0,!1)}function rf(t){if(zy(t.arguments)||function(t){if(A===e.ModuleKind.ES2015)return rh(t,e.Diagnostics.Dynamic_import_is_only_supported_when_module_flag_is_commonjs_or_esNext);if(t.typeArguments)return rh(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var r=t.arguments;1!==r.length?rh(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):e.isSpreadElement(r[0])&&rh(r[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element)}(t),0===t.arguments.length)return xf(t,te);for(var r=t.arguments[0],n=Hf(r),i=1;i0)return e.parameters.length-1+r}}return e.minArgumentCount}function mf(e){if(e.hasRestParameter){var t=Fi(e.parameters[e.parameters.length-1]);if(15794176&t.flags)return t}}function gf(e){if(e.hasRestParameter){var t=Fi(e.parameters[e.parameters.length-1]);return!Qu(t)||t.target.hasRestElement}return!1}function yf(e){return hf(e,ye)}function hf(e,t){return e.parameters.length>0?lf(e,0):t}function vf(t,r){var n=Pr(t);if(!n.type){n.type=r;var i=t.valueDeclaration;71!==i.name.kind&&(n.type===De&&(n.type=vi(i.name)),function t(r){for(var n=0,i=r.elements;n=2||E.noEmit||!e.hasRestParameter(t)||4194304&t.flags||e.nodeIsMissing(t.body)||e.forEach(t.parameters,function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===K.escapedName&&hr(t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}(t);var n=e.getEffectiveReturnTypeNode(t);if(O&&!n)switch(t.kind){case 159:hr(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 158:hr(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(n){var i=e.getFunctionFlags(t);if(1==(5&i)){var a=Oc(n);if(a===ge)hr(n,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=dg(a,0!=(2&i))||te;du(2&i?Is(s):Ms(s),a,n)}}else 2==(3&i)&&Em(t,n)}160!==t.kind&&287!==t.kind&&Mm(t)}}function sm(t){for(var r=e.createMap(),n=0,i=t.members;n0&&r.declarations[0]!==t)return}var n=qo(vn(t));if(n)for(var i=!1,a=!1,o=0,s=n.declarations;o=0)return void(r&&hr(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Wt.push(t.id);var l=Cm(u,r,n);if(Wt.pop(),!l)return;return i.awaitedTypeOfType=l}var _=si(t,"then");if(!(_&&lo(_,0).length>0))return i.awaitedTypeOfType=t;if(r){if(!n)return e.Debug.fail();hr(r,n)}}function Em(t,r){var n=Oc(r);if(N>=2){if(n===ie)return ie;var i=Ss(!0);if(i!==Ce&&!wi(n,i))return hr(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),ie}else{if(function(t){Am(t&&e.getEntityNameFromTypeNode(t))}(r),n===ie)return ie;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return hr(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Hn(n)),ie;var o=nn(a,67216319,!0),s=o?Fi(o):ie;if(s===ie)return 71===a.kind&&"Promise"===a.escapedText&&Ii(n)===Ss(!1)?hr(r,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):hr(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),ie;var c=et||(et=vs("PromiseConstructorLike",0,!0))||De;if(c===De)return hr(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),ie;if(!du(s,c,r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return ie;var u=a&&Fg(a),l=Ir(t.locals,u.escapedText,67216319);if(l)return hr(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a)),ie}return Tm(n,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function Nm(t){var r=Oo(Gp(t));if(!(1&r.flags)){var n,i,a=qp(t);switch(t.parent.kind){case 238:n=Ws([Fi(vn(t.parent)),ge]);break;case 149:n=ge,i=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 152:n=ge,i=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 154:case 156:case 157:n=Ws([ws(ty(t.parent)),ge]);break;default:return e.Debug.fail()}du(r,n,t,a,function(){return i})}}function Am(e){if(e){var t=Fg(e),r=2097152|(71===e.kind?67901928:1920),n=Mr(t,t.escapedText,r,void 0,void 0,!0);n&&2097152&n.flags&&kn(n)&&!my($r(n))&&en(n)}}function Pm(t){var r=function t(r){if(r)switch(r.kind){case 172:case 171:for(var n=void 0,i=0,a=r.types;i=e.ModuleKind.ES2015||E.noEmit)&&(Wm(t,r,"require")||Wm(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=oi(t);277===n.kind&&e.isExternalOrCommonJsModule(n)&&hr(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function Qm(t,r){if(!(N>=4||E.noEmit)&&Wm(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=oi(t);277===n.kind&&e.isExternalOrCommonJsModule(n)&&1024&n.flags&&hr(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}function Ym(t){if(149===e.getRootDeclaration(t).kind){var r=e.getContainingFunction(t);!function n(i){if(!e.isTypeNode(i)&&!e.isDeclarationName(i)){if(187===i.kind)return n(i.expression);if(71!==i.kind)return e.forEachChild(i,n);var a=Mr(i,i.escapedText,69313471,void 0,void 0,!1);if(a&&a!==Z&&a.valueDeclaration)if(a.valueDeclaration!==t){var o=e.getEnclosingBlockScopeContainer(a.valueDeclaration);if(o===r){if(149===a.valueDeclaration.kind||184===a.valueDeclaration.kind){if(a.valueDeclaration.pos=1&&tg(t.declarations[0])}function og(e,t){return sg(Qd(e),e,!0,void 0!==t)}function sg(e,t,r,n){return ci(e)?e:cg(e,t,r,n,!0)||te}function cg(t,r,n,i,a){if(t!==ye){var o=N>=2,s=!o&&E.downlevelIteration;if(o||s||i){var c=ug(t,o?r:void 0,i,!0,a);if(c||o)return c}var u=t,l=!1,_=!1;if(n){if(262144&u.flags){var d=t.types,p=e.filter(d,function(e){return!(68&e.flags)});p!==d&&(u=Ws(p,2))}else 68&u.flags&&(u=ye);if((_=u!==t)&&(N<1&&r&&(hr(r,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),l=!0),32768&u.flags))return le}if(!ju(u)){if(r&&!l){var f=!!ug(t,void 0,i,!0,a);hr(r,!n||_?s?e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:f?e.Diagnostics.Type_0_is_not_an_array_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:e.Diagnostics.Type_0_is_not_an_array_type:s?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:f?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,Hn(u))}return _?le:void 0}var m=mo(u,1);return _&&m?68&m.flags?le:Ws([m,le],2):m}lg(r,t,i)}function ug(t,r,n,i,a){if(!ci(t))return l_(t,function(t){var o=t;if(n){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(wi(t,ks(!1))||wi(t,Cs(!1)))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}if(i){if(o.iteratedTypeOfIterable)return o.iteratedTypeOfIterable;if(wi(t,Es(!1))||wi(t,As(!1)))return o.iteratedTypeOfIterable=t.typeArguments[0]}var s=n&&si(t,e.getPropertyNameForKnownSymbolName("asyncIterator")),c=s||(i?si(t,e.getPropertyNameForKnownSymbolName("iterator")):void 0);if(!ci(c)){var u=c?lo(c,0):void 0;if(e.some(u)){var l=_g(Ws(e.map(u,Oo),2),r,!!s);return a&&r&&l&&du(t,s?function(e){return Fs(ks(!0),[e])}(l):Os(l),r),s?o.iteratedTypeOfAsyncIterable=l:o.iteratedTypeOfIterable=l}r&&(lg(r,t,n),r=void 0)}})}function lg(t,r,n){hr(t,n?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,Hn(r))}function _g(t,r,n){if(!ci(t)){var i=t;if(n?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator)return n?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator;if(wi(t,(n?Ts:Ns)(!1)))return n?i.iteratedTypeOfAsyncIterator=t.typeArguments[0]:i.iteratedTypeOfIterator=t.typeArguments[0];var a=si(t,"next");if(!ci(a)){var o=a?lo(a,0):e.emptyArray;if(0!==o.length){var s=Ws(e.map(o,Oo),2);if(!(ci(s)||n&&ci(s=Dm(s,r,e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property)))){var c=s&&si(s,"value");if(c)return n?i.iteratedTypeOfAsyncIterator=c:i.iteratedTypeOfIterator=c;r&&hr(r,n?e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property)}}else r&&hr(r,n?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method)}}}function dg(e,t){if(!ci(e))return ug(e,void 0,t,!t,!1)||_g(e,void 0,t)}function pg(t){nh(t)||function(t){for(var r=t;r;){if(e.isFunctionLike(r))return rh(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 231:if(t.label&&r.label.escapedText===t.label.escapedText){var n=226===t.kind&&!e.isIterationStatement(r.statement,!0);return!!n&&rh(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 230:if(227===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(r,!1)&&!t.label)return!1}r=r.parent}if(t.label){var i=227===t.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return rh(t,i)}var i=227===t.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;rh(t,i)}(t)}function fg(t){return 156===t.kind&&void 0!==e.getEffectiveSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,157))}function mg(t,r){var n=2==(3&e.getFunctionFlags(t))?km(r):r;return!!n&&Of(n,4099)}function gg(t){nh(t)||void 0===t.expression&&function(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!Zy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);Ht.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,n,i,a))}}(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&rm(t.expression)}function yg(t){var r,n=Vo(t.symbol,1),i=Vo(t.symbol,0),a=mo(t,0),o=mo(t,1);if(a||o){e.forEach(Ua(t),function(e){var r=Fi(e);p(e,r,t,i,a,0),p(e,r,t,n,o,1)});var s=t.symbol.valueDeclaration;if(1&e.getObjectFlags(t)&&e.isClassLike(s))for(var c=0,u=s.members;cn)return!1;for(var l=0;l1)return eh(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(108===o.token),n)return eh(o,e.Diagnostics.implements_clause_already_seen);n=!0}Ky(o)}})(t)||By(t.typeParameters,r)}(t),wm(t),t.name&&(hg(t.name,e.Diagnostics.Class_name_cannot_be_0),Xm(t,t.name),Qm(t,t.name),4194304&t.flags||(r=t.name,1===N&&"Object"===r.escapedText&&A!==e.ModuleKind.ES2015&&A!==e.ModuleKind.ESNext&&hr(r,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[A]))),vg(e.getEffectiveTypeParameterDeclarations(t)),Sm(t);var n=vn(t),i=ea(n),a=va(i),s=Fi(n);bg(n),function(t){var r;!function(e){e[e.Getter=1]="Getter",e[e.Setter=2]="Setter",e[e.Method=4]="Method",e[e.Property=3]="Property"}(r||(r={}));for(var n=e.createUnderscoreEscapedMap(),i=e.createUnderscoreEscapedMap(),a=0,o=t.members;a>s;case 47:return a>>>s;case 45:return a<1&&!n&&_(t,!!E.preserveConstEnums||!!E.isolatedModules)){var s=function(t){for(var r=0,n=t.declarations;r1)for(var o=0,s=n;o=0)r.parameters[n.parameterIndex].dotDotDotToken?hr(i,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):du(n.type,ty(r.parameters[n.parameterIndex]),t.type,void 0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)});else if(i){for(var a=!1,o=0,s=r.parameters;o0),n.length>1&&hr(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=Im(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=Im(a.expression);o&&i.escapedText!==o.escapedText&&hr(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else hr(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 301:case 295:return function(t){t.typeExpression||hr(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&hg(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),jg(t.typeExpression)}(t);case 299:return function(e){jg(e.typeExpression)}(t);case 296:return function(t){if(jg(t.typeExpression),!e.getParameterSymbolFromJSDoc(t)){var r=e.getHostSignatureFromJSDoc(t);if(r){var n=e.getJSDocTags(r).filter(e.isJSDocParameterTag).indexOf(t);if(n>-1&&n0?s.statements[0].pos:s.end)-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0}if(o&&269===s.kind){var l=rm(s.expression),_=Vu(l),d=i;_&&a||(l=_?Wu(l):l,d=Wu(i)),Kf(d,l)||gu(l,d,s.expression,void 0)}e.forEach(s.statements,jg)}),t.caseBlock.locals&&Mm(t.caseBlock)}(t);case 231:return function(t){nh(t)||e.findAncestor(t.parent,function(r){return e.isFunctionLike(r)?"quit":231===r.kind&&r.label.escapedText===t.label.escapedText&&(rh(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(t.label)),!0)}),jg(t.statement)}(t);case 232:return gg(t);case 233:return function(t){nh(t),Vm(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration)if(r.variableDeclaration.type)eh(r.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(r.variableDeclaration.initializer)eh(r.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var n=r.block.locals;n&&e.forEachKey(r.locals,function(t){var r=n.get(t);r&&0!=(2&r.flags)&&rh(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)})}Vm(r.block)}t.finallyBlock&&Vm(t.finallyBlock)}(t);case 235:return tg(t);case 184:return rg(t);case 238:return function(t){t.name||e.hasModifier(t,512)||eh(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),xg(t),e.forEach(t.members,jg),Mm(t)}(t);case 239:return Cg(t);case 240:return function(t){My(t),hg(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),vg(t.typeParameters),jg(t.type),Mm(t)}(t);case 241:return function(t){if(o){My(t),hg(t.name,e.Diagnostics.Enum_name_cannot_be_0),Xm(t,t.name),Qm(t,t.name),Sm(t),Eg(t);var r=e.isEnumConst(t);E.isolatedModules&&r&&4194304&t.flags&&hr(t.name,e.Diagnostics.Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided);var n=vn(t);if(t===e.getDeclarationOfKind(n,t.kind)){n.declarations.length>1&&e.forEach(n.declarations,function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==r&&hr(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)});var i=!1;e.forEach(n.declarations,function(t){if(241!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(i?hr(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)})}}}(t);case 242:return Ag(t);case 247:return function(t){if(!Mg(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(!My(t)&&e.hasModifiers(t)&&eh(t,e.Diagnostics.An_import_declaration_cannot_have_modifiers),wg(t))){var r=t.importClause;r&&(r.name&&Og(r),r.namedBindings&&(249===r.namedBindings.kind?Og(r.namedBindings):an(t,t.moduleSpecifier)&&e.forEach(r.namedBindings.elements,Og)))}}(t);case 246:return function(t){if(!Mg(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(My(t),e.isInternalModuleImportEqualsDeclaration(t)||wg(t)))if(Og(t),e.hasModifier(t,1)&&Zr(t),257!==t.moduleReference.kind){var r=$r(vn(t));if(r!==Z){if(67216319&r.flags){var n=Fg(t.moduleReference);1920&nn(n,67217343).flags||hr(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}67901928&r.flags&&hg(t.name,e.Diagnostics.Import_name_cannot_be_0)}}else A>=e.ModuleKind.ES2015&&!(4194304&t.flags)&&rh(t,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(t);case 253:return function(t){if(!Mg(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!My(t)&&e.hasModifiers(t)&&eh(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),!t.moduleSpecifier||wg(t)))if(t.exportClause){e.forEach(t.exportClause.elements,Lg);var r=243===t.parent.kind&&e.isAmbientModule(t.parent.parent),n=!r&&243===t.parent.kind&&!t.moduleSpecifier&&4194304&t.flags;277===t.parent.kind||r||n||hr(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=an(t,t.moduleSpecifier);i&&_n(i)&&hr(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Vn(i)),A!==e.ModuleKind.System&&A!==e.ModuleKind.ES2015&&A!==e.ModuleKind.ESNext&&Iy(t,32768)}}(t);case 252:return function(t){if(!Mg(t,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var r=277===t.parent.kind?t.parent:t.parent.parent;242!==r.kind||e.isAmbientModule(r)?(!My(t)&&e.hasModifiers(t)&&eh(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),71===t.expression.kind?(Zr(t),E.declaration&&ti(t.expression,!0)):Hf(t.expression),Rg(r),4194304&t.flags&&!e.isEntityNameExpression(t.expression)&&rh(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||4194304&t.flags||(A>=e.ModuleKind.ES2015?rh(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):A===e.ModuleKind.System&&rh(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))):t.isExportEquals?hr(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):hr(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 218:case 234:return void nh(t);case 256:return function(e){wm(e)}(t)}}}function Jg(t){e.isInJavaScriptFile(t)||rh(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function zg(e){if(lt){var t=""+u(e);lt.set(t,e)}}function Kg(){lt.forEach(function(t){switch(t.kind){case 194:case 195:case 154:case 153:!function(t){e.Debug.assert(154!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=Nf(t,r);if(0==(1&r)&&Cf(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||Oo(Eo(t)),216===t.body.kind)jg(t.body);else{var i=rm(t.body);n&&pu(2==(3&r)?Tm(i,t.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,n,t.body,t.body)}}(t);break;case 156:case 157:_m(t);break;case 207:!function(t){e.forEach(t.members,jg),Mm(t)}(t);break;case 259:!function(e){qd(e,0)}(t);break;case 258:!function(e){qd(e.openingElement,0),Td(e.closingElement.tagName)?Pd(e.closingElement):rm(e.closingElement.tagName)}(t)}})}function Ug(t){e.performance.mark("beforeCheck"),function(t){var r=Fr(t);if(!(1&r.flags)){if(E.skipLibCheck&&t.isDeclarationFile||E.skipDefaultLibCheck&&t.hasNoDefaultLib)return;!function(t){4194304&t.flags&&function(t){for(var r=0,n=t.statements;r0?e.concatenate(o,i):i}return e.forEach(a.getSourceFiles(),Ug),Ht.getDiagnostics()}(t)}finally{m=void 0}}function Hg(){if(!o)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function Gg(e){switch(e.kind){case 148:case 238:case 239:case 240:case 241:return!0;default:return!1}}function Xg(e){for(;146===e.parent.kind;)e=e.parent;return 162===e.parent.kind}function Qg(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function Yg(e,t){return!!Qg(e,function(e){return e===t})}function $g(e){return void 0!==function(e){for(;146===e.parent.kind;)e=e.parent;return 246===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:252===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function Zg(t){if(e.isDeclarationName(t))return vn(t.parent);if(e.isInJavaScriptFile(t)&&187===t.parent.kind&&t.parent===t.parent.parent.left){var r=function(t){switch(e.getSpecialPropertyAssignmentKind(t.parent.parent)){case 1:case 3:return vn(t.parent);case 4:case 2:case 5:return vn(t.parent.parent)}}(t);if(r)return r}if(252===t.parent.kind&&e.isEntityNameExpression(t)){var n=nn(t,70107135,!0);if(n&&n!==Z)return n}else if(!e.isPropertyAccessExpression(t)&&$g(t)){var i=e.getAncestor(t,246);return e.Debug.assert(void 0!==i),tn(t,!0)}if(!e.isPropertyAccessExpression(t)){var a=function(t){for(var r=t.parent;e.isQualifiedName(r);)t=r,r=r.parent;if(r&&181===r.kind&&r.qualifier===t)return r}(t);if(a){Oc(a);var o=Fr(t).resolvedSymbol;return o===Z?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;if(function(e){for(;187===e.parent.kind;)e=e.parent;return 209===e.parent.kind}(t)){var s=0;209===t.parent.kind?(s=67901928,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=67216319)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?nn(t,s):void 0;if(c)return c}if(296===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(148===t.parent.kind&&300===t.parent.parent.kind){e.Debug.assert(!e.isInJavaScriptFile(t));var u=e.getTypeParameterFromJsDoc(t.parent);return u&&u.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;if(71===t.kind){if(e.isJSXTagName(t)&&Td(t)){var l=Pd(t.parent);return l===Z?void 0:l}return nn(t,67216319,!1,!0)}if(187===t.kind||146===t.kind){var _=Fr(t);return _.resolvedSymbol?_.resolvedSymbol:(187===t.kind?$d(t):Zd(t),_.resolvedSymbol)}}else{if(Xg(t))return nn(t,s=162===t.parent.kind?67901928:1920,!1,!0);if(265===t.parent.kind)return zd(t.parent)}return 161===t.parent.kind?nn(t,1):void 0}function ey(t){if(277===t.kind)return e.isExternalModule(t)?hn(t.symbol):void 0;var r=t.parent,n=r.parent;if(!(8388608&t.flags)){if(d(t))return vn(r);if(e.isLiteralComputedPropertyDeclarationName(t))return vn(r.parent);if(71===t.kind){if($g(t))return Zg(t);if(184===r.kind&&182===n.kind&&t===r.propertyName){var i=ty(n),a=i&&co(i,t.escapedText);if(a)return a}}switch(t.kind){case 71:case 187:case 146:return Zg(t);case 99:var o=e.getThisContainer(t,!1);if(e.isFunctionLike(o)){var s=Eo(o);if(s.thisParameter)return s.thisParameter}if(e.isInExpressionContext(t))return rm(t).symbol;case 176:return Ic(t).symbol;case 97:return rm(t).symbol;case 123:var c=t.parent;return c&&155===c.kind?c.parent.symbol:void 0;case 9:case 13:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(247===t.parent.kind||253===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJavaScriptFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent)||e.isLiteralTypeNode(t.parent)&&e.isLiteralImportTypeNode(t.parent.parent)&&t.parent.parent.argument===t.parent)return an(t,t);case 8:var u=e.isElementAccessExpression(r)?r.argumentExpression===t?em(r.expression):void 0:e.isLiteralTypeNode(r)&&e.isIndexedAccessTypeNode(n)?Oc(n.objectType):void 0;return u&&co(u,e.escapeLeadingUnderscores(t.text));case 79:case 89:case 36:return vn(t.parent);case 181:return e.isLiteralImportTypeNode(t)?ey(t.argument.literal):void 0;default:return}}}function ty(t){if(8388608&t.flags)return ie;if(e.isPartOfTypeNode(t)){var r=Oc(t);return r&&e.isExpressionWithTypeArgumentsInClassImplementsClause(t)&&(r=va(r,(n=ty(e.getContainingClass(t))).thisType)),r}if(e.isExpressionNode(t))return ry(t);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t)){var n,i=Vi(n=ea(vn(e.getContainingClass(t))))[0];return i&&va(i,n.thisType)}var a,o;if(Gg(t))return ea(o=vn(t));if(71===(a=t).kind&&Gg(a.parent)&&a.parent.name===a)return(o=ey(t))?ea(o):ie;if(e.isDeclaration(t))return Fi(o=vn(t));if(d(t))return(o=ey(t))?Fi(o):ie;if(e.isBindingPattern(t))return gi(t.parent,!0)||ie;if($g(t)&&(o=ey(t))){var s=ea(o);return s!==ie?s:Fi(o)}return ie}function ry(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Pc(em(t))}function ny(t){t=io(t);var r=e.createSymbolTable(Wa(t));return iy(t)&&e.forEach(Wa(Re),function(e){r.has(e.escapedName)||r.set(e.escapedName,e)}),Pn(r)}function iy(t){return e.typeHasCallOrConstructSignatures(t,V)}function ay(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r)return!(187===r.parent.kind&&r.parent.name===r)&&Ny(r)===K}return!1}function oy(t){var r=an(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=_n(r),i=Pr(r=un(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(67216319&r.flags):e.forEachEntry(mn(r),function(e){return(e=Yr(e))&&!!(67216319&e.flags)})),i.exportsSomeValue}function sy(t,r){var n=e.getParseTreeNode(t,e.isIdentifier);if(n){var i=Ny(n,function(t){return e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name}(n));if(i){if(1048576&i.flags){var a=hn(i.exportSymbol);if(!r&&944&a.flags&&!(3&a.flags))return;i=a}var o=bn(i);if(o){if(512&o.flags&&277===o.valueDeclaration.kind){var s=o.valueDeclaration;return s!==e.getSourceFileOfNode(n)?void 0:s}return e.findAncestor(n.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&vn(t)===o})}}}}function cy(t){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=Ny(r);if(Qr(n,67216319))return Ur(n)}}function uy(t){if(418&t.flags){var r=Pr(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)){var i=Fr(t.valueDeclaration);if(Mr(n.parent,t.escapedName,67216319,void 0,void 0,!1))r.isDeclarationWithCollidingName=!0;else if(131072&i.flags){var a=262144&i.flags,o=e.isIterationStatement(n,!1),s=216===n.kind&&e.isIterationStatement(n.parent,!1);r.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(n)||a&&(o||s))}else r.isDeclarationWithCollidingName=!1}}return r.isDeclarationWithCollidingName}return!1}function ly(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=Ny(r);if(n&&uy(n))return n.valueDeclaration}}}function _y(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=vn(r);if(n)return uy(n)}return!1}function dy(t){switch(t.kind){case 246:case 248:case 249:case 251:case 255:return fy(vn(t)||Z);case 253:var r=t.exportClause;return!!r&&e.some(r.elements,dy);case 252:return!t.expression||71!==t.expression.kind||fy(vn(t)||Z)}return!1}function py(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===r||277!==r.parent.kind||!e.isInternalModuleImportEqualsDeclaration(r))&&fy(vn(r))&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference)}function fy(e){var t=$r(e);return t===Z||!!(67216319&t.flags)&&(E.preserveConstEnums||!my(t))}function my(e){return Bf(e)||!!e.constEnumOnlyModule}function gy(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=Po(vn(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function yy(t){return!(!F||xo(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasModifier(t,92))}function hy(t){return F&&xo(t)&&!t.initializer&&e.hasModifier(t,92)}function vy(e){return Fr(e).flags||0}function by(e){return Eg(e.parent),Fr(e).enumMemberValue}function xy(e){switch(e.kind){case 276:case 187:case 188:return!0}return!1}function Sy(t){if(276===t.kind)return by(t);var r=Fr(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return by(n)}}function Dy(t,r){var n=e.getParseTreeNode(t,e.isEntityName);if(!n)return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var i=nn(n,67216319,!0,!1,r),a=nn(n,67901928,!0,!1,r);if(i&&i===a){var o=Ds(!1);if(o&&i===o)return e.TypeReferenceSerializationKind.Promise;var s=Fi(i);if(s&&Ji(s))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!a)return e.TypeReferenceSerializationKind.Unknown;var c=ea(a);return c===ie?e.TypeReferenceSerializationKind.Unknown:3&c.flags?e.TypeReferenceSerializationKind.ObjectType:Mf(c,61440)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Mf(c,272)?e.TypeReferenceSerializationKind.BooleanType:Mf(c,168)?e.TypeReferenceSerializationKind.NumberLikeType:Mf(c,68)?e.TypeReferenceSerializationKind.StringLikeType:Qu(c)?e.TypeReferenceSerializationKind.ArrayLikeType:Mf(c,3072)?e.TypeReferenceSerializationKind.ESSymbolType:function(e){return!!(131072&e.flags)&&lo(e,0).length>0}(c)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Bu(c)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function ky(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.createToken(119);var s=vn(o),c=!s||133120&s.flags?ie:Hu(Fi(s));return 2048&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=il(c)),B.typeToTypeNode(c,r,1024|n,i)}function Ty(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.createToken(119);var o=Eo(a);return B.typeToTypeNode(Oo(o),r,1024|n,i)}function Cy(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.createToken(119);var o=pl(ry(a));return B.typeToTypeNode(o,r,1024|n,i)}function Ey(t){return xt.has(e.escapeLeadingUnderscores(t))}function Ny(t,r){var n=Fr(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=oi(a))}return Mr(i,t.escapedText,70362047,void 0,void 0,!0)}function Ay(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=Ny(r);if(n)return Dn(n).valueDeclaration}}}function Py(t){if(e.isVariableDeclaration(t)&&e.isVarConst(t)){var r=Fi(vn(t));return!!(192&r.flags&&33554432&r.flags)}return!1}function Fy(t){return function(t){return e.createLiteral(t.value)}(Fi(vn(t)))}function wy(t){var r=242===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=on(r,r,void 0);if(n)return e.getDeclarationOfKind(n,277)}function Iy(t,r){if((g&r)!==r&&E.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,E)&&!(4194304&t.flags)){var i=(c=t,y||(y=sn(n,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,c)||Z),y);if(i!==Z)for(var a=r&~g,o=1;o<=65536;o<<=1)if(a&o){var s=Oy(o);Ir(i.exports,e.escapeLeadingUnderscores(s),67216319)||hr(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s)}g|=r}}var c}function Oy(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__makeTemplateObject";default:return e.Debug.fail("Unrecognized helper")}}function My(t){return function(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 154!==t.kind||e.nodeIsPresent(t.body)?eh(t,e.Diagnostics.Decorators_are_not_valid_here):eh(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(156===t.kind||157===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return eh(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(t)||function(t){var r,n,i,a,o=function(t){return!!t.modifiers&&(function(t){switch(t.kind){case 156:case 157:case 155:case 152:case 151:case 154:case 153:case 160:case 242:case 247:case 246:case 253:case 252:case 194:case 195:case 149:return!1;default:if(243===t.parent.kind||277===t.parent.kind)return!1;switch(t.kind){case 237:return Ly(t,120);case 238:return Ly(t,117);case 239:case 217:case 240:return!0;case 241:return Ly(t,76);default:return e.Debug.fail(),!1}}}(t)?eh(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(t);if(void 0!==o)return o;for(var s=0,c=0,u=t.modifiers;c1||e.modifiers[0].kind!==t}function Ry(t,r){return void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&th(t[0],t.end-",".length,",".length,r)}function By(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return th(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function jy(t){var r=e.getSourceFileOfNode(t);return My(t)||By(t.typeParameters,r)||function(t){for(var r=!1,n=t.length,i=0;i".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,r)}function zy(t){return function(t){if(t)for(var r=0,n=t;r1){var i=224===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return eh(r.declarations[1],i)}var a=n[0];if(a.initializer){var i=224===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return rh(a.name,i)}if(a.type)return rh(a,i=224===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function Gy(t){if(t.parameters.length===(156===t.kind?1:2))return e.getThisParameter(t)}function Xy(t,r){if(function(t){return e.isDynamicName(t)&&!la(t)}(t))return rh(t,r)}function Qy(t){if(jy(t))return!0;if(154===t.kind){if(186===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||120!==e.first(t.modifiers).kind))return eh(t,e.Diagnostics.Modifiers_cannot_appear_here);if(Wy(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===t.body)return th(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(Vy(t))return!0}if(e.isClassLike(t.parent)){if(4194304&t.flags)return Xy(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(154===t.kind&&!t.body)return Xy(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(239===t.parent.kind)return Xy(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(166===t.parent.kind)return Xy(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Yy(e){return 9===e.kind||8===e.kind||200===e.kind&&38===e.operator&&8===e.operand.kind}function $y(t){var r=t.declarations;return!!Ry(t.declarations)||!t.declarations.length&&th(t,r.pos,r.end-r.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function Zy(e){return e.parseDiagnostics.length>0}function eh(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!Zy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Ht.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function th(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!Zy(c)&&(Ht.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function rh(t,r,n,i,a){return!Zy(e.getSourceFileOfNode(t))&&(Ht.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function nh(t){if(4194304&t.flags){if(e.isAccessor(t.parent))return Fr(t).hasReportedStatementInAmbientContext=!0;if(!Fr(t).hasReportedStatementInAmbientContext&&e.isFunctionLike(t.parent))return Fr(t).hasReportedStatementInAmbientContext=eh(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(216===t.parent.kind||243===t.parent.kind||277===t.parent.kind){var r=Fr(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=eh(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function ih(t){if(32&t.numericLiteralFlags){var r=void 0;if(N>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,180)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,276)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&38===t.parent.operator,i=(n?"-":"")+"0o"+t.text;return rh(n?t.parent:t,r,i)}}return!1}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"}(t||(t={}))}(s||(s={})),function(e){function t(t){var r=e.createNode(t,-1,-1);return r.flags|=8,r}function r(t,r){return t!==r&&(Kt(t,r),Lt(t,r),e.aggregateTransformFlags(t)),t}function n(t,r){if(t&&t!==e.emptyArray){if(e.isNodeArray(t))return t}else t=[];var n=t;return n.pos=-1,n.end=-1,n.hasTrailingComma=r,n}function i(e){if(void 0===e)return e;var r=t(e.kind);for(var n in r.flags|=e.flags,Kt(r,e),e)!r.hasOwnProperty(n)&&e.hasOwnProperty(n)&&(r[n]=e[n]);return r}function a(t,r){if("number"==typeof t)return o(t+"");if("boolean"==typeof t)return t?p():f();if(e.isString(t)){var n=s(t);return r&&(n.singleQuote=!0),n}return i=t,(a=s(e.getTextOfIdentifierOrLiteral(i))).textSourceNode=i,a;var i,a}function o(e){var r=t(8);return r.text=e,r.numericLiteralFlags=0,r}function s(e){var r=t(9);return r.text=e,r}function c(r,i){var a=t(71);return a.escapedText=e.escapeLeadingUnderscores(r),a.originalKeywordKind=r?e.stringToToken(r):0,a.autoGenerateFlags=0,a.autoGenerateId=0,i&&(a.typeArguments=n(i)),a}e.updateNode=r,e.createNodeArray=n,e.getSynthesizedClone=i,e.createLiteral=a,e.createNumericLiteral=o,e.createStringLiteral=s,e.createRegularExpressionLiteral=function(e){var r=t(12);return r.text=e,r},e.createIdentifier=c,e.updateIdentifier=function(t,n){return t.typeArguments!==n?r(c(e.idText(t),n),t):t};var u,l=0;function _(e){var t=c(e);return t.autoGenerateFlags=19,t.autoGenerateId=l,l++,t}function d(e){return t(e)}function p(){return t(101)}function f(){return t(86)}function m(e){return d(e)}function g(e,r){var n=t(146);return n.left=e,n.right=It(r),n}function y(r){var n=t(147);return n.expression=function(t){return e.isCommaSequence(t)?oe(t):t}(r),n}function h(e,r,n){var i=t(148);return i.name=It(e),i.constraint=r,i.default=n,i}function v(r,n,i,a,o,s,c){var u=t(149);return u.decorators=Ot(r),u.modifiers=Ot(n),u.dotDotDotToken=i,u.name=It(a),u.questionToken=o,u.type=s,u.initializer=c?e.parenthesizeExpressionForList(c):void 0,u}function b(r){var n=t(150);return n.expression=e.parenthesizeForAccess(r),n}function x(e,r,n,i,a){var o=t(151);return o.modifiers=Ot(e),o.name=It(r),o.questionToken=n,o.type=i,o.initializer=a,o}function S(e,r,n,i,a,o){var s=t(152);return s.decorators=Ot(e),s.modifiers=Ot(r),s.name=It(n),s.questionToken=void 0!==i&&55===i.kind?i:void 0,s.exclamationToken=void 0!==i&&51===i.kind?i:void 0,s.type=a,s.initializer=o,s}function D(e,t,r,n,i){var a=A(153,e,t,r);return a.name=It(n),a.questionToken=i,a}function k(e,r,i,a,o,s,c,u,l){var _=t(154);return _.decorators=Ot(e),_.modifiers=Ot(r),_.asteriskToken=i,_.name=It(a),_.questionToken=o,_.typeParameters=Ot(s),_.parameters=n(c),_.type=u,_.body=l,_}function T(e,r,i,a){var o=t(155);return o.decorators=Ot(e),o.modifiers=Ot(r),o.typeParameters=void 0,o.parameters=n(i),o.type=void 0,o.body=a,o}function C(e,r,i,a,o,s){var c=t(156);return c.decorators=Ot(e),c.modifiers=Ot(r),c.name=It(i),c.typeParameters=void 0,c.parameters=n(a),c.type=o,c.body=s,c}function E(e,r,i,a,o){var s=t(157);return s.decorators=Ot(e),s.modifiers=Ot(r),s.name=It(i),s.typeParameters=void 0,s.parameters=n(a),s.body=o,s}function N(e,r,i,a){var o=t(160);return o.decorators=Ot(e),o.modifiers=Ot(r),o.parameters=n(i),o.type=a,o}function A(e,r,n,i,a){var o=t(e);return o.typeParameters=Ot(r),o.parameters=Ot(n),o.type=i,o.typeArguments=Ot(a),o}function P(e,t,n,i){return e.typeParameters!==t||e.parameters!==n||e.type!==i?r(A(e.kind,t,n,i),e):e}function F(e,r){var n=t(161);return n.parameterName=It(e),n.type=r,n}function w(r,n){var i=t(162);return i.typeName=It(r),i.typeArguments=n&&e.parenthesizeTypeParameters(n),i}function I(e){var r=t(165);return r.exprName=e,r}function O(e){var r=t(166);return r.members=n(e),r}function M(r){var n=t(167);return n.elementType=e.parenthesizeArrayTypeMember(r),n}function L(e){var r=t(168);return r.elementTypes=n(e),r}function R(r){var n=t(169);return n.type=e.parenthesizeArrayTypeMember(r),n}function B(e){var r=t(170);return r.type=e,r}function j(r,n){var i=t(r);return i.types=e.parenthesizeElementTypeMembers(n),i}function J(e,t){return e.types!==t?r(j(e.kind,t),e):e}function z(r,n,i,a){var o=t(173);return o.checkType=e.parenthesizeConditionalTypeMember(r),o.extendsType=e.parenthesizeConditionalTypeMember(n),o.trueType=i,o.falseType=a,o}function K(e){var r=t(174);return r.typeParameter=e,r}function U(e,r,n,i){var a=t(181);return a.argument=e,a.qualifier=r,a.typeArguments=Ot(n),a.isTypeOf=i,a}function q(e){var r=t(175);return r.type=e,r}function V(r,n){var i=t(177);return i.operator="number"==typeof r?r:128,i.type=e.parenthesizeElementTypeMember("number"==typeof r?n:r),i}function W(r,n){var i=t(178);return i.objectType=e.parenthesizeElementTypeMember(r),i.indexType=n,i}function H(e,r,n,i){var a=t(179);return a.readonlyToken=e,a.typeParameter=r,a.questionToken=n,a.type=i,a}function G(e){var r=t(180);return r.literal=e,r}function X(e){var r=t(182);return r.elements=n(e),r}function Q(e){var r=t(183);return r.elements=n(e),r}function Y(e,r,n,i){var a=t(184);return a.dotDotDotToken=e,a.propertyName=It(r),a.name=It(n),a.initializer=i,a}function $(r,i){var a=t(185);return a.elements=e.parenthesizeListElements(n(r)),i&&(a.multiLine=!0),a}function Z(e,r){var i=t(186);return i.properties=n(e),r&&(i.multiLine=!0),i}function ee(r,n){var i=t(187);return i.expression=e.parenthesizeForAccess(r),i.name=It(n),Rt(i,131072),i}function te(r,n){var i,o=t(188);return o.expression=e.parenthesizeForAccess(r),o.argumentExpression=(i=n,e.isString(i)||"number"==typeof i?a(i):i),o}function re(r,i,a){var o=t(189);return o.expression=e.parenthesizeForAccess(r),o.typeArguments=Ot(i),o.arguments=e.parenthesizeListElements(n(a)),o}function ne(r,i,a){var o=t(190);return o.expression=e.parenthesizeForNew(r),o.typeArguments=Ot(i),o.arguments=a?e.parenthesizeListElements(n(a)):void 0,o}function ie(r,n,i){var a=t(191);return a.tag=e.parenthesizeForAccess(r),i?(a.typeArguments=Ot(n),a.template=i):(a.typeArguments=void 0,a.template=n),a}function ae(r,n){var i=t(192);return i.type=r,i.expression=e.parenthesizePrefixOperand(n),i}function oe(e){var r=t(193);return r.expression=e,r}function se(e,r,i,a,o,s,c){var u=t(194);return u.modifiers=Ot(e),u.asteriskToken=r,u.name=It(i),u.typeParameters=Ot(a),u.parameters=n(o),u.type=s,u.body=c,u}function ce(r,i,a,o,s,c){var u=t(195);return u.modifiers=Ot(r),u.typeParameters=Ot(i),u.parameters=n(a),u.type=o,u.equalsGreaterThanToken=s||d(36),u.body=e.parenthesizeConciseBody(c),u}function ue(r){var n=t(196);return n.expression=e.parenthesizePrefixOperand(r),n}function le(r){var n=t(197);return n.expression=e.parenthesizePrefixOperand(r),n}function _e(r){var n=t(198);return n.expression=e.parenthesizePrefixOperand(r),n}function de(r){var n=t(199);return n.expression=e.parenthesizePrefixOperand(r),n}function pe(r,n){var i=t(200);return i.operator=r,i.operand=e.parenthesizePrefixOperand(n),i}function fe(r,n){var i=t(201);return i.operand=e.parenthesizePostfixOperand(r),i.operator=n,i}function me(r,n,i){var a,o=t(202),s="number"==typeof(a=n)?d(a):a,c=s.kind;return o.left=e.parenthesizeBinaryOperand(c,r,!0,void 0),o.operatorToken=s,o.right=e.parenthesizeBinaryOperand(c,i,!1,o.left),o}function ge(r,n,i,a,o){var s=t(203);return s.condition=e.parenthesizeForConditionalHead(r),s.questionToken=o?n:d(55),s.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(o?i:n),s.colonToken=o?a:d(56),s.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(o||i),s}function ye(e,r){var i=t(204);return i.head=e,i.templateSpans=n(r),i}function he(e,r){var n=t(205);return n.asteriskToken=e&&39===e.kind?e:void 0,n.expression=e&&39!==e.kind?e:r,n}function ve(r){var n=t(206);return n.expression=e.parenthesizeExpressionForList(r),n}function be(e,r,i,a,o){var s=t(207);return s.decorators=void 0,s.modifiers=Ot(e),s.name=It(r),s.typeParameters=Ot(i),s.heritageClauses=Ot(a),s.members=n(o),s}function xe(r,n){var i=t(209);return i.expression=e.parenthesizeForAccess(n),i.typeArguments=Ot(r),i}function Se(e,r){var n=t(210);return n.expression=e,n.type=r,n}function De(r){var n=t(211);return n.expression=e.parenthesizeForAccess(r),n}function ke(e,r){var n=t(212);return n.keywordToken=e,n.name=r,n}function Te(e,r){var n=t(214);return n.expression=e,n.literal=r,n}function Ce(e,r){var i=t(216);return i.statements=n(e),r&&(i.multiLine=r),i}function Ee(r,n){var i=t(217);return i.decorators=void 0,i.modifiers=Ot(r),i.declarationList=e.isArray(n)?Ve(n):n,i}function Ne(r){var n=t(219);return n.expression=e.parenthesizeExpressionForExpressionStatement(r),n}function Ae(e,t){return e.expression!==t?r(Ne(t),e):e}function Pe(e,r,n){var i=t(220);return i.expression=e,i.thenStatement=r,i.elseStatement=n,i}function Fe(e,r){var n=t(221);return n.statement=e,n.expression=r,n}function we(e,r){var n=t(222);return n.expression=e,n.statement=r,n}function Ie(e,r,n,i){var a=t(223);return a.initializer=e,a.condition=r,a.incrementor=n,a.statement=i,a}function Oe(e,r,n){var i=t(224);return i.initializer=e,i.expression=r,i.statement=n,i}function Me(e,r,n,i){var a=t(225);return a.awaitModifier=e,a.initializer=r,a.expression=n,a.statement=i,a}function Le(e){var r=t(226);return r.label=It(e),r}function Re(e){var r=t(227);return r.label=It(e),r}function Be(e){var r=t(228);return r.expression=e,r}function je(e,r){var n=t(229);return n.expression=e,n.statement=r,n}function Je(r,n){var i=t(230);return i.expression=e.parenthesizeExpressionForList(r),i.caseBlock=n,i}function ze(e,r){var n=t(231);return n.label=It(e),n.statement=r,n}function Ke(e){var r=t(232);return r.expression=e,r}function Ue(e,r,n){var i=t(233);return i.tryBlock=e,i.catchClause=r,i.finallyBlock=n,i}function qe(r,n,i){var a=t(235);return a.name=It(r),a.type=n,a.initializer=void 0!==i?e.parenthesizeExpressionForList(i):void 0,a}function Ve(e,r){void 0===r&&(r=0);var i=t(236);return i.flags|=3&r,i.declarations=n(e),i}function We(e,r,i,a,o,s,c,u){var l=t(237);return l.decorators=Ot(e),l.modifiers=Ot(r),l.asteriskToken=i,l.name=It(a),l.typeParameters=Ot(o),l.parameters=n(s),l.type=c,l.body=u,l}function He(e,r,i,a,o,s){var c=t(238);return c.decorators=Ot(e),c.modifiers=Ot(r),c.name=It(i),c.typeParameters=Ot(a),c.heritageClauses=Ot(o),c.members=n(s),c}function Ge(e,r,i,a,o,s){var c=t(239);return c.decorators=Ot(e),c.modifiers=Ot(r),c.name=It(i),c.typeParameters=Ot(a),c.heritageClauses=Ot(o),c.members=n(s),c}function Xe(e,r,n,i,a){var o=t(240);return o.decorators=Ot(e),o.modifiers=Ot(r),o.name=It(n),o.typeParameters=Ot(i),o.type=a,o}function Qe(e,r,i,a){var o=t(241);return o.decorators=Ot(e),o.modifiers=Ot(r),o.name=It(i),o.members=n(a),o}function Ye(e,r,n,i,a){void 0===a&&(a=0);var o=t(242);return o.flags|=532&a,o.decorators=Ot(e),o.modifiers=Ot(r),o.name=n,o.body=i,o}function $e(e){var r=t(243);return r.statements=n(e),r}function Ze(e){var r=t(244);return r.clauses=n(e),r}function et(e){var r=t(245);return r.name=It(e),r}function tt(e,r,n,i){var a=t(246);return a.decorators=Ot(e),a.modifiers=Ot(r),a.name=It(n),a.moduleReference=i,a}function rt(e,r,n,i){var a=t(247);return a.decorators=Ot(e),a.modifiers=Ot(r),a.importClause=n,a.moduleSpecifier=i,a}function nt(e,r){var n=t(248);return n.name=e,n.namedBindings=r,n}function it(e){var r=t(249);return r.name=e,r}function at(e){var r=t(250);return r.elements=n(e),r}function ot(e,r){var n=t(251);return n.propertyName=e,n.name=r,n}function st(r,n,i,a){var o=t(252);return o.decorators=Ot(r),o.modifiers=Ot(n),o.isExportEquals=i,o.expression=i?e.parenthesizeBinaryOperand(58,a,!1,void 0):e.parenthesizeDefaultExpression(a),o}function ct(e,r,n,i){var a=t(253);return a.decorators=Ot(e),a.modifiers=Ot(r),a.exportClause=n,a.moduleSpecifier=i,a}function ut(e){var r=t(254);return r.elements=n(e),r}function lt(e,r){var n=t(255);return n.propertyName=It(e),n.name=It(r),n}function _t(e){var r=t(257);return r.expression=e,r}function dt(e,r,i){var a=t(258);return a.openingElement=e,a.children=n(r),a.closingElement=i,a}function pt(e,r,i){var a=t(259);return a.tagName=e,a.typeArguments=r&&n(r),a.attributes=i,a}function ft(e,r,i){var a=t(260);return a.tagName=e,a.typeArguments=r&&n(r),a.attributes=i,a}function mt(e){var r=t(261);return r.tagName=e,r}function gt(e,r,i){var a=t(262);return a.openingFragment=e,a.children=n(r),a.closingFragment=i,a}function yt(e,r){var n=t(265);return n.name=e,n.initializer=r,n}function ht(e){var r=t(266);return r.properties=n(e),r}function vt(e){var r=t(267);return r.expression=e,r}function bt(e,r){var n=t(268);return n.dotDotDotToken=e,n.expression=r,n}function xt(r,i){var a=t(269);return a.expression=e.parenthesizeExpressionForList(r),a.statements=n(i),a}function St(e){var r=t(270);return r.statements=n(e),r}function Dt(e,r){var i=t(271);return i.token=e,i.types=n(r),i}function kt(r,n){var i=t(272);return i.variableDeclaration=e.isString(r)?qe(r):r,i.block=n,i}function Tt(r,n){var i=t(273);return i.name=It(r),i.questionToken=void 0,i.initializer=e.parenthesizeExpressionForList(n),i}function Ct(r,n){var i=t(274);return i.name=It(r),i.objectAssignmentInitializer=void 0!==n?e.parenthesizeExpressionForList(n):void 0,i}function Et(r){var n=t(275);return n.expression=void 0!==r?e.parenthesizeExpressionForList(r):void 0,n}function Nt(r,n){var i=t(276);return i.name=It(r),i.initializer=n&&e.parenthesizeExpressionForList(n),i}function At(e,r){var n=t(305);return n.expression=e,n.original=r,Lt(n,r),n}function Pt(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(306===t.kind)return t.elements;if(e.isBinaryExpression(t)&&26===t.operatorToken.kind)return[t.left,t.right]}return t}function Ft(r){var i=t(306);return i.elements=n(e.sameFlatMap(r,Pt)),i}function wt(t,r){void 0===r&&(r=e.emptyArray);var n=e.createNode(278);return n.prepends=r,n.sourceFiles=t,n}function It(t){return e.isString(t)?c(t):t}function Ot(e){return e?n(e):void 0}function Mt(t){if(!t.emitNode){if(e.isParseTreeNode(t)){if(277===t.kind)return t.emitNode={annotatedNodes:[t]};Mt(e.getSourceFileOfNode(t)).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function Lt(e,t){return t&&(e.pos=t.pos,e.end=t.end),e}function Rt(e,t){return Mt(e).flags=t,e}function Bt(e){var t=e.emitNode;return t&&t.leadingComments}function jt(e,t){return Mt(e).leadingComments=t,e}function Jt(e){var t=e.emitNode;return t&&t.trailingComments}function zt(e,t){return Mt(e).trailingComments=t,e}function Kt(t,r){if(t.original=r,r){var n=r.emitNode;n&&(t.emitNode=function(t,r){var n=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers,_=t.startsOnNewLine;r||(r={});i&&(r.leadingComments=e.addRange(i.slice(),r.leadingComments));a&&(r.trailingComments=e.addRange(a.slice(),r.trailingComments));n&&(r.flags=n);o&&(r.commentRange=o);s&&(r.sourceMapRange=s);c&&(r.tokenSourceMapRanges=function(e,t){t||(t=[]);for(var r in e)t[r]=e[r];return t}(c,r.tokenSourceMapRanges));void 0!==u&&(r.constantValue=u);l&&(r.helpers=e.addRange(r.helpers,l));void 0!==_&&(r.startsOnNewLine=_);return r}(n,t.emitNode))}return t}e.createTempVariable=function(e,t){var r=c("");return r.autoGenerateFlags=1,r.autoGenerateId=l,l++,e&&e(r),t&&(r.autoGenerateFlags|=8),r},e.createLoopVariable=function(){var e=c("");return e.autoGenerateFlags=2,e.autoGenerateId=l,l++,e},e.createUniqueName=function(e){var t=c(e);return t.autoGenerateFlags=3,t.autoGenerateId=l,l++,t},e.createOptimisticUniqueName=_,e.createFileLevelUniqueName=function(e){var t=_(e);return t.autoGenerateFlags|=32,t},e.getGeneratedNameForNode=function(t,r){var n=c(t&&e.isIdentifier(t)?e.idText(t):"");return n.autoGenerateFlags=4|r,n.autoGenerateId=l,n.original=t,l++,n},e.createToken=d,e.createSuper=function(){return t(97)},e.createThis=function(){return t(99)},e.createNull=function(){return t(95)},e.createTrue=p,e.createFalse=f,e.createModifier=m,e.createModifiersFromModifierFlags=function(e){var t=[];return 1&e&&t.push(m(84)),2&e&&t.push(m(124)),512&e&&t.push(m(79)),2048&e&&t.push(m(76)),4&e&&t.push(m(114)),8&e&&t.push(m(112)),16&e&&t.push(m(113)),128&e&&t.push(m(117)),32&e&&t.push(m(115)),64&e&&t.push(m(132)),256&e&&t.push(m(120)),t},e.createQualifiedName=g,e.updateQualifiedName=function(e,t,n){return e.left!==t||e.right!==n?r(g(t,n),e):e},e.createComputedPropertyName=y,e.updateComputedPropertyName=function(e,t){return e.expression!==t?r(y(t),e):e},e.createTypeParameterDeclaration=h,e.updateTypeParameterDeclaration=function(e,t,n,i){return e.name!==t||e.constraint!==n||e.default!==i?r(h(t,n,i),e):e},e.createParameter=v,e.updateParameter=function(e,t,n,i,a,o,s,c){return e.decorators!==t||e.modifiers!==n||e.dotDotDotToken!==i||e.name!==a||e.questionToken!==o||e.type!==s||e.initializer!==c?r(v(t,n,i,a,o,s,c),e):e},e.createDecorator=b,e.updateDecorator=function(e,t){return e.expression!==t?r(b(t),e):e},e.createPropertySignature=x,e.updatePropertySignature=function(e,t,n,i,a,o){return e.modifiers!==t||e.name!==n||e.questionToken!==i||e.type!==a||e.initializer!==o?r(x(t,n,i,a,o),e):e},e.createProperty=S,e.updateProperty=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.questionToken!==(void 0!==a&&55===a.kind?a:void 0)||e.exclamationToken!==(void 0!==a&&51===a.kind?a:void 0)||e.type!==o||e.initializer!==s?r(S(t,n,i,a,o,s),e):e},e.createMethodSignature=D,e.updateMethodSignature=function(e,t,n,i,a,o){return e.typeParameters!==t||e.parameters!==n||e.type!==i||e.name!==a||e.questionToken!==o?r(D(t,n,i,a,o),e):e},e.createMethod=k,e.updateMethod=function(e,t,n,i,a,o,s,c,u,l){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==i||e.name!==a||e.questionToken!==o||e.typeParameters!==s||e.parameters!==c||e.type!==u||e.body!==l?r(k(t,n,i,a,o,s,c,u,l),e):e},e.createConstructor=T,e.updateConstructor=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.parameters!==i||e.body!==a?r(T(t,n,i,a),e):e},e.createGetAccessor=C,e.updateGetAccessor=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.parameters!==a||e.type!==o||e.body!==s?r(C(t,n,i,a,o,s),e):e},e.createSetAccessor=E,e.updateSetAccessor=function(e,t,n,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.parameters!==a||e.body!==o?r(E(t,n,i,a,o),e):e},e.createCallSignature=function(e,t,r){return A(158,e,t,r)},e.updateCallSignature=function(e,t,r,n){return P(e,t,r,n)},e.createConstructSignature=function(e,t,r){return A(159,e,t,r)},e.updateConstructSignature=function(e,t,r,n){return P(e,t,r,n)},e.createIndexSignature=N,e.updateIndexSignature=function(e,t,n,i,a){return e.parameters!==i||e.type!==a||e.decorators!==t||e.modifiers!==n?r(N(t,n,i,a),e):e},e.createSignatureDeclaration=A,e.createKeywordTypeNode=function(e){return t(e)},e.createTypePredicateNode=F,e.updateTypePredicateNode=function(e,t,n){return e.parameterName!==t||e.type!==n?r(F(t,n),e):e},e.createTypeReferenceNode=w,e.updateTypeReferenceNode=function(e,t,n){return e.typeName!==t||e.typeArguments!==n?r(w(t,n),e):e},e.createFunctionTypeNode=function(e,t,r){return A(163,e,t,r)},e.updateFunctionTypeNode=function(e,t,r,n){return P(e,t,r,n)},e.createConstructorTypeNode=function(e,t,r){return A(164,e,t,r)},e.updateConstructorTypeNode=function(e,t,r,n){return P(e,t,r,n)},e.createTypeQueryNode=I,e.updateTypeQueryNode=function(e,t){return e.exprName!==t?r(I(t),e):e},e.createTypeLiteralNode=O,e.updateTypeLiteralNode=function(e,t){return e.members!==t?r(O(t),e):e},e.createArrayTypeNode=M,e.updateArrayTypeNode=function(e,t){return e.elementType!==t?r(M(t),e):e},e.createTupleTypeNode=L,e.updateTupleTypeNode=function(e,t){return e.elementTypes!==t?r(L(t),e):e},e.createOptionalTypeNode=R,e.updateOptionalTypeNode=function(e,t){return e.type!==t?r(R(t),e):e},e.createRestTypeNode=B,e.updateRestTypeNode=function(e,t){return e.type!==t?r(B(t),e):e},e.createUnionTypeNode=function(e){return j(171,e)},e.updateUnionTypeNode=function(e,t){return J(e,t)},e.createIntersectionTypeNode=function(e){return j(172,e)},e.updateIntersectionTypeNode=function(e,t){return J(e,t)},e.createUnionOrIntersectionTypeNode=j,e.createConditionalTypeNode=z,e.updateConditionalTypeNode=function(e,t,n,i,a){return e.checkType!==t||e.extendsType!==n||e.trueType!==i||e.falseType!==a?r(z(t,n,i,a),e):e},e.createInferTypeNode=K,e.updateInferTypeNode=function(e,t){return e.typeParameter!==t?r(K(t),e):e},e.createImportTypeNode=U,e.updateImportTypeNode=function(e,t,n,i,a){return e.argument!==t||e.qualifier!==n||e.typeArguments!==i||e.isTypeOf!==a?r(U(t,n,i,a),e):e},e.createParenthesizedType=q,e.updateParenthesizedType=function(e,t){return e.type!==t?r(q(t),e):e},e.createThisTypeNode=function(){return t(176)},e.createTypeOperatorNode=V,e.updateTypeOperatorNode=function(e,t){return e.type!==t?r(V(e.operator,t),e):e},e.createIndexedAccessTypeNode=W,e.updateIndexedAccessTypeNode=function(e,t,n){return e.objectType!==t||e.indexType!==n?r(W(t,n),e):e},e.createMappedTypeNode=H,e.updateMappedTypeNode=function(e,t,n,i,a){return e.readonlyToken!==t||e.typeParameter!==n||e.questionToken!==i||e.type!==a?r(H(t,n,i,a),e):e},e.createLiteralTypeNode=G,e.updateLiteralTypeNode=function(e,t){return e.literal!==t?r(G(t),e):e},e.createObjectBindingPattern=X,e.updateObjectBindingPattern=function(e,t){return e.elements!==t?r(X(t),e):e},e.createArrayBindingPattern=Q,e.updateArrayBindingPattern=function(e,t){return e.elements!==t?r(Q(t),e):e},e.createBindingElement=Y,e.updateBindingElement=function(e,t,n,i,a){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==i||e.initializer!==a?r(Y(t,n,i,a),e):e},e.createArrayLiteral=$,e.updateArrayLiteral=function(e,t){return e.elements!==t?r($(t,e.multiLine),e):e},e.createObjectLiteral=Z,e.updateObjectLiteral=function(e,t){return e.properties!==t?r(Z(t,e.multiLine),e):e},e.createPropertyAccess=ee,e.updatePropertyAccess=function(t,n,i){return t.expression!==n||t.name!==i?r(Rt(ee(n,i),e.getEmitFlags(t)),t):t},e.createElementAccess=te,e.updateElementAccess=function(e,t,n){return e.expression!==t||e.argumentExpression!==n?r(te(t,n),e):e},e.createCall=re,e.updateCall=function(e,t,n,i){return e.expression!==t||e.typeArguments!==n||e.arguments!==i?r(re(t,n,i),e):e},e.createNew=ne,e.updateNew=function(e,t,n,i){return e.expression!==t||e.typeArguments!==n||e.arguments!==i?r(ne(t,n,i),e):e},e.createTaggedTemplate=ie,e.updateTaggedTemplate=function(e,t,n,i){return e.tag!==t||(i?e.typeArguments!==n||e.template!==i:void 0!==e.typeArguments||e.template!==n)?r(ie(t,n,i),e):e},e.createTypeAssertion=ae,e.updateTypeAssertion=function(e,t,n){return e.type!==t||e.expression!==n?r(ae(t,n),e):e},e.createParen=oe,e.updateParen=function(e,t){return e.expression!==t?r(oe(t),e):e},e.createFunctionExpression=se,e.updateFunctionExpression=function(e,t,n,i,a,o,s,c){return e.name!==i||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?r(se(t,n,i,a,o,s,c),e):e},e.createArrowFunction=ce,e.updateArrowFunction=function(t,n,i,a,o,s,c){var u,l;return void 0===c?(u=t.equalsGreaterThanToken,l=e.cast(s,e.isConciseBody)):(u=e.cast(s,function(e){return 36===e.kind}),l=c),t.modifiers!==n||t.typeParameters!==i||t.parameters!==a||t.type!==o||t.equalsGreaterThanToken!==u||t.body!==l?r(ce(n,i,a,o,u,l),t):t},e.createDelete=ue,e.updateDelete=function(e,t){return e.expression!==t?r(ue(t),e):e},e.createTypeOf=le,e.updateTypeOf=function(e,t){return e.expression!==t?r(le(t),e):e},e.createVoid=_e,e.updateVoid=function(e,t){return e.expression!==t?r(_e(t),e):e},e.createAwait=de,e.updateAwait=function(e,t){return e.expression!==t?r(de(t),e):e},e.createPrefix=pe,e.updatePrefix=function(e,t){return e.operand!==t?r(pe(e.operator,t),e):e},e.createPostfix=fe,e.updatePostfix=function(e,t){return e.operand!==t?r(fe(t,e.operator),e):e},e.createBinary=me,e.updateBinary=function(e,t,n,i){return e.left!==t||e.right!==n?r(me(t,i||e.operatorToken,n),e):e},e.createConditional=ge,e.updateConditional=function t(n,i){for(var a=[],o=2;o0&&(a[c-s]=u)}s>0&&(a.length-=s)}},e.compareEmitHelpers=function(t,r){return t===r?0:t.priority===r.priority?0:void 0===t.priority?1:void 0===r.priority?-1:e.compareValues(t.priority,r.priority)},e.setOriginalNode=Kt}(s||(s={})),function(e){function t(t,r,n){if(e.isComputedPropertyName(r))return e.setTextRange(e.createElementAccess(t,r.expression),n);var i=e.setTextRange(e.isIdentifier(r)?e.createPropertyAccess(t,r):e.createElementAccess(t,r),r);return e.getOrCreateEmitNode(i).flags|=64,i}function r(t,r){var n=e.createIdentifier(t||"React");return n.flags&=-9,n.parent=e.getParseTreeNode(r),n}function n(t,n,i){return t?function t(n,i){if(e.isQualifiedName(n)){var a=t(n.left,i),o=e.createIdentifier(e.idText(n.right));return o.escapedText=n.right.escapedText,e.createPropertyAccess(a,o)}return r(e.idText(n),i)}(t,i):e.createPropertyAccess(r(n,i),"createElement")}function i(t){return e.setEmitFlags(e.createIdentifier(t),4098)}e.nullTransformationContext={enableEmitNotification:e.noop,enableSubstitution:e.noop,endLexicalEnvironment:function(){},getCompilerOptions:e.notImplemented,getEmitHost:e.notImplemented,getEmitResolver:e.notImplemented,hoistFunctionDeclaration:e.noop,hoistVariableDeclaration:e.noop,isEmitNotificationEnabled:e.notImplemented,isSubstitutionEnabled:e.notImplemented,onEmitNode:e.noop,onSubstituteNode:e.notImplemented,readEmitHelpers:e.notImplemented,requestEmitHelper:e.noop,resumeLexicalEnvironment:e.noop,startLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,addDiagnostic:e.noop},e.createTypeCheck=function(t,r){return"undefined"===r?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(r))},e.createMemberAccessForPropertyName=t,e.createFunctionCall=function(t,r,n,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[r].concat(n)),i)},e.createFunctionApply=function(t,r,n,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[r,n]),i)},e.createArraySlice=function(t,r){var n=[];return void 0!==r&&n.push("number"==typeof r?e.createLiteral(r):r),e.createCall(e.createPropertyAccess(t,"slice"),void 0,n)},e.createArrayConcat=function(t,r){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,r)},e.createMathPow=function(t,r,n){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,r]),n)},e.createExpressionForJsxElement=function(t,r,i,a,o,s,c){var u=[i];if(a&&u.push(a),o&&o.length>0)if(a||u.push(e.createNull()),o.length>1)for(var l=0,_=o;l<_.length;l++){var d=_[l];E(d),u.push(d)}else u.push(o[0]);return e.setTextRange(e.createCall(n(t,r,s),void 0,u),c)},e.createExpressionForJsxFragment=function(t,i,a,o,s){var c=[e.createPropertyAccess(r(i,o),"Fragment")];if(c.push(e.createNull()),a&&a.length>0)if(a.length>1)for(var u=0,l=a;u= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };'};e.createValuesHelper=function(t,r,n){return t.requestEmitHelper(a),e.setTextRange(e.createCall(i("__values"),void 0,[r]),n)};var o={name:"typescript:read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'};e.createReadHelper=function(t,r,n,a){return t.requestEmitHelper(o),e.setTextRange(e.createCall(i("__read"),void 0,void 0!==n?[r,e.createLiteral(n)]:[r]),a)};var s={name:"typescript:spread",scoped:!1,text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"};function c(t,r){var n=e.skipParentheses(t);switch(n.kind){case 71:return r;case 99:case 8:case 9:return!1;case 185:return 0!==n.elements.length;case 186:return n.properties.length>0;default:return!0}}function u(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function l(e,t,r){return _(e,t,r,8192)}function _(t,r,n,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.getMutableClone(a);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return e.getGeneratedNameForNode(t)}function d(t,r,n,i){var a=e.createPropertyAccess(t,e.nodeIsSynthesized(r)?r:e.getSynthesizedClone(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function p(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function f(t,r,n){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,a=0,o=r.length;ae.getOperatorPrecedence(202,26)?t:e.setTextRange(e.createParen(t),t)}function v(t){return 173===t.kind?e.createParenthesizedType(t):t}function b(t){switch(t.kind){case 171:case 172:case 163:case 164:return e.createParenthesizedType(t)}return v(t)}function x(e,t){for(;;){switch(e.kind){case 201:e=e.operand;continue;case 202:e=e.left;continue;case 203:e=e.condition;continue;case 191:e=e.tag;continue;case 189:if(t)return e;case 210:case 188:case 187:case 211:case 305:e=e.expression;continue}return e}}function S(e){return 202===e.kind&&26===e.operatorToken.kind||306===e.kind}function D(e,t){switch(void 0===t&&(t=7),e.kind){case 193:return 0!=(1&t);case 192:case 210:case 211:return 0!=(2&t);case 305:return 0!=(4&t)}return!1}function k(t,r){var n;void 0===r&&(r=7);do{n=t,1&r&&(t=e.skipParentheses(t)),2&r&&(t=T(t)),4&r&&(t=e.skipPartiallyEmittedExpressions(t))}while(n!==t);return t}function T(t){for(;e.isAssertionExpression(t)||211===t.kind;)t=t.expression;return t}function C(t,r,n){return void 0===n&&(n=7),t&&D(t,n)&&(!(193===(i=t).kind&&e.nodeIsSynthesized(i)&&e.nodeIsSynthesized(e.getSourceMapRange(i))&&e.nodeIsSynthesized(e.getCommentRange(i)))||e.some(e.getSyntheticLeadingComments(i))||e.some(e.getSyntheticTrailingComments(i)))?function(t,r){switch(t.kind){case 193:return e.updateParen(t,r);case 192:return e.updateTypeAssertion(t,t.type,r);case 210:return e.updateAsExpression(t,r,t.type);case 211:return e.updateNonNullExpression(t,r);case 305:return e.updatePartiallyEmittedExpression(t,r)}}(t,C(t.expression,r)):r;var i}function E(t){return e.setStartsOnNewLine(t,!0)}function N(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function A(t,r,n){if(t)return t.moduleName?e.createLiteral(t.moduleName):t.isDeclarationFile||!n.out&&!n.outFile?void 0:e.createLiteral(e.getExternalModuleNameFromPath(r,t.fileName))}function P(t){if(e.isDeclarationBindingElement(t))return t.name;if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?P(t.left):e.isSpreadElement(t)?P(t.expression):t;switch(t.kind){case 273:return P(t.initializer);case 274:return t.name;case 275:return P(t.expression)}}function F(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpread(t.name),t),t);var r=L(t.name);return t.initializer?e.setOriginalNode(e.setTextRange(e.createAssignment(r,t.initializer),t),t):r}return e.Debug.assertNode(t,e.isExpression),t}function w(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){var r=L(t.name);return e.setOriginalNode(e.setTextRange(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(r,t.initializer):r),t),t)}return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return e.Debug.assertNode(t,e.isObjectLiteralElementLike),t}function I(e){switch(e.kind){case 183:case 185:return M(e);case 182:case 186:return O(e)}}function O(t){return e.isObjectBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createObjectLiteral(e.map(t.elements,w)),t),t):(e.Debug.assertNode(t,e.isObjectLiteralExpression),t)}function M(t){return e.isArrayBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createArrayLiteral(e.map(t.elements,F)),t),t):(e.Debug.assertNode(t,e.isArrayLiteralExpression),t)}function L(t){return e.isBindingPattern(t)?I(t):(e.Debug.assertNode(t,e.isExpression),t)}e.createSpreadHelper=function(t,r,n){return t.requestEmitHelper(o),t.requestEmitHelper(s),e.setTextRange(e.createCall(i("__spread"),void 0,r),n)},e.createForOfBindingStatement=function(t,r){if(e.isVariableDeclarationList(t)){var n=e.first(t.declarations),i=e.updateVariableDeclaration(n,n.name,void 0,r);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}var a=e.setTextRange(e.createAssignment(t,r),t);return e.setTextRange(e.createStatement(a),t)},e.insertLeadingStatement=function(t,r){return e.isBlock(t)?e.updateBlock(t,e.setTextRange(e.createNodeArray([r].concat(t.statements)),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)},e.restoreEnclosingLabel=function t(r,n,i){if(!n)return r;var a=e.updateLabel(n,n.label,231===n.statement.kind?t(r,n.statement):r);return i&&i(n),a},e.createCallBinding=function(t,r,n,i){void 0===i&&(i=!1);var a,o,s=k(t,7);if(e.isSuperProperty(s))a=e.createThis(),o=s;else if(97===s.kind)a=e.createThis(),o=n<2?e.setTextRange(e.createIdentifier("_super"),s):s;else if(4096&e.getEmitFlags(s))a=e.createVoidZero(),o=y(s);else switch(s.kind){case 187:c(s.expression,i)?(a=e.createTempVariable(r),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s);break;case 188:c(s.expression,i)?(a=e.createTempVariable(r),o=e.createElementAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s);break;default:a=e.createVoidZero(),o=y(t)}return{target:o,thisArg:a}},e.inlineExpressions=function(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)},e.createExpressionFromEntityName=function t(r){if(e.isQualifiedName(r)){var n=t(r.left),i=e.getMutableClone(r.right);return e.setTextRange(e.createPropertyAccess(n,i),r)}return e.getMutableClone(r)},e.createExpressionForPropertyName=u,e.createExpressionForObjectLiteralElementLike=function(r,n,i){switch(n.kind){case 156:case 157:return function(t,r,n,i){var a=e.getAllAccessorDeclarations(t,r),o=a.firstAccessor,s=a.getAccessor,c=a.setAccessor;if(r===o){var l=[];if(s){var _=e.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);e.setTextRange(_,s),e.setOriginalNode(_,s);var d=e.createPropertyAssignment("get",_);l.push(d)}if(c){var p=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(p,c),e.setOriginalNode(p,c);var f=e.createPropertyAssignment("set",p);l.push(f)}l.push(e.createPropertyAssignment("enumerable",e.createTrue())),l.push(e.createPropertyAssignment("configurable",e.createTrue()));var m=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[n,u(r.name),e.createObjectLiteral(l,i)]),o);return e.aggregateTransformFlags(m)}}(r.properties,n,i,!!r.multiLine);case 273:return function(r,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(n,r.name,r.name),r.initializer),r),r))}(n,i);case 274:return function(r,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(n,r.name,r.name),e.getSynthesizedClone(r.name)),r),r))}(n,i);case 154:return function(r,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(n,r.name,r.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(r.modifiers,r.asteriskToken,void 0,void 0,r.parameters,void 0,r.body),r),r)),r),r))}(n,i)}},e.getInternalName=function(e,t,r){return _(e,t,r,49152)},e.isInternalName=function(t){return 0!=(32768&e.getEmitFlags(t))},e.getLocalName=function(e,t,r){return _(e,t,r,16384)},e.isLocalName=function(t){return 0!=(16384&e.getEmitFlags(t))},e.getExportName=l,e.isExportName=function(t){return 0!=(8192&e.getEmitFlags(t))},e.getDeclarationName=function(e,t,r){return _(e,t,r)},e.getExternalModuleOrNamespaceExportName=function(t,r,n,i){return t&&e.hasModifier(r,1)?d(t,_(r),n,i):l(r,n,i)},e.getNamespaceMemberName=d,e.convertToFunctionBody=function(t,r){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],r),t)},e.convertFunctionDeclarationToExpression=function(t){if(!t.body)return e.Debug.fail();var r=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(r,t),e.setTextRange(r,t),e.getStartsOnNewLine(t)&&e.setStartsOnNewLine(r,!0),e.aggregateTransformFlags(r),r},e.addPrologue=function(e,t,r,n){return m(e,t,f(e,t,r),n)},e.addStandardPrologue=f,e.addCustomPrologue=m,e.startsWithUseStrict=function(t){var r=e.firstOrUndefined(t);return void 0!==r&&e.isPrologueDirective(r)&&p(r)},e.ensureUseStrict=function(t){for(var r=!1,n=0,i=t;ns-i)&&(a=s-i),(i>0||a0&&d<=145||176===d)return s;switch(d){case 71:return e.updateIdentifier(s,l(s.typeArguments,c,t));case 146:return e.updateQualifiedName(s,r(s.left,c,e.isEntityName),r(s.right,c,e.isIdentifier));case 147:return e.updateComputedPropertyName(s,r(s.expression,c,e.isExpression));case 148:return e.updateTypeParameterDeclaration(s,r(s.name,c,e.isIdentifier),r(s.constraint,c,e.isTypeNode),r(s.default,c,e.isTypeNode));case 149:return e.updateParameter(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.dotDotDotToken,_,e.isToken),r(s.name,c,e.isBindingName),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 150:return e.updateDecorator(s,r(s.expression,c,e.isExpression));case 151:return e.updatePropertySignature(s,l(s.modifiers,c,e.isToken),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 152:return e.updateProperty(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 153:return e.updateMethodSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken));case 154:return e.updateMethod(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.asteriskToken,_,e.isToken),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 155:return e.updateConstructor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),a(s.parameters,c,u,l),o(s.body,c,u));case 156:return e.updateGetAccessor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isPropertyName),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 157:return e.updateSetAccessor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isPropertyName),a(s.parameters,c,u,l),o(s.body,c,u));case 158:return e.updateCallSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 159:return e.updateConstructSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 160:return e.updateIndexSignature(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 161:return e.updateTypePredicateNode(s,r(s.parameterName,c),r(s.type,c,e.isTypeNode));case 162:return e.updateTypeReferenceNode(s,r(s.typeName,c,e.isEntityName),l(s.typeArguments,c,e.isTypeNode));case 163:return e.updateFunctionTypeNode(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 164:return e.updateConstructorTypeNode(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 165:return e.updateTypeQueryNode(s,r(s.exprName,c,e.isEntityName));case 166:return e.updateTypeLiteralNode(s,l(s.members,c,e.isTypeElement));case 167:return e.updateArrayTypeNode(s,r(s.elementType,c,e.isTypeNode));case 168:return e.updateTupleTypeNode(s,l(s.elementTypes,c,e.isTypeNode));case 169:return e.updateOptionalTypeNode(s,r(s.type,c,e.isTypeNode));case 170:return e.updateRestTypeNode(s,r(s.type,c,e.isTypeNode));case 171:return e.updateUnionTypeNode(s,l(s.types,c,e.isTypeNode));case 172:return e.updateIntersectionTypeNode(s,l(s.types,c,e.isTypeNode));case 173:return e.updateConditionalTypeNode(s,r(s.checkType,c,e.isTypeNode),r(s.extendsType,c,e.isTypeNode),r(s.trueType,c,e.isTypeNode),r(s.falseType,c,e.isTypeNode));case 174:return e.updateInferTypeNode(s,r(s.typeParameter,c,e.isTypeParameterDeclaration));case 181:return e.updateImportTypeNode(s,r(s.argument,c,e.isTypeNode),r(s.qualifier,c,e.isEntityName),n(s.typeArguments,c,e.isTypeNode),s.isTypeOf);case 175:return e.updateParenthesizedType(s,r(s.type,c,e.isTypeNode));case 177:return e.updateTypeOperatorNode(s,r(s.type,c,e.isTypeNode));case 178:return e.updateIndexedAccessTypeNode(s,r(s.objectType,c,e.isTypeNode),r(s.indexType,c,e.isTypeNode));case 179:return e.updateMappedTypeNode(s,r(s.readonlyToken,_,e.isToken),r(s.typeParameter,c,e.isTypeParameterDeclaration),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode));case 180:return e.updateLiteralTypeNode(s,r(s.literal,c,e.isExpression));case 182:return e.updateObjectBindingPattern(s,l(s.elements,c,e.isBindingElement));case 183:return e.updateArrayBindingPattern(s,l(s.elements,c,e.isArrayBindingElement));case 184:return e.updateBindingElement(s,r(s.dotDotDotToken,_,e.isToken),r(s.propertyName,c,e.isPropertyName),r(s.name,c,e.isBindingName),r(s.initializer,c,e.isExpression));case 185:return e.updateArrayLiteral(s,l(s.elements,c,e.isExpression));case 186:return e.updateObjectLiteral(s,l(s.properties,c,e.isObjectLiteralElementLike));case 187:return e.updatePropertyAccess(s,r(s.expression,c,e.isExpression),r(s.name,c,e.isIdentifier));case 188:return e.updateElementAccess(s,r(s.expression,c,e.isExpression),r(s.argumentExpression,c,e.isExpression));case 189:return e.updateCall(s,r(s.expression,c,e.isExpression),l(s.typeArguments,c,e.isTypeNode),l(s.arguments,c,e.isExpression));case 190:return e.updateNew(s,r(s.expression,c,e.isExpression),l(s.typeArguments,c,e.isTypeNode),l(s.arguments,c,e.isExpression));case 191:return e.updateTaggedTemplate(s,r(s.tag,c,e.isExpression),n(s.typeArguments,c,e.isExpression),r(s.template,c,e.isTemplateLiteral));case 192:return e.updateTypeAssertion(s,r(s.type,c,e.isTypeNode),r(s.expression,c,e.isExpression));case 193:return e.updateParen(s,r(s.expression,c,e.isExpression));case 194:return e.updateFunctionExpression(s,l(s.modifiers,c,e.isModifier),r(s.asteriskToken,_,e.isToken),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 195:return e.updateArrowFunction(s,l(s.modifiers,c,e.isModifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),r(s.equalsGreaterThanToken,c,e.isToken),o(s.body,c,u));case 196:return e.updateDelete(s,r(s.expression,c,e.isExpression));case 197:return e.updateTypeOf(s,r(s.expression,c,e.isExpression));case 198:return e.updateVoid(s,r(s.expression,c,e.isExpression));case 199:return e.updateAwait(s,r(s.expression,c,e.isExpression));case 200:return e.updatePrefix(s,r(s.operand,c,e.isExpression));case 201:return e.updatePostfix(s,r(s.operand,c,e.isExpression));case 202:return e.updateBinary(s,r(s.left,c,e.isExpression),r(s.right,c,e.isExpression),r(s.operatorToken,c,e.isToken));case 203:return e.updateConditional(s,r(s.condition,c,e.isExpression),r(s.questionToken,c,e.isToken),r(s.whenTrue,c,e.isExpression),r(s.colonToken,c,e.isToken),r(s.whenFalse,c,e.isExpression));case 204:return e.updateTemplateExpression(s,r(s.head,c,e.isTemplateHead),l(s.templateSpans,c,e.isTemplateSpan));case 205:return e.updateYield(s,r(s.asteriskToken,_,e.isToken),r(s.expression,c,e.isExpression));case 206:return e.updateSpread(s,r(s.expression,c,e.isExpression));case 207:return e.updateClassExpression(s,l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isClassElement));case 209:return e.updateExpressionWithTypeArguments(s,l(s.typeArguments,c,e.isTypeNode),r(s.expression,c,e.isExpression));case 210:return e.updateAsExpression(s,r(s.expression,c,e.isExpression),r(s.type,c,e.isTypeNode));case 211:return e.updateNonNullExpression(s,r(s.expression,c,e.isExpression));case 212:return e.updateMetaProperty(s,r(s.name,c,e.isIdentifier));case 214:return e.updateTemplateSpan(s,r(s.expression,c,e.isExpression),r(s.literal,c,e.isTemplateMiddleOrTemplateTail));case 216:return e.updateBlock(s,l(s.statements,c,e.isStatement));case 217:return e.updateVariableStatement(s,l(s.modifiers,c,e.isModifier),r(s.declarationList,c,e.isVariableDeclarationList));case 219:return e.updateExpressionStatement(s,r(s.expression,c,e.isExpression));case 220:return e.updateIf(s,r(s.expression,c,e.isExpression),r(s.thenStatement,c,e.isStatement,e.liftToBlock),r(s.elseStatement,c,e.isStatement,e.liftToBlock));case 221:return e.updateDo(s,r(s.statement,c,e.isStatement,e.liftToBlock),r(s.expression,c,e.isExpression));case 222:return e.updateWhile(s,r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 223:return e.updateFor(s,r(s.initializer,c,e.isForInitializer),r(s.condition,c,e.isExpression),r(s.incrementor,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 224:return e.updateForIn(s,r(s.initializer,c,e.isForInitializer),r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 225:return e.updateForOf(s,r(s.awaitModifier,c,e.isToken),r(s.initializer,c,e.isForInitializer),r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 226:return e.updateContinue(s,r(s.label,c,e.isIdentifier));case 227:return e.updateBreak(s,r(s.label,c,e.isIdentifier));case 228:return e.updateReturn(s,r(s.expression,c,e.isExpression));case 229:return e.updateWith(s,r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 230:return e.updateSwitch(s,r(s.expression,c,e.isExpression),r(s.caseBlock,c,e.isCaseBlock));case 231:return e.updateLabel(s,r(s.label,c,e.isIdentifier),r(s.statement,c,e.isStatement,e.liftToBlock));case 232:return e.updateThrow(s,r(s.expression,c,e.isExpression));case 233:return e.updateTry(s,r(s.tryBlock,c,e.isBlock),r(s.catchClause,c,e.isCatchClause),r(s.finallyBlock,c,e.isBlock));case 235:return e.updateVariableDeclaration(s,r(s.name,c,e.isBindingName),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 236:return e.updateVariableDeclarationList(s,l(s.declarations,c,e.isVariableDeclaration));case 237:return e.updateFunctionDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.asteriskToken,_,e.isToken),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 238:return e.updateClassDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isClassElement));case 239:return e.updateInterfaceDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isTypeElement));case 240:return e.updateTypeAliasDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),r(s.type,c,e.isTypeNode));case 241:return e.updateEnumDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.members,c,e.isEnumMember));case 242:return e.updateModuleDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),r(s.body,c,e.isModuleBody));case 243:return e.updateModuleBlock(s,l(s.statements,c,e.isStatement));case 244:return e.updateCaseBlock(s,l(s.clauses,c,e.isCaseOrDefaultClause));case 245:return e.updateNamespaceExportDeclaration(s,r(s.name,c,e.isIdentifier));case 246:return e.updateImportEqualsDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),r(s.moduleReference,c,e.isModuleReference));case 247:return e.updateImportDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.importClause,c,e.isImportClause),r(s.moduleSpecifier,c,e.isExpression));case 248:return e.updateImportClause(s,r(s.name,c,e.isIdentifier),r(s.namedBindings,c,e.isNamedImportBindings));case 249:return e.updateNamespaceImport(s,r(s.name,c,e.isIdentifier));case 250:return e.updateNamedImports(s,l(s.elements,c,e.isImportSpecifier));case 251:return e.updateImportSpecifier(s,r(s.propertyName,c,e.isIdentifier),r(s.name,c,e.isIdentifier));case 252:return e.updateExportAssignment(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.expression,c,e.isExpression));case 253:return e.updateExportDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.exportClause,c,e.isNamedExports),r(s.moduleSpecifier,c,e.isExpression));case 254:return e.updateNamedExports(s,l(s.elements,c,e.isExportSpecifier));case 255:return e.updateExportSpecifier(s,r(s.propertyName,c,e.isIdentifier),r(s.name,c,e.isIdentifier));case 257:return e.updateExternalModuleReference(s,r(s.expression,c,e.isExpression));case 258:return e.updateJsxElement(s,r(s.openingElement,c,e.isJsxOpeningElement),l(s.children,c,e.isJsxChild),r(s.closingElement,c,e.isJsxClosingElement));case 259:return e.updateJsxSelfClosingElement(s,r(s.tagName,c,e.isJsxTagNameExpression),l(s.typeArguments,c,e.isTypeNode),r(s.attributes,c,e.isJsxAttributes));case 260:return e.updateJsxOpeningElement(s,r(s.tagName,c,e.isJsxTagNameExpression),l(s.typeArguments,c,e.isTypeNode),r(s.attributes,c,e.isJsxAttributes));case 261:return e.updateJsxClosingElement(s,r(s.tagName,c,e.isJsxTagNameExpression));case 262:return e.updateJsxFragment(s,r(s.openingFragment,c,e.isJsxOpeningFragment),l(s.children,c,e.isJsxChild),r(s.closingFragment,c,e.isJsxClosingFragment));case 265:return e.updateJsxAttribute(s,r(s.name,c,e.isIdentifier),r(s.initializer,c,e.isStringLiteralOrJsxExpression));case 266:return e.updateJsxAttributes(s,l(s.properties,c,e.isJsxAttributeLike));case 267:return e.updateJsxSpreadAttribute(s,r(s.expression,c,e.isExpression));case 268:return e.updateJsxExpression(s,r(s.expression,c,e.isExpression));case 269:return e.updateCaseClause(s,r(s.expression,c,e.isExpression),l(s.statements,c,e.isStatement));case 270:return e.updateDefaultClause(s,l(s.statements,c,e.isStatement));case 271:return e.updateHeritageClause(s,l(s.types,c,e.isExpressionWithTypeArguments));case 272:return e.updateCatchClause(s,r(s.variableDeclaration,c,e.isVariableDeclaration),r(s.block,c,e.isBlock));case 273:return e.updatePropertyAssignment(s,r(s.name,c,e.isPropertyName),r(s.initializer,c,e.isExpression));case 274:return e.updateShorthandPropertyAssignment(s,r(s.name,c,e.isIdentifier),r(s.objectAssignmentInitializer,c,e.isExpression));case 275:return e.updateSpreadAssignment(s,r(s.expression,c,e.isExpression));case 276:return e.updateEnumMember(s,r(s.name,c,e.isPropertyName),r(s.initializer,c,e.isExpression));case 277:return e.updateSourceFileNode(s,i(s.statements,c,u));case 305:return e.updatePartiallyEmittedExpression(s,r(s.expression,c,e.isExpression));case 306:return e.updateCommaList(s,l(s.elements,c,e.isExpression));default:return s}}}}(s||(s={})),function(e){function t(e,t,r){return e?t(r,e):r}function r(e,t,r){return e?t(r,e):r}function n(n,i,a,o){if(void 0===n)return i;var s=o?r:e.reduceLeft,c=o||a,u=n.kind;if(u>0&&u<=145)return i;if(u>=161&&u<=180)return i;var l=i;switch(n.kind){case 215:case 218:case 208:case 234:case 304:break;case 146:l=t(n.left,a,l),l=t(n.right,a,l);break;case 147:l=t(n.expression,a,l);break;case 149:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 150:l=t(n.expression,a,l);break;case 151:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.questionToken,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 152:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 154:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 155:l=s(n.modifiers,c,l),l=s(n.parameters,c,l),l=t(n.body,a,l);break;case 156:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 157:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.parameters,c,l),l=t(n.body,a,l);break;case 182:case 183:l=s(n.elements,c,l);break;case 184:l=t(n.propertyName,a,l),l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 185:l=s(n.elements,c,l);break;case 186:l=s(n.properties,c,l);break;case 187:l=t(n.expression,a,l),l=t(n.name,a,l);break;case 188:l=t(n.expression,a,l),l=t(n.argumentExpression,a,l);break;case 189:case 190:l=t(n.expression,a,l),l=s(n.typeArguments,c,l),l=s(n.arguments,c,l);break;case 191:l=t(n.tag,a,l),l=t(n.template,a,l);break;case 192:l=t(n.type,a,l),l=t(n.expression,a,l);break;case 194:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 195:l=s(n.modifiers,c,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 193:case 196:case 197:case 198:case 199:case 205:case 206:case 211:l=t(n.expression,a,l);break;case 200:case 201:l=t(n.operand,a,l);break;case 202:l=t(n.left,a,l),l=t(n.right,a,l);break;case 203:l=t(n.condition,a,l),l=t(n.whenTrue,a,l),l=t(n.whenFalse,a,l);break;case 204:l=t(n.head,a,l),l=s(n.templateSpans,c,l);break;case 207:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.heritageClauses,c,l),l=s(n.members,c,l);break;case 209:l=t(n.expression,a,l),l=s(n.typeArguments,c,l);break;case 210:l=t(n.expression,a,l),l=t(n.type,a,l);break;case 214:l=t(n.expression,a,l),l=t(n.literal,a,l);break;case 216:l=s(n.statements,c,l);break;case 217:l=s(n.modifiers,c,l),l=t(n.declarationList,a,l);break;case 219:l=t(n.expression,a,l);break;case 220:l=t(n.expression,a,l),l=t(n.thenStatement,a,l),l=t(n.elseStatement,a,l);break;case 221:l=t(n.statement,a,l),l=t(n.expression,a,l);break;case 222:case 229:l=t(n.expression,a,l),l=t(n.statement,a,l);break;case 223:l=t(n.initializer,a,l),l=t(n.condition,a,l),l=t(n.incrementor,a,l),l=t(n.statement,a,l);break;case 224:case 225:l=t(n.initializer,a,l),l=t(n.expression,a,l),l=t(n.statement,a,l);break;case 228:case 232:l=t(n.expression,a,l);break;case 230:l=t(n.expression,a,l),l=t(n.caseBlock,a,l);break;case 231:l=t(n.label,a,l),l=t(n.statement,a,l);break;case 233:l=t(n.tryBlock,a,l),l=t(n.catchClause,a,l),l=t(n.finallyBlock,a,l);break;case 235:l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 236:l=s(n.declarations,c,l);break;case 237:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 238:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.heritageClauses,c,l),l=s(n.members,c,l);break;case 241:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.members,c,l);break;case 242:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.body,a,l);break;case 243:l=s(n.statements,c,l);break;case 244:l=s(n.clauses,c,l);break;case 246:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.moduleReference,a,l);break;case 247:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.importClause,a,l),l=t(n.moduleSpecifier,a,l);break;case 248:l=t(n.name,a,l),l=t(n.namedBindings,a,l);break;case 249:l=t(n.name,a,l);break;case 250:case 254:l=s(n.elements,c,l);break;case 251:case 255:l=t(n.propertyName,a,l),l=t(n.name,a,l);break;case 252:l=e.reduceLeft(n.decorators,a,l),l=e.reduceLeft(n.modifiers,a,l),l=t(n.expression,a,l);break;case 253:l=e.reduceLeft(n.decorators,a,l),l=e.reduceLeft(n.modifiers,a,l),l=t(n.exportClause,a,l),l=t(n.moduleSpecifier,a,l);break;case 257:l=t(n.expression,a,l);break;case 258:l=t(n.openingElement,a,l),l=e.reduceLeft(n.children,a,l),l=t(n.closingElement,a,l);break;case 262:l=t(n.openingFragment,a,l),l=e.reduceLeft(n.children,a,l),l=t(n.closingFragment,a,l);break;case 259:case 260:l=t(n.tagName,a,l),l=t(n.attributes,a,l);break;case 266:l=s(n.properties,c,l);break;case 261:l=t(n.tagName,a,l);break;case 265:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 267:case 268:l=t(n.expression,a,l);break;case 269:l=t(n.expression,a,l);case 270:l=s(n.statements,c,l);break;case 271:l=s(n.types,c,l);break;case 272:l=t(n.variableDeclaration,a,l),l=t(n.block,a,l);break;case 273:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 274:l=t(n.name,a,l),l=t(n.objectAssignmentInitializer,a,l);break;case 275:l=t(n.expression,a,l);break;case 276:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 277:l=s(n.statements,c,l);break;case 305:l=t(n.expression,a,l);break;case 306:l=s(n.elements,c,l)}return l}function i(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var r=function(t){if(e.hasModifier(t,2)||e.isTypeNode(t)&&209!==t.kind)return 0;return n(t,0,a,o)}(t);return e.computeTransformFlagsForNode(t,r)}function a(e,t){return e|i(t)}function o(e,t){return e|function(e){if(void 0===e)return 0;for(var t=0,r=0,n=0,a=e;n=e.encodedText.length,"Error in decoding base64VLQFormatDecode, past the mapping string"))return;var o=(t=e.encodedText.charAt(e.decodingIndex),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(t));n=0!=(32&o),a|=(31&o)<>=1:a=-(a>>=1),a}}(t)?{done:!1,value:r()}:{done:!0,value:void 0}}}}function n(e,t){return t===e.length||44===e.charCodeAt(t)||59===e.charCodeAt(t)}t.identitySourceMapper={getOriginalPosition:e.identity,getGeneratedPosition:e.identity},t.decode=function(t,n,i,a,o){void 0===o&&(o=e.createSourceFileLikeCache(t));var s,c,u,l=e.getDirectoryPath(n),_=i.sourceRoot?e.getNormalizedAbsolutePath(i.sourceRoot,l):l;return{getOriginalPosition:function(r){var n=c||(c=p().slice().sort(m));if(!e.length(n))return r;var i=e.binarySearch(n,{emittedPosition:r.position},e.identity,m);return i<0&&n.length>0&&(i=~i),{fileName:e.toPath(n[i].sourcePath,_,t.getCanonicalFileName),position:n[i].sourcePosition}},getGeneratedPosition:function(r){var n=u||(u=p().slice().sort(f));if(!e.length(n))return r;var a=e.binarySearch(n,{sourcePath:r.fileName,sourcePosition:r.position},e.identity,f);return a<0&&n.length>0&&(a=~a),n[a]&&0===e.comparePaths(r.fileName,n[a].sourcePath,_)?{fileName:e.toPath(i.file,_,t.getCanonicalFileName),position:n[a].emittedPosition}:r}};function d(r,n,i,s){var c=function(r,n){var i=e.toPath(r,n,t.getCanonicalFileName),s=a&&a.getSourceFile(i);return s||o.get(i)}(r,n);return c?e.getPositionOfLineAndCharacter(c,i,s):-1}function p(){return s||(s=function(t,n,i){var a=r(t),o=e.arrayFrom(a,n);return a.error?(i&&i.log&&i.log("Encountered error while decoding sourcemap: "+a.error),[]):o}(i,g,t))}function f(t,r){return e.comparePaths(t.sourcePath,r.sourcePath,_)||e.compareValues(t.sourcePosition,r.sourcePosition)}function m(t,r){return e.compareValues(t.emittedPosition,r.emittedPosition)}function g(e){var t=i.sources[e.sourceIndex];return{emittedPosition:d(i.file,l,e.emittedLine,e.emittedColumn),sourcePosition:d(t,_,e.sourceLine,e.sourceColumn),sourcePath:t}}},t.decodeMappings=r}(e.sourcemaps||(e.sourcemaps={}))}(s||(s={})),function(e){function t(t){return(t=e.getOriginalNode(t))?e.getNodeId(t):0}function r(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function n(t){if(e.getNamespaceDeclarationNode(t))return!0;var n=t.importClause&&t.importClause.namedBindings;if(!n)return!1;if(!e.isNamedImports(n))return!1;for(var i=0,a=0,o=n.elements;a0&&i!==n.elements.length||!!(n.elements.length-i)&&e.isDefaultImport(t)}function i(t){return!n(t)&&(e.isDefaultImport(t)||!!t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&function(t){return!!t&&!!e.isNamedImports(t)&&e.some(t.elements,r)}(t.importClause.namedBindings))}function a(t,r,n){if(e.isBindingPattern(t.name))for(var i=0,o=t.name.elements;i=1)||1572864&g.transformFlags||1572864&e.getTargetOfBindingOrAssignmentElement(g).transformFlags||e.isComputedPropertyName(h)){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o),u=void 0);var y=n(t,s,h);e.isComputedPropertyName(h)&&(l=e.append(l,y.argumentExpression)),r(t,g,y,g)}else u=e.append(u,g)}}u&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o)}(t,a,l,o,s):e.isArrayBindingOrAssignmentPattern(l)?function(t,n,a,o,s){var c,u,l=e.getElementsOfBindingOrAssignmentPattern(a),_=l.length;if(t.level<1&&t.downlevelIteration)o=i(t,e.createReadHelper(t.context,o,_>0&&e.getRestIndicatorOfBindingOrAssignmentElement(l[_-1])?void 0:_,s),!1,s);else if(1!==_&&(t.level<1||0===_)||e.every(l,e.isOmittedExpression)){var d=!e.isDeclarationBindingElement(n)||0!==_;o=i(t,o,d,s)}for(var p=0;p<_;p++){var f=l[p];if(t.level>=1)if(1048576&f.transformFlags){var m=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(m),u=e.append(u,[m,f]),c=e.append(c,t.createArrayBindingOrAssignmentElement(m))}else c=e.append(c,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(p===_-1){var g=e.createArraySlice(o,p);r(t,f,g,f)}}else{var g=e.createElementAccess(o,p);r(t,f,g,f)}}}c&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(c),o,s,a);if(u)for(var y=0,h=u;y0)return!0;var r=e.getFirstConstructorWithBody(t);return!!r&&e.forEach(r.parameters,J)}(t)&&(n|=2),e.childIsDecorated(t)&&(n|=4),Oe(t)?n|=8:function(t){return Me(t)&&e.hasModifier(t,512)}(t)?n|=32:Le(t)&&(n|=16),D<=1&&7&n&&(n|=128),n}(n,o);128&s&&t.startLexicalEnvironment();var c=n.name||(5&s?e.getGeneratedNameForNode(n):void 0),u=2&s?function(t,r,n){var i=e.moveRangePastDecorators(t),a=function(t){if(8388608&b.getNodeCheckFlags(t)){Ue();var r=e.createUniqueName(t.name&&!e.isGeneratedIdentifier(t.name)?e.idText(t.name):"default");return p[e.getOriginalNodeId(t)]=r,v(r),r}}(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,A,e.isHeritageClause),c=z(t,0!=(64&n)),u=e.createClassExpression(void 0,r,void 0,s,c);e.setOriginalNode(u,t),e.setTextRange(u,i);var l=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,a?e.createAssignment(a,u):u)],1));return e.setOriginalNode(l,t),e.setTextRange(l,i),e.setCommentRange(l,t),l}(n,c,s):function(t,r,n){var i=128&n?void 0:e.visitNodes(t.modifiers,R,e.isModifier),a=e.createClassDeclaration(void 0,i,r,void 0,e.visitNodes(t.heritageClauses,A,e.isHeritageClause),z(t,0!=(64&n))),o=e.getEmitFlags(t);return 1&n&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}(n,c,s),l=[u];if(e.some(m)&&l.push(e.createExpressionStatement(e.inlineExpressions(m))),m=a,1&s&&G(l,o,128&s?e.getInternalName(n):e.getLocalName(n)),te(l,n,!1),te(l,n,!0),function(r,n){var a=function(r){var n=function(t){var r=t.decorators,n=$(e.getFirstConstructorWithBody(t));if(r||n)return{decorators:r,parameters:n}}(r),a=ee(r,r,n);if(a){var o=p&&p[e.getOriginalNodeId(r)],s=e.getLocalName(r,!1,!0),c=i(t,a,s),u=e.createAssignment(s,o?e.createAssignment(o,c):c);return e.setEmitFlags(u,1536),e.setSourceMapRange(u,e.moveRangePastDecorators(r)),u}}(n);a&&r.push(e.setOriginalNode(e.createExpressionStatement(a),n))}(l,n),128&s){var _=e.createTokenRange(e.skipTrivia(r.text,n.members.end),18),d=e.getInternalName(n),f=e.createPartiallyEmittedExpression(d);f.end=_.end,e.setEmitFlags(f,1536);var g=e.createReturn(f);g.pos=_.pos,e.setEmitFlags(g,1920),l.push(g),e.addStatementsAfterPrologue(l,t.endLexicalEnvironment());var y=e.createImmediatelyInvokedArrowFunction(l);e.setEmitFlags(y,33554432);var h=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(n,!1,!1),void 0,y)]));e.setOriginalNode(h,n),e.setCommentRange(h,n),e.setSourceMapRange(h,e.moveRangePastDecorators(n)),e.startOnNewLine(h),l=[h]}return 8&s?Be(l,n):(128&s||2&s)&&(32&s?l.push(e.createExportDefault(e.getLocalName(n,!1,!0))):16&s&&l.push(e.createExternalModuleExport(e.getLocalName(n,!1,!0)))),l.length>1&&(l.push(e.createEndOfDeclarationMarker(n)),e.setEmitFlags(u,4194304|e.getEmitFlags(u))),e.singleOrMany(l)}(n);case 207:return function(t){var r=m;m=void 0;var n=q(t,!0),i=e.visitNodes(t.heritageClauses,A,e.isHeritageClause),a=z(t,e.some(i,function(e){return 85===e.token})),o=e.createClassExpression(void 0,t.name,void 0,i,a);if(e.setOriginalNode(o,t),e.setTextRange(o,t),e.some(n)||e.some(m)){var s=[],c=8388608&b.getNodeCheckFlags(t),u=e.createTempVariable(v,!!c);if(c){Ue();var l=e.getSynthesizedClone(u);l.autoGenerateFlags&=-9,p[e.getOriginalNodeId(t)]=l}return e.setEmitFlags(o,65536|e.getEmitFlags(o)),s.push(e.startOnNewLine(e.createAssignment(u,o))),e.addRange(s,e.map(m,e.startOnNewLine)),m=r,e.addRange(s,function(t,r){for(var n=[],i=0,a=t;i=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return e.updateSourceFileNode(r,e.visitLexicalEnvironment(r.statements,F,t,0,n))}function J(e){return void 0!==e.decorators&&e.decorators.length>0}function z(r,n){var i=[],a=function(r,n){var i=e.forEach(r.members,W),a=262144&r.transformFlags,o=e.getFirstConstructorWithBody(r);if(!i&&!a)return e.visitEachChild(o,A,t);var s=function(r){return e.visitParameterList(r&&r.parameters,A,t)||[]}(o),c=function(t,r,n){var i=[],a=0;if(y(),r){a=function(t,r){if(t.body){var n=t.body.statements,i=e.addPrologue(r,n,!1,A);if(i===n.length)return i;var a=n[i];return 219===a.kind&&e.isSuperCall(a.expression)?(r.push(e.visitNode(a,A,e.isStatement)),i+1):i}return 0}(r,i);var o=function(t){return e.filter(t.parameters,K)}(r);e.addRange(i,e.map(o,U))}else n&&i.push(e.createExpressionStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));var s=q(t,!1);return G(i,s,e.createThis()),r&&e.addRange(i,e.visitNodes(r.body.statements,A,e.isStatement,a)),i=e.mergeLexicalEnvironment(i,h()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(i),r?r.body.statements:t.members),!0),r?r.body:void 0)}(r,o,n);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),o||r),o))}(r,n);return a&&i.push(a),e.addRange(i,e.visitNodes(r.members,M,e.isClassElement)),e.setTextRange(e.createNodeArray(i),r.members)}function K(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function U(t){e.Debug.assert(e.isIdentifier(t.name));var r=t.name,n=e.getMutableClone(r);e.setEmitFlags(n,1584);var i=e.getMutableClone(r);return e.setEmitFlags(i,1536),e.startOnNewLine(e.setEmitFlags(e.setTextRange(e.createExpressionStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),n),t.name),i)),e.moveRangePos(t,-1)),1536))}function q(t,r){return e.filter(t.members,r?V:W)}function V(e){return H(e,!0)}function W(e){return H(e,!1)}function H(t,r){return 152===t.kind&&r===e.hasModifier(t,32)&&void 0!==t.initializer}function G(t,r,n){for(var i=0,a=r;i0?152===n.kind?e.createVoidZero():e.createNull():void 0,u=i(t,a,o,s,c,e.moveRangePastDecorators(n));return e.setEmitFlags(u,1536),u}}function ne(t){return e.visitNode(t.expression,A,e.isExpression)}function ie(r,n){var i;if(r){i=[];for(var a=0,o=r;a= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'};function o(t,r,n){return t.requestEmitHelper(s),e.createCall(e.getHelperName("__metadata"),void 0,[e.createLiteral(r),n])}var s={name:"typescript:metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'};function c(t,r,n,i){return t.requestEmitHelper(u),e.setTextRange(e.createCall(e.getHelperName("__param"),void 0,[e.createLiteral(n),r]),i)}var u={name:"typescript:param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"}}(s||(s={})),function(e){var t;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),e.transformES2017=function(t){var r,i,a=t.resumeLexicalEnvironment,o=t.endLexicalEnvironment,s=t.hoistVariableDeclaration,c=t.getEmitResolver(),u=t.getCompilerOptions(),l=e.getEmitScriptTarget(u),_=0,d=t.onEmitNode,p=t.onSubstituteNode;return t.onEmitNode=function(e,t,n){if(1&r&&function(e){var t=e.kind;return 238===t||155===t||154===t||156===t||157===t}(t)){var i=6144&c.getNodeCheckFlags(t);if(i!==_){var a=_;return _=i,d(e,t,n),void(_=a)}}d(e,t,n)},t.onSubstituteNode=function(t,r){return r=p(t,r),1===t&&_?function(t){switch(t.kind){case 187:return T(t);case 188:return C(t);case 189:return function(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?T(r):C(r);return e.createCall(e.createPropertyAccess(n,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}(t)}return t}(r):r},e.chainBundle(function(r){if(r.isDeclarationFile)return r;var n=e.visitEachChild(r,f,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n});function f(r){if(0==(16&r.transformFlags))return r;switch(r.kind){case 120:return;case 199:return function(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,f,e.isExpression)),t),t)}(r);case 154:return function(r){return e.updateMethod(r,void 0,e.visitNodes(r.modifiers,f,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,f,t),void 0,2&e.getFunctionFlags(r)?S(r):e.visitFunctionBody(r.body,f,t))}(r);case 237:return function(r){return e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,f,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,f,t),void 0,2&e.getFunctionFlags(r)?S(r):e.visitFunctionBody(r.body,f,t))}(r);case 194:return function(r){return e.updateFunctionExpression(r,e.visitNodes(r.modifiers,f,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,f,t),void 0,2&e.getFunctionFlags(r)?S(r):e.visitFunctionBody(r.body,f,t))}(r);case 195:return function(r){return e.updateArrowFunction(r,e.visitNodes(r.modifiers,f,e.isModifier),void 0,e.visitParameterList(r.parameters,f,t),void 0,r.equalsGreaterThanToken,2&e.getFunctionFlags(r)?S(r):e.visitFunctionBody(r.body,f,t))}(r);default:return e.visitEachChild(r,f,t)}}function m(r){if(e.isNodeWithPossibleHoistedDeclaration(r))switch(r.kind){case 217:return function(r){if(y(r.declarationList)){var n=h(r.declarationList,!1);return n?e.createExpressionStatement(n):void 0}return e.visitEachChild(r,f,t)}(r);case 223:return function(t){var r=t.initializer;return e.updateFor(t,y(r)?h(r,!1):e.visitNode(t.initializer,f,e.isForInitializer),e.visitNode(t.condition,f,e.isExpression),e.visitNode(t.incrementor,f,e.isExpression),e.visitNode(t.statement,m,e.isStatement,e.liftToBlock))}(r);case 224:return function(t){return e.updateForIn(t,y(t.initializer)?h(t.initializer,!0):e.visitNode(t.initializer,f,e.isForInitializer),e.visitNode(t.expression,f,e.isExpression),e.visitNode(t.statement,m,e.isStatement,e.liftToBlock))}(r);case 225:return function(t){return e.updateForOf(t,e.visitNode(t.awaitModifier,f,e.isToken),y(t.initializer)?h(t.initializer,!0):e.visitNode(t.initializer,f,e.isForInitializer),e.visitNode(t.expression,f,e.isExpression),e.visitNode(t.statement,m,e.isStatement,e.liftToBlock))}(r);case 272:return function(r){var n,a=e.createUnderscoreEscapedMap();if(g(r.variableDeclaration,a),a.forEach(function(t,r){i.has(r)&&(n||(n=e.cloneMap(i)),n.delete(r))}),n){var o=i;i=n;var s=e.visitEachChild(r,m,t);return i=o,s}return e.visitEachChild(r,m,t)}(r);case 216:case 230:case 244:case 269:case 270:case 233:case 221:case 222:case 220:case 229:case 231:return e.visitEachChild(r,m,t);default:return e.Debug.assertNever(r,"Unhandled node.")}return f(r)}function g(t,r){var n=t.name;if(e.isIdentifier(n))r.set(n.escapedText,!0);else for(var i=0,a=n.elements;i=2&&(4096&c.getNodeCheckFlags(r)?(k(),e.addEmitHelper(T,e.advancedAsyncSuperHelper)):2048&c.getNodeCheckFlags(r)&&(k(),e.addEmitHelper(T,e.asyncSuperHelper))),s=T}return i=m,s}function D(t,r){return e.isBlock(t)?e.updateBlock(t,e.visitNodes(t.statements,m,e.isStatement,r)):e.convertToFunctionBody(e.visitNode(t,m,e.isConciseBody))}function k(){0==(1&r)&&(r|=1,t.enableSubstitution(189),t.enableSubstitution(187),t.enableSubstitution(188),t.enableEmitNotification(238),t.enableEmitNotification(154),t.enableEmitNotification(156),t.enableEmitNotification(157),t.enableEmitNotification(155))}function T(t){return 97===t.expression.kind?E(e.createLiteral(e.idText(t.name)),t):t}function C(e){return 97===e.expression.kind?E(e.argumentExpression,e):e}function E(t,r){return 4096&_?e.setTextRange(e.createPropertyAccess(e.createCall(e.createFileLevelUniqueName("_super"),void 0,[t]),"value"),r):e.setTextRange(e.createCall(e.createFileLevelUniqueName("_super"),void 0,[t]),r)}};var r={name:"typescript:awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'};function n(t,n,i,a){t.requestEmitHelper(r);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,a);return(o.emitNode||(o.emitNode={})).flags|=786432,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),n?e.createIdentifier("arguments"):e.createVoidZero(),i?e.createExpressionFromEntityName(i):e.createVoidZero(),o])}e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:e.helperString(a(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_super")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:e.helperString(a(["\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);"]),"_super")}}(s||(s={})),function(e){var t;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),e.transformESNext=function(t){var r=t.resumeLexicalEnvironment,c=t.endLexicalEnvironment,l=t.hoistVariableDeclaration,_=t.getEmitResolver(),d=t.getCompilerOptions(),p=e.getEmitScriptTarget(d),f=t.onEmitNode;t.onEmitNode=function(e,t,r){if(1&m&&function(e){var t=e.kind;return 238===t||155===t||154===t||156===t||157===t}(t)){var n=6144&_.getNodeCheckFlags(t);if(n!==h){var i=h;return h=n,f(e,t,r),void(h=i)}}f(e,t,r)};var m,g,y=t.onSubstituteNode;t.onSubstituteNode=function(t,r){return r=y(t,r),1===t&&h?function(t){switch(t.kind){case 187:return A(t);case 188:return P(t);case 189:return function(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?A(r):P(r);return e.createCall(e.createPropertyAccess(n,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}(t)}return t}(r):r};var h=0;return e.chainBundle(function(r){if(r.isDeclarationFile)return r;var n=e.visitEachChild(r,v,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n});function v(e){return S(e,!1)}function b(e){return S(e,!0)}function x(e){if(120!==e.kind)return e}function S(r,o){if(0==(8&r.transformFlags))return r;switch(r.kind){case 199:return function(r){return 2&g&&1&g?e.setOriginalNode(e.setTextRange(e.createYield(a(t,e.visitNode(r.expression,v,e.isExpression))),r),r):e.visitEachChild(r,v,t)}(r);case 205:return function(r){if(2&g&&1&g){if(r.asteriskToken){var n=e.visitNode(r.expression,v,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(a(t,e.updateYield(r,r.asteriskToken,function(t,r,n){return t.requestEmitHelper(i),t.requestEmitHelper(s),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[r]),n)}(t,u(t,n,n),n)))),r),r)}return e.setOriginalNode(e.setTextRange(e.createYield(k(r.expression?e.visitNode(r.expression,v,e.isExpression):e.createVoidZero())),r),r)}return e.visitEachChild(r,v,t)}(r);case 228:return function(r){return 2&g&&1&g?e.updateReturn(r,k(r.expression?e.visitNode(r.expression,v,e.isExpression):e.createVoidZero())):e.visitEachChild(r,v,t)}(r);case 231:return function(r){if(2&g){var n=e.unwrapInnermostStatementOfLabel(r);return 225===n.kind&&n.awaitModifier?D(n,r):e.restoreEnclosingLabel(e.visitEachChild(n,v,t),r)}return e.visitEachChild(r,v,t)}(r);case 186:return function(r){if(1048576&r.transformFlags){var i=function(t){for(var r,n=[],i=0,a=t;i=2&&(4096&_.getNodeCheckFlags(n)?(N(),e.addEmitHelper(u,e.advancedAsyncSuperHelper)):2048&_.getNodeCheckFlags(n)&&(N(),e.addEmitHelper(u,e.asyncSuperHelper))),u}function C(t){r();var n=0,i=[],a=e.visitNode(t.body,v,e.isConciseBody);e.isBlock(a)&&(n=e.addPrologue(i,a.statements,!1,v)),e.addRange(i,E(void 0,t));var o=c();if(n>0||e.some(i)||e.some(o)){var s=e.convertToFunctionBody(a,!0);return e.addStatementsAfterPrologue(i,o),e.addRange(i,s.statements.slice(n)),e.updateBlock(s,e.setTextRange(e.createNodeArray(i),s.statements))}return a}function E(r,n){for(var i=0,a=n.parameters;i=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(r),e.createCall(e.getHelperName("__assign"),void 0,n))}e.createAssignHelper=n;var i={name:"typescript:await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"};function a(t,r){return t.requestEmitHelper(i),e.createCall(e.getHelperName("__await"),void 0,[r])}var o={name:"typescript:asyncGenerator",scoped:!1,text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'};var s={name:"typescript:asyncDelegator",scoped:!1,text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'};var c={name:"typescript:asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], 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 };'};function u(t,r,n){return t.requestEmitHelper(c),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[r]),n)}}(s||(s={})),function(e){e.transformJsx=function(r){var n,i=r.getCompilerOptions();return e.chainBundle(function(t){if(t.isDeclarationFile)return t;n=t;var i=e.visitEachChild(t,a,r);return e.addEmitHelpers(i,r.readEmitHelpers()),i});function a(t){return 4&t.transformFlags?function(t){switch(t.kind){case 258:return s(t,!1);case 259:return c(t,!1);case 262:return u(t,!1);case 268:return m(t);default:return e.visitEachChild(t,a,r)}}(t):t}function o(t){switch(t.kind){case 10:return function(t){var r=function(t){for(var r,n=0,i=-1,a=0;a=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);n;){if(n===i||n===t)return!1;if(e.isClassElement(n)&&n.parent===t)return!0;n=n.parent}return!1}(r,t)))return e.setTextRange(e.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t}(t);case 99:return function(t){return 1&u&&16&i?e.setTextRange(e.createFileLevelUniqueName("_this"),t):t}(t)}return t}(r):e.isIdentifier(r)?function(t){if(2&u&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&function(e){switch(e.parent.kind){case 184:case 238:case 241:case 235:return e.parent.name===e&&m.isDeclarationWithCollidingName(e.parent)}return!1}(r))return e.setTextRange(e.getGeneratedNameForNode(r),t)}return t}(r):r},e.chainBundle(function(o){if(o.isDeclarationFile)return o;r=o,n=o.text;var s=function(t){var r=h(3968,64),n=[];l();var i=e.addStandardPrologue(n,t.statements,!1);return I(n,t),i=e.addCustomPrologue(n,t.statements,i,S),e.addRange(n,e.visitNodes(t.statements,S,e.isStatement,i)),a&&n.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(a))),e.addStatementsAfterPrologue(n,d()),v(r,0,0),e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(n),t.statements))}(o);return e.addEmitHelpers(s,t.readEmitHelpers()),r=void 0,n=void 0,a=void 0,i=0,s});function h(e,t){var r=i;return i=16383&(i&~e|t),r}function v(e,t,r){i=-16384&(i&~t|r)|e}function b(e){return 0!=(4096&i)&&228===e.kind&&!e.expression}function x(t){return 0!=(128&t.transformFlags)||void 0!==c||4096&i&&(e.isStatement(t)||216===t.kind)||e.isIterationStatement(t,!1)&&ae(t)||0!=(33554432&e.getEmitFlags(t))}function S(n){return x(n)?function(n){switch(n.kind){case 115:return;case 238:return function(t){var r=e.createVariableDeclaration(e.getLocalName(t,!0),void 0,C(t));e.setOriginalNode(r,t);var n=[],i=e.createVariableStatement(void 0,e.createVariableDeclarationList([r]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),n.push(i),e.hasModifier(t,1)){var a=e.hasModifier(t,512)?e.createExportDefault(e.getLocalName(t)):e.createExternalModuleExport(e.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);return 0==(4194304&o)&&(n.push(e.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o)),e.singleOrMany(n)}(n);case 207:return function(e){return C(e)}(n);case 149:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,e.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(n);case 237:return function(r){var n=c;c=void 0;var a=h(16286,65),o=e.visitParameterList(r.parameters,S,t),s=64&r.transformFlags?z(r):K(r),u=16384&i?e.getLocalName(r):r.name;return v(a,49152,0),c=n,e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,S,e.isModifier),r.asteriskToken,u,void 0,o,void 0,s)}(n);case 195:return function(r){16384&r.transformFlags&&ke();var n=c;c=void 0;var i=h(16256,66),a=e.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,S,t),void 0,z(r));return e.setTextRange(a,r),e.setOriginalNode(a,r),e.setEmitFlags(a,8),v(i,0,0),c=n,a}(n);case 194:return function(r){var n=262144&e.getEmitFlags(r)?h(16278,69):h(16286,65),a=c;c=void 0;var o=e.visitParameterList(r.parameters,S,t),s=64&r.transformFlags?z(r):K(r),u=16384&i?e.getLocalName(r):r.name;return v(n,49152,0),c=a,e.updateFunctionExpression(r,void 0,r.asteriskToken,u,void 0,o,void 0,s)}(n);case 235:return H(n);case 71:return function(t){return c?e.isGeneratedIdentifier(t)?t:"arguments"===t.escapedText&&m.isArgumentsLocalBinding(t)?c.argumentsName||(c.argumentsName=e.createUniqueName("arguments")):t:t}(n);case 236:return function(r){if(64&r.transformFlags){3&r.flags&&De();var n=e.flatMap(r.declarations,1&r.flags?W:H),i=e.createVariableDeclarationList(n);if(e.setOriginalNode(i,r),e.setTextRange(i,r),e.setCommentRange(i,r),8388608&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.last(r.declarations).name))){var a=e.firstOrUndefined(n);a&&e.setSourceMapRange(i,e.createRange(a.pos,e.last(n).end))}return i}return e.visitEachChild(r,S,t)}(n);case 230:return function(r){if(void 0!==c){var n=c.allowedNonLabeledJumps;c.allowedNonLabeledJumps|=2;var i=e.visitEachChild(r,S,t);return c.allowedNonLabeledJumps=n,i}return e.visitEachChild(r,S,t)}(n);case 244:return function(r){var n=h(4032,0),i=e.visitEachChild(r,S,t);return v(n,0,0),i}(n);case 216:return U(n,!1);case 227:case 226:return function(r){if(c){var n=227===r.kind?2:4,i=r.label&&c.labels&&c.labels.get(e.idText(r.label))||!r.label&&c.allowedNonLabeledJumps&n;if(!i){var a=void 0,o=r.label;o?227===r.kind?(a="break-"+o.escapedText,ue(c,!0,e.idText(o),a)):(a="continue-"+o.escapedText,ue(c,!1,e.idText(o),a)):227===r.kind?(c.nonLocalJumps|=2,a="break"):(c.nonLocalJumps|=4,a="continue");var s=e.createLiteral(a);if(c.loopOutParameters.length){for(var u=c.loopOutParameters,l=void 0,_=0;_=0,"statementOffset not initialized correctly!"));var c=!!n&&95!==e.skipOuterExpressions(n.expression).kind,u=function(t,r,n,i,a){if(!n)return r&&I(t,r),0;if(!r)return t.push(e.createReturn(N())),2;if(i)return O(t,r,N()),ke(),1;var o,s,c,u=r.body.statements;if(a0?r.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(n,S,t,0,o))),1048576)):a&&r.push(e.setEmitFlags(e.createExpressionStatement(e.createAssignment(o,e.visitNode(a,S,e.isExpression))),1048576))}function F(t,r,n,i){i=e.visitNode(i,S,e.isExpression);var a=e.createIf(e.createTypeCheck(e.getSynthesizedClone(n),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createExpressionStatement(e.setEmitFlags(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(n),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),r),1536))]),r),1953));e.startOnNewLine(a),e.setTextRange(a,r),e.setEmitFlags(a,1050528),t.push(a)}function w(t,r,n){var i=e.lastOrUndefined(r.parameters);if(function(e,t){return e&&e.dotDotDotToken&&71===e.name.kind&&!t}(i,n)){var a=e.getMutableClone(i.name);e.setEmitFlags(a,48);var o=e.getSynthesizedClone(i.name),s=r.parameters.length-1,c=e.createLoopVariable();t.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,e.createArrayLiteral([]))])),i),1048576));var u=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.createLiteral(s))]),i),e.setTextRange(e.createLessThan(c,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),i),e.setTextRange(e.createPostfixIncrement(c),i),e.createBlock([e.startOnNewLine(e.setTextRange(e.createExpressionStatement(e.createAssignment(e.createElementAccess(o,0===s?c:e.createSubtract(c,e.createLiteral(s))),e.createElementAccess(e.createIdentifier("arguments"),c))),i))]));e.setEmitFlags(u,1048576),e.startOnNewLine(u),t.push(u)}}function I(t,r){32768&r.transformFlags&&195!==r.kind&&O(t,r,e.createThis())}function O(t,r,n,i){ke();var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_this"),void 0,n)]));e.setEmitFlags(a,1050112),e.setTextRange(a,i),e.setSourceMapRange(a,r),t.push(a)}function M(t,r,n){if(16384&i){var a=void 0;switch(r.kind){case 195:return t;case 154:case 156:case 157:a=e.createVoidZero();break;case 155:a=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 237:case 194:a=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),93,e.getLocalName(r))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_newTarget"),void 0,a)]));if(n)return[o].concat(t);t.unshift(o)}return t}function L(t){return e.setTextRange(e.createEmptyStatement(),t)}function R(t,r,n){var a=h(0,0),o=e.getCommentRange(r),s=e.getSourceMapRange(r),c=e.createMemberAccessForPropertyName(t,e.visitNode(r.name,S,e.isPropertyName),r.name),u=J(r,r,void 0,n);e.setEmitFlags(u,1536),e.setSourceMapRange(u,s);var l=e.setTextRange(e.createExpressionStatement(e.createAssignment(c,u)),r);return e.setOriginalNode(l,r),e.setCommentRange(l,o),e.setEmitFlags(l,48),v(a,49152,49152&i?16384:0),l}function B(t,r,n){var i=e.createExpressionStatement(j(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function j(t,r,n,a){var o=r.firstAccessor,s=r.getAccessor,c=r.setAccessor,u=h(0,0),l=e.getMutableClone(t);e.setEmitFlags(l,1568),e.setSourceMapRange(l,o.name);var _=e.createExpressionForPropertyName(e.visitNode(o.name,S,e.isPropertyName));e.setEmitFlags(_,1552),e.setSourceMapRange(_,o.name);var d=[];if(s){var p=J(s,void 0,void 0,n);e.setSourceMapRange(p,e.getSourceMapRange(s)),e.setEmitFlags(p,512);var f=e.createPropertyAssignment("get",p);e.setCommentRange(f,e.getCommentRange(s)),d.push(f)}if(c){var m=J(c,void 0,void 0,n);e.setSourceMapRange(m,e.getSourceMapRange(c)),e.setEmitFlags(m,512);var g=e.createPropertyAssignment("set",m);e.setCommentRange(g,e.getCommentRange(c)),d.push(g)}d.push(e.createPropertyAssignment("enumerable",e.createTrue()),e.createPropertyAssignment("configurable",e.createTrue()));var y=e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[l,_,e.createObjectLiteral(d,!0)]);return a&&e.startOnNewLine(y),v(u,49152,49152&i?16384:0),y}function J(r,n,a,o){var s=c;c=void 0;var u=o&&e.isClassLike(o)&&!e.hasModifier(r,32)?h(16286,73):h(16286,65),l=e.visitParameterList(r.parameters,S,t),_=z(r);return 16384&i&&!a&&(237===r.kind||194===r.kind)&&(a=e.getGeneratedNameForNode(r)),v(u,49152,0),c=s,e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,r.asteriskToken,a,void 0,l,void 0,_),n),r)}function z(n){var i,a,o,s=!1,c=!1,u=[],l=[],d=n.body;if(_(),e.isBlock(d)&&(o=e.addStandardPrologue(u,d.statements,!1)),I(u,n),A(u,n),w(u,n,!1),e.isBlock(d))o=e.addCustomPrologue(u,d.statements,o,S),i=d.statements,e.addRange(l,e.visitNodes(d.statements,S,e.isStatement,o)),!s&&d.multiLine&&(s=!0);else{e.Debug.assert(195===n.kind),i=e.moveRangeEnd(d,-1);var p=n.equalsGreaterThanToken;e.nodeIsSynthesized(p)||e.nodeIsSynthesized(d)||(e.rangeEndIsOnSameLineAsRangeStart(p,d,r)?c=!0:s=!0);var f=e.visitNode(d,S,e.isExpression),m=e.createReturn(f);e.setTextRange(m,d),e.moveSyntheticComments(m,d),e.setEmitFlags(m,1440),l.push(m),a=d}var g=t.endLexicalEnvironment();e.addStatementsAfterPrologue(l,g),M(l,n,!1),(e.some(u)||e.some(g))&&(s=!0);var y=e.createBlock(e.setTextRange(e.createNodeArray(u.concat(l)),i),s);return e.setTextRange(y,n.body),!s&&c&&e.setEmitFlags(y,1),a&&e.setTokenSourceMapRange(y,18,a),e.setOriginalNode(y,n.body),y}function K(r){var n=e.visitFunctionBody(r.body,D,t);return e.updateBlock(n,e.setTextRange(e.createNodeArray(M(n.statements,r,!0)),n.statements))}function U(r,n){if(n)return e.visitEachChild(r,S,t);var a=256&i?h(4032,512):h(3904,128),o=e.visitEachChild(r,S,t);return v(a,0,0),o}function q(r,n){if(!n)switch(r.expression.kind){case 193:return e.updateParen(r,q(r.expression,!1));case 202:return e.updateParen(r,V(r.expression,!1))}return e.visitEachChild(r,S,t)}function V(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,S,t,0,n):e.visitEachChild(r,S,t)}function W(r){var n=r.name;if(e.isBindingPattern(n))return H(r);if(!r.initializer&&function(e){var t=m.getNodeCheckFlags(e),r=131072&t,n=262144&t;return!(0!=(64&i)||r&&n&&0!=(512&i))&&0==(2048&i)&&(!m.isDeclarationWithCollidingName(e)||n&&!r&&0==(3072&i))}(r)){var a=e.getMutableClone(r);return a.initializer=e.createVoidZero(),a}return e.visitEachChild(r,S,t)}function H(r){var n,i=h(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,S,t,0,void 0,0!=(32&i)):e.visitEachChild(r,S,t),v(i,0,0),n}function G(t){c.labels.set(e.idText(t.label),!0)}function X(t){c.labels.set(e.idText(t.label),!1)}function Q(r,n,a,o,s){var u=h(r,n),_=function(r,n,a){if(!ae(r)){var o=void 0;c&&(o=c.allowedNonLabeledJumps,c.allowedNonLabeledJumps=6);var s=a?a(r,n,void 0):e.restoreEnclosingLabel(e.visitEachChild(r,S,t),n,c&&X);return c&&(c.allowedNonLabeledJumps=o),s}var u,_=e.createUniqueName("_loop");switch(r.kind){case 223:case 224:case 225:var p=r.initializer;p&&236===p.kind&&(u=p)}var f=[],m=[];if(u&&3&e.getCombinedNodeFlags(u))for(var g=0,y=u.declarations;g=72&&r<=107)return e.setTextRange(e.createLiteral(t),t)}}}(s||(s={})),function(e){var t,r,n,i,a;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(t||(t={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(r||(r={})),function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(n||(n={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(i||(i={})),function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(a||(a={})),e.transformGenerators=function(t){var r,n,i,a,s,c,u,l,_,d,p=t.resumeLexicalEnvironment,f=t.endLexicalEnvironment,m=t.hoistFunctionDeclaration,g=t.hoistVariableDeclaration,y=t.getCompilerOptions(),h=e.getEmitScriptTarget(y),v=t.getEmitResolver(),b=t.onSubstituteNode;t.onSubstituteNode=function(t,i){return i=b(t,i),1===t?function(t){return e.isIdentifier(t)?function(t){if(!e.isGeneratedIdentifier(t)&&r&&r.has(e.idText(t))){var i=e.getOriginalNode(t);if(e.isIdentifier(i)&&i.parent){var a=v.getReferencedValueDeclaration(i);if(a){var o=n[e.getOriginalNodeId(a)];if(o){var s=e.getMutableClone(o);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t):t}(i):i};var x,S,D,k,T,C,E,N,A,P,F,w,I=1,O=0,M=0;return e.chainBundle(function(r){if(r.isDeclarationFile||0==(512&r.transformFlags))return r;var n=e.visitEachChild(r,L,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n});function L(r){var n=r.transformFlags;return a?function(r){switch(r.kind){case 221:case 222:return function(r){return a?(ne(),r=e.visitEachChild(r,L,t),ae(),r):e.visitEachChild(r,L,t)}(r);case 230:return function(r){return a&&Z({kind:2,isScript:!0,breakLabel:-1}),r=e.visitEachChild(r,L,t),a&&oe(),r}(r);case 231:return function(r){return a&&Z({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1}),r=e.visitEachChild(r,L,t),a&&se(),r}(r);default:return R(r)}}(r):i?R(r):256&n?function(t){switch(t.kind){case 237:return B(t);case 194:return j(t);default:return e.Debug.failBadSyntaxKind(t)}}(r):512&n?e.visitEachChild(r,L,t):r}function R(r){switch(r.kind){case 237:return B(r);case 194:return j(r);case 156:case 157:return function(r){var n=i,o=a;return i=!1,a=!1,r=e.visitEachChild(r,L,t),i=n,a=o,r}(r);case 217:return function(t){if(16777216&t.transformFlags)V(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r0?e.inlineExpressions(e.map(c,W)):void 0,e.visitNode(r.condition,L,e.isExpression),e.visitNode(r.incrementor,L,e.isExpression),e.visitNode(r.statement,L,e.isStatement,e.liftToBlock))}else r=e.visitEachChild(r,L,t);return a&&ae(),r}(r);case 224:return function(r){a&&ne();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i0)return ge(n,r)}return e.visitEachChild(r,L,t)}(r);case 226:return function(r){if(a){var n=pe(r.label&&e.idText(r.label));if(n>0)return ge(n,r)}return e.visitEachChild(r,L,t)}(r);case 228:return function(t){return r=e.visitNode(t.expression,L,e.isExpression),n=t,e.setTextRange(e.createReturn(e.createArrayLiteral(r?[me(2),r]:[me(2)])),n);var r,n}(r);default:return 16777216&r.transformFlags?function(r){switch(r.kind){case 202:return function(r){var n=e.getExpressionAssociativity(r);switch(n){case 0:return function(r){if(H(r.right)){if(e.isLogicalOperator(r.operatorToken.kind))return function(t){var r=Y(),n=Q();return ve(n,e.visitNode(t.left,L,e.isExpression),t.left),53===t.operatorToken.kind?Se(r,n,t.left):xe(r,n,t.left),ve(n,e.visitNode(t.right,L,e.isExpression),t.right),$(r),n}(r);if(26===r.operatorToken.kind)return function(t){var r=[];return n(t.left),n(t.right),e.inlineExpressions(r);function n(t){e.isBinaryExpression(t)&&26===t.operatorToken.kind?(n(t.left),n(t.right)):(H(t)&&r.length>0&&(De(1,[e.createExpressionStatement(e.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,L,e.isExpression)))}}(r);var n=e.getMutableClone(r);return n.left=X(e.visitNode(r.left,L,e.isExpression)),n.right=e.visitNode(r.right,L,e.isExpression),n}return e.visitEachChild(r,L,t)}(r);case 1:return function(r){var n,i=r.left,a=r.right;if(H(a)){var o=void 0;switch(i.kind){case 187:o=e.updatePropertyAccess(i,X(e.visitNode(i.expression,L,e.isLeftHandSideExpression)),i.name);break;case 188:o=e.updateElementAccess(i,X(e.visitNode(i.expression,L,e.isLeftHandSideExpression)),X(e.visitNode(i.argumentExpression,L,e.isExpression)));break;default:o=e.visitNode(i,L,e.isExpression)}var s=r.operatorToken.kind;return(n=s)>=59&&n<=70?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(X(o),function(e){switch(e){case 59:return 37;case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 45;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50}}(s),e.visitNode(a,L,e.isExpression)),r)),r):e.updateBinary(r,o,e.visitNode(a,L,e.isExpression))}return e.visitEachChild(r,L,t)}(r);default:return e.Debug.assertNever(n)}}(r);case 203:return function(r){if(H(r.whenTrue)||H(r.whenFalse)){var n=Y(),i=Y(),a=Q();return Se(n,e.visitNode(r.condition,L,e.isExpression),r.condition),ve(a,e.visitNode(r.whenTrue,L,e.isExpression),r.whenTrue),be(i),$(n),ve(a,e.visitNode(r.whenFalse,L,e.isExpression),r.whenFalse),$(i),a}return e.visitEachChild(r,L,t)}(r);case 205:return function(r){var n,i=Y(),a=e.visitNode(r.expression,L,e.isExpression);if(r.asteriskToken){var o=0==(8388608&e.getEmitFlags(r.expression))?e.createValuesHelper(t,a,r):a;!function(e,t){De(7,[e],t)}(o,r)}else!function(e,t){De(6,[e],t)}(a,r);return $(i),n=r,e.setTextRange(e.createCall(e.createPropertyAccess(k,"sent"),void 0,[]),n)}(r);case 185:return function(e){return z(e.elements,void 0,void 0,e.multiLine)}(r);case 186:return function(t){var r=t.properties,n=t.multiLine,i=G(r),a=Q();ve(a,e.createObjectLiteral(e.visitNodes(r,L,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,function(r,i){H(i)&&r.length>0&&(he(e.createExpressionStatement(e.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(t,i,a),s=e.visitNode(o,L,e.isExpression);return s&&(n&&e.startOnNewLine(s),r.push(s)),r},[],i);return o.push(n?e.startOnNewLine(e.getMutableClone(a)):a),e.inlineExpressions(o)}(r);case 188:return function(r){if(H(r.argumentExpression)){var n=e.getMutableClone(r);return n.expression=X(e.visitNode(r.expression,L,e.isLeftHandSideExpression)),n.argumentExpression=e.visitNode(r.argumentExpression,L,e.isExpression),n}return e.visitEachChild(r,L,t)}(r);case 189:return function(r){if(!e.isImportCall(r)&&e.forEach(r.arguments,H)){var n=e.createCallBinding(r.expression,g,h,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.createFunctionApply(X(e.visitNode(i,L,e.isLeftHandSideExpression)),a,z(r.arguments),r),r)}return e.visitEachChild(r,L,t)}(r);case 190:return function(r){if(e.forEach(r.arguments,H)){var n=e.createCallBinding(e.createPropertyAccess(r.expression,"bind"),g),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(X(e.visitNode(i,L,e.isExpression)),a,z(r.arguments,e.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,L,t)}(r);default:return e.visitEachChild(r,L,t)}}(r):33554944&r.transformFlags?e.visitEachChild(r,L,t):r}}function B(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,L,t),void 0,J(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,L,t),i=n,a=o}return i?void m(r):r}function j(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,L,t),void 0,J(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,L,t),i=n,a=o}return r}function J(t){var r=[],n=i,o=a,m=s,g=c,y=u,h=l,v=_,b=d,T=I,C=x,E=S,N=D,A=k;i=!0,a=!1,s=void 0,c=void 0,u=void 0,l=void 0,_=void 0,d=void 0,I=1,x=void 0,S=void 0,D=void 0,k=e.createTempVariable(void 0),p();var P=e.addPrologue(r,t.statements,!1,L);K(t.statements,P);var F=ke();return e.addStatementsAfterPrologue(r,f()),r.push(e.createReturn(F)),i=n,a=o,s=m,c=g,u=y,l=h,_=v,d=b,I=T,x=C,S=E,D=N,k=A,e.setTextRange(e.createBlock(r,t.multiLine),t)}function z(t,r,n,i){var a,o=G(t);if(o>0){a=Q();var s=e.visitNodes(t,L,e.isExpression,0,o);ve(a,e.createArrayLiteral(r?[r].concat(s):s)),r=void 0}var c=e.reduceLeft(t,function(t,n){if(H(n)&&t.length>0){var o=void 0!==a;a||(a=Q()),ve(a,o?e.createArrayConcat(a,[e.createArrayLiteral(t,i)]):e.createArrayLiteral(r?[r].concat(t):t,i)),r=void 0,t=[]}return t.push(e.visitNode(n,L,e.isExpression)),t},[],o);return a?e.createArrayConcat(a,[e.createArrayLiteral(c,i)]):e.setTextRange(e.createArrayLiteral(r?[r].concat(c):c,i),n)}function K(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n0?be(r,t):he(t)}(i);case 227:return function(t){var r=de(t.label?e.idText(t.label):void 0);r>0?be(r,t):he(t)}(i);case 228:return function(t){De(8,[e.visitNode(t.expression,L,e.isExpression)],t)}(i);case 229:return function(t){var r,n,i;H(t)?(r=X(e.visitNode(t.expression,L,e.isExpression)),n=Y(),i=Y(),$(n),Z({kind:1,expression:r,startLabel:n,endLabel:i}),U(t.statement),e.Debug.assert(1===re()),$(ee().endLabel)):he(e.visitNode(t,L,e.isStatement))}(i);case 230:return function(t){if(H(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=(Z({kind:2,isScript:!1,breakLabel:p=Y()}),p),a=X(e.visitNode(t.expression,L,e.isExpression)),o=[],s=-1,c=0;c0)break;_.push(e.createCaseClause(e.visitNode(u.expression,L,e.isExpression),[ge(o[c],u.expression)]))}else d++}_.length&&(he(e.createSwitch(a,e.createCaseBlock(_))),l+=_.length,_=[]),d>0&&(l+=d,d=0)}be(s>=0?o[s]:i);for(var c=0;c0);l++)u.push(W(i));u.length&&(he(e.createExpressionStatement(e.inlineExpressions(u))),c+=u.length,u=[])}}function W(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,L,e.isExpression)),t)}function H(e){return!!e&&0!=(16777216&e.transformFlags)}function G(e){for(var t=e.length,r=0;r=0;r--){var n=l[r];if(!ue(n))break;if(n.labelText===e)return!0}return!1}function de(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(ue(r=l[t])&&r.labelText===e)return r.breakLabel;if(ce(r)&&_e(e,t-1))return r.breakLabel}else for(t=l.length-1;t>=0;t--){var r;if(ce(r=l[t]))return r.breakLabel}return 0}function pe(e){if(l)if(e){for(var t=l.length-1;t>=0;t--)if(le(r=l[t])&&_e(e,t-1))return r.continueLabel}else for(t=l.length-1;t>=0;t--){var r;if(le(r=l[t]))return r.continueLabel}return 0}function fe(t){if(void 0!==t&&t>0){void 0===d&&(d=[]);var r=e.createLiteral(-1);return void 0===d[t]?d[t]=[r]:d[t].push(r),r}return e.createOmittedExpression()}function me(t){var r=e.createLiteral(t);return e.addSyntheticTrailingComment(r,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}}(t)),r}function ge(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([me(3),fe(t)])),r)}function ye(){De(0)}function he(e){e?De(1,[e]):ye()}function ve(e,t,r){De(2,[e,t],r)}function be(e,t){De(3,[e],t)}function xe(e,t,r){De(4,[e,t],r)}function Se(e,t,r){De(5,[e,t],r)}function De(e,t,r){void 0===x&&(x=[],S=[],D=[]),void 0===_&&$(Y());var n=x.length;x[n]=e,S[n]=t,D[n]=r}function ke(){O=0,M=0,T=void 0,C=!1,E=!1,N=void 0,A=void 0,P=void 0,F=void 0,w=void 0;var r=function(){if(x){for(var t=0;t0)),524288))}function Te(e){(function(e){if(!E)return!0;if(!_||!d)return!1;for(var t=0;t<_.length;t++)if(_[t]===e&&d[t])return!0;return!1})(e)&&(Ee(e),w=void 0,Pe(void 0,void 0)),A&&N&&Ce(!1),function(){if(void 0!==d&&void 0!==T)for(var e=0;e=0;r--){var n=w[r];A=[e.createWith(n.expression,e.createBlock(A))]}if(F){var i=F.startLabel,a=F.catchLabel,o=F.finallyLabel,s=F.endLabel;A.unshift(e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(k,"trys"),"push"),void 0,[e.createArrayLiteral([fe(i),fe(a),fe(o),fe(s)])]))),F=void 0}t&&A.push(e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(k,"label"),e.createLiteral(M+1))))}N.push(e.createCaseClause(e.createLiteral(M),A||[])),A=void 0}function Ee(e){if(_)for(var t=0;t<_.length;t++)_[t]===e&&(A&&(Ce(!C),C=!1,E=!1,M++),void 0===T&&(T=[]),void 0===T[M]?T[M]=[t]:T[M].push(t))}function Ne(t){if(Ee(t),function(e){if(s)for(;O 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 };'}}(s||(s={})),function(e){e.transformModule=function(a){var o=a.startLexicalEnvironment,s=a.endLexicalEnvironment,c=a.hoistVariableDeclaration,u=a.getCompilerOptions(),l=a.getEmitResolver(),_=a.getEmitHost(),d=e.getEmitScriptTarget(u),p=e.getEmitModuleKind(u),f=a.onSubstituteNode,m=a.onEmitNode;a.onSubstituteNode=function(t,r){return(r=f(t,r)).id&&h[r.id]?r:1===t?function(t){switch(t.kind){case 71:return X(t);case 202:return function(t){if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=Q(t.left);if(r){for(var n=t,i=0,a=r;i=2?2:0)),t))}else n&&e.isDefaultImport(t)&&(r=e.append(r,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,e.getGeneratedNameForNode(t)),t)],d>=2?2:0))));if(B(t)){var a=e.getOriginalNodeId(t);x[a]=j(x[a],t)}else r=j(r,t);return e.singleOrMany(r)}(t);case 246:return function(t){var r;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),p!==e.ModuleKind.AMD?r=e.hasModifier(t,1)?e.append(r,e.setTextRange(e.createExpressionStatement(H(t.name,M(t))),t)):e.append(r,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,M(t))],d>=2?2:0)),t)):e.hasModifier(t,1)&&(r=e.append(r,e.setTextRange(e.createExpressionStatement(H(e.getExportName(t),e.getLocalName(t))),t))),B(t)){var n=e.getOriginalNodeId(t);x[n]=J(x[n],t)}else r=J(r,t);return e.singleOrMany(r)}(t);case 253:return function(t){if(t.moduleSpecifier){var r=e.getGeneratedNameForNode(t);if(t.exportClause){var n=[];p!==e.ModuleKind.AMD&&n.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,M(t))])),t));for(var i=0,o=t.exportClause.elements;i(e.isExportName(r)?1:0);return!1}(t.left)?e.flattenDestructuringAssignment(t,F,a,0,!1,L):e.visitEachChild(t,F,a)}(t):e.visitEachChild(t,F,a):t}function w(t,r){var i,o=e.createUniqueName("resolve"),s=e.createUniqueName("reject"),c=[e.createParameter(void 0,void 0,void 0,o),e.createParameter(void 0,void 0,void 0,s)],l=e.createBlock([e.createExpressionStatement(e.createCall(e.createIdentifier("require"),void 0,[e.createArrayLiteral([t||e.createOmittedExpression()]),o,s]))]);d>=2?i=e.createArrowFunction(void 0,void 0,c,void 0,void 0,l):(i=e.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,l),r&&e.setEmitFlags(i,8));var _=e.createNew(e.createIdentifier("Promise"),void 0,[i]);return u.esModuleInterop?(a.requestEmitHelper(n),e.createCall(e.createPropertyAccess(_,e.createIdentifier("then")),void 0,[e.getHelperName("__importStar")])):_}function I(t,r){var i,o=e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),void 0,[]),s=e.createCall(e.createIdentifier("require"),void 0,t?[t]:[]);return u.esModuleInterop&&(a.requestEmitHelper(n),s=e.createCall(e.getHelperName("__importStar"),void 0,[s])),d>=2?i=e.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(i=e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock([e.createReturn(s)])),r&&e.setEmitFlags(i,8)),e.createCall(e.createPropertyAccess(o,"then"),void 0,[i])}function O(t,r){return!u.esModuleInterop||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?(a.requestEmitHelper(n),e.createCall(e.getHelperName("__importStar"),void 0,[r])):e.getImportNeedsImportDefaultHelper(t)?(a.requestEmitHelper(i),e.createCall(e.getHelperName("__importDefault"),void 0,[r])):r}function M(t){var r=e.getExternalModuleNameLiteral(t,g,_,l,u),n=[];return r&&n.push(r),e.createCall(e.createIdentifier("require"),void 0,n)}function L(t,r,n){var i=Q(t);if(i){for(var a=e.isExportName(t)?r:e.createAssignment(t,r),o=0,s=i;o1){var i=n.slice(1),a=e.guessIndentation(i);r=[n[0]].concat(e.map(i,function(e){return e.slice(a)})).join(T)}e.addSyntheticLeadingComment(o,t.kind,r,t.hasTrailingNewLine)}},u=0,l=s;u0?e.parameters[0].type:void 0}e.transformDeclarations=r}(s||(s={})),function(e){var t,r;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(t||(t={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(r||(r={})),e.getTransformers=function(t,r){var n=t.jsx,i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),o=[];return e.addRange(o,r&&r.before),o.push(e.transformTypeScript),2===n&&o.push(e.transformJsx),i<6&&o.push(e.transformESNext),i<4&&o.push(e.transformES2017),i<3&&o.push(e.transformES2016),i<2&&(o.push(e.transformES2015),o.push(e.transformGenerators)),o.push(function(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2015:return e.transformES2015Module;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}(a)),i<1&&o.push(e.transformES5),e.addRange(o,r&&r.after),o},e.transformNodes=function(t,r,n,i,a,o){for(var s,c,u,l=new Array(309),_=[],d=[],p=0,f=!1,m=function(e,t){return t},g=function(e,t,r){return r(e,t)},y=0,h=[],v={getCompilerOptions:function(){return n},getEmitResolver:function(){return t},getEmitHost:function(){return r},startLexicalEnvironment:function(){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is suspended."),_[p]=s,d[p]=c,p++,s=void 0,c=void 0},suspendLexicalEnvironment:function(){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is already suspended."),f=!0},resumeLexicalEnvironment:function(){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(f,"Lexical environment is not suspended."),f=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is suspended."),(s||c)&&(c&&(t=c.slice()),s)){var r=e.createVariableStatement(void 0,e.createVariableDeclarationList(s));t?t.push(r):t=[r]}return s=_[--p],c=d[p],0===p&&(_=[],d=[]),t},hoistVariableDeclaration:function(t){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(e.createVariableDeclaration(t),64);s?s.push(r):s=[r]},hoistFunctionDeclaration:function(t){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),c?c.push(t):c=[t]},requestEmitHelper:function(t){e.Debug.assert(y>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),u=e.append(u,t)},readEmitHelpers:function(){e.Debug.assert(y>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed.");var t=u;return u=void 0,t},enableSubstitution:function(t){e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed."),l[t]|=1},enableEmitNotification:function(t){e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed."),l[t]|=2},isSubstitutionEnabled:T,isEmitNotificationEnabled:C,get onSubstituteNode(){return m},set onSubstituteNode(t){e.Debug.assert(y<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),m=t},get onEmitNode(){return g},set onEmitNode(t){e.Debug.assert(y<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),g=t},addDiagnostic:function(e){h.push(e)}},b=0,x=i;b=0&&S(v(V)),H&&k(G),64&K?(h=!0,c(t,a),h=!1):c(t,a),H&&k(H),304!==a.kind&&0==(32&K)&&W>=0&&S(W),H&&k(G)}},emitTokenWithSourceMap:function(t,r,n,i,a){if(h||e.isInJsonFile(t))return a(r,n,i);var o=t&&t.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[r];return i=v(c?c.pos:i),0==(128&s)&&i>=0&&S(i),i=a(r,n,i),c&&(i=c.end),0==(256&s)&&i>=0&&S(i),i},getText:C,getSourceMappingURL:function(){if(!h&&!D(s)){if(o.inlineSourceMap){var t=e.base64encode(e.sys,C());return m.jsSourceMappingURL="data:application/json;base64,"+t}return m.jsSourceMappingURL}}};function v(t){return s.skipTrivia?s.skipTrivia(t):e.skipTrivia(c,t)}function b(){h||(g&&g.push(m),s=void 0,u=void 0,l=void 0,_=void 0,d=void 0,f=void 0,m=void 0,g=void 0)}function x(){if(_&&_!==d){e.Debug.assert(_.emittedColumn>=0,"lastEncodedSourceMapSpan.emittedColumn was negative"),e.Debug.assert(_.sourceIndex>=0,"lastEncodedSourceMapSpan.sourceIndex was negative"),e.Debug.assert(_.sourceLine>=0,"lastEncodedSourceMapSpan.sourceLine was negative"),e.Debug.assert(_.sourceColumn>=0,"lastEncodedSourceMapSpan.sourceColumn was negative");var t=d.emittedColumn;if(d.emittedLine===_.emittedLine)m.sourceMapMappings&&(m.sourceMapMappings+=",");else{for(var r=d.emittedLine;r<_.emittedLine;r++)m.sourceMapMappings+=";";t=0}m.sourceMapMappings+=a(_.emittedColumn-t),m.sourceMapMappings+=a(_.sourceIndex-d.sourceIndex),m.sourceMapMappings+=a(_.sourceLine-d.sourceLine),m.sourceMapMappings+=a(_.sourceColumn-d.sourceColumn),_.nameIndex>=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),m.sourceMapMappings+=a(_.nameIndex-f),f=_.nameIndex),d=_}}function S(t){if(!(h||e.positionIsSynthesized(t)||D(s))){y&&e.performance.mark("beforeSourcemap");var r=e.getLineAndCharacterOfPosition(s,t),n=i.getLine(),a=i.getColumn();!_||_.emittedLine!==n||_.emittedColumn!==a||_.sourceIndex===l&&(_.sourceLine>r.line||_.sourceLine===r.line&&_.sourceColumn>r.character)?(x(),_={emittedLine:n,emittedColumn:a,sourceLine:r.line,sourceColumn:r.character,sourceIndex:l}):(_.sourceLine=r.line,_.sourceColumn=r.character,_.sourceIndex=l),y&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"))}}function D(t){return e.fileExtensionIs(t.fileName,".json")}function k(e){h||(c=(s=e).text,D(e)||T(e.fileName,e.text))}function T(t,n,i){if(!i){var a=o.sourceRoot?r.getCommonSourceDirectory():u;i=e.getRelativePathToDirectoryOrUrl(a,t,r.getCurrentDirectory(),r.getCanonicalFileName,!0)}-1===(l=m.sourceMapSources.indexOf(i))&&(l=m.sourceMapSources.length,m.sourceMapSources.push(i),m.inputSourceFileNames.push(t),o.inlineSources&&m.sourceMapSourcesContent.push(n))}function C(){if(!h&&!D(s))return x(),JSON.stringify({version:3,file:m.sourceMapFile,sourceRoot:m.sourceMapSourceRoot,sources:m.sourceMapSources,names:m.sourceMapNames,mappings:m.sourceMapMappings,sourcesContent:m.sourceMapSourcesContent})}};var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function i(e){if(e<64)return r.charAt(e);throw TypeError(e+": not a 64 based value")}function a(e){e<0?e=1+(-e<<1):e<<=1;var t="";do{var r=31&e;(e>>=5)>0&&(r|=32),t+=i(r)}while(e>0);return t}}(s||(s={})),function(e){e.createCommentWriter=function(t,r){var n,i,a,o,s,c=t.extendedDiagnostics,u=e.getNewLineCharacter(t),l=-1,_=-1,d=-1,p=!1,f=!!t.removeComments;return{reset:function(){i=void 0,a=void 0,o=void 0,s=void 0},setWriter:function(e){n=e},setSourceFile:function(t){a=(i=t).text,o=e.getLineStarts(i),s=void 0},emitNodeWithComments:function(t,r,n){if(f)n(t,r);else if(r){p=!1;var i=r.emitNode,a=i&&i.flags||0,o=i&&i.commentRange||r,s=o.pos,u=o.end;if(s<0&&u<0||s===u)m(t,r,i,a,n);else{c&&e.performance.mark("preEmitNodeWithComment");var g=304!==r.kind,y=s<0||0!=(512&a)||10===r.kind,h=u<0||0!=(1024&a)||10===r.kind;y||v(s,g);var b=l,x=_,S=d;y||(l=s),h||(_=u,236===r.kind&&(d=u)),c&&e.performance.measure("commentTime","preEmitNodeWithComment"),m(t,r,i,a,n),c&&e.performance.mark("postEmitNodeWithComment"),l=b,_=x,d=S,!h&&g&&function(e){C(e,D)}(u),c&&e.performance.measure("commentTime","postEmitNodeWithComment")}}},emitBodyWithDetachedComments:function(t,r,i){c&&e.performance.mark("preEmitBodyWithDetachedComments");var l,_,d=r.pos,m=r.end,g=e.getEmitFlags(t),y=f||m<0||0!=(1024&g);d<0||0!=(512&g)||(l=r,(_=e.emitDetachedComments(a,o,n,E,l,u,f))&&(s?s.push(_):s=[_])),c&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&g&&!f?(f=!0,i(t),f=!1):i(t),c&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),y||(v(r.end,!0),p&&!n.isAtStartOfLine()&&n.writeLine()),c&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns")},emitTrailingCommentsOfPosition:function(t,r){f||(c&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),C(t,r?D:k),c&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"))},emitLeadingCommentsOfPosition:function(e){f||-1===e||v(e,!0)}};function m(t,r,n,i,a){var o=n&&n.leadingComments;e.some(o)&&(c&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(o,g),c&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),function(e,t,r,n){2048&r?(f=!0,n(e,t),f=!1):n(e,t)}(t,r,i,a);var s=n&&n.trailingComments;e.some(s)&&(c&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(s,y),c&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"))}function g(e){2===e.kind&&n.writeLine(),h(e),e.hasTrailingNewLine||2===e.kind?n.writeLine():n.write(" ")}function y(e){n.isAtStartOfLine()||n.write(" "),h(e),e.hasTrailingNewLine&&n.writeLine()}function h(t){var r=function(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}(t),i=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,i,n,0,r.length,u)}function v(e,t){p=!1,t?T(e,S):0===e&&T(e,b)}function b(t,r,n,i,o){(function(t,r){return e.isRecognizedTripleSlashComment(a,t,r)})(t,r)&&S(t,r,n,i,o)}function x(r,n){return!t.onlyPrintJsDocStyle||e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n)}function S(t,i,s,c,l){x(a,t)&&(p||(e.emitNewLineBeforeLeadingCommentOfPosition(o,n,l,t),p=!0),r&&r(t),e.writeCommentRange(a,o,n,t,i,u),r&&r(i),c?n.writeLine():3===s&&n.write(" "))}function D(t,i,s,c){x(a,t)&&(n.isAtStartOfLine()||n.write(" "),r&&r(t),e.writeCommentRange(a,o,n,t,i,u),r&&r(i),c&&n.writeLine())}function k(t,i,s,c){r&&r(t),e.writeCommentRange(a,o,n,t,i,u),r&&r(i),c?n.writeLine():n.write(" ")}function T(t,r){-1!==l&&t===l||(function(t){return void 0!==s&&e.last(s).nodePos===t}(t)?function(t){var r=e.last(s).detachedCommentEndPos;s.length-1?s.pop():s=void 0,e.forEachLeadingCommentRange(a,r,t,r)}(r):e.forEachLeadingCommentRange(a,t,r,t))}function C(t,r){(-1===_||t!==_&&t!==d)&&e.forEachTrailingCommentRange(a,t,r)}function E(t,n,i,o,s,c){x(a,o)&&(r&&r(o),e.writeCommentRange(t,n,i,o,s,c),r&&r(s))}}}(s||(s={})),function(e){var t,r,i=".tsbundleinfo",a=function(){var e=[];return e[512]=["{","}"],e[1024]=["(",")"],e[2048]=["<",">"],e[4096]=["[","]"],e}();function o(t,r,n,i){void 0===i&&(i=!1);var a=e.isArray(n)?n:e.getSourceFilesToEmit(t,n),o=t.getCompilerOptions();if(o.outFile||o.out){if(a.length){var c=e.createBundle(a,t.getPrependNodes());if(_=r(s(c,t,i),c))return _}}else for(var u=0,l=a;u"),tt(),Y(e.type),Dt(e)}(i);case 287:return function(e){F("function"),Ue(e,e.parameters),F(":"),Y(e.type)}(i);case 164:return function(e){St(e),$e("new"),tt(),Ke(e,e.typeParameters),Ue(e,e.parameters),tt(),Qe("=>"),tt(),Y(e.type),Dt(e)}(i);case 165:return function(e){$e("typeof"),tt(),Y(e.exprName)}(i);case 166:return function(t){Qe("{");var r=1&e.getEmitFlags(t)?384:16449;Ve(t,t.members,262144|r),Qe("}")}(i);case 167:return function(e){Y(e.elementType),Qe("["),Qe("]")}(i);case 168:return function(e){Qe("["),Ve(e,e.elementTypes,272),Qe("]")}(i);case 169:return function(e){Y(e.type),F("?")}(i);case 171:return function(e){Ve(e,e.types,260)}(i);case 172:return function(e){Ve(e,e.types,264)}(i);case 173:return function(e){Y(e.checkType),tt(),$e("extends"),tt(),Y(e.extendsType),tt(),Qe("?"),tt(),Y(e.trueType),tt(),Qe(":"),tt(),Y(e.falseType)}(i);case 174:return function(e){$e("infer"),tt(),Y(e.typeParameter)}(i);case 175:return function(e){Qe("("),Y(e.type),Qe(")")}(i);case 209:return function(e){Z(e.expression),ze(e,e.typeArguments)}(i);case 176:return void $e("this");case 177:return function(e){ct(e.operator,$e),tt(),Y(e.type)}(i);case 178:return function(e){Y(e.objectType),Qe("["),Y(e.indexType),Qe("]")}(i);case 179:return function(t){var r=e.getEmitFlags(t);Qe("{"),1&r?tt():(nt(),it());t.readonlyToken&&(Y(t.readonlyToken),132!==t.readonlyToken.kind&&$e("readonly"),tt());Qe("["),ee(0,3)(3,t.typeParameter),Qe("]"),t.questionToken&&(Y(t.questionToken),55!==t.questionToken.kind&&Qe("?"));Qe(":"),tt(),Y(t.type),I(),1&r?tt():(nt(),at());Qe("}")}(i);case 180:return function(e){Z(e.literal)}(i);case 181:return function(e){e.isTypeOf&&($e("typeof"),tt());$e("import"),Qe("("),Y(e.argument),Qe(")"),e.qualifier&&(Qe("."),Y(e.qualifier));ze(e,e.typeArguments)}(i);case 282:return void F("*");case 283:return void F("?");case 284:return function(e){F("?"),Y(e.type)}(i);case 285:return function(e){F("!"),Y(e.type)}(i);case 286:return function(e){Y(e.type),F("=")}(i);case 170:case 288:return function(e){F("..."),Y(e.type)}(i);case 182:return function(e){Qe("{"),Ve(e,e.elements,262576),Qe("}")}(i);case 183:return function(e){Qe("["),Ve(e,e.elements,262448),Qe("]")}(i);case 184:return function(e){Y(e.dotDotDotToken),e.propertyName&&(Y(e.propertyName),Qe(":"),tt());Y(e.name),Le(e.initializer,e.name.end,e)}(i);case 214:return function(e){Z(e.expression),Y(e.literal)}(i);case 215:return void I();case 216:return function(e){de(e,!e.multiLine&&ht(e))}(i);case 217:return function(e){Oe(e,e.modifiers),Y(e.declarationList),I()}(i);case 218:return void I();case 219:return function(t){Z(t.expression),e.isJsonSourceFile(n)||I()}(i);case 220:return function(e){var t=me(90,e.pos,$e,e);tt(),me(19,t,Qe,e),Z(e.expression),me(20,e.expression.end,Qe,e),je(e,e.thenStatement),e.elseStatement&&(ut(e),me(82,e.thenStatement.end,$e,e),220===e.elseStatement.kind?(tt(),Y(e.elseStatement)):je(e,e.elseStatement))}(i);case 221:return function(t){me(81,t.pos,$e,t),je(t,t.statement),e.isBlock(t.statement)?tt():ut(t);pe(t,t.statement.end),Qe(";")}(i);case 222:return function(e){pe(e,e.pos),je(e,e.statement)}(i);case 223:return function(e){var t=me(88,e.pos,$e,e);tt();var r=me(19,t,Qe,e);fe(e.initializer),r=me(25,e.initializer?e.initializer.end:r,I,e),Be(e.condition),r=me(25,e.condition?e.condition.end:r,I,e),Be(e.incrementor),me(20,e.incrementor?e.incrementor.end:r,Qe,e),je(e,e.statement)}(i);case 224:return function(e){var t=me(88,e.pos,$e,e);tt(),me(19,t,Qe,e),fe(e.initializer),tt(),me(92,e.initializer.end,$e,e),tt(),Z(e.expression),me(20,e.expression.end,Qe,e),je(e,e.statement)}(i);case 225:return function(e){var t=me(88,e.pos,$e,e);tt(),function(e){e&&(Y(e),tt())}(e.awaitModifier),me(19,t,Qe,e),fe(e.initializer),tt(),me(145,e.initializer.end,$e,e),tt(),Z(e.expression),me(20,e.expression.end,Qe,e),je(e,e.statement)}(i);case 226:return function(e){me(77,e.pos,$e,e),Re(e.label),I()}(i);case 227:return function(e){me(72,e.pos,$e,e),Re(e.label),I()}(i);case 228:return function(e){me(96,e.pos,$e,e),Be(e.expression),I()}(i);case 229:return function(e){var t=me(107,e.pos,$e,e);tt(),me(19,t,Qe,e),Z(e.expression),me(20,e.expression.end,Qe,e),je(e,e.statement)}(i);case 230:return function(e){var t=me(98,e.pos,$e,e);tt(),me(19,t,Qe,e),Z(e.expression),me(20,e.expression.end,Qe,e),tt(),Y(e.caseBlock)}(i);case 231:return function(e){Y(e.label),me(56,e.label.end,Qe,e),tt(),Y(e.statement)}(i);case 232:return function(e){me(100,e.pos,$e,e),Be(e.expression),I()}(i);case 233:return function(e){me(102,e.pos,$e,e),tt(),Y(e.tryBlock),e.catchClause&&(ut(e),Y(e.catchClause));e.finallyBlock&&(ut(e),me(87,(e.catchClause||e.tryBlock).end,$e,e),tt(),Y(e.finallyBlock))}(i);case 234:return function(e){ot(78,e.pos,$e),I()}(i);case 235:return function(e){Y(e.name),Me(e.type),Le(e.initializer,e.type?e.type.end:e.name.end,e)}(i);case 236:return function(t){$e(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),tt(),Ve(t,t.declarations,272)}(i);case 237:return function(e){ge(e)}(i);case 238:return function(e){De(e)}(i);case 239:return function(e){Je(e,e.decorators),Oe(e,e.modifiers),$e("interface"),tt(),Y(e.name),Ke(e,e.typeParameters),Ve(e,e.heritageClauses,256),tt(),Qe("{"),Ve(e,e.members,65),Qe("}")}(i);case 240:return function(e){Je(e,e.decorators),Oe(e,e.modifiers),$e("type"),tt(),Y(e.name),Ke(e,e.typeParameters),tt(),Qe("="),tt(),Y(e.type),I()}(i);case 241:return function(e){Oe(e,e.modifiers),$e("enum"),tt(),Y(e.name),tt(),Qe("{"),Ve(e,e.members,81),Qe("}")}(i);case 242:return function(e){Oe(e,e.modifiers),512&~e.flags&&($e(16&e.flags?"namespace":"module"),tt());Y(e.name);var t=e.body;if(!t)return I();for(;242===t.kind;)Qe("."),Y(t.name),t=t.body;tt(),Y(t)}(i);case 243:return function(t){St(t),e.forEach(t.statements,Tt),de(t,ht(t)),Dt(t)}(i);case 244:return function(e){me(17,e.pos,Qe,e),Ve(e,e.clauses,65),me(18,e.clauses.end,Qe,e,!0)}(i);case 245:return function(e){var t=me(84,e.pos,$e,e);tt(),t=me(118,t,$e,e),tt(),t=me(130,t,$e,e),tt(),Y(e.name),I()}(i);case 246:return function(e){Oe(e,e.modifiers),me(91,e.modifiers?e.modifiers.end:e.pos,$e,e),tt(),Y(e.name),tt(),me(58,e.name.end,Qe,e),tt(),function(e){71===e.kind?Z(e):Y(e)}(e.moduleReference),I()}(i);case 247:return function(e){Oe(e,e.modifiers),me(91,e.modifiers?e.modifiers.end:e.pos,$e,e),tt(),e.importClause&&(Y(e.importClause),tt(),me(143,e.importClause.end,$e,e),tt());Z(e.moduleSpecifier),I()}(i);case 248:return function(e){Y(e.name),e.name&&e.namedBindings&&(me(26,e.name.end,Qe,e),tt());Y(e.namedBindings)}(i);case 249:return function(e){var t=me(39,e.pos,Qe,e);tt(),me(118,t,$e,e),tt(),Y(e.name)}(i);case 250:return function(e){ke(e)}(i);case 251:return function(e){Te(e)}(i);case 252:return function(e){var t=me(84,e.pos,$e,e);tt(),e.isExportEquals?me(58,t,Ze,e):me(79,t,$e,e);tt(),Z(e.expression),I()}(i);case 253:return function(e){var t=me(84,e.pos,$e,e);tt(),e.exportClause?Y(e.exportClause):t=me(39,t,Qe,e);if(e.moduleSpecifier){tt();var r=e.exportClause?e.exportClause.end:t;me(143,r,$e,e),tt(),Z(e.moduleSpecifier)}I()}(i);case 254:return function(e){ke(e)}(i);case 255:return function(e){Te(e)}(i);case 256:return;case 257:return function(e){$e("require"),Qe("("),Z(e.expression),Qe(")")}(i);case 10:return function(e){w(),d.writeLiteral(bt(e,!0))}(i);case 260:case 263:return function(t){Qe("<"),e.isJsxOpeningElement(t)&&(Ce(t.tagName),t.attributes.properties&&t.attributes.properties.length>0&&tt(),Y(t.attributes));Qe(">")}(i);case 261:case 264:return function(t){Qe("")}(i);case 265:return function(e){Y(e.name),function(e,t,r,n){r&&(t(e),n(r))}("=",Qe,e.initializer,Y)}(i);case 266:return function(e){Ve(e,e.properties,131328)}(i);case 267:return function(e){Qe("{..."),Z(e.expression),Qe("}")}(i);case 268:return function(e){e.expression&&(Qe("{"),Y(e.dotDotDotToken),Z(e.expression),Qe("}"))}(i);case 269:return function(e){me(73,e.pos,$e,e),tt(),Z(e.expression),Ee(e,e.statements,e.expression.end)}(i);case 270:return function(e){var t=me(79,e.pos,$e,e);Ee(e,e.statements,t)}(i);case 271:return function(e){tt(),ct(e.token,$e),tt(),Ve(e,e.types,272)}(i);case 272:return function(e){var t=me(74,e.pos,$e,e);tt(),e.variableDeclaration&&(me(19,t,Qe,e),Y(e.variableDeclaration),me(20,e.variableDeclaration.end,Qe,e),tt());Y(e.block)}(i);case 273:return function(t){Y(t.name),Qe(":"),tt();var r=t.initializer;if(A&&0==(512&e.getEmitFlags(r))){var n=e.getCommentRange(r);A(n.pos)}Z(r)}(i);case 274:return function(e){Y(e.name),e.objectAssignmentInitializer&&(tt(),Qe("="),tt(),Z(e.objectAssignmentInitializer))}(i);case 275:return function(e){e.expression&&(Qe("..."),Z(e.expression))}(i);case 276:return function(e){Y(e.name),Le(e.initializer,e.name.end,e)}(i)}if(e.isExpression(i))r=1,i=se(1,i);else if(e.isToken(i))return st(i,Qe)}var a,o;if(1===r)switch(i.kind){case 8:return function(e){ue(e)}(i);case 9:case 12:case 13:return ue(i);case 71:return le(i);case 86:case 95:case 97:case 101:case 99:case 91:return void st(i,$e);case 185:return function(e){var t=e.elements,r=e.multiLine?32768:0;We(e,t,4466|r)}(i);case 186:return function(t){e.forEach(t.properties,Ct);var r=65536&e.getEmitFlags(t);r&&it();var i=t.multiLine?32768:0,a=n.languageVersion>=1&&!e.isJsonSourceFile(n)?32:0;Ve(t,t.properties,263122|a|i),r&&at()}(i);case 187:return function(r){var i=!1,a=!1;if(!(131072&e.getEmitFlags(r))){var o=r.expression.end,s=e.skipTrivia(n.text,r.expression.end)+1,c=e.createToken(23);c.pos=o,c.end=s,i=yt(r,r.expression,c),a=yt(r,c,r.name)}Z(r.expression),_t(i),!i&&function(r){if(r=e.skipPartiallyEmittedExpressions(r),e.isNumericLiteral(r)){var n=xt(r);return!r.numericLiteralFlags&&!e.stringContains(n,e.tokenToString(23))}if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)){var i=e.getConstantValue(r);return"number"==typeof i&&isFinite(i)&&Math.floor(i)===i&&t.removeComments}}(r.expression)&&Qe(".");me(23,r.expression.end,Qe,r),_t(a),Y(r.name),dt(i,a)}(i);case 188:return function(e){Z(e.expression),me(21,e.expression.end,Qe,e),Z(e.argumentExpression),me(22,e.argumentExpression.end,Qe,e)}(i);case 189:return function(e){Z(e.expression),ze(e,e.typeArguments),We(e,e.arguments,1296)}(i);case 190:return function(e){me(94,e.pos,$e,e),tt(),Z(e.expression),ze(e,e.typeArguments),We(e,e.arguments,9488)}(i);case 191:return function(e){Z(e.tag),ze(e,e.typeArguments),tt(),Z(e.template)}(i);case 192:return function(e){Qe("<"),Y(e.type),Qe(">"),Z(e.expression)}(i);case 193:return function(e){var t=me(19,e.pos,Qe,e);Z(e.expression),me(20,e.expression?e.expression.end:t,Qe,e)}(i);case 194:return function(e){Et(e.name),ge(e)}(i);case 195:return function(e){Je(e,e.decorators),Oe(e,e.modifiers),he(e,_e)}(i);case 196:return function(e){me(80,e.pos,$e,e),tt(),Z(e.expression)}(i);case 197:return function(e){me(103,e.pos,$e,e),tt(),Z(e.expression)}(i);case 198:return function(e){me(105,e.pos,$e,e),tt(),Z(e.expression)}(i);case 199:return function(e){me(121,e.pos,$e,e),tt(),Z(e.expression)}(i);case 200:return function(e){ct(e.operator,Ze),function(e){var t=e.operand;return 200===t.kind&&(37===e.operator&&(37===t.operator||43===t.operator)||38===e.operator&&(38===t.operator||44===t.operator))}(e)&&tt();Z(e.operand)}(i);case 201:return function(e){Z(e.operand),ct(e.operator,Ze)}(i);case 202:return function(e){var t=26!==e.operatorToken.kind,r=yt(e,e.left,e.operatorToken),n=yt(e,e.operatorToken,e.right);Z(e.left),_t(r,t?" ":void 0),P(e.operatorToken.pos),st(e.operatorToken,Ze),A(e.operatorToken.end,!0),_t(n," "),Z(e.right),dt(r,n)}(i);case 203:return function(e){var t=yt(e,e.condition,e.questionToken),r=yt(e,e.questionToken,e.whenTrue),n=yt(e,e.whenTrue,e.colonToken),i=yt(e,e.colonToken,e.whenFalse);Z(e.condition),_t(t," "),Y(e.questionToken),_t(r," "),Z(e.whenTrue),dt(t,r),_t(n," "),Y(e.colonToken),_t(i," "),Z(e.whenFalse),dt(n,i)}(i);case 204:return function(e){Y(e.head),Ve(e,e.templateSpans,131072)}(i);case 205:return function(e){me(116,e.pos,$e,e),Y(e.asteriskToken),Be(e.expression)}(i);case 206:return function(e){Qe("..."),Z(e.expression)}(i);case 207:return function(e){Et(e.name),De(e)}(i);case 208:return;case 210:return function(e){Z(e.expression),e.type&&(tt(),$e("as"),tt(),Y(e.type))}(i);case 211:return function(e){Z(e.expression),Ze("!")}(i);case 212:return function(e){ot(e.keywordToken,e.pos,Qe),Qe("."),Y(e.name)}(i);case 258:return function(e){Y(e.openingElement),Ve(e,e.children,131072),Y(e.closingElement)}(i);case 259:return function(e){Qe("<"),Ce(e.tagName),tt(),Y(e.attributes),Qe("/>")}(i);case 262:return function(e){Y(e.openingFragment),Ve(e,e.children,131072),Y(e.closingFragment)}(i);case 305:return function(e){Z(e.expression)}(i);case 306:return function(e){We(e,e.elements,272)}(i)}}function se(e,t){return t&&b&&b(e,t)||t}function ce(r){var i=!1,a=278===r.kind?r:void 0;if(!a||R!==e.ModuleKind.None){for(var o=a?a.sourceFiles.length:1,s=0;s'),nt()),n&&n.moduleName&&(F('/// '),nt()),n&&n.amdDependencies)for(var i=0,a=n.amdDependencies;i'):F('/// '),nt()}for(var s=0,c=t;s'),nt()}for(var l=0,_=r;l<_.length;l++){u=_[l];F('/// '),nt()}}function Ae(t){var r=t.statements;St(t),e.forEach(t.statements,Tt),ce(t);var n=e.findIndex(r,function(t){return!e.isPrologueDirective(t)});!function(e){e.isDeclarationFile&&Ne(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives)}(t),Ve(t,r,1,-1===n?r.length:n),Dt(t)}function Pe(t,r,n){for(var i=0;i0)&&nt(),Y(a),n&&n.set(a.expression.text,!0))}return t.length}function Fe(t){if(e.isSourceFile(t))G(t),Pe(t.statements);else for(var r=e.createMap(),n=0,i=t.sourceFiles;n=n.length||0===s;if(u&&16384&i)return x&&x(n),void(S&&S(n));if(7680&i&&(Qe(function(e){return a[7680&e][0]}(i)),u&&!c&&A(n.pos,!0)),x&&x(n),u)1&i?nt():128&i&&!(262144&i)&&tt();else{var l=0==(131072&i),_=l;pt(r,n,i)?(nt(),_=!1):128&i&&tt(),64&i&&it();for(var d=void 0,p=!1,f=0;fe.getRootLength(t)&&!function(t){return!!i.has(t)||!!e.sys.directoryExists(t)&&(i.set(t,!0),!0)}(t)&&(a(e.getDirectoryPath(t)),e.sys.createDirectory(t))}function o(){return e.getDirectoryPath(e.normalizePath(e.sys.getExecutingFilePath()))}var s=e.getNewLineCharacter(t),c=e.sys.realpath&&function(t){return e.sys.realpath(t)};return{getSourceFile:function(n,i,a){var o;try{e.performance.mark("beforeIORead"),o=e.sys.readFile(n,t.charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){a&&a(e.message),o=""}return void 0!==o?e.createSourceFile(n,o,i,r):void 0},getDefaultLibLocation:o,getDefaultLibFileName:function(t){return e.combinePaths(o(),e.getDefaultLibFileName(t))},writeFile:function(r,i,o,s){try{e.performance.mark("beforeIOWrite"),a(e.getDirectoryPath(e.normalizePath(r))),e.isWatchSet(t)&&e.sys.createHash&&e.sys.getModifiedTime?function(t,r,i){n||(n=e.createMap());var a=e.sys.createHash(r),o=e.sys.getModifiedTime(t);if(o){var s=n.get(t);if(s&&s.byteOrderMark===i&&s.hash===a&&s.mtime.getTime()===o.getTime())return}e.sys.writeFile(t,r,i);var c=e.sys.getModifiedTime(t);n.set(t,{hash:a,byteOrderMark:i,mtime:c})}(r,i,o):e.sys.writeFile(r,i,o),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){s&&s(e.message)}},getCurrentDirectory:e.memoize(function(){return e.sys.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return e.sys.useCaseSensitiveFileNames},getCanonicalFileName:function(t){return e.sys.useCaseSensitiveFileNames?t:t.toLowerCase()},getNewLine:function(){return s},fileExists:function(t){return e.sys.fileExists(t)},readFile:function(t){return e.sys.readFile(t)},trace:function(t){return e.sys.write(t+s)},directoryExists:function(t){return e.sys.directoryExists(t)},getEnvironmentVariable:function(t){return e.sys.getEnvironmentVariable?e.sys.getEnvironmentVariable(t):""},getDirectories:function(t){return e.sys.getDirectories(t)},realpath:c,readDirectory:function(t,r,n,i,a){return e.sys.readDirectory(t,r,n,i,a)},getModifiedTime:e.sys.getModifiedTime&&function(t){return e.sys.getModifiedTime(t)},setModifiedTime:e.sys.setModifiedTime&&function(t,r){return e.sys.setModifiedTime(t,r)},deleteFile:e.sys.deleteFile&&function(t){return e.sys.deleteFile(t)}}}function s(t,r){var n=e.diagnosticCategoryName(t)+" TS"+t.code+": "+b(t.messageText,r.getNewLine())+r.getNewLine();if(t.file){var i=e.getLineAndCharacterOfPosition(t.file,t.start),a=i.line,o=i.character,s=t.file.fileName;return e.convertToRelativePath(s,r.getCurrentDirectory(),function(e){return r.getCanonicalFileName(e)})+"("+(a+1)+","+(o+1)+"): "+n}return n}e.findConfigFile=function(t,r,n){return void 0===n&&(n="tsconfig.json"),e.forEachAncestorDirectory(t,function(t){var i=e.combinePaths(t,n);return r(i)?i:void 0})},e.resolveTripleslashReference=i,e.computeCommonSourceDirectoryOfFilenames=a,e.createCompilerHost=o,e.getPreEmitDiagnostics=function(t,r,n){var i=t.getConfigFileParsingDiagnostics().concat(t.getOptionsDiagnostics(n),t.getSyntacticDiagnostics(r,n),t.getGlobalDiagnostics(n),t.getSemanticDiagnostics(r,n));return t.getCompilerOptions().declaration&&e.addRange(i,t.getDeclarationDiagnostics(r,n)),e.sortAndDeduplicateDiagnostics(i)},e.formatDiagnostics=function(e,t){for(var r="",n=0,i=e;n=4,x=(m+1+"").length;b&&(x=Math.max(_.length,x));for(var S="",D=d;D<=m;D++){S+=o.getNewLine(),b&&d+10||s.length>0)return{diagnostics:e.concatenate(c,s),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}var u=Re().getEmitResolver(N.outFile||N.out?void 0:r,i);e.performance.mark("beforeEmit");var l=a?[]:e.getTransformers(N,o),_=e.emitFiles(u,Oe(n),r,a,l,o&&o.afterDeclarations);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),_}(_,t,r,n,i,a)})},getCurrentDirectory:function(){return Y},getNodeCount:function(){return Re().getNodeCount()},getIdentifierCount:function(){return Re().getIdentifierCount()},getSymbolCount:function(){return Re().getSymbolCount()},getTypeCount:function(){return Re().getTypeCount()},getFileProcessingDiagnostics:function(){return M},getResolvedTypeReferenceDirectives:function(){return O},isSourceFileFromExternalLibrary:Le,isSourceFileDefaultLibrary:function(t){if(t.hasNoDefaultLib)return!0;if(!N.noLib)return!1;var r=V.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return N.lib?e.some(N.lib,function(n){return r(t.fileName,e.combinePaths(X,n))}):r(t.fileName,G())},dropDiagnosticsProducingTypeChecker:function(){y=void 0},getSourceFileFromReference:function(e,t){return rt(i(t.fileName,e.fileName),function(e){return de.get(Fe(e))})},getLibFileFromReference:function(t){var r=t.fileName.toLocaleLowerCase(),n=e.libMap.get(r);if(n)return Je(e.combinePaths(X,n))},sourceFileToPackageName:le,redirectTargetsSet:_e,isEmittedFile:function(t){if(N.noEmit)return!1;var r=Fe(t);if(ze(r))return!1;var n=N.outFile||N.out;if(n)return Ct(r,n)||Ct(r,e.removeFileExtension(n)+".d.ts");if(N.declarationDir&&e.containsPath(N.declarationDir,r,Y,!V.useCaseSensitiveFileNames()))return!0;if(N.outDir)return e.containsPath(N.outDir,r,Y,!V.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(r,e.supportedJavascriptExtensions)||e.fileExtensionIs(r,".d.ts")){var i=e.removeFileExtension(r);return!!ze(i+".ts")||!!ze(i+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return A||e.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(t,r){return K&&e.resolveModuleNameFromCache(t,r,K)},getProjectReferences:function(){if(fe)return fe}},function(){if(N.strictPropertyInitialization&&!N.strictNullChecks&&vt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),N.isolatedModules&&(N.declaration&&vt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declaration","isolatedModules"),N.noEmitOnError&&vt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noEmitOnError","isolatedModules"),N.out&&vt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),N.outFile&&vt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),N.inlineSourceMap&&(N.sourceMap&&vt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),N.mapRoot&&vt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),N.paths&&void 0===N.baseUrl&&vt(e.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths"),N.composite&&!1===N.declaration&&vt(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),P)for(var t=0;t1})&&vt(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(!N.noEmit&&N.allowJs&&N.declaration&&vt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration"),N.checkJs&&!N.allowJs&&Q.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),N.emitDeclarationOnly&&(N.declaration||vt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDeclarationOnly","declaration"),N.noEmit&&vt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),N.emitDecoratorMetadata&&!N.experimentalDecorators&&vt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),N.jsxFactory?(N.reactNamespace&&vt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(N.jsxFactory,g)||bt("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,N.jsxFactory)):N.reactNamespace&&!e.isIdentifierText(N.reactNamespace,g)&&bt("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,N.reactNamespace),!N.noEmit&&!N.suppressOutputPathCheck){var S=Oe(),D=e.createMap();e.forEachEmittedFile(S,function(e){N.emitDeclarationOnly||k(e.jsFilePath,D),k(e.declarationFilePath,D)})}function k(t,r){if(t){var n,i=Fe(t);de.has(i)&&(N.configFilePath||(n=e.chainDiagnosticMessages(void 0,e.Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),n=e.chainDiagnosticMessages(n,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,t),Tt(t,e.createCompilerDiagnosticFromMessageChain(n)));var a=V.useCaseSensitiveFileNames()?i:i.toLocaleLowerCase();r.has(a)?Tt(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):r.set(a,!0)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),_;function Pe(t){if(e.containsPath(X,t.fileName,!1)){var r=e.getBaseFileName(t.fileName);if("lib.d.ts"===r||"lib.es6.d.ts"===r)return 0;var n=e.removeSuffix(e.removePrefix(r,"lib."),".d.ts"),i=e.libs.indexOf(n);if(-1!==i)return i+1}return e.libs.length+2}function Fe(t){return e.toPath(t,Y,dt)}function we(){if(void 0===g){var t=e.filter(m,function(t){return e.sourceFileMayBeEmitted(t,N,Le)});N.rootDir&&ft(t,N.rootDir)?g=e.getNormalizedAbsolutePath(N.rootDir,Y):N.composite?ft(t,g=e.getDirectoryPath(e.normalizeSlashes(N.configFilePath))):g=function(e){for(var t=[],r=0,n=e;r0;){var s=n.text.slice(a[o-1],a[o]),c=r.exec(s);if(!c)return!0;if(c[3])return!1;o--}return!0}function Ge(e,t){return Qe(e,t,I,Xe)}function Xe(t,r){return qe(function(){var n=Re().getEmitResolver(t,r);return e.getDeclarationDiagnostics(Oe(e.noop),n,t)})}function Qe(t,r,n,i){var a=t?n.perFile&&n.perFile.get(t.path):n.allDiagnostics;if(a)return a;var o=i(t,r)||e.emptyArray;return t?(n.perFile||(n.perFile=e.createMap()),n.perFile.set(t.path,o)):n.allDiagnostics=o,o}function Ye(e,t){return e.isDeclarationFile?[]:Ge(e,t)}function $e(t,r,n){nt(e.normalizePath(t),r,n,void 0)}function Ze(e,t){return e.fileName===t.fileName}function et(e,t){return 71===e.kind?71===t.kind&&e.escapedText===t.escapedText:9===t.kind&&e.text===t.text}function tt(t){if(!t.imports){var r,n,i,a=e.isSourceFileJavaScript(t),o=e.isExternalModule(t);if(N.importHelpers&&(N.isolatedModules||o)&&!t.isDeclarationFile){var s=e.createLiteral(e.externalHelpersModuleNameText),c=e.createImportDeclaration(void 0,void 0,void 0,s);e.addEmitFlags(c,67108864),s.parent=c,c.parent=t,r=[s]}for(var u=0,l=t.statements;u0),g.path=r,g.resolvedPath=Fe(t),V.useCaseSensitiveFileNames()){var b=r.toLowerCase(),x=pe.get(b);x?it(t,x.fileName,a,o,s):pe.set(b,g)}H=H||g.hasNoDefaultLib&&!i,N.noResolve||(st(g,n),ct(g)),lt(g),pt(g),n?d.push(g):f.push(g)}return g}function ot(t){var r,n=Fe(t),i=e.getNormalizedAbsolutePath(t,n);return me.forEach(function(n,a){void 0===r&&0===i.indexOf(a)&&(r=e.changeExtension(t.replace(a,n),".d.ts"))}),r}function st(t,r){e.forEach(t.referencedFiles,function(e){nt(i(e.fileName,t.fileName),r,!1,void 0,t,e.pos,e.end)})}function ct(t){var r=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()});if(r)for(var n=q(r,t.fileName),i=0;iL,d=l&&!k(N,o)&&!N.noResolve&&ar&&(Q.add(e.createDiagnosticForNodeInSourceFile(N.configFile,p.elements[r],n,i,a,o)),s=!1)}}s&&Q.add(e.createCompilerDiagnostic(n,i,a,o))}function yt(t,r,n,i){for(var a=!0,o=0,s=ht();o0)for(var a=t.getTypeChecker(),o=0,s=r.imports;o0)for(var d=0,p=r.referencedFiles;d0?o(l.outputFiles[0].text):u}return i.set(n.path,c),!u||c!==u}function o(t,r){if(!t.allFileNames){var n=r.getSourceFiles();t.allFileNames=n===e.emptyArray?e.emptyArray:n.map(function(e){return e.fileName})}return t.allFileNames}function s(t,r){return e.arrayFrom(e.mapDefinedIterator(t.referencedMap.entries(),function(e){var t=e[0];return e[1].has(r)?t:void 0}))}function c(t){for(var r=0,n=t.statements;r0;){var f=p.pop();if(!d.has(f)){var m=r.getSourceFileByPath(f);d.set(f,m),m&&a(t,r,m,i,o,l)&&p.push.apply(p,s(t,f))}}return e.arrayFrom(e.mapDefinedIterator(d.values(),function(e){return e}))}:function(e,t,r){var n=t.getCompilerOptions();return n&&(n.out||n.outFile)?[r]:u(e,t,r)})(t,r,p,d,o,l);return _||i(t,d),f},t.updateSignaturesFromCache=i,t.getAllDependencies=function(t,r,n){var i,a=r.getCompilerOptions();if(a.outFile||a.out)return o(t,r);if(!t.referencedMap||!e.isExternalModule(n)&&!c(n))return o(t,r);for(var s=e.createMap(),u=[n.path];u.length;){var l=u.pop();if(!s.has(l)){s.set(l,!0);var _=t.referencedMap.get(l);if(_)for(var d=_.keys(),p=d.next(),f=p.value,m=p.done;!m;f=(i=d.next()).value,m=i.done,i)u.push(f)}}return e.arrayFrom(e.mapDefinedIterator(s.keys(),function(e){var t=r.getSourceFileByPath(e);return t?t.fileName:e}))}}(e.BuilderState||(e.BuilderState={}))}(s||(s={})),function(e){function t(t,r,n){var i=e.BuilderState.create(t,r,n);i.program=t;var a=t.getCompilerOptions();a.outFile||a.out||(i.semanticDiagnosticsPerFile=e.createMap()),i.changedFilesSet=e.createMap();var o=e.BuilderState.canReuseOldState(i.referencedMap,n),s=o&&n.semanticDiagnosticsPerFile&&!!i.semanticDiagnosticsPerFile;o&&(n.currentChangedFilePath||e.Debug.assert(!(n.affectedFiles||n.currentAffectedFilesSignatures&&n.currentAffectedFilesSignatures.size),"Cannot reuse if only few affected files of currentChangedFile were iterated"),s&&e.Debug.assert(!e.forEachKey(n.changedFilesSet,function(e){return n.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files"),e.copyEntries(n.changedFilesSet,i.changedFilesSet));var c=i.referencedMap,u=o?n.referencedMap:void 0;return i.fileInfos.forEach(function(t,r){var a,l,_,d;if(!o||!(a=n.fileInfos.get(r))||a.version!==t.version||(_=l=c&&c.get(r),d=u&&u.get(r),_!==d&&(void 0===_||void 0===d||_.size!==d.size||e.forEachKey(_,function(e){return!d.has(e)})))||l&&e.forEachKey(l,function(e){return!i.fileInfos.has(e)&&n.fileInfos.has(e)}))i.changedFilesSet.set(r,!0);else if(s){var p=n.semanticDiagnosticsPerFile.get(r);p&&i.semanticDiagnosticsPerFile.set(r,p)}}),i}function r(t,r){e.Debug.assert(!r||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==r||!t.semanticDiagnosticsPerFile.has(r.path))}function n(t,r,n){for(;;){var i=t.affectedFiles;if(i){for(var a=t.seenAffectedFiles,o=t.semanticDiagnosticsPerFile,s=t.affectedFilesIndex;s0;a--)if(0===(i=t.indexOf(e.directorySeparator,i)+1))return!1;return!0}function I(e,t){return w(t)||(e.ignore=!0),e}function O(t,r){return T(x,r)?{dir:b,dirPath:x}:M(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,u())),e.getDirectoryPath(r))}function M(t,r){for(;e.stringContains(r,"/node_modules/");)t=e.getDirectoryPath(t),r=e.getDirectoryPath(r);if(P(r))return I({dir:t,dirPath:r},e.getDirectoryPath(r));var n,i,a=!0;if(void 0!==x)for(;!T(r,x);){var o=e.getDirectoryPath(r);if(o===r)break;a=!1,n=r,i=t,r=o,t=e.getDirectoryPath(t)}return I({dir:i||t,dirPath:n||r,nonRecursive:a},r)}function L(t){return e.fileExtensionIsOneOf(t,y)}function R(t,r){r.failedLookupLocations&&r.failedLookupLocations.length&&(r.refCount?r.refCount++:(r.refCount=1,e.isExternalModuleNameRelative(t)?B(r):c.add(t,r)))}function B(r){e.Debug.assert(!!r.refCount);for(var n=!1,i=0,a=r.failedLookupLocations;i1),h.set(s,l-1))),u===x?n=!0:U(u)}}n&&U(x)}}function U(e){v.get(e).refCount--}function q(e,t){var r=e.get(t);r&&(r.forEach(K),e.delete(t))}function V(e){q(_,e),q(m,e)}function W(t,r,n){var i=e.createMap();t.forEach(function(t,o){var s=e.getDirectoryPath(o),c=i.get(s);c||(c=e.createMap(),i.set(s,c)),t.forEach(function(t,i){c.has(i)||(c.set(i,!0),!t.isInvalidated&&r(t,n)&&(t.isInvalidated=!0,(a||(a=e.createMap())).set(o,!0)))})})}function H(r){var n;n=t.maxNumberOfFilesToIterateForInvalidation||e.maxNumberOfFilesToIterateForInvalidation,_.size>n||m.size>n?s=!0:(W(_,r,D),W(m,r,k))}function G(r,n){var i;if(n)i=function(e){return T(r,t.toPath(e))};else{var o=e.getDirectoryPath(r);if(F(r)||P(r)||F(o)||P(o))i=function(n){return t.toPath(n)===r||e.startsWith(t.toPath(n),r)};else{if(!L(r)&&!h.has(r))return!1;if(e.isEmittedFileOfProgram(t.getCurrentProgram(),r))return!1;i=function(e){return t.toPath(e)===r}}}var c=a&&a.size;return H(function(t){return e.some(t.failedLookupLocations,i)}),s||a&&a.size!==c}function X(){e.clearMap(S,e.closeFileWatcher)}function Q(e,r){return t.watchTypeRootsDirectory(r,function(n){var i=t.toPath(n);l&&l.addOrDeleteFileOrDirectory(n,i),t.onChangedAutomaticTypeDirectiveNames();var a=function(e,t){if(!s){if(T(x,t))return x;var r=M(e,t),n=r.dirPath;return!r.ignore&&v.has(n)?n:void 0}}(r,e);a&&G(i,a===i)&&t.onInvalidatedResolution()},1)}function Y(r){var n=e.getDirectoryPath(e.getDirectoryPath(r)),i=t.toPath(n);return i===x||w(i)}}}(s||(s={})),function(e){!function(t){function r(t,r,n,i){var a;return{moduleResolutionKind:e.getEmitModuleResolutionKind(t),addJsExtension:(a=r.imports,e.firstDefined(a,function(t){var r=t.text;return e.pathIsRelative(r)?e.fileExtensionIs(r,".js"):void 0})||!1),getCanonicalFileName:e.createGetCanonicalFileName(!i.useCaseSensitiveFileNames||i.useCaseSensitiveFileNames()),sourceDirectory:e.getDirectoryPath(n)}}function n(t,r,n,i){var a=r.addJsExtension,o=r.getCanonicalFileName,s=r.sourceDirectory;return function(t,r,n,i,a){var o=e.getEffectiveTypeRoots(t,r);return e.firstDefined(o,function(t){var r=e.toPath(t,void 0,n);if(e.startsWith(i,r))return u(i.substring(r.length+1),e.ModuleResolutionKind.NodeJs,a)})}(i,n,o,t,a)||function(t,r,n,i,a){if(e.getEmitModuleResolutionKind(t)!==e.ModuleResolutionKind.NodeJs)return;var o=function(e){var t,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"}(t||(t={}));var a=0,o=0,s=0;for(;o>=0;)switch(a=o,o=e.indexOf("/",a+1),s){case 0:e.indexOf("/node_modules/",a)===a&&(r=a,n=o,s=1);break;case 1:case 2:1===s&&"@"===e.charAt(a+1)?s=2:(i=o,s=3);break;case 3:s=e.indexOf("/node_modules/",a)===a?1:3}return s>1?{topLevelNodeModulesIndex:r,topLevelPackageNameIndex:n,packageRootIndex:i,fileNameIndex:a}:void 0}(r);if(!o)return;var s=function(t){var r=t.substring(0,o.packageRootIndex),a=e.combinePaths(r,"package.json");if(n.fileExists(a)){var s=JSON.parse(n.readFile(a));if(s){var c=s.typings||s.types||s.main;if(c){var u=e.toPath(c,r,i);if(e.removeFileExtension(u)===e.removeFileExtension(i(t)))return r}}}var l=e.removeFileExtension(t);if("/index"===i(l.substring(o.fileNameIndex))&&!function(t,r){for(var n=0,i=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]);n=l.length+_.length&&e.startsWith(r,l)&&e.endsWith(r,_)){var d=r.substr(l.length,r.length-_.length);return i.replace("*",d)}}else if(c===r||c===t)return i}}(e.removeFileExtension(h),v,m);if(b)return[b]}if("non-relative"===i.importModuleSpecifierPreference)return[v];if(void 0!==i.importModuleSpecifierPreference&&e.Debug.assertNever(i.importModuleSpecifierPreference),_(h))return[y];var x=e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(p,f,d));return s(y)0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:a.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.createDiagnosticReporter=r,e.nonClearingMessageCodes=[e.Diagnostics.Found_1_error_Watching_for_file_changes.code,e.Diagnostics.Found_0_errors_Watching_for_file_changes.code],e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.createWatchStatusReporter=i,e.parseConfigFileWithSystem=function(t,r,n,i){var a=n;a.onUnRecoverableConfigFileDiagnostic=function(t){return c(e.sys,i,t)};var o=e.getParsedCommandLineOfConfigFile(t,r,a);return a.onUnRecoverableConfigFileDiagnostic=void 0,o},e.emitFilesAndReportErrors=a;var o={close:e.noop};function s(t,r,n,s){void 0===t&&(t=e.sys),r||(r=e.createEmitAndSemanticDiagnosticsBuilderProgram);var c=function(e){return t.write(e+t.newLine)},u=s||i(t);return{useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames},getNewLine:function(){return t.newLine},getCurrentDirectory:function(){return t.getCurrentDirectory()},getDefaultLibLocation:l,getDefaultLibFileName:function(t){return e.combinePaths(l(),e.getDefaultLibFileName(t))},fileExists:function(e){return t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,r,n,i,a){return t.readDirectory(e,r,n,i,a)},realpath:t.realpath&&function(e){return t.realpath(e)},getEnvironmentVariable:t.getEnvironmentVariable&&function(e){return t.getEnvironmentVariable(e)},watchFile:t.watchFile?function(e,r,n){return t.watchFile(e,r,n)}:function(){return o},watchDirectory:t.watchDirectory?function(e,r,n){return t.watchDirectory(e,r,n)}:function(){return o},setTimeout:t.setTimeout?function(e,r){for(var n,i=[],a=2;ae.getRootLength(n)&&!r.directoryExists(n)){var i=e.getDirectoryPath(n);t(i),r.createDirectory(n)}}(e.getDirectoryPath(e.normalizePath(t))),r.writeFile(t,n,i),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:g,useCaseSensitiveFileNames:function(){return f},getCanonicalFileName:L,getNewLine:function(){return N},fileExists:H,readFile:y,trace:A,directoryExists:C.directoryExists&&function(e){return C.directoryExists(e)},getDirectories:C.getDirectories&&function(e){return C.getDirectories(e)},realpath:r.realpath&&function(e){return r.realpath(e)},getEnvironmentVariable:r.getEnvironmentVariable?function(e){return r.getEnvironmentVariable(e)}:function(){return""},onReleaseOldSourceFile:function(e,t){var r=_.get(e.path);r&&(V(r)?(c||(c=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),_.delete(e.path),B.removeResolutionsOfFile(e.path)))},createHash:r.createHash&&function(e){return r.createHash(e)},toPath:q,getCompilationSettings:function(){return D},watchDirectoryOfFailedLookupLocation:function(e,t,n){return M(r,e,t,n,"Failed Lookup Locations")},watchTypeRootsDirectory:function(e,t,n){return M(r,e,t,n,"Type roots")},getCachedDirectoryStructureHost:function(){return T},onInvalidatedResolution:$,onChangedAutomaticTypeDirectiveNames:function(){p=!0,$()},maxNumberOfFilesToIterateForInvalidation:r.maxNumberOfFilesToIterateForInvalidation,getCurrentProgram:z,writeLog:F},B=e.createResolutionCache(R,h?e.getDirectoryPath(e.getNormalizedAbsolutePath(h,m)):m,!1);R.resolveModuleNames=r.resolveModuleNames?function(e,t,n){return r.resolveModuleNames(e,t,n)}:function(e,t,r){return B.resolveModuleNames(e,t,r)},R.resolveTypeReferenceDirectives=r.resolveTypeReferenceDirectives?function(e,t){return r.resolveTypeReferenceDirectives(e,t)}:function(e,t){return B.resolveTypeReferenceDirectives(e,t)};var j=!!r.resolveModuleNames||!!r.resolveTypeReferenceDirectives;return K(),oe(),h?{getCurrentProgram:J,getProgram:K}:{getCurrentProgram:J,getProgram:K,updateRootFileNames:function(t){e.Debug.assert(!h,"Cannot update root file names with config file watch mode"),S=t,$()}};function J(){return n}function z(){return n&&n.getProgram()}function K(){F("Synchronizing program");var t=z();d&&(N=U(),t&&e.changesAffectModuleResolution(t.getCompilerOptions(),D)&&B.clear());var i=B.createHasInvalidatedResolution(j);return e.isProgramUptoDate(z(),S,D,Q,H,i,p)?k&&(n=x(void 0,void 0,R,n,l),k=!1):function(t,r){P!==e.WatchLogLevel.None&&(F("CreatingProgramWith::"),F(" roots: "+JSON.stringify(S)),F(" options: "+JSON.stringify(D)));var i=d||!t;if(d=!1,k=!1,B.startCachingPerDirectoryResolution(),R.hasInvalidatedResolution=r,R.hasChangedAutomaticTypeDirectiveNames=p,n=x(S,D,R,n,l),B.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(n.getProgram(),a||(a=e.createMap()),ie),i&&B.updateTypeRootsWatch(),c){for(var o=0,s=c;oe?t:e}function u(t){return e.fileExtensionIs(t,".d.ts")}function l(t){var r=a(),n=a(),i=e.createMap();return{options:t,projectStatus:a(),unchangedOutputs:a(),invalidatedProjects:r,missingRoots:i,queuedProjects:n}}!function(e){e[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.AnyErrors=60]="AnyErrors"}(t||(t={})),function(e){e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutputMissing=3]="OutputMissing",e[e.OutOfDateWithSelf=4]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=5]="OutOfDateWithUpstream",e[e.UpstreamOutOfDate=6]="UpstreamOutOfDate",e[e.UpstreamBlocked=7]="UpstreamBlocked",e[e.ContainerOnly=8]="ContainerOnly"}(r=e.UpToDateStatusType||(e.UpToDateStatusType={})),e.createBuildContext=l;var _=[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"},{name:"watch",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files,type:"boolean"}];function d(o,s,_,d,p){if(!o.getModifiedTime||!o.setModifiedTime)throw new Error("Host must support timestamp APIs");var g,y,h,v=(g=o,y=a(),h=e.parseConfigHostFromCompilerHost(g),{parseConfigFile:function(t){var r=g.getSourceFile(t,100);if(void 0!==r){var n=e.parseJsonSourceFileConfigFileContent(r,h,e.getDirectoryPath(t));return n.options.configFilePath=t,y.setValue(t,n),n}},removeKey:function(e){y.removeKey(e)}}),b=l(d),x=e.createMap(),S={fileExists:function(e){return o.fileExists(e)},getModifiedTime:function(e){return o.getModifiedTime(e)},getUnchangedTime:function(e){return b.unchangedOutputs.getValueOrUndefined(e)},getLastStatus:function(e){return b.projectStatus.getValueOrUndefined(e)},setLastStatus:function(e,t){return b.projectStatus.setValue(e,t)},parseConfigFile:function(e){return v.parseConfigFile(e)}};return{buildAllProjects:function(){var n=k();if(void 0===n)return e.ExitStatus.DiagnosticsPresent_OutputsSkipped;var i=n.buildQueue;!function(t){if(!b.options.verbose)return;for(var r=[],n=0,i=t.buildQueue;ns&&(o=d,s=m)}var g=f(a);if(0===g.length)return{type:r.ContainerOnly};for(var y,h="(none)",v=i,b="(none)",x=n,S=n,D=!1,k=0,T=g;kx&&(x=E,b=C),u(C)){var N=t.getUnchangedTime?t.getUnchangedTime(C):void 0;S=void 0!==N?c(N,S):c(S,t.getModifiedTime(C))}}var A,P=!1,F=!1;if(a.projectReferences&&t.parseConfigFile)for(var w=0,I=a.projectReferences;w=0},t.findArgument=function(t){var r=e.sys.args.indexOf(t);return r>=0&&rn?3:46===e.charCodeAt(0)?4:95===e.charCodeAt(0)?5:/^@[^/]+\/[^/]+$/.test(e)?1:encodeURIComponent(e)!==e?6:0:2},t.renderPackageNameValidationFailure=function(t,r){switch(t){case 2:return"Package name '"+r+"' cannot be empty";case 3:return"Package name '"+r+"' should be less than "+n+" characters";case 4:return"Package name '"+r+"' cannot start with '.'";case 5:return"Package name '"+r+"' cannot start with '_'";case 1:return"Package '"+r+"' is scoped and currently is not supported";case 6:return"Package name '"+r+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(t)}}}(e.JsTyping||(e.JsTyping={}))}(s||(s={})),function(e){function t(e){var t=parseInt(e,10);if(isNaN(t))throw new Error("Error in parseInt("+JSON.stringify(e)+")");return t}var r=/^(.*)-next.\d+/,n=/^(\d+)\.(\d+)\.0-next.(\d+)$/,i=/^(\d+)\.(\d+)\.(\d+)$/,a=function(){function e(e,t,r,n){this.major=e,this.minor=t,this.patch=r,this.isPrerelease=n}return e.parse=function(t){var n=r.test(t),i=e.tryParse(t,n);if(!i)throw new Error("Unexpected semver: "+t+" (isPrerelease: "+n+")");return i},e.fromRaw=function(t){return new e(t.major,t.minor,t.patch,t.isPrerelease)},e.tryParse=function(r,a){var o=(a?n:i).exec(r);return o?new e(t(o[1]),t(o[2]),t(o[3]),a):void 0},Object.defineProperty(e.prototype,"versionString",{get:function(){return this.isPrerelease?this.major+"."+this.minor+".0-next."+this.patch:this.major+"."+this.minor+"."+this.patch},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return this.major===e.major&&this.minor===e.minor&&this.patch===e.patch&&this.isPrerelease===e.isPrerelease},e.prototype.greaterThan=function(e){return this.major>e.major||this.major===e.major&&(this.minor>e.minor||this.minor===e.minor&&(!this.isPrerelease&&e.isPrerelease||this.isPrerelease===e.isPrerelease&&this.patch>e.patch))},e}();e.Semver=a}(s||(s={})),function(e){!function(e){var t=function(){function e(e){this.text=e}return e.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=function(){},e}();e.fromString=function(e){return new t(e)}}(e.ScriptSnapshot||(e.ScriptSnapshot={})),e.emptyOptions={};var t=function(){return function(){}}();e.TextChange=t,function(e){e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference"}(e.HighlightSpanKind||(e.HighlightSpanKind={})),function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"}(e.IndentStyle||(e.IndentStyle={})),function(e){e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral"}(e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={})),function(e){e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports"}(e.OutliningSpanKind||(e.OutliningSpanKind={})),function(e){e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration"}(e.OutputFileType||(e.OutputFileType={})),function(e){e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"}(e.EndOfLineState||(e.EndOfLineState={})),function(e){e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.StringLiteral=7]="StringLiteral",e[e.RegExpLiteral=8]="RegExpLiteral"}(e.TokenClass||(e.TokenClass={})),function(e){e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string"}(e.ScriptElementKind||(e.ScriptElementKind={})),function(e){e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional"}(e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})),function(e){e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value"}(e.ClassificationTypeNames||(e.ClassificationTypeNames={})),function(e){e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue"}(e.ClassificationType||(e.ClassificationType={}))}(s||(s={})),function(e){function t(t){switch(t.kind){case 149:case 235:case 184:case 152:case 151:case 273:case 274:case 154:case 153:case 155:case 156:case 157:case 237:case 194:case 195:case 272:case 265:return 1;case 148:case 239:case 240:case 166:return 2;case 301:return void 0===t.name?3:2;case 276:case 238:return 3;case 242:return e.isAmbientModule(t)?5:1===e.getModuleInstanceState(t)?5:4;case 241:case 250:case 251:case 246:case 247:case 252:case 253:return 7;case 277:return 5}return 7}function r(t){for(;146===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function n(e,t){var r=i(e);return!!r&&!!r.parent&&r.parent.kind===t&&r.parent.expression===r}function i(e){return s(e)?e.parent:e}function a(t){return 71===t.kind&&e.isBreakOrContinueStatement(t.parent)&&t.parent.label===t}function o(t){return 71===t.kind&&e.isLabeledStatement(t.parent)&&t.parent.label===t}function s(e){return e&&e.parent&&187===e.parent.kind&&e.parent.name===e}e.scanner=e.createScanner(6,!0),function(e){e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All"}(e.SemanticMeaning||(e.SemanticMeaning={})),e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=function(n){return 277===n.kind?1:252===n.parent.kind?7:r(n)?function(t){var r=146===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&246===r.parent.kind?7:4}(n):e.isDeclarationName(n)?t(n.parent):function(t){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),t.kind){case 99:return!e.isExpressionNode(t);case 176:return!0}switch(t.parent.kind){case 162:return!0;case 181:return!t.parent.isTypeOf;case 209:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)}return!1}(n)?2:function(e){return function(e){var t=e,r=!0;if(146===t.parent.kind){for(;t.parent&&146===t.parent.kind;)t=t.parent;r=t.right===e}return 162===t.parent.kind&&!r}(e)||function(e){var t=e,r=!0;if(187===t.parent.kind){for(;t.parent&&187===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&209===t.parent.kind&&271===t.parent.parent.kind){var n=t.parent.parent.parent;return 238===n.kind&&108===t.parent.parent.token||239===n.kind&&85===t.parent.parent.token}return!1}(e)}(n)?4:e.isTypeParameterDeclaration(n.parent)?(e.Debug.assert(e.isJSDocTemplateTag(n.parent.parent)),2):e.isLiteralTypeNode(n.parent)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=r,e.isCallExpressionTarget=function(e){return n(e,189)},e.isNewExpressionTarget=function(e){return n(e,190)},e.climbPastPropertyAccess=i,e.getTargetLabel=function(e,t){for(;e;){if(231===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},e.isJumpStatementTarget=a,e.isLabelOfLabeledStatement=o,e.isLabelName=function(e){return o(e)||a(e)},e.isRightSideOfQualifiedName=function(e){return 146===e.parent.kind&&e.parent.right===e},e.isRightSideOfPropertyAccess=s,e.isNameOfModuleDeclaration=function(e){return 242===e.parent.kind&&e.parent.name===e},e.isNameOfFunctionDeclaration=function(t){return 71===t.kind&&e.isFunctionLike(t.parent)&&t.parent.name===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(t){switch(t.parent.kind){case 152:case 151:case 273:case 276:case 154:case 153:case 156:case 157:case 242:return e.getNameOfDeclaration(t.parent)===t;case 188:return t.parent.argumentExpression===t;case 147:return!0;case 180:return 178===t.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(t){return e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t},e.getContainerNode=function(t){for(e.isJSDocTypeAlias(t)&&(t=t.parent.parent);;){if(!(t=t.parent))return;switch(t.kind){case 277:case 154:case 153:case 237:case 194:case 156:case 157:case 238:case 239:case 241:case 242:return t}}},e.getNodeKind=function t(r){switch(r.kind){case 277:return e.isExternalModule(r)?"module":"script";case 242:return"module";case 238:case 207:return"class";case 239:return"interface";case 240:case 295:case 301:return"type";case 241:return"enum";case 235:return o(r);case 184:return o(e.getRootDeclaration(r));case 195:case 237:case 194:return"function";case 156:return"getter";case 157:return"setter";case 154:case 153:return"method";case 152:case 151:return"property";case 160:return"index";case 159:return"construct";case 158:return"call";case 155:return"constructor";case 148:return"type parameter";case 276:return"enum member";case 149:return e.hasModifier(r,92)?"property":"parameter";case 246:case 251:case 255:case 249:return"alias";case 202:var n=e.getSpecialPropertyAssignmentKind(r),i=r.right;switch(n){case 0:return"";case 1:case 2:var a=t(i);return""===a?"const":a;case 3:return e.isFunctionExpression(i)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(i)?"method":"property";case 6:return"local class";default:return e.assertTypeIsNever(n),""}case 71:return e.isImportClause(r.parent)?"alias":"";default:return""}function o(t){return e.isVarConst(t)?"const":e.isLet(t)?"let":"var"}},e.isThis=function(t){switch(t.kind){case 99:return!0;case 71:return e.identifierIsThisKeyword(t)&&149===t.parent.kind;default:return!1}};var c=/^\/\/\/\s*=r.end}function d(e,t,r,n){return Math.max(e,r)t)break;var u=c.getEnd();if(t=t||!A(u,r)||k(u);if(_){var d=D(s,c,r);return d&&S(d,r)}return a(u)}}e.Debug.assert(void 0!==n||277===o.kind||e.isJSDocCommentContainingNode(o));if(s.length){var d=D(s,s.length,r);return d&&S(d,r)}}(n||r);return e.Debug.assert(!(a&&k(a))),a}function x(t){return e.isToken(t)&&!k(t)}function S(e,t){if(x(e))return e;var r=e.getChildren(t),n=D(r,r.length,t);return n&&S(n,t)}function D(t,r,n){for(var i=r-1;i>=0;i--){if(k(t[i]))e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(A(t[i],n))return t[i]}}function k(t){return e.isJsxText(t)&&t.containsOnlyWhiteSpaces}function T(e,t,r){for(var n=e.kind,i=0;;){var a=b(e.getFullStart(),r);if(!a)return;if((e=a).kind===t){if(0===i)return e;i--}else e.kind===n&&i++}}function C(t,r,n){var i=n.getTypeAtLocation(t);return(e.isNewExpression(t.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(function(e){return!!e.typeParameters&&e.typeParameters.length>=r})}function E(t,r){for(var n=t,i=0,a=0;n;){switch(n.kind){case 27:if(!(n=b(n.getFullStart(),r))||!e.isIdentifier(n))return;if(!i)return e.isDeclarationName(n)?void 0:{called:n,nTypeArguments:a};i--;break;case 47:i=3;break;case 46:i=2;break;case 29:i++;break;case 18:if(!(n=T(n,17,r)))return;break;case 20:if(!(n=T(n,19,r)))return;break;case 22:if(!(n=T(n,21,r)))return;break;case 26:a++;break;case 36:case 71:case 9:case 8:case 101:case 86:case 103:case 85:case 128:case 23:case 49:case 55:case 56:break;default:if(e.isTypeNode(n))break;return}n=b(n.getFullStart(),r)}}function N(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function A(e,t){return 0!==e.getWidth(t)}function P(e,t,r){var n=N(e,t,void 0);return!!n&&r===c.test(e.text.substring(n.pos,n.end))}function F(e,t){return{span:e,newText:t}}function w(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function I(t,r,n,i){return e.createImportDeclaration(void 0,void 0,t||r?e.createImportClause(t,r&&r.length?e.createNamedImports(r):void 0):void 0,"string"==typeof n?O(n,i):n)}function O(t,r){return e.createLiteral(t,0===r)}function M(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function L(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,function(t){var r=e.getNameOfDeclaration(t);return r&&71===r.kind?r.escapedText:void 0})}function R(t,r,n,i){var a=e.createMap();return function t(o){if(!(96&o.flags&&e.addToSeen(a,e.getSymbolId(o))))return;return e.firstDefined(o.declarations,function(a){return e.firstDefined(e.getAllSuperTypeNodes(a),function(a){var o=n.getTypeAtLocation(a),s=o&&o.symbol&&n.getPropertyOfType(o,r);return o&&s&&(e.firstDefined(n.getRootSymbols(s),i)||t(o.symbol))})})}(t)}e.getLineStartPositionForPosition=function(t,r){return e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=u,e.rangeContainsRangeExclusive=function(e,t){return l(e,t.pos)&&l(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=l,e.startEndContainsRange=_,e.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},e.rangeOverlapsWithStartEnd=function(e,t,r){return d(e.pos,e.end,t,r)},e.nodeOverlapsWithStartEnd=function(e,t,r,n){return d(e.getStart(t),e.end,r,n)},e.startEndOverlapsWithStartEnd=d,e.positionBelongsToNode=function(t,r,n){return e.Debug.assert(t.pos<=r),rn.getStart(t)&&rt.end||e.pos===t.end;return i&&A(e,n)?r(e):void 0})}(r)},e.findPrecedingToken=b,e.isInString=function(t,r,n){if(void 0===n&&(n=b(r,t)),n&&e.isStringTextContainingNode(n)){var i=n.getStart(t),a=n.getEnd();if(in.getStart(t)},e.findPrecedingMatchingToken=T,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=E(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==C(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=C,e.getPossibleTypeArgumentsInfo=E,e.isInComment=N,e.hasDocComment=function(t,r){var n=h(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=function(t){var r=e.isDeclaration(t)?e.getCombinedModifierFlags(t):0,n=[];return 8&r&&n.push("private"),16&r&&n.push("protected"),4&r&&n.push("public"),32&r&&n.push("static"),128&r&&n.push("abstract"),1&r&&n.push("export"),4194304&t.flags&&n.push("declare"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 162===t.kind||189===t.kind?t.typeArguments:e.isFunctionLike(t)||238===t.kind||239===t.kind?t.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(9!==t&&12!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 17<=e&&e<=70},e.isInsideTemplateLiteral=function(t,r,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart(n)=2||!!e.noEmit},e.hostUsesCaseSensitiveFileNames=w,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(w(t))},e.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?I(e,t,r,n):void 0},e.makeImport=I,e.makeStringLiteral=O,function(e){e[e.Single=0]="Single",e[e.Double=1]="Double"}(e.QuotePreference||(e.QuotePreference={})),e.quotePreferenceFromString=M,e.getQuotePreference=function(t,r){if(r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,e.isStringLiteral);return n?M(n,t):1},e.symbolNameNoDefault=function(t){var r=L(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=L,e.getPropertySymbolFromBindingElement=function(t,r){var n=t.getTypeAtLocation(r.parent),i=n&&t.getPropertyOfType(n,r.name.text);return i&&98304&i.flags?(e.Debug.assert(!!(33554432&i.flags)),i.target):i},e.getPropertySymbolsFromBaseTypes=R,e.isMemberSymbolInBaseType=function(e,t){return R(e.parent,e.name,t,function(e){return!0})||!1};var B=function(){function t(){this.map=e.createMap()}return t.prototype.add=function(t){this.map.set(String(e.getNodeId(t)),t)},t.prototype.has=function(t){return this.map.has(String(e.getNodeId(t)))},t.prototype.forEach=function(e){this.map.forEach(e)},t.prototype.some=function(t){return e.forEachEntry(this.map,t)||!1},t}();e.NodeSet=B;var j=function(){function t(){this.map=e.createMap()}return t.prototype.get=function(t){var r=this.map.get(String(e.getNodeId(t)));return r&&r.value},t.prototype.getOrUpdate=function(e,t){var r=this.get(e);if(r)return r;var n=t();return this.set(e,n),n},t.prototype.set=function(t,r){this.map.set(String(e.getNodeId(t)),{node:t,value:r})},t.prototype.has=function(t){return this.map.has(String(e.getNodeId(t)))},t.prototype.forEach=function(e){this.map.forEach(function(t){var r=t.node,n=t.value;return e(n,r)})},t}();function J(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function z(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}e.NodeMap=j,e.getParentNodeInSpan=function(t,r,n){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!J(n,t.parent,r))return t;t=t.parent}},e.findModifier=function(t,r){return t.modifiers&&e.find(t.modifiers,function(e){return e.kind===r})},e.insertImport=function(t,r,n){var i=e.findLast(r.statements,e.isAnyImportSyntax);i?t.insertNodeAfter(r,i,n):t.insertNodeAtTopOfFile(r,n,!0)},e.textSpansEqual=z,e.documentSpansEqual=function(e,t){return e.fileName===t.fileName&&z(e.textSpan,t.textSpan)}}(s||(s={})),function(e){function t(e){return e.declarations&&e.declarations.length>0&&149===e.declarations[0].kind}e.isFirstDeclarationOfSymbolParameter=t;var r=function(){var t,r,a,o,s=10*e.defaultMaximumTruncationLength;d();var u=function(t){return _(t,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var r=t.length&&t[t.length-1].text;return o>s&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(i(" ",e.SymbolDisplayPartKind.space)),t.push(i("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(t){return _(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return _(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return _(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return _(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return _(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return _(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return _(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return _(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,r){if(o>s)return;l(),o+=e.length,t.push(n(e,r))},writeLine:function(){if(o>s)return;o+=1,t.push(c()),r=!0},write:u,writeTextOfNode:u,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return a},increaseIndent:function(){a++},decreaseIndent:function(){a--},clear:d,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function l(){if(!(o>s)&&r){var n=e.getIndentString(a);n&&(o+=n.length,t.push(i(n,e.SymbolDisplayPartKind.space))),r=!1}}function _(e,r){o>s||(l(),o+=e.length,t.push(i(e,r)))}function d(){t=[],r=!0,a=0,o=0}}();function n(r,n){return i(r,function(r){var n=r.flags;if(3&n)return t(r)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName;if(4&n)return e.SymbolDisplayPartKind.propertyName;if(32768&n)return e.SymbolDisplayPartKind.propertyName;if(65536&n)return e.SymbolDisplayPartKind.propertyName;if(8&n)return e.SymbolDisplayPartKind.enumMemberName;if(16&n)return e.SymbolDisplayPartKind.functionName;if(32&n)return e.SymbolDisplayPartKind.className;if(64&n)return e.SymbolDisplayPartKind.interfaceName;if(384&n)return e.SymbolDisplayPartKind.enumName;if(1536&n)return e.SymbolDisplayPartKind.moduleName;if(8192&n)return e.SymbolDisplayPartKind.methodName;if(262144&n)return e.SymbolDisplayPartKind.typeParameterName;if(524288&n)return e.SymbolDisplayPartKind.aliasName;if(2097152&n)return e.SymbolDisplayPartKind.aliasName;return e.SymbolDisplayPartKind.text}(n))}function i(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function a(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function o(t){return i(t,e.SymbolDisplayPartKind.text)}e.symbolPart=n,e.displayPart=i,e.spacePart=function(){return i(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=a,e.punctuationPart=function(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.textOrKeywordPart=function(t){var r=e.stringToToken(t);return void 0===r?o(t):a(r)},e.textPart=o;var s="\r\n";function c(){return i("\n",e.SymbolDisplayPartKind.lineBreak)}function u(e){try{return e(r),r.displayParts()}finally{r.clear()}}function l(t){return e.isSingleOrDoubleQuote(t.charCodeAt(0))}function _(t,r){return e.ensureScriptKind(t,r&&r.getScriptKind&&r.getScriptKind(t))}function d(t,r){void 0===r&&(r=!0);var n=t&&function(t){var r=e.visitEachChild(t,d,e.nullTransformationContext);if(r===t){var n=e.getSynthesizedClone(t);return e.isStringLiteral(n)?n.textSourceNode=t:e.isNumericLiteral(n)&&(n.numericLiteralFlags=t.numericLiteralFlags),e.setTextRange(n,t)}return r.parent=void 0,r}(t);return n&&!r&&p(n),n}function p(e){f(e),m(e)}function f(e){g(e,512,y)}function m(t){g(t,1024,e.getLastChild)}function g(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&g(i,r,n)}function y(e){return e.forEachChild(function(e){return e})}function h(t,r){if(e.startsWith(t,r))return 0;var n=t.indexOf(" "+r);return-1===n&&(n=t.indexOf("."+r)),-1===n&&(n=t.indexOf('"'+r)),-1===n?-1:n+1}e.getNewLineOrDefaultFromHost=function(e,t){return t&&t.newLineCharacter||e.getNewLine&&e.getNewLine()||s},e.lineBreakPart=c,e.mapToDisplayParts=u,e.typeToDisplayParts=function(e,t,r,n){return void 0===n&&(n=0),u(function(i){e.writeType(t,r,17408|n,i)})},e.symbolToDisplayParts=function(e,t,r,n,i){return void 0===i&&(i=0),u(function(a){e.writeSymbol(t,r,n,8|i,a)})},e.signatureToDisplayParts=function(e,t,r,n){return void 0===n&&(n=0),n|=25632,u(function(i){e.writeSignature(t,r,n,void 0,i)})},e.isImportOrExportSpecifierName=function(e){return!!e.parent&&(251===e.parent.kind||255===e.parent.kind)&&e.parent.propertyName===e},e.stripQuotes=function(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&l(e)?e.substring(1,t-1):e},e.startsWithQuote=l,e.scriptKindIs=function(t,r){for(var n=[],i=2;i=0),o},e.copyComments=function(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,function(t,o,s,c){3===s?(t+=2,o-=2):t+=2,e.addSyntheticLeadingComment(r,i||s,n.text.slice(t,o),void 0!==a?a:c)})}}(s||(s={})),function(e){e.createClassifier=function(){var o=e.createScanner(6,!1);function s(i,s,c){var u=0,l=0,_=[],d=function(t){switch(t){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(t)}}(s),p=d.prefix,f=d.pushTemplate;i=p+i;var m=p.length;f&&_.push(14),o.setText(i);var g=0,y=[],h=0;do{u=o.scan(),e.isTrivia(u)||(x(),l=u);var v=o.getTextPos();if(n(o.getTokenPos(),v,m,a(u),y),v>=i.length){var b=r(o,u,e.lastOrUndefined(_));void 0!==b&&(g=b)}}while(1!==u);function x(){switch(u){case 41:case 63:t[l]||12!==o.reScanSlashToken()||(u=12);break;case 27:71===l&&h++;break;case 29:h>0&&h--;break;case 119:case 137:case 134:case 122:case 138:h>0&&!c&&(u=71);break;case 14:_.push(u);break;case 17:_.length>0&&_.push(u);break;case 18:if(_.length>0){var r=e.lastOrUndefined(_);14===r?16===(u=o.reScanTemplateToken())?_.pop():e.Debug.assertEqual(u,15,"Should have been a template middle."):(e.Debug.assertEqual(r,17,"Should have been an open brace"),_.pop())}break;default:if(!e.isKeyword(u))break;23===l?u=71:e.isKeyword(l)&&e.isKeyword(u)&&!function(t,r){if(!e.isAccessibilityModifier(t))return!0;switch(r){case 125:case 136:case 123:case 115:return!0;default:return!1}}(l,u)&&(u=71)}}return{endOfLineState:g,spans:y}}return{getClassificationsForLine:function(t,r,n){return function(t,r){for(var n=[],a=t.spans,o=0,s=0;s=0){var _=c-o;_>0&&n.push({length:_,classification:e.TokenClass.Whitespace})}n.push({length:u,classification:i(l)}),o=c+u}var d=r.length-o;return d>0&&n.push({length:d,classification:e.TokenClass.Whitespace}),{entries:n,finalLexState:t.endOfLineState}}(s(t,r,n),t)},getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([71,9,8,12,99,43,44,20,22,18,101,86],function(e){return e},function(){return!0});function r(t,r,n){switch(r){case 9:if(!t.isUnterminated())return;for(var i=t.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++;if(0==(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(r)){if(!t.isUnterminated())return;switch(r){case 16:return 5;case 13:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return 14===n?6:void 0}}function n(e,t,r,n,i){if(8!==n){0===e&&r>0&&(e+=r);var a=t-e;a>0&&i.push(e-r,a,n)}}function i(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function a(t){if(e.isKeyword(t))return 3;if(function(e){switch(e){case 39:case 41:case 42:case 37:case 38:case 45:case 46:case 47:case 27:case 29:case 30:case 31:case 93:case 92:case 118:case 32:case 33:case 34:case 35:case 48:case 50:case 49:case 53:case 54:case 69:case 68:case 70:case 65:case 66:case 67:case 59:case 60:case 61:case 63:case 64:case 58:case 26:return!0;default:return!1}}(t)||function(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}(t))return 5;if(t>=17&&t<=70)return 10;switch(t){case 8:return 4;case 9:return 6;case 12:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 71:default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 242:case 238:case 239:case 237:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild(function c(u){if(u&&e.textSpanIntersectsWith(a,u.pos,u.getFullWidth())){if(o(r,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&i.has(u.escapedText)){var l=t.getSymbolAtLocation(u),_=l&&function t(r,n,i){var a=r.getFlags();return 0==(2885600&a)?void 0:32&a?11:384&a?12:524288&a?16:1536&a?4&n||1&n&&function(t){return e.some(t.declarations,function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)})}(r)?14:void 0:2097152&a?t(i.getAliasedSymbol(r),n,i):2&n?64&a?13:262144&a?15:void 0:void 0}(l,e.getMeaningFromLocation(u),t);_&&function(e,t,r){s.push(e),s.push(t-e),s.push(r)}(u.getStart(n),u.getEnd(),_)}u.forEachChild(c)}}),{spans:s,endOfLineState:0}}function c(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function u(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i=0),a>0){var o=n||y(t.kind,t);o&&l(i,a,o)}return!0}function y(t,r){if(e.isKeyword(t))return 3;if((27===t||29===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){var n=r.parent;if(58===t&&(235===n.kind||152===n.kind||149===n.kind||265===n.kind))return 5;if(202===n.kind||200===n.kind||201===n.kind||203===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 265===r.parent.kind?24:6;if(12===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(10===t)return 23;if(71===t){if(r)switch(r.parent.kind){case 238:return r.parent.name===r?11:void 0;case 148:return r.parent.name===r?15:void 0;case 239:return r.parent.name===r?13:void 0;case 241:return r.parent.name===r?12:void 0;case 242:return r.parent.name===r?14:void 0;case 149:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}return 2}}function h(n){if(n&&e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){o(t,n.kind);for(var s=0,c=n.getChildren(r);s=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1}(f)||e.isRootedDiskPath(f)){var h=i(u);return u.rootDirs?function(t,r,n,i,o,s,c,u){for(var l=s.project||c.getCurrentDirectory(),_=!(c.useCaseSensitiveFileNames&&c.useCaseSensitiveFileNames()),d=[],p=0,f=function(t,r,n,i){t=t.map(function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))});var a=e.firstDefined(t,function(t){return e.containsPath(t,n,r,i)?n.substr(t.length):void 0});return e.deduplicate(t.map(function(t){return e.combinePaths(t,a)}),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,l,n,_);p=e.pos&&r<=e.end});if(_){var d=t.text.slice(_.pos,r),p=u.exec(d);if(p){var f=p[1],m=p[2],g=p[3],y=e.getDirectoryPath(t.path),h="path"===m?a(g,y,e.getSupportedExtensions(i),!0,o,t.path):"types"===m?s(o,i,y):void 0;return h&&n(g,_.pos+f.length,h)}}};var u=/^(\/\/\/\s*"),kind:"class",kindModifiers:void 0,sortText:"0"};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[D]}}var k=[];if(c(t,n)){var T=h(s,k,d,t,r,n.target,i,u,o,f,b,v,y);!function(t,r,n,i,a){e.getNameTable(t).forEach(function(t,o){if(t!==r){var s=e.unescapeLeadingUnderscores(o);e.addToSeen(n,s)&&e.isIdentifierText(s,i)&&!e.isStringANonContextualKeyword(s)&&a.push({name:s,kind:"warning",kindModifiers:"",sortText:"1"})}})}(t,d.pos,T,n.target,k)}else{if((!s||0===s.length)&&0===m)return;h(s,k,d,t,r,n.target,i,u,o,f,b,v,y)}var C,E=function(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}(u);0===m&&E||e.addRange(k,w[C=m]||(w[C]=I().filter(function(t){var r=e.stringToToken(t.name);switch(C){case 0:return 140!==r;case 1:return M(r);case 2:return O(r);case 3:return e.isParameterPropertyModifier(r);case 4:return!M(r);case 5:return e.isTypeKeyword(r);default:return e.Debug.assertNever(C)}})));for(var N=0,A=g;Ne.parameters.length)){var a=r.getParameterType(e,t.argumentIndex);return n=n||!!(4&a.flags),x(a,i)}}),isNewIdentifier:n}}(_,a):d()}case 247:case 253:case 257:return{kind:0,paths:t.PathCompletions.getStringLiteralCompletionsFromModuleNames(r,n,o,s,a)};default:return d()}function d(){return{kind:2,types:x(E(n,a)),isNewIdentifier:!1}}}function b(e){return e&&{kind:1,symbols:e.getApparentProperties(),hasIndexSignature:J(e)}}function x(t,r){return void 0===r&&(r=e.createMap()),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,function(e){return x(e,r)}):!t.isStringLiteral()||512&t.flags||!e.addToSeen(r,t.value)?e.emptyArray:[t]:e.emptyArray}function S(t,r,n,i,a){var o=t.getCompilerOptions(),s=P(t,r,n,c(n,o),i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},a);if(!s)return{type:"none"};if(0!==s.kind)return{type:"request",request:s};var u=s.symbols,l=s.literals,_=s.location,p=s.completionKind,f=s.symbolToOriginInfoMap,m=s.previousToken,g=s.isJsxInitializer,h=e.find(l,function(e){return d(e)===a.name});return void 0!==h?{type:"literal",literal:h}:e.firstDefined(u,function(t){var r=f[e.getSymbolId(t)],n=F(t,o.target,r,p);return n&&n.name===a.name&&y(r)===a.source?{type:"symbol",symbol:t,location:_,symbolToOriginInfoMap:f,previousToken:m,isJsxInitializer:g}:void 0})||{type:"none"}}function D(t,r,n){return r&&a(r)&&r.isDefaultExport&&"default"===t.escapedName?e.firstDefined(t.declarations,function(t){return e.isExportAssignment(t)&&e.isIdentifier(t.expression)?t.expression.text:void 0})||e.codefix.moduleSymbolToValidIdentifier(r.moduleSymbol,n):t.name}function k(t,r,n){return C(t,"",r,[e.displayPart(t,n)])}function T(t,r,n,i,a,o,s){var c=r.runWithCancellationToken(a,function(r){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,t,n,i,i,7)}),u=c.displayParts,l=c.documentation,_=c.symbolKind,d=c.tags;return C(t.name,e.SymbolDisplay.getSymbolModifiers(t),_,u,l,d,o,s)}function C(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 E(e,t){var r=e.parent;switch(r.kind){case 190:return t.getContextualType(r);case 202:var n=r,i=n.left,a=n.operatorToken,o=n.right;return R(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 269:return r.expression===e?N(r,t):void 0;default:return t.getContextualType(e)}}function N(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function A(t,r,n){var i=n.getAccessibleSymbolChain(t,r,67108863,!1);return i?e.first(i):t.parent&&(function(e){return e.declarations.some(function(e){return 277===e.kind})}(t.parent)?t:A(t.parent,r,n))}function P(t,r,n,i,a,o,s){var c=t.getTypeChecker(),u=e.timestamp(),l=e.getTokenAtPosition(n,a);r("getCompletionData: Get current token: "+(e.timestamp()-u)),u=e.timestamp();var _=e.isInComment(n,a,l);r("getCompletionData: Is inside comment: "+(e.timestamp()-u));var d=!1,p=!1;if(_){if(e.hasDocComment(n,a)){if(64===n.text.charCodeAt(a-1))return{kind:1};var f=e.getLineStartPositionForPosition(a,n);if(!n.text.substring(f,a).match(/[^\*|\s|(/\*\*)]/))return{kind:2}}var m=function(t,r){var n=e.findAncestor(t,e.isJSDoc);return n&&n.tags&&(e.rangeContainsPosition(n,r)?e.findLast(n.tags,function(e){return e.pos=t.pos;case 23:return 183===n;case 56:return 184===n;case 21:return 183===n;case 19:return 272===n||ie(n);case 17:return 241===n;case 27:return 238===n||207===n||239===n||240===n||e.isFunctionLikeKind(n);case 115:return 152===n&&!e.isClassLike(r.parent);case 24:return 149===n||!!r.parent&&183===r.parent.kind;case 114:case 112:case 113:return 149===n&&!e.isConstructorDeclaration(r.parent);case 118:return 251===n||255===n||249===n;case 125:case 136:if(j(t))return!1;case 75:case 83:case 109:case 89:case 104:case 91:case 110:case 76:case 116:case 139:return!0}if(M(L(t))&&j(t))return!1;if(ne(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(L(t))||ae(t)))return!1;switch(L(t)){case 117:case 120:case 75:case 76:case 124:case 83:case 89:case 109:case 110:case 112:case 113:case 114:case 115:case 104:case 116:return!0}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==g||a>g.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(10===e.kind)return!0;if(29===e.kind&&e.parent){if(260===e.parent.kind)return!0;if(261===e.parent.kind||259===e.parent.kind)return!!e.parent.parent&&258===e.parent.parent.kind}return!1}(t);return r("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-n)),i}(y))return void r("Returning an empty list because completion was requested in an invalid position.");var P=y.parent;if(23===y.kind)switch(x=!0,P.kind){case 187:b=(v=P).expression;break;case 146:b=P.left;break;case 181:case 212:b=P;break;default:return}else if(1===n.languageVariant){if(P&&187===P.kind&&(y=P,P=P.parent),l.parent===C)switch(l.kind){case 29:258!==l.parent.kind&&260!==l.parent.kind||(C=l);break;case 41:259===l.parent.kind&&(C=l)}switch(P.kind){case 261:41===y.kind&&(k=!0,C=y);break;case 202:if(!z(P))break;case 259:case 258:case 260:27===y.kind&&(S=!0,C=y);break;case 265:switch(g.kind){case 58:T=!0;break;case 71:P===g.parent||P.initializer||(T=g)}}}}var F=e.timestamp(),w=5,I=!1,K=0,U=[],q=[];if(x)!function(){w=2;var t=e.isLiteralImportTypeNode(b),r=d||t&&!b.isTypeOf||e.isPartOfTypeNode(b.parent),i=e.isInRightSideOfInternalImportEqualsDeclaration(b)||!r&&e.isPossiblyTypeArgumentPosition(y,n,c);if(e.isEntityName(b)||t){var a=c.getSymbolAtLocation(b);if(a&&1920&(a=e.skipAlias(a,c)).flags){for(var o=e.Debug.assertEachDefined(c.getExportsOfModule(a),"getExportsOfModule() should all be defined"),s=function(e){return c.isValidPropertyAccess(t?b:b.parent,e.name)},u=function(e){return te(e)},l=i?function(e){return u(e)||s(e)}:r?u:s,_=0,p=o;_0&&(U=function(t,r){if(0===r.length)return t;for(var n=e.createUnderscoreEscapedMap(),i=0,a=r;i=0&&!c(r,n[a],106);a--);return e.forEach(i(t.statement),function(e){o(t,e)&&c(r,e.getFirstToken(),72,77)}),r}function l(e){var t=s(e);if(t)switch(t.kind){case 223:case 224:case 225:case 221:case 222:return u(t);case 230:return _(t)}}function _(t){var r=[];return c(r,t.getFirstToken(),98),e.forEach(t.caseBlock.clauses,function(n){c(r,n.getFirstToken(),73,79),e.forEach(i(n),function(e){o(t,e)&&c(r,e.getFirstToken(),72)})}),r}function d(t,r){var n=[];(c(n,t.getFirstToken(),102),t.catchClause&&c(n,t.catchClause.getFirstToken(),74),t.finallyBlock)&&c(n,e.findChildOfKind(t,87,r),87);return n}function p(t,r){var i=function(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||277===n.kind)return n;if(e.isTryStatement(n)&&n.tryBlock===r&&n.catchClause)return r;r=n}}(t);if(i){var a=[];return e.forEach(n(i),function(t){a.push(e.findChildOfKind(t,100,r))}),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,function(t){a.push(e.findChildOfKind(t,96,r))}),a}}function f(t,r){var i=e.getContainingFunction(t);if(i){var a=[];return e.forEachReturnStatement(e.cast(i.body,e.isBlock),function(t){a.push(e.findChildOfKind(t,96,r))}),e.forEach(n(i.body),function(t){a.push(e.findChildOfKind(t,100,r))}),a}}function m(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach(function(e){c(n,e,120)}),e.forEachChild(r,function(t){g(t,function(t){e.isAwaitExpression(t)&&c(n,t.getFirstToken(),121)})}),n}}function g(t,r){r(t),e.isFunctionLike(t)||e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isModuleDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isTypeNode(t)||e.forEachChild(t,function(e){return g(e,r)})}t.getDocumentHighlights=function(t,n,i,a,o){var s=e.getTouchingPropertyName(i,a);if(s.parent&&(e.isJsxOpeningElement(s.parent)&&s.parent.tagName===s||e.isJsxClosingElement(s.parent))){var y=s.parent.parent,h=[y.openingElement,y.closingElement].map(function(e){return r(e.tagName,i)});return[{fileName:i.fileName,highlightSpans:h}]}return function(t,r,n,i,a){var o=e.arrayToSet(a,function(e){return e.fileName}),s=e.FindAllReferences.getReferenceEntriesForNode(t,r,n,a,i,void 0,o);if(s){var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return e.arrayFrom(c.entries(),function(t){var r=t[0],i=t[1];if(!o.has(r)){e.Debug.assert(n.redirectTargetsSet.has(r));var s=n.getSourceFile(r),c=e.find(a,function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s});r=c.fileName,e.Debug.assert(o.has(r))}return{fileName:r,highlightSpans:i}})}}(a,s,t,n,o)||function(t,n){var i=function(t,n){switch(t.kind){case 90:case 82:return e.isIfStatement(t.parent)?function(t,n){for(var i=function(t,r){for(var n=[];e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(r);c(n,i[0],90);for(var a=i.length-1;a>=0&&!c(n,i[a],82);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}(t,n),a=[],o=0;o=s.end;_--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(_))){l=!1;break}if(l){a.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),u.end),kind:"reference"}),o++;continue}}a.push(r(i[o],n))}return a}(t.parent,n):void 0;case 96:return y(t.parent,e.isReturnStatement,f);case 100:return y(t.parent,e.isThrowStatement,p);case 102:case 74:case 87:var i=74===t.kind?t.parent.parent:t.parent;return y(i,e.isTryStatement,d);case 98:return y(t.parent,e.isSwitchStatement,_);case 73:case 79:return y(t.parent.parent.parent,e.isSwitchStatement,_);case 72:case 77:return y(t.parent,e.isBreakOrContinueStatement,l);case 88:case 106:case 81:return y(t.parent,function(t){return e.isIterationStatement(t,!0)},u);case 123:return s(e.isConstructorDeclaration,[123]);case 125:case 136:return s(e.isAccessor,[125,136]);case 121:return y(t.parent,e.isAwaitExpression,m);case 120:return h(m(t));case 116:return h(function(t){var r=e.getContainingFunction(t);if(r){var n=[];return e.forEachChild(r,function(t){g(t,function(t){e.isYieldExpression(t)&&c(n,t.getFirstToken(),116)})}),n}}(t));default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?h((a=t.kind,o=t.parent,e.mapDefined(function(t,r){var n=t.parent;switch(n.kind){case 243:case 277:case 216:case 269:case 270:return 128&r&&e.isClassDeclaration(t)?t.members.concat([t]):n.statements;case 155:case 154:case 237:return n.parameters.concat(e.isClassLike(n.parent)?n.parent.members:[]);case 238:case 207:var i=n.members;if(28&r){var a=e.find(n.members,e.isConstructorDeclaration);if(a)return i.concat(a.parameters)}else if(128&r)return i.concat([n]);return i;default:e.Debug.assertNever(n,"Invalid container kind.")}}(o,e.modifierToFlag(a)),function(t){return e.findModifier(t,a)}))):void 0}var a,o;function s(r,i){return y(t.parent,r,function(t){return e.mapDefined(t.symbol.declarations,function(t){return r(t)?e.find(t.getChildren(n),function(t){return e.contains(i,t.kind)}):void 0})})}function y(e,t,r){return t(e)?h(r(e,n)):void 0}function h(e){return e&&e.map(function(e){return r(e,n)})}}(t,n);return i&&[{fileName:n.fileName,highlightSpans:i}]}(s,i)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(s||(s={})),function(e){function t(t,r,n){void 0===r&&(r="");var i=e.createMap(),a=e.createGetCanonicalFileName(!!t);function o(e){return"_"+e.target+"|"+e.module+"|"+e.noResolve+"|"+e.jsx+"|"+e.allowJs+"|"+e.baseUrl+"|"+JSON.stringify(e.typeRoots)+"|"+JSON.stringify(e.rootDirs)+"|"+JSON.stringify(e.paths)}function s(t,r){var n=i.get(t);return!n&&r&&i.set(t,n=e.createMap()),n}function c(e,t,r,n,i,a,o){return l(e,t,r,n,i,a,!0,o)}function u(e,t,r,n,i,a,o){return l(e,t,r,n,i,a,!1,o)}function l(t,r,i,a,o,c,u,l){var _=s(a,!0),d=_.get(r),p=6===l?100:i.target;!d&&n&&((f=n.getDocument(a,r))&&(e.Debug.assert(u),d={sourceFile:f,languageServiceRefCount:0},_.set(r,d)));if(d)d.sourceFile.version!==c&&(d.sourceFile=e.updateLanguageServiceSourceFile(d.sourceFile,o,c,o.getChangeRange(d.sourceFile.scriptSnapshot)),n&&n.setDocument(a,r,d.sourceFile)),u&&d.languageServiceRefCount++;else{var f=e.createLanguageServiceSourceFile(t,o,p,c,!1,l);n&&n.setDocument(a,r,f),d={sourceFile:f,languageServiceRefCount:1},_.set(r,d)}return e.Debug.assert(0!==d.languageServiceRefCount),d.sourceFile}function _(t,r){var n=s(r,!1);e.Debug.assert(void 0!==n);var i=n.get(t);i.languageServiceRefCount--,e.Debug.assert(i.languageServiceRefCount>=0),0===i.languageServiceRefCount&&n.delete(t)}return{acquireDocument:function(t,n,i,s,u){return c(t,e.toPath(t,r,a),n,o(n),i,s,u)},acquireDocumentWithKey:c,updateDocument:function(t,n,i,s,c){return u(t,e.toPath(t,r,a),n,o(n),i,s,c)},updateDocumentWithKey:u,releaseDocument:function(t,n){return _(e.toPath(t,r,a),o(n))},releaseDocumentWithKey:_,getLanguageServiceRefCounts:function(t){return e.arrayFrom(i.entries(),function(e){var r=e[0],n=e[1].get(t);return[r,n&&n.languageServiceRefCount]})},reportStats:function(){var t=e.arrayFrom(i.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=[];return i.get(e).forEach(function(e,r){t.push({name:r,refCount:e.languageServiceRefCount})}),t.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:t}});return JSON.stringify(t,void 0,2)},getKeyForCompilationSettings:o}}e.createDocumentRegistry=function(e,r){return t(e,r)},e.createDocumentRegistryInternal=t}(s||(s={})),function(e){!function(t){function r(t,r){return e.forEach(277===t.kind?t.statements:t.body.statements,function(t){return r(t)||c(t)&&e.forEach(t.body&&t.body.statements,r)})}function i(t,n){if(t.externalModuleIndicator||void 0!==t.imports)for(var i=0,a=t.imports;i=0&&!(c>n.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),6)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),6)||i.push(c),c=a.indexOf(r,c+s+1)}return i}function f(r,n){var i=r.getSourceFile(),a=n.text,o=e.mapDefined(d(i,a,r),function(r){return r===n||e.isJumpStatementTarget(r)&&e.getTargetLabel(r,a)===n?t.nodeEntry(r):void 0});return[{definition:{type:"label",node:n},references:o}]}function m(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),g(e,e,t,r,n)}function g(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=p(t,r.text,e);a0)return n}switch(t.kind){case 277:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"";case 195:case 237:case 194:case 238:case 207:return 512&e.getModifierFlags(t)?"default":I(t);case 155:return"constructor";case 159:return"new()";case 158:return"()";case 160:return"[]";default:return""}}function C(t){return{text:T(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:w(t.node),spans:N(t),nameSpan:t.name&&F(t.name),childItems:e.map(t.children,C)}}function E(t){return{text:T(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:w(t.node),spans:N(t),childItems:e.map(t.children,function(t){return{text:T(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:N(t),childItems:s,indent:0,bolded:!1,grayed:!1}})||s,indent:t.indent,bolded:!1,grayed:!1}}function N(e){var t=[F(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r0?e.declarationNameToString(t.name):235===t.parent.kind?e.declarationNameToString(t.parent.name):202===t.parent.kind&&58===t.parent.operatorToken.kind?u(t.parent.left).replace(a,""):273===t.parent.kind&&t.parent.name?u(t.parent.name):512&e.getModifierFlags(t)?"default":e.isClassLike(t)?"":""}t.getNavigationBarItems=function(t,i){r=i,n=t;try{return e.map((a=d(t),o=[],function t(r){if(function(t){switch(l(t)){case 238:case 207:case 241:case 239:case 242:case 277:case 240:case 301:case 295:return!0;case 155:case 154:case 156:case 157:case 235:return r(t);case 195:case 237:case 194:return function(e){if(!e.node.body)return!1;switch(l(e.parent)){case 243:case 277:case 154:case 155:return!0;default:return r(e)}}(t);default:return!1}function r(t){return e.some(t.children,function(e){var t=l(e);return 235!==t&&184!==t})}}(r)&&(o.push(r),r.children))for(var n=0,i=r.children;n0?i[0]:c[0],x=0===v.length?d?void 0:e.createNamedImports(e.emptyArray):0===c.length?e.createNamedImports(v):e.updateNamedImports(c[0].importClause.namedBindings,v);return l.push(o(b,d,x)),l}function a(t){if(0===t.length)return t;var r=function(e){for(var t,r=[],n=0,i=e;n...");case 259:case 260:return function(e){if(0!==e.properties.length)return a(e.getStart(r),e.getEnd(),"code")}(t.attributes)}var i,s,c;function u(t,r){return void 0===r&&(r=17),l(t,!1,!e.isArrayLiteralExpression(t.parent),r)}function l(n,i,a,s){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===s&&(s=17);var c=e.findChildOfKind(t,s,r),u=17===s?18:22,l=e.findChildOfKind(t,u,r);if(c&&l){var _=e.createTextSpanFromBounds(a?c.getFullStart():c.getStart(r),l.getEnd());return o(_,"code",e.createTextSpanFromNode(n,r),i)}}}(c,t);u&&n.push(u),s--,e.isIfStatement(c)&&c.elseStatement&&e.isIfStatement(c.elseStatement)?(p(c.expression),p(c.thenStatement),s++,p(c.elseStatement),s--):c.forEachChild(p),s++}}}(t,r,s),function(t,r){for(var i=[],a=t.getLineStarts(),s=0;s1&&o.push(a(c,u,"comment"))}}function a(t,r,n){return o(e.createTextSpanFromBounds(t,r),n)}function o(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}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(s||(s={})),function(e){var t;function r(e,t){return{kind:e,isCaseSensitive:t}}function n(e,t){var r=t.get(e);return r||t.set(e,r=h(e)),r}function i(i,a,o){var s=function(e,t){for(var r=e.length-t.length,n=function(r){if(T(t,function(t,n){return d(e.charCodeAt(n+r))===t}))return{value:r}},i=0;i<=r;i++){var a=n(i);if("object"===p(a))return a.value}return-1}(i,a.textLowerCase);if(0===s)return r(a.text.length===i.length?t.exact:t.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var _=0,f=n(i,o);_0)return r(t.substring,!0);if(a.characterSpans.length>0){var g=n(i,o),y=!!u(i,g,a,!1)||!u(i,g,a,!0)&&void 0;if(void 0!==y)return r(t.camelCase,y)}}}function a(e,t,r){if(T(t.totalTextChunk.text,function(e){return 32!==e&&42!==e})){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,6))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function _(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,6))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function d(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function f(e){return e>=48&&e<=57}function m(e){return l(e)||_(e)||f(e)||95===e||36===e}function g(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:y(e)}}function y(e){return v(e,!1)}function h(e){return v(e,!0)}function v(t,r){for(var n=[],i=0,a=1;a0&&(t.push(g(e.substr(r,n))),n=0)}return n>0&&t.push(g(e.substr(r,n))),t}(t)};var t});if(!n.some(function(e){return!e.subWordTextChunks.length}))return{getFullMatch:function(t,i){return function(t,r,n,i){var s;if(a(r,e.last(n),i)&&!(n.length-1>t.length)){for(var c=n.length-2,u=t.length-1;c>=0;c-=1,u-=1)s=o(s,a(t[u],n[c],i));return s}}(t,i,n,r)},getMatchForLastSegmentOfPattern:function(t){return a(t,e.last(n),r)},patternContainsDots:n.length>1}},e.breakIntoCharacterSpans=y,e.breakIntoWordSpans=h}(s||(s={})),function(e){e.preProcessFile=function(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var i,a,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],u=0,l=!1;function _(){return a=o,17===(o=e.scanner.scan())?u++:18===o&&u--,o}function d(){var t=e.scanner.getTokenValue(),r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function p(){c.push(d()),f()}function f(){0===u&&(l=!0)}function m(){var t=e.scanner.getToken();return 124===t&&(129===(t=_())&&9===(t=_())&&(i||(i=[]),i.push({ref:d(),depth:u})),!0)}function g(){if(23===a)return!1;var t=e.scanner.getToken();if(91===t){if(19===(t=_())){if(9===(t=_()))return p(),!0}else{if(9===t)return p(),!0;if(71===t||e.isKeyword(t))if(143===(t=_())){if(9===(t=_()))return p(),!0}else if(58===t){if(h(!0))return!0}else{if(26!==t)return!0;t=_()}if(17===t){for(t=_();18!==t&&1!==t;)t=_();18===t&&143===(t=_())&&9===(t=_())&&p()}else 39===t&&118===(t=_())&&(71===(t=_())||e.isKeyword(t))&&143===(t=_())&&9===(t=_())&&p()}return!0}return!1}function y(){var t=e.scanner.getToken();if(84===t){if(f(),17===(t=_())){for(t=_();18!==t&&1!==t;)t=_();18===t&&143===(t=_())&&9===(t=_())&&p()}else if(39===t)143===(t=_())&&9===(t=_())&&p();else if(91===t&&(71===(t=_())||e.isKeyword(t))&&58===(t=_())&&h(!0))return!0;return!0}return!1}function h(t){var r=t?_():e.scanner.getToken();return 133===r&&(19===(r=_())&&9===(r=_())&&p(),!0)}function v(){var t=e.scanner.getToken();if(71===t&&"define"===e.scanner.getTokenValue()){if(19!==(t=_()))return!0;if(9===(t=_())){if(26!==(t=_()))return!0;t=_()}if(21!==t)return!0;for(t=_();22!==t&&1!==t;)9===t&&p(),t=_();return!0}return!1}if(r&&function(){for(e.scanner.setText(t),_();1!==e.scanner.getToken();)m()||g()||y()||n&&(h(!1)||v())||_();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),l){if(i)for(var b=0,x=i;b=0&&i.length>a+1),i[a+1]}(i,t,n),e.Debug.assert(void 0!==s),c=0;else{if(!(s=e.findContainingList(t)))return;c=function(e,t){for(var r=0,n=0,i=e.getChildren();n0&&26===e.last(r).kind&&n++;return n}(s);return 0!==c&&e.Debug.assertLessThan(c,l),{kind:u,invocation:{kind:0,node:a},argumentsSpan:function(t,r){var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)}(s,n),argumentIndex:c,argumentCount:l}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i)){if(e.isInsideTemplateLiteral(t,r,n))return o(i,0,n)}else{if(e.isTemplateHead(t)&&191===i.parent.kind){var _=i,d=_.parent;return e.Debug.assert(204===_.kind),o(d,c=e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var p=i;d=i.parent.parent;if(e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n))return;return o(d,c=function(t,r,n,i){if(e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(r))return e.isInsideTemplateLiteral(r,n,i)?0:t+2;return t+1}(p.parent.templateSpans.indexOf(p),t,r,n),n)}if(e.isJsxOpeningLikeElement(i)){var f=i.attributes.pos,m=e.skipTrivia(n.text,i.attributes.end,!1);return{kind:3,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(f,m-f),argumentIndex:0,argumentCount:1}}var g=e.getPossibleTypeArgumentsInfo(t,n);if(g){var y=g.called,h=g.nTypeArguments;return{kind:0,invocation:a={kind:1,called:y},argumentsSpan:e.createTextSpanFromBounds(y.getStart(n),t.end),argumentIndex:h,argumentCount:h+1}}}}function o(t,r,n){var i=e.isNoSubstitutionTemplateLiteral(t.template)?1:t.template.templateSpans.length+1;return 0!==r&&e.Debug.assertLessThan(r,i),{kind:2,invocation:{kind:0,node:t},argumentsSpan:function(t,r){var n=t.template,i=n.getStart(),a=n.getEnd();if(204===n.kind){var o=e.last(n.templateSpans);0===o.literal.getFullWidth()&&(a=e.skipTrivia(r.text,a,!1))}return e.createTextSpan(i,a-i)}(t,n),argumentIndex:r,argumentCount:i}}function s(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}!function(e){e[e.TypeArguments=0]="TypeArguments",e[e.CallArguments=1]="CallArguments",e[e.TaggedTemplateArguments=2]="TaggedTemplateArguments",e[e.JSXAttributesArguments=3]="JSXAttributesArguments"}(r||(r={})),function(e){e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs"}(n||(n={})),t.getSignatureHelpItems=function(t,r,n,o,c){var l=t.getTypeChecker(),_=e.findTokenOnLeftOfPosition(r,n);if(_){var d=!!o&&"characterTyped"===o.kind;if(!d||!e.isInString(r,n,_)&&!e.isInComment(r,n)){var f=function(t,r,n){for(var i=function(t){e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",function(){return"Child: "+e.Debug.showSyntaxKind(t)+", parent: "+e.Debug.showSyntaxKind(t.parent)});var i=a(t,r,n);if(i)return{value:i}},o=t;!e.isBlock(o)&&!e.isSourceFile(o);o=o.parent){var s=i(o);if("object"===p(s))return s.value}}(_,n,r);if(f){c.throwIfCancellationRequested();var m=function(t,r,n,a,o){var s=t.invocation;if(0===s.kind){if(o){if(!e.isCallOrNewExpression(s.node))return;var c=s.node.getChildren(n);switch(a.kind){case 19:if(!e.contains(c,a))return;break;case 26:var u=e.findContainingList(a);if(!u||!e.contains(c,e.findContainingList(a)))return;break;case 27:if(!i(a,n,s.node.expression))return;break;default:return}}var l=[],_=r.getResolvedSignature(s.node,l,t.argumentCount);return 0===l.length?void 0:{candidates:l,resolvedSignature:_}}if(1===s.kind){if(o&&!i(a,n,s.called))return;var l=e.getPossibleGenericSignatures(s.called,t.argumentCount,r);return 0===l.length?void 0:{candidates:l,resolvedSignature:e.first(l)}}e.Debug.assertNever(s)}(f,l,r,_,d);return c.throwIfCancellationRequested(),m?l.runWithCancellationToken(c,function(e){return u(m.candidates,m.resolvedSignature,f,r,e)}):e.isSourceFileJavaScript(r)?function(t,r,n){var i=s(t.invocation),a=e.isIdentifier(i)?i:e.isPropertyAccessExpression(i)?i.name:void 0;if(a&&a.escapedText)for(var o=r.getTypeChecker(),c=function(e){var r=e.getNamedDeclarations(),i=r.get(a.text);if(i)for(var s=function(r){var i=r.symbol;if(i){var a=o.getTypeOfSymbolAtLocation(i,r);if(a){var s=a.getCallSignatures();if(s&&s.length)return{value:o.runWithCancellationToken(n,function(r){return u(s,s[0],t,e,r)})}}}},c=0,l=i;c0?e.map(u,b):e.emptyArray,s.push(e.punctuationPart(29));var l=e.mapToDisplayParts(function(r){var n=t.thisParameter?[a.symbolToParameterDeclaration(t.thisParameter,p,c)]:[],o=e.createNodeArray(n.concat(t.parameters.map(function(e){return a.symbolToParameterDeclaration(e,p,c)})));g.writeList(1296,o,i,r)});e.addRange(s,l)}else{n=t.hasRestParameter;var _=e.mapToDisplayParts(function(r){if(t.typeParameters&&t.typeParameters.length){var n=e.createNodeArray(t.typeParameters.map(function(e){return a.typeParameterToDeclaration(e,p)}));g.writeList(26896,n,i,r)}});e.addRange(o,_),o.push(e.punctuationPart(19)),r=e.map(t.parameters,v),s.push(e.punctuationPart(20))}var f=e.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var r=a.getTypePredicateOfSignature(t);r?a.writeTypePredicate(r,p,void 0,e):a.writeType(a.getReturnTypeOfSignature(t),p,void 0,e)});return e.addRange(s,f),{isVariadic:n,prefixDisplayParts:o,suffixDisplayParts:s,separatorDisplayParts:[e.punctuationPart(26),e.spacePart()],parameters:r,documentation:t.getDocumentationComment(a),tags:t.getJsDocTags()}});0!==_&&e.Debug.assertLessThan(_,o);var h=t.indexOf(r);return e.Debug.assert(-1!==h),{items:y,applicableSpan:u,selectedItemIndex:h,argumentIndex:_,argumentCount:o};function v(t){var r=e.mapToDisplayParts(function(e){var r=a.symbolToParameterDeclaration(t,p,c);g.writeNode(4,r,i,e)});return{name:t.name,documentation:t.getDocumentationComment(a),displayParts:r,isOptional:a.isOptionalParameter(t.valueDeclaration)}}function b(t){var r=e.mapToDisplayParts(function(e){var r=a.typeParameterToDeclaration(t,p);g.writeNode(4,r,i,e)});return{name:t.symbol.name,documentation:e.emptyArray,displayParts:r,isOptional:!1}}}}(e.SignatureHelp||(e.SignatureHelp={}))}(s||(s={})),function(e){var t=/^\/\/[@#] source[M]appingURL=(.+)\s*$/,r=/^\s*(\/\/[@#] .*)?$/,n=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;e.getSourceMapper=function(i,a,o,s,c){var u;return{tryGetOriginalLocation:function t(r){if(e.isDeclarationFileName(r.fileName)){var n=d(r.fileName);if(n){var i=_(r.fileName,n).getOriginalPosition(r);return i===r?void 0:t(i)||i}}},tryGetGeneratedLocation:function(t){var r=c(),n=e.getDeclarationEmitOutputFilePathWorker(t.fileName,r.getCompilerOptions(),a,r.getCommonSourceDirectory(),i);if(void 0!==n){var o=d(n);if(o){var s=_(n,o).getGeneratedPosition(t);return s===t?void 0:s}}},toLineColumnOffset:function(t,r){var n=e.toPath(t,a,i);return(c().getSourceFile(n)||u.get(n)).getLineAndCharacterOfPosition(r)},clearCache:function(){u=e.createSourceFileLikeCache(s)}};function l(t,r,n){var a;try{a=JSON.parse(r)}catch(e){}return a&&a.sources&&a.file&&a.mappings?t.sourceMapper=e.sourcemaps.decode({readFile:function(e){return s.readFile(e)},fileExists:function(e){return s.fileExists(e)},getCanonicalFileName:i,log:o},n,a,c(),u):t.sourceMapper=e.sourcemaps.identitySourceMapper}function _(o,c){if(!s.readFile||!s.fileExists)return c.sourceMapper=e.sourcemaps.identitySourceMapper;if(c.sourceMapper)return c.sourceMapper;var _=function(n){var o=u.get(e.toPath(n,a,i));if(o)for(var s=e.getLineStarts(o),c=s.length-1;c>=0;c--){var l=o.text.substring(s[c],s[c+1]),_=t.exec(l);if(_)return _[1];if(!l.match(r))break}}(o);if(_){var d=n.exec(_);if(d){if(d[1]){var p=d[1];return l(c,e.base64decode(e.sys,p),o)}_=void 0}}var f=[];_&&f.push(_),f.push(o+".map");for(var m=0,g=f;m0&&o.push(e.createDiagnosticForNode(e.isVariableDeclaration(n.parent)?n.parent.name:n,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration))}else{if(e.isVariableStatement(n)&&n.parent===r&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){var u=n.declarationList.declarations[0].initializer;u&&e.isRequireCall(u,!0)&&o.push(e.createDiagnosticForNode(u,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(n)&&o.push(e.createDiagnosticForNode(n.name||n,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}n.forEachChild(t)}(r),e.getAllowSyntheticDefaultImports(n.getCompilerOptions()))for(var c=0,u=r.imports;c0?e.getNodeModifiers(t.declarations[0]):"",n=t&&16777216&t.flags?"optional":"";return r&&n?r+","+n:r||n},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(i,a,o,s,c,u,l){void 0===u&&(u=e.getMeaningFromLocation(c));var _,d,p,f,m,g,y=[],h=e.getCombinedLocalAndExportSymbolFlags(a),v=n(i,a,c),b=!1,x=99===c.kind&&e.isExpression(c);if(""!==v||32&h||2097152&h){"getter"!==v&&"setter"!==v||(v="property");var S=void 0;if(p=x?i.getTypeAtLocation(c):i.getTypeOfSymbolAtLocation(a.exportSymbol||a,c),c.parent&&187===c.parent.kind){var D=c.parent.name;(D===c||D&&0===D.getFullWidth())&&(c=c.parent)}var k=void 0;if(e.isCallOrNewExpression(c)?k=c:e.isCallExpressionTarget(c)||e.isNewExpressionTarget(c)?k=c.parent:c.parent&&e.isJsxOpeningLikeElement(c.parent)&&e.isFunctionLike(a.valueDeclaration)&&(k=c.parent),k){S=i.getResolvedSignature(k,[]);var T=190===k.kind||e.isCallExpression(k)&&97===k.expression.kind,C=T?p.getConstructSignatures():p.getCallSignatures();if(e.contains(C,S.target)||e.contains(C,S)||(S=C.length?C[0]:void 0),S){switch(T&&32&h?(v="constructor",H(p.symbol,v)):2097152&h?(G(v="alias"),y.push(e.spacePart()),T&&(y.push(e.keywordPart(94)),y.push(e.spacePart())),W(a)):H(a,v),v){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":y.push(e.punctuationPart(56)),y.push(e.spacePart()),16&e.getObjectFlags(p)||!p.symbol||(e.addRange(y,e.symbolToDisplayParts(i,p.symbol,s,void 0,5)),y.push(e.lineBreakPart())),T&&(y.push(e.keywordPart(94)),y.push(e.spacePart())),X(S,C,262144);break;default:X(S,C)}b=!0}}else if(e.isNameOfFunctionDeclaration(c)&&!(98304&h)||123===c.kind&&155===c.parent.kind){var E=c.parent;e.find(a.declarations,function(e){return e===(123===c.kind?E.parent:E)})&&(C=155===E.kind?p.getNonNullableType().getConstructSignatures():p.getNonNullableType().getCallSignatures(),S=i.isImplementationOfOverload(E)?C[0]:i.getSignatureFromDeclaration(E),155===E.kind?(v="constructor",H(p.symbol,v)):H(158!==E.kind||2048&p.symbol.flags||4096&p.symbol.flags?a:p.symbol,v),X(S,C),b=!0)}}if(32&h&&!b&&!x&&(q(),e.getDeclarationOfKind(a,207)?G("local class"):y.push(e.keywordPart(75)),y.push(e.spacePart()),W(a),Q(a,o)),64&h&&2&u&&(U(),y.push(e.keywordPart(109)),y.push(e.spacePart()),W(a),Q(a,o)),524288&h&&(U(),y.push(e.keywordPart(139)),y.push(e.spacePart()),W(a),Q(a,o),y.push(e.spacePart()),y.push(e.operatorPart(58)),y.push(e.spacePart()),e.addRange(y,e.typeToDisplayParts(i,i.getDeclaredTypeOfSymbol(a),s,8388608))),384&h&&(U(),e.some(a.declarations,function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)})&&(y.push(e.keywordPart(76)),y.push(e.spacePart())),y.push(e.keywordPart(83)),y.push(e.spacePart()),W(a)),1536&h){U();var N=(J=e.getDeclarationOfKind(a,242))&&J.name&&71===J.name.kind;y.push(e.keywordPart(N?130:129)),y.push(e.spacePart()),W(a)}if(262144&h&&2&u)if(U(),y.push(e.punctuationPart(19)),y.push(e.textPart("type parameter")),y.push(e.punctuationPart(20)),y.push(e.spacePart()),W(a),a.parent)V(),W(a.parent,s),Q(a.parent,s);else{var A=e.getDeclarationOfKind(a,148);if(void 0===A)return e.Debug.fail();(J=A.parent)&&(e.isFunctionLikeKind(J.kind)?(V(),S=i.getSignatureFromDeclaration(J),159===J.kind?(y.push(e.keywordPart(94)),y.push(e.spacePart())):158!==J.kind&&J.name&&W(J.symbol),e.addRange(y,e.signatureToDisplayParts(i,S,o,32))):240===J.kind&&(V(),y.push(e.keywordPart(139)),y.push(e.spacePart()),W(J.symbol),Q(J.symbol,o)))}if(8&h&&(v="enum member",H(a,"enum member"),276===(J=a.declarations[0]).kind)){var P=i.getConstantValue(J);void 0!==P&&(y.push(e.spacePart()),y.push(e.operatorPart(58)),y.push(e.spacePart()),y.push(e.displayPart(e.getTextOfConstantValue(P),"number"==typeof P?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&h){if(U(),!b){var F=i.getAliasedSymbol(a);if(F!==a&&F.declarations&&F.declarations.length>0){var w=F.declarations[0],I=e.getNameOfDeclaration(w);if(I){var O=e.isModuleWithStringLiteralName(w)&&e.hasModifier(w,2),M="default"!==a.name&&!O,L=t(i,F,e.getSourceFileOfNode(w),w,I,u,M?a:F);y.push.apply(y,L.displayParts),y.push(e.lineBreakPart()),m=L.documentation,g=L.tags}}}switch(a.declarations[0].kind){case 245:y.push(e.keywordPart(84)),y.push(e.spacePart()),y.push(e.keywordPart(130));break;case 252:y.push(e.keywordPart(84)),y.push(e.spacePart()),y.push(e.keywordPart(a.declarations[0].isExportEquals?58:79));break;case 255:y.push(e.keywordPart(84));break;default:y.push(e.keywordPart(91))}y.push(e.spacePart()),W(a),e.forEach(a.declarations,function(t){if(246===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))y.push(e.spacePart()),y.push(e.operatorPart(58)),y.push(e.spacePart()),y.push(e.keywordPart(133)),y.push(e.punctuationPart(19)),y.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),y.push(e.punctuationPart(20));else{var n=i.getSymbolAtLocation(r.moduleReference);n&&(y.push(e.spacePart()),y.push(e.operatorPart(58)),y.push(e.spacePart()),W(n,s))}return!0}})}if(!b)if(""!==v){if(p)if(x?(U(),y.push(e.keywordPart(99))):H(a,v),"property"===v||"JSX attribute"===v||3&h||"local var"===v||x)if(y.push(e.punctuationPart(56)),y.push(e.spacePart()),p.symbol&&262144&p.symbol.flags){var R=e.mapToDisplayParts(function(t){var r=i.typeParameterToDeclaration(p,s);K().writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(s)),t)});e.addRange(y,R)}else e.addRange(y,e.typeToDisplayParts(i,p,s));else(16&h||8192&h||16384&h||131072&h||98304&h||"method"===v)&&(C=p.getNonNullableType().getCallSignatures()).length&&X(C[0],C)}else v=r(i,a,c);if(!_&&(_=a.getDocumentationComment(i),d=a.getJsDocTags(),0===_.length&&4&h&&a.parent&&e.forEach(a.parent.declarations,function(e){return 277===e.kind})))for(var B=0,j=a.declarations;B0))break}}return 0===_.length&&m&&(_=m),0===d.length&&g&&(d=g),{displayParts:y,documentation:_,symbolKind:v,tags:d};function K(){return f||(f=e.createPrinter({removeComments:!0})),f}function U(){y.length&&y.push(e.lineBreakPart()),q()}function q(){l&&(G("alias"),y.push(e.spacePart()))}function V(){y.push(e.spacePart()),y.push(e.keywordPart(92)),y.push(e.spacePart())}function W(t,r){l&&t===a&&(t=l);var n=e.symbolToDisplayParts(i,t,r||o,void 0,7);e.addRange(y,n),16777216&a.flags&&y.push(e.punctuationPart(55))}function H(t,r){U(),r&&(G(r),t&&!e.some(t.declarations,function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name})&&(y.push(e.spacePart()),W(t)))}function G(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void y.push(e.textOrKeywordPart(t));default:return y.push(e.punctuationPart(19)),y.push(e.textOrKeywordPart(t)),void y.push(e.punctuationPart(20))}}function X(t,r,n){void 0===n&&(n=0),e.addRange(y,e.signatureToDisplayParts(i,t,s,32|n)),r.length>1&&(y.push(e.spacePart()),y.push(e.punctuationPart(19)),y.push(e.operatorPart(37)),y.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),y.push(e.spacePart()),y.push(e.textPart(2===r.length?"overload":"overloads")),y.push(e.punctuationPart(20))),_=t.getDocumentationComment(i),d=t.getJsDocTags()}function Q(t,r){var n=e.mapToDisplayParts(function(n){var a=i.symbolToTypeParameterDeclarations(t,r);K().writeList(26896,a,e.getSourceFileOfNode(e.getParseTreeNode(r)),n)});e.addRange(y,n)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(s||(s={})),function(e){function t(t,r){var i=[],a=r.compilerOptions?n(r.compilerOptions,i):e.getDefaultCompilerOptions();a.isolatedModules=!0,a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0,a.noLib=!0,a.lib=void 0,a.types=void 0,a.noEmit=void 0,a.noEmitOnError=void 0,a.paths=void 0,a.rootDirs=void 0,a.declaration=void 0,a.declarationDir=void 0,a.out=void 0,a.outFile=void 0,a.noResolve=!0;var o=r.fileName||(a.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,a.target);r.moduleName&&(s.moduleName=r.moduleName),r.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(r.renamedDependencies));var c,u,l=e.getNewLineCharacter(a),_={getSourceFile:function(t){return t===e.normalizePath(o)?s:void 0},writeFile:function(t,r){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",t),u=r):(e.Debug.assertEqual(c,void 0,"Unexpected multiple outputs, file:",t),c=r)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return l},fileExists:function(e){return e===o},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},d=e.createProgram([o],a,_);return r.reportDiagnostics&&(e.addRange(i,d.getSyntacticDiagnostics(s)),e.addRange(i,d.getOptionsDiagnostics())),d.emit(void 0,void 0,void 0,void 0,r.transformers),void 0===c?e.Debug.fail("Output generation failed"):{outputText:c,diagnostics:i,sourceMapText:u}}var r;function n(t,n){r=r||e.filter(e.optionDeclarations,function(t){return"object"===p(t.type)&&!e.forEachEntry(t.type,function(e){return"number"!=typeof e})}),t=e.cloneCompilerOptions(t);for(var i=function(r){if(!e.hasProperty(t,r.name))return"continue";var i=t[r.name];e.isString(i)?t[r.name]=e.parseCustomTypeOption(r,i,n):e.forEachEntry(r.type,function(e){return e===i})||n.push(e.createCompilerDiagnosticForInvalidCustomType(r))},a=0,o=r;a>=a;return r}(f,p),0,n),c[u]=(d=1+((l=f)>>(_=p)&o),e.Debug.assert((d&o)===d,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),l&~(o<<_)|d<<_)}!function(e){e[e.IgnoreRulesSpecific=0]="IgnoreRulesSpecific",e[e.IgnoreRulesAny=1*a]="IgnoreRulesAny",e[e.ContextRulesSpecific=2*a]="ContextRulesSpecific",e[e.ContextRulesAny=3*a]="ContextRulesAny",e[e.NoContextRulesSpecific=4*a]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*a]="NoContextRulesAny"}(i||(i={}))}(e.formatting||(e.formatting={}))}(s||(s={})),function(e){!function(t){var r,n,i,a,o;function s(t,r,n){var i=e.findPrecedingToken(t,n);return i&&i.kind===r&&t===i.getEnd()?i:void 0}function c(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!u(t.parent,t);)t=t.parent;return t}function u(t,r){switch(t.kind){case 238:case 239:return e.rangeContainsRange(t.members,r);case 242:var n=t.body;return!!n&&243===n.kind&&e.rangeContainsRange(n.statements,r);case 277:case 216:case 243:return e.rangeContainsRange(t.statements,r);case 272:return e.rangeContainsRange(t.block.statements,r)}return!1}function l(t,r,n,i){return t?_({pos:e.getLineStartPositionForPosition(t.getStart(r),r),end:t.end},r,n,i):[]}function _(r,n,i,a){var o=function(t,r){return function n(i){var a=e.forEachChild(i,function(n){return e.startEndContainsRange(n.getStart(r),n.end,t)&&n});if(a){var o=n(a);if(o)return o}return i}(r)}(r,n);return t.getFormattingScanner(n.text,n.languageVariant,function(t,r,n){var i=t.getStart(n);if(i===r.pos&&t.end===r.end)return i;var a=e.findPrecedingToken(r.pos,n);return a?a.end>=r.pos?t.pos:a.end:t.pos}(o,r,n),r.end,function(s){return d(r,o,t.SmartIndenter.getIndentationForNode(o,r,n,i.options),function(e,r,n){for(var i,a=-1;e;){var o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(r,e,i,n))return r.indentSize;a=o,i=e,e=e.parent}return 0}(o,i.options,n),s,i,a,function(t,r){if(!t.length)return a;var n=t.filter(function(t){return e.rangeOverlapsWithStartEnd(r,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!n.length)return a;var i=0;return function(t){for(;;){if(i>=n.length)return!1;var r=n[i];if(t.end<=r.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length))return!0;i++}};function a(){return!1}}(n.parseDiagnostics,r),n)})}function d(r,n,i,a,o,s,c,u,l){var _,d,f,m,g,y=s.options,h=s.getRule,v=new t.FormattingContext(l,c,y),b=[];if(o.advance(),o.isOnToken()){var x=l.getLineAndCharacterOfPosition(n.getStart(l)).line,S=x;n.decorators&&(S=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line),function n(i,a,s,c,d,p){if(!e.rangeOverlapsWithStartEnd(r,i.getStart(l),i.getEnd()))return;var f=T(i,s,d,p);var h=a;e.forEachChild(i,function(e){b(e,-1,i,f,s,c,!1)},function(t){!function(t,r,n,a){e.Debug.assert(e.isNodeArray(t));var s=function(e,t){switch(e.kind){case 155:case 237:case 194:case 154:case 153:case 195:if(e.typeParameters===t)return 27;if(e.parameters===t)return 19;break;case 189:case 190:if(e.typeArguments===t)return 27;if(e.arguments===t)return 19;break;case 162:if(e.typeArguments===t)return 27}return 0}(r,t),c=a,u=n;if(0!==s)for(;o.isOnToken();){var _=o.readTokenInfo(r);if(_.token.end>t.pos)break;if(_.token.kind===s){u=l.getLineAndCharacterOfPosition(_.token.pos).line;var d=k(_.token,u,-1,r,a,n);c=T(r,n,d.indentation,d.delta),x(_,r,c,r)}else x(_,r,a,r)}for(var p=-1,f=0;fi.end)break;x(v,i,f,i)}function b(a,s,c,u,_,d,p,f){var m=a.getStart(l),g=l.getLineAndCharacterOfPosition(m).line,v=g;a.decorators&&(v=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,l)).line);var b=-1;if(p&&e.rangeContainsRange(r,c)&&-1!==(b=function(r,n,i,a,o){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var s=l.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,l),u=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,l,y);if(s!==i||r===u){var _=t.SmartIndenter.getBaseIndentation(y);return _>u?_:u}}return-1}(m,a.end,_,r,s))&&(s=b),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.endm)break;x(S,i,u,i)}if(!o.isOnToken())return s;if(e.isToken(a)&&10!==a.kind){var S=o.readTokenInfo(a);return e.Debug.assert(S.token.end===a.end,"Token end is child end"),x(S,i,u,a),s}var D=150===a.kind?g:d,T=k(a,g,b,i,u,D);if(n(a,h,g,v,T.indentation,T.delta),10===a.kind){var C={pos:a.getStart(),end:a.getEnd()};A(C,T.indentation,!0,!1)}return h=i,f&&185===c.kind&&-1===s&&(s=T.indentation),s}function x(t,n,i,a){e.Debug.assert(e.rangeContainsRange(n,t.token));var s=o.lastTrailingTriviaWasNewLine(),c=!1;t.leadingTrivia&&C(t.leadingTrivia,n,h,i);var d=0,p=e.rangeContainsRange(r,t.token),f=l.getLineAndCharacterOfPosition(t.token.pos);if(p){var y=u(t.token),v=_;if(d=E(t.token,f,n,h,i),!y)if(0===d){var b=v&&l.getLineAndCharacterOfPosition(v.end).line;c=s&&f.line!==b}else c=1===d}if(t.trailingTrivia&&C(t.trailingTrivia,n,h,i),c){var x=p&&!u(t.token)?i.getIndentationForToken(f.line,t.token.kind,a):-1,S=!0;if(t.leadingTrivia)for(var D=i.getIndentationForComment(t.token.kind,x,a),k=0,T=t.leadingTrivia;k0){var D=p(S,y);I(b,x.character,D)}else w(b,x.character)}}}}else i||N(r.pos,n,!1)}function P(t,r,n){for(var i=t;io)){var s=F(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),w(s,o+1-s))}}}function F(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function w(t,r){r&&b.push(e.createTextChangeFromStartLength(t,r,""))}function I(t,r,n){(r||n)&&b.push(e.createTextChangeFromStartLength(t,r,n))}}function p(t,r){if((!i||i.tabSize!==r.tabSize||i.indentSize!==r.indentSize)&&(i={tabSize:r.tabSize,indentSize:r.indentSize},a=o=void 0),r.convertTabsToSpaces){var n=void 0,s=Math.floor(t/r.indentSize),c=t%r.indentSize;return o||(o=[]),void 0===o[s]?(n=e.repeatString(" ",r.indentSize*s),o[s]=n):n=o[s],c?n+e.repeatString(" ",c):n}var u=Math.floor(t/r.tabSize),l=t-u*r.tabSize,_=void 0;return a||(a=[]),void 0===a[u]?a[u]=_=e.repeatString("\t",u):_=a[u],l?_+e.repeatString(" ",l):_}!function(e){e[e.Unknown=-1]="Unknown"}(r||(r={})),t.formatOnEnter=function(t,r,n){var i=r.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,r);e.isWhiteSpaceSingleLine(r.text.charCodeAt(a));)a--;return e.isLineBreak(r.text.charCodeAt(a))&&a--,_({pos:e.getStartPositionOfLine(i-1,r),end:a+1},r,n,2)},t.formatOnSemicolon=function(e,t,r){return l(c(s(e,25,t)),t,r,3)},t.formatOnOpeningCurly=function(t,r,n){var i=s(t,17,r);if(!i)return[];var a=c(i.parent);return _({pos:e.getLineStartPositionForPosition(a.getStart(r),r),end:t},r,n,4)},t.formatOnClosingCurly=function(e,t,r){return l(c(s(e,18,t)),t,r,5)},t.formatDocument=function(e,t){return _({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,r,n,i){return _({pos:e.getLineStartPositionForPosition(t,n),end:r},n,i,1)},t.formatNodeGivenIndentation=function(e,r,n,i,a,o){var s={pos:0,end:r.text.length};return t.getFormattingScanner(r.text,n,s.pos,s.end,function(t){return d(s,e,i,a,t,o,1,function(e){return!1},r)})},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(n||(n={})),t.getRangeOfEnclosingComment=function(t,r,n,i){void 0===i&&(i=e.getTokenAtPosition(t,r));var a=e.findAncestor(i,e.isJSDoc);if(a&&(i=a.parent),!(i.getStart(t)<=r&&rr.end}if(p)if(-1!==(v=m(e,i,u)))return v+n;var y=s(l,e,i),h=y.line===t.line||d(l,e,t.line,i);if(p){var v;if(-1!==(v=c(e,l,t,h,i,u)))return v+n;if(-1!==(v=g(e,i,u)))return v+n}S(u,l,e,i,o)&&!h&&(n+=u.indentSize);var b=_(l,e,t.line,i);l=(e=l).parent,t=b?i.getLineAndCharacterOfPosition(e.getStart(i)):y}return n+a(u)}function s(e,t,r){var n=f(t,r),i=n?n.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(i)}function c(t,r,n,i,a,o){return(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(277===r.kind||!i)?h(n,a,o):-1}function u(t,r,n,i){var a=e.findNextToken(t,r,i);return a?17===a.kind?1:18===a.kind&&n===l(a,i).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(t,r,n,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,r))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===n}function d(t,r,n,i){if(220===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,82,i);return e.Debug.assert(void 0!==a),l(a,i).line===n}return!1}function p(t,r,n){return t&&e.rangeContainsStartEnd(t,r,n)?t:void 0}function f(e,t){if(e.parent){var r=e.end;switch(e.parent.kind){case 162:return p(e.parent.typeArguments,e.getStart(t),r);case 186:return e.parent.properties;case 185:return e.parent.elements;case 237:case 194:case 195:case 154:case 153:case 158:case 155:case 164:case 159:var n=e.getStart(t);return p(e.parent.typeParameters,n,r)||p(e.parent.parameters,n,r);case 238:case 207:case 239:case 240:return p(e.parent.typeParameters,e.getStart(t),r);case 190:case 189:n=e.getStart(t);return p(e.parent.typeArguments,n,r)||p(e.parent.arguments,n,r);case 236:return p(e.parent.declarations,e.getStart(t),r);case 250:case 254:return p(e.parent.elements,e.getStart(t),r);case 182:case 183:return p(e.parent.elements,e.getStart(t),r)}}}function m(e,t,r){var n=f(e,t);if(n){var i=n.indexOf(e);if(-1!==i)return y(n,i,t,r)}return-1}function g(t,r,n){if(20===t.kind)return-1;if(t.parent&&e.isCallOrNewExpression(t.parent)&&t.parent.expression!==t){var i=t.parent.expression,a=function(e){for(;;)switch(e.kind){case 189:case 190:case 187:case 188:e=e.expression;break;default:return e}}(i);if(i===a)return-1;var o=r.getLineAndCharacterOfPosition(i.end),s=r.getLineAndCharacterOfPosition(a.end);return o.line===s.line?-1:h(o,r,n)}return-1}function y(t,r,n,i){e.Debug.assert(r>=0&&r=0;o--)if(26!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return h(a,n,i);a=l(t[o],n)}return-1}function h(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return b(n,n+e.character,t,r)}function v(t,r,n,i){for(var a=0,o=0,s=t;sn.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n,void 0,!0),_=t.getRangeOfEnclosingComment(n,r,c||null);if(_&&3===_.kind)return function(t,r,n,i){var a=e.getLineAndCharacterOfPosition(t,r).line-1,o=e.getLineAndCharacterOfPosition(t,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return b(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=v(s,r,t,n),u=c.column,l=c.character;return 0===u?u:42===t.text.charCodeAt(s+l)?u-1:u}(n,r,i,_);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(n)<=r&&r0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return b(e.getLineStartPositionForPosition(i,t),i,t,n)}(n,r,i);if(26===c.kind&&202!==c.parent.kind){var p=function(t,r,n){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?y(i.list.getChildren(),i.listItemIndex-1,r,n):-1}(c,n,i);if(-1!==p)return p}return function(t,r,n,i,s,c){for(var _,d=n;d;){if(e.positionBelongsToNode(d,r,t)&&S(c,d,_,t,!0)){var p=l(d,t),f=u(n,d,i,t),y=0!==f?s&&2===f?c.indentSize:0:i!==p.line?c.indentSize:0;return o(d,p,void 0,y,t,!0,c)}var h=m(d,t,c);if(-1!==h)return h;if(-1!==(h=g(d,t,c)))return h+c.indentSize;_=d,d=d.parent}return a(c)}(n,r,c,d,s,i)},r.getIndentationForNode=function(e,t,r,n){return o(e,r.getLineAndCharacterOfPosition(e.getStart(r)),t,0,r,!1,n)},r.getBaseIndentation=a,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(i||(i={})),r.isArgumentAndStartLineOverlapsExpressionBeingCalled=_,r.childStartsOnTheSameLineWithElseInIfStatement=d,r.getContainingList=f,r.findFirstNonWhitespaceCharacterAndColumn=v,r.findFirstNonWhitespaceColumn=b,r.nodeWillIndentChild=x,r.shouldIndentChildNode=S}(t.SmartIndenter||(t.SmartIndenter={}))}(e.formatting||(e.formatting={}))}(s||(s={})),function(e){!function(t){function r(t){var r=t.__pos;return e.Debug.assert("number"==typeof r),r}function i(t,r){e.Debug.assert("number"==typeof r),t.__pos=r}function a(t){var r=t.__end;return e.Debug.assert("number"==typeof r),r}function o(t,r){e.Debug.assert("number"==typeof r),t.__end=r}var s,c;function u(t,r){return e.skipTrivia(t,r,!1,!0)}function l(e,t,r,n){return{pos:_(e,t,n,s.Start),end:d(e,r,n)}}function _(t,r,n,i){if(n.useNonAdjustedStartPosition)return r.getStart(t);var a=r.getFullStart(),o=r.getStart(t);if(a===o)return o;var c=e.getLineStartPositionForPosition(a,t);if(e.getLineStartPositionForPosition(o,t)===c)return i===s.Start?o:a;var l=a>0?1:0,_=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,c)+l,t);return _=u(t.text,_),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,_),t)}function d(t,r,n){var i=r.end;if(n.useNonAdjustedEndPosition||e.isExpression(r))return i;var a=e.skipTrivia(t.text,i,!0);return a!==i&&e.isLineBreak(t.text.charCodeAt(a-1))?a:i}function p(e,t){return!!t&&!!e.parent&&(26===t.kind||25===t.kind&&186===e.parent.kind)}!function(e){e[e.FullStart=0]="FullStart",e[e.Start=1]="Start"}(s=t.Position||(t.Position={})),t.useNonAdjustedPositions={useNonAdjustedStartPosition:!0,useNonAdjustedEndPosition:!0},function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(c||(c={}));var f,m=function(){function r(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=e.createMap(),this.deletedNodes=[]}return r.fromContext=function(t){return new r(e.getNewLineOrDefaultFromHost(t.host,t.formatContext.options),t.formatContext)},r.with=function(e,t){var n=r.fromContext(e);return t(n),n.getChanges()},r.prototype.deleteRange=function(e,t){return this.changes.push({kind:c.Remove,sourceFile:e,range:t}),this},r.prototype.delete=function(e,t){this.deletedNodes.push({sourceFile:e,node:t})},r.prototype.deleteModifier=function(t,r){this.deleteRange(t,{pos:r.getStart(t),end:e.skipTrivia(t.text,r.end,!0)})},r.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={});var i=_(e,t,n,s.FullStart),a=d(e,r,n);return this.deleteRange(e,{pos:i,end:a}),this},r.prototype.deleteNodeRangeExcludingEnd=function(e,t,r,n){void 0===n&&(n={});var i=_(e,t,n,s.FullStart),a=void 0===r?e.text.length:_(e,r,n,s.FullStart);this.deleteRange(e,{pos:i,end:a})},r.prototype.replaceRange=function(e,t,r,n){return void 0===n&&(n={}),this.changes.push({kind:c.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r}),this},r.prototype.replaceNode=function(e,r,n,i){return void 0===i&&(i=t.useNonAdjustedPositions),this.replaceRange(e,l(e,r,r,i),n,i)},r.prototype.replaceNodeRange=function(e,r,n,i,a){void 0===a&&(a=t.useNonAdjustedPositions),this.replaceRange(e,l(e,r,n,a),i,a)},r.prototype.replaceRangeWithNodes=function(e,t,r,n){return void 0===n&&(n={}),this.changes.push({kind:c.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r}),this},r.prototype.replaceNodeWithNodes=function(e,r,n,i){return void 0===i&&(i=t.useNonAdjustedPositions),this.replaceRangeWithNodes(e,l(e,r,r,i),n,i)},r.prototype.replaceNodeRangeWithNodes=function(e,r,n,i,a){return void 0===a&&(a=t.useNonAdjustedPositions),this.replaceRangeWithNodes(e,l(e,r,n,a),i,a)},r.prototype.nextCommaToken=function(t,r){var n=e.findNextToken(r,r.parent,t);return n&&26===n.kind?n:void 0},r.prototype.replacePropertyAssignment=function(e,t,r){var n=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;return this.replaceNode(e,t,r,{suffix:n})},r.prototype.insertNodeAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRange(t,e.createTextRange(r),n,i)},r.prototype.insertNodesAt=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:c.ReplaceWithMultipleNodes,sourceFile:e,options:n,nodes:r,range:{pos:t,end:t}})},r.prototype.insertNodeAtTopOfFile=function(t,r,n){var i=function(t){var r=t.text,n=e.getShebang(r),i=0;void 0!==n&&(i=n.length,u());var a=e.getLeadingCommentRanges(r,i);if(!a)return i;a.length&&3===a[0].kind&&e.isPinnedComment(r,a[0].pos)&&(i=a[0].end,u(),a=a.slice(1));for(var o=0,s=a;o"})},r.prototype.getOptionsForInsertNodeBefore=function(t,r){return e.isStatement(t)||e.isClassElement(t)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.Debug.failBadSyntaxKind(t)},r.prototype.insertNodeAtConstructorStart=function(t,r,n){var i=e.firstOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeBefore(t,i,n):this.replaceConstructorBody(t,r,[n].concat(r.body.statements))},r.prototype.insertNodeAtConstructorEnd=function(t,r,n){var i=e.lastOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeAfter(t,i,n):this.replaceConstructorBody(t,r,r.body.statements.concat([n]))},r.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.createBlock(n,!0))},r.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=_(t,r.getLastToken(),{},s.Start);this.replaceRange(t,{pos:i,end:i},n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},r.prototype.insertNodeAtClassStart=function(t,r,i){var a=r.getStart(t),o=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(a,t),a,t,this.formatContext.options)+this.formatContext.options.indentSize;this.insertNodeAt(t,r.members.pos,i,n({indentation:o},this.getInsertNodeAtClassStartPrefixSuffix(t,r)))},r.prototype.getInsertNodeAtClassStartPrefixSuffix=function(t,r){if(0===r.members.length){if(e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(r),r)){var n=e.positionsAreOnSameLine.apply(void 0,y(r,t).concat([t]));return{prefix:this.newLineCharacter,suffix:n?this.newLineCharacter:""}}return{prefix:"",suffix:this.newLineCharacter}}return{prefix:this.newLineCharacter,suffix:""}},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(t,r,n){var i=this.insertNodeAfterWorker(t,r,e.first(n));this.insertNodesAt(t,i,n,this.getInsertNodeAfterOptions(t,r))},r.prototype.insertNodeAfterWorker=function(t,r,n){var i,a;return i=r,a=n,((e.isPropertySignature(i)||e.isPropertyDeclaration(i))&&e.isClassOrTypeElement(a)&&147===a.name.kind||e.isStatementButNotDeclaration(i)&&e.isStatementButNotDeclaration(a))&&59!==t.text.charCodeAt(r.end-1)&&this.replaceRange(t,e.createTextRange(r.end),e.createToken(25)),d(t,r,{})},r.prototype.getInsertNodeAfterOptions=function(t,r){var i=this.getInsertNodeAfterOptionsWorker(r);return n({},i,{prefix:r.end===t.end&&e.isStatement(r)?i.prefix?"\n"+i.prefix:"\n":i.prefix})},r.prototype.getInsertNodeAfterOptionsWorker=function(t){switch(t.kind){case 238:case 242:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 235:case 9:case 71:return{prefix:", "};case 273:return{suffix:","+this.newLineCharacter};case 84:return{prefix:" "};case 149:return{};default:return e.Debug.assert(e.isStatement(t)||e.isClassOrTypeElement(t)),{suffix:this.newLineCharacter}}},r.prototype.insertName=function(t,r,n){if(e.Debug.assert(!r.name),195===r.kind){var i=e.findChildOfKind(r,36,t),a=e.findChildOfKind(r,19,t);a?(this.insertNodesAt(t,a.getStart(t),[e.createToken(89),e.createIdentifier(n)],{joiner:" "}),k(this,t,i)):(this.insertText(t,e.first(r.parameters).getStart(t),"function "+n+"("),this.replaceRange(t,i,e.createToken(20))),216!==r.body.kind&&(this.insertNodesAt(t,r.body.getStart(t),[e.createToken(17),e.createToken(96)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[e.createToken(25),e.createToken(18)],{joiner:" "}))}else{var o=e.findChildOfKind(r,194===r.kind?89:75,t).end;this.insertNodeAt(t,o,e.createIdentifier(n),{prefix:" "})}},r.prototype.insertExportModifier=function(e,t){this.insertText(e,t.getStart(e),"export ")},r.prototype.insertNodeInListAfter=function(t,r,n,i){if(void 0===i&&(i=e.formatting.SmartIndenter.getContainingList(r,t)),!i)return e.Debug.fail("node is not a list element"),this;var a=e.indexOfNode(i,r);if(a<0)return this;var o=r.getEnd();if(a!==i.length-1){var s=e.getTokenAtPosition(t,r.end);if(s&&p(r,s)){var c=e.getLineAndCharacterOfPosition(t,u(t.text,i[a+1].getFullStart())),l=e.getLineAndCharacterOfPosition(t,s.end),_=void 0,d=void 0;l.line===c.line?(d=s.end,_=function(e){for(var t="",r=0;r=0;n--){var i=r[n],a=i.span,o=i.newText;t=""+t.substring(0,a.start)+o+t.substring(e.textSpanEnd(a))}return t}function v(t){var n=e.visitEachChild(t,v,e.nullTransformationContext,b,v),i=e.nodeIsSynthesized(n)?n:Object.create(n);return i.pos=r(t),i.end=a(t),i}function b(t,n,i,o,s){var c=e.visitNodes(t,n,i,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=r(t),u.end=a(t),u}t.ChangeTracker=m,function(t){function r(t,r,n){var i=new S(n),a="\n"===n?1:0;return e.createPrinter({newLine:a},i).writeNode(4,t,r,i),{text:i.getText(),node:v(t)}}t.getTextChangesFromChanges=function(t,n,i,a){return e.group(t,function(e){return e.sourceFile.path}).map(function(t){for(var o=t[0].sourceFile,s=e.stableSort(t,function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end}),u=function(t){e.Debug.assert(s[t].range.end<=s[t+1].range.pos,"Changes overlap",function(){return JSON.stringify(s[t].range)+" and "+JSON.stringify(s[t+1].range)})},l=0;l1?[[a(n),o(n)],!0]:[[o(n)],!0]:[[a(n)],!1]}(l.arguments[0],r):void 0;return p?(i.replaceNodeWithNodes(t,n.parent,p[0]),p[1]):(i.replaceRangeWithText(t,e.createTextRange(u.getStart(t),l.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,u.expression)&&function(t,r,n,i){var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[_(void 0,o,r.right),d([e.createExportSpecifier(o,a)])];n.replaceNodeWithNodes(t,r.parent,s)}else!function(t,r,n){var i=t.left,a=t.right,o=t.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)n.replaceNodeRangeWithNodes(r,i.expression,e.findChildOfKind(i,23,r),[e.createToken(84),e.createToken(76)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.createToken(84),{suffix:" "}),a.name||n.insertName(r,a,s);var c=e.findChildOfKind(o,25,r);c&&n.delete(r,c)}}(r,t,n)}(t,n,i,s);var f,m;return!1}(r,i,h,p,g)}default:return!1}}function a(e){return d(void 0,e)}function o(t){return d([e.createExportSpecifier(void 0,"default")],t)}function s(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.set(e,!0),e}function c(t,r,n){return e.createFunctionDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),e.getSynthesizedDeepClone(n.asteriskToken),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.parameters),e.getSynthesizedDeepClone(n.type),e.convertToFunctionBody(e.getSynthesizedDeepClone(n.body)))}function u(t,r,n,i){return"default"===r?e.makeImport(e.createIdentifier(t),void 0,n,i):e.makeImport(void 0,[l(r,t)],n,i)}function l(t,r){return e.createImportSpecifier(void 0!==t&&t!==r?e.createIdentifier(t):void 0,e.createIdentifier(r))}function _(t,r,n){return e.createVariableStatement(t,e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,n)],2))}function d(t,r){return e.createExportDeclaration(void 0,void 0,t&&e.createNamedExports(t),void 0===r?void 0:e.createLiteral(r))}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(a){var o=a.sourceFile,c=a.program,u=a.preferences,l=e.textChanges.ChangeTracker.with(a,function(t){if(function(t,r,a,o,c){var u={original:(_=t,d=e.createMultiMap(),function t(r,n){e.isIdentifier(r)&&function(e){var t=e.parent;switch(t.kind){case 187:return t.name!==e;case 184:case 251:return t.propertyName!==e;default:return!0}}(r)&&n(r),r.forEachChild(function(e){return t(e,n)})}(_,function(e){return d.add(e.text,e)}),d),additional:e.createMap()},l=function(t,r,i){var a=e.createMap();return n(t,function(t){var n=t.name,o=n.text,c=n.originalKeywordKind;!a.has(o)&&(void 0!==c&&e.isNonContextualKeyword(c)||r.resolveName(t.name.text,t,67216319,!0))&&a.set(o,s("_"+o,i))}),a}(t,r,u);var _,d;!function(t,r,i){n(t,function(n,a){if(!a){var o=n.name.text;i.replaceNode(t,n,e.createIdentifier(r.get(o)||o))}})}(t,l,a);for(var p=!1,f=0,m=t.statements;fi&&t.delete(r,e.arguments[i])})}(t,r,n,a,i))}t.registerCodeFix({errorCodes:a,getCodeActions:function(a){var l=a.errorCode,d=a.sourceFile,p=a.program,f=p.getTypeChecker(),m=p.getSourceFiles(),g=e.getTokenAtPosition(d,a.span.start),y=o(g);if(y){var h=e.textChanges.ChangeTracker.with(a,function(e){return e.delete(d,y)});return[t.createCodeFixAction(r,h,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(y)],i,e.Diagnostics.Delete_all_unused_declarations)]}var v=e.textChanges.ChangeTracker.with(a,function(e){return s(g,e,d,f,m,!1)});if(v.length)return[t.createCodeFixAction(r,v,e.Diagnostics.Remove_destructuring,i,e.Diagnostics.Delete_all_unused_declarations)];var b=e.textChanges.ChangeTracker.with(a,function(e){return c(d,g,e)});if(b.length)return[t.createCodeFixAction(r,b,e.Diagnostics.Remove_variable_statement,i,e.Diagnostics.Delete_all_unused_declarations)];var x=[],S=e.textChanges.ChangeTracker.with(a,function(e){return _(d,g,e,f,m,!1)});if(S.length){var D=e.isComputedPropertyName(g.parent)?g.parent:g;x.push(t.createCodeFixAction(r,S,[e.Diagnostics.Remove_declaration_for_Colon_0,D.getText(d)],i,e.Diagnostics.Delete_all_unused_declarations))}var k=e.textChanges.ChangeTracker.with(a,function(e){return u(e,l,d,g)});return k.length&&x.push(t.createCodeFixAction(r,k,[e.Diagnostics.Prefix_0_with_an_underscore,g.getText(d)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),x},fixIds:[n,i],getAllCodeActions:function(r){var d=r.sourceFile,p=r.program,f=p.getTypeChecker(),m=p.getSourceFiles();return t.codeFixAll(r,a,function(t,a){var p=e.getTokenAtPosition(d,a.start);switch(r.fixId){case n:e.isIdentifier(p)&&l(p)&&u(t,a.code,d,p);break;case i:var g=o(p);g?t.delete(d,g):s(p,t,d,f,m,!0)||c(d,p,t)||_(d,p,t,f,m,!0);break;default:e.Debug.fail(JSON.stringify(r.fixId))}})}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(t){var r="fixUnreachableCode",n=[e.Diagnostics.Unreachable_code_detected.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n),o=e.findAncestor(a,e.isStatement);e.Debug.assert(o.getStart(r)===a.getStart(r));var s=(e.isBlock(o.parent)?o.parent:o).parent;if(!e.isBlock(o.parent)||o===e.first(o.parent.statements))switch(s.kind){case 220:if(s.elseStatement){if(e.isBlock(o.parent))break;return void t.replaceNode(r,o,e.createBlock(e.emptyArray))}case 222:case 223:return void t.delete(r,s)}if(e.isBlock(o.parent)){var c=n+i,u=e.Debug.assertDefined(function(e,t){for(var r,n=0,i=e;ng.length)v(a.getSignatureFromDeclaration(c[c.length-1]),d,l,i(o));else e.Debug.assert(c.length===g.length),s(function(t,r,a,o,s){for(var c=t[0],u=t[0].minArgumentCount,l=!1,_=0,d=t;_=c.parameters.length&&(!p.hasRestParameter||c.hasRestParameter)&&(c=p)}var f=c.parameters.length-(c.hasRestParameter?1:0),m=c.parameters.map(function(e){return e.name}),g=n(f,m,void 0,u,!1);if(l){var y=e.createArrayTypeNode(e.createKeywordTypeNode(119)),h=e.createParameter(void 0,void 0,e.createToken(24),m[f]||"rest",f>=u?e.createToken(55):void 0,y,void 0);g.push(h)}return function(t,r,n,a,o,s,c){return e.createMethod(void 0,t,void 0,r,n?e.createToken(55):void 0,a,o,s,i(c))}(o,r,a,void 0,g,void 0,s)}(g,l,f,d,o))}}function v(t,n,i,o){var c=function(t,r,n,i,a,o,s){var c=t.signatureToSignatureDeclaration(r,154,n,256);if(!c)return;return c.decorators=void 0,c.modifiers=i,c.name=a,c.questionToken=o?e.createToken(55):void 0,c.body=s,c}(a,t,r,n,i,f,o);c&&s(c)}}function n(t,r,n,i,a){for(var o=[],s=0;s=i?e.createToken(55):void 0,a?void 0:n&&n[s]||e.createKeywordTypeNode(119),void 0);o.push(c)}return o}function i(t){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.","single"===t.quotePreference)]))],!0)}t.createMissingMemberNodes=function(e,t,n,i,a){for(var o=e.symbol.members,s=0,c=t;st&&(n?a=e.concatenate(a,e.map(c.argumentTypes.slice(t),function(e){return i.getBaseTypeOfLiteralType(e)})):a.push(i.getBaseTypeOfLiteralType(c.argumentTypes[t])))}if(a.length){var u=i.getWidenedType(i.getUnionType(a,2));return n?i.createArrayType(u):u}}function o(t,r){for(var n=[],a=0;a0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,u=e.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.createReturn(t)]);if(s||i.size){var l=e.visitNodes(u,function t(a){if(!c&&228===a.kind&&s){var u=f(r,n);return a.expression&&(o||(o="__return"),u.unshift(e.createPropertyAssignment(o,e.visitNode(a.expression,t)))),1===u.length?e.createReturn(u[0].name):e.createReturn(e.createObjectLiteral(u))}var l=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var _=i.get(e.getNodeId(a).toString()),d=_?e.getSynthesizedDeepClone(_):e.visitEachChild(a,t,e.nullTransformationContext);return c=l,d}).slice();if(s&&!a&&e.isStatement(t)){var _=f(r,n);1===_.length?l.push(e.createReturn(_[0].name)):l.push(e.createReturn(e.createObjectLiteral(_)))}return{body:e.createBlock(l,!0),returnValueProperty:o}}return{body:e.createBlock(u,!0),returnValueProperty:void 0}}(t,a,u,d,!!(o.facts&i.HasReturn)),A=N.body,P=N.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(A),e.isClassLike(r)){var F=v?[]:[e.createToken(112)];o.facts&i.InStaticRegion&&F.push(e.createToken(115)),o.facts&i.IsAsyncFunction&&F.push(e.createToken(120)),E=e.createMethod(void 0,F.length?F:void 0,o.facts&i.IsGenerator?e.createToken(39):void 0,b,void 0,k,x,c,A)}else E=e.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.createToken(120)]:void 0,o.facts&i.IsGenerator?e.createToken(39):void 0,b,k,x,c,A);var w=e.textChanges.ChangeTracker.fromContext(s),I=function(t,r){return e.find(function(t){if(e.isFunctionLikeDeclaration(t)){var r=t.body;if(e.isBlock(r))return r.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertTypeIsNever(t)}return e.emptyArray}(r),function(r){return r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r)})}((m(o.range)?e.last(o.range):o.range).end,r);I?w.insertNodeBefore(s.file,I,E,!0):w.insertNodeAtEndOfScope(s.file,r,E);var O=[],M=function(t,r,n){var a=e.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&i.InStaticRegion?e.createIdentifier(t.name.text):e.createThis();return e.createPropertyAccess(o,a)}return a}(r,o,h),L=e.createCall(M,T,S);if(o.facts&i.IsGenerator&&(L=e.createYield(e.createToken(39),L)),o.facts&i.IsAsyncFunction&&(L=e.createAwait(L)),a.length&&!u)if(e.Debug.assert(!P),e.Debug.assert(!(o.facts&i.HasReturn)),1===a.length){var R=a[0];O.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(R.name),e.getSynthesizedDeepClone(R.type),L)],R.parent.flags)))}else{for(var B=[],j=[],J=a[0].parent.flags,z=!1,K=0,U=a;K0);for(var a=!0,o=0,s=i;ot)return n||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==n)return c;a=!1}n=c}return void 0===n?e.Debug.fail():n}(b,r);m.insertNodeBefore(o.file,x,h,!0),m.replaceNode(o.file,t,v)}else{var S=e.createVariableDeclaration(l,p,f),D=function(t,r){for(var n;void 0!==t&&t!==r;){if(e.isVariableDeclaration(t)&&t.initializer===n&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;n=t,t=t.parent}}(t,r);if(D){m.insertNodeBefore(o.file,D,S);var v=e.createIdentifier(l);m.replaceNode(o.file,t,v)}else if(219===t.parent.kind&&r===e.findAncestor(t,_)){var k=e.createVariableStatement(void 0,e.createVariableDeclarationList([S],2));m.replaceNode(o.file,t.parent,k)}else{var k=e.createVariableStatement(void 0,e.createVariableDeclarationList([S],2)),x=function(t,r){var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)_(i)&&(n=i);for(var i=(n||t).parent;;i=i.parent){if(g(i)){for(var a=void 0,o=0,s=i.statements;ot.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent)),i.parent.parent):e.Debug.assertDefined(a)}e.Debug.assert(i!==r,"Didn't encounter a block-like before encountering scope")}}(t,r);if(0===x.pos?m.insertNodeAtTopOfFile(o.file,k,!1):m.insertNodeBefore(o.file,x,k,!1),219===t.parent.kind)m.delete(o.file,t.parent);else{var v=e.createIdentifier(l);m.replaceNode(o.file,t,v)}}}var T=m.getChanges(),C=t.getSourceFile().fileName,E=e.getRenameLocation(T,C,l,!0);return{renameFilename:C,renameLocation:E,edits:T}}(e.isExpression(c)?c:c.statements[0].expression,o[n],u[n],t.facts,r)}(n,t,o)}e.Debug.fail("Unrecognized action name")}function l(t,r){var a=r.length;if(0===a)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractEmpty)]};var o=e.getParentNodeInSpan(e.getTokenAtPosition(t,r.start),t,r),s=e.getParentNodeInSpan(e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),t,r),c=[],u=i.None;if(!o||!s)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};if(o.parent!==s.parent)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};if(o!==s){if(!g(o.parent))return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};for(var l=[],_=0,d=o.parent.statements;_=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else u|=i.UsesThis}if(e.isFunctionLikeDeclaration(a)||e.isClassLike(a)){switch(a.kind){case 237:case 238:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope))}return!1}var p=_;switch(a.kind){case 220:case 233:_=0;break;case 216:a.parent&&233===a.parent.kind&&a.parent.finallyBlock===a&&(_=4);break;case 269:_|=1;break;default:e.isIterationStatement(a,!1)&&(_|=3)}switch(a.kind){case 176:case 99:u|=i.UsesThis;break;case 231:var f=a.label;(l||(l=[])).push(f.escapedText),e.forEachChild(a,t),l.pop();break;case 227:case 226:var f=a.label;f?e.contains(l,f.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):_&(227===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 199:u|=i.IsAsyncFunction;break;case 205:u|=i.IsGenerator;break;case 228:4&_?u|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}_=p}(t),o}}function _(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function d(t,r){var a=r.file,o=function(t){var r=m(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis){var n=e.getContainingClass(r);if(n){var a=e.findAncestor(r,e.isFunctionLikeDeclaration);return a?[a,n]:[n]}}for(var o=[];;)if(149===(r=r.parent).kind&&(r=e.findAncestor(r,function(t){return e.isFunctionLikeDeclaration(t)}).parent),_(r)&&(o.push(r),277===r.kind))return o}(t);return{scopes:o,readsAndWrites:function(t,r,a,o,s,c){var u,l,_=e.createMap(),d=[],p=[],f=[],g=[],y=[],h=e.createMap(),v=[],b=m(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===b){var x=t.range,S=e.first(x).getStart(),D=e.last(x).end;l=e.createFileDiagnostic(o,S,D-S,n.expressionExpected)}else 36864&s.getTypeAtLocation(b).flags&&(l=e.createDiagnosticForNode(b,n.uselessConstantType));for(var k=0,T=r;k=u)return m;if(N.set(m,u),y){for(var h=0,v=d;h0){for(var O=e.createMap(),M=0,L=P;void 0!==L&&M=0)return;var i=e.isIdentifier(n)?V(n):s.getSymbolAtLocation(n);if(i){var a=e.find(y,function(e){return e.symbol===i});if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();h.has(o)||(v.push(a),h.set(o,!0))}else u=u||a}e.forEachChild(n,r)})}for(var K=function(r){var i=d[r];if(r>0&&(i.usages.size>0||i.typeParameterUsages.size>0)){var a=m(t.range)?t.range[0]:t.range;g[r].push(e.createDiagnosticForNode(a,n.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(d[r].usages.forEach(function(t){2===t.usage&&(s=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasModifier(t.symbol.valueDeclaration,64)&&(o=t.symbol.valueDeclaration))}),e.Debug.assert(m(t.range)||0===v.length),s&&!m(t.range)){var c=e.createDiagnosticForNode(t.range,n.cannotWriteInExpression);f[r].push(c),g[r].push(c)}else if(o&&r>0){var c=e.createDiagnosticForNode(o,n.cannotExtractReadonlyPropertyInitializerOutsideConstructor);f[r].push(c),g[r].push(c)}else if(u){var c=e.createDiagnosticForNode(u,n.cannotExtractExportedEntity);f[r].push(c),g[r].push(c)}},U=0;Un.pos});if(-1!==a){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,n))return{toMove:[i[a]],afterLast:i[a+1]};if(!(n.pos>o.getStart(r))){var s=e.findIndex(i,function(e){return e.end>n.end},a);if(-1===s||!(0===s||i[s].getStart(r)302});return n.kind<146?n:n.getFirstToken(t)}},r.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<146?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}();function i(r,n,i,a){for(e.scanner.setTextPos(n);n=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return this.forEachChild(function i(a){switch(a.kind){case 237:case 194:case 154:case 153:var o=a,s=n(o);if(s){var c=function(e){var r=t.get(e);r||t.set(e,r=[]);return r}(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 238:case 207:case 239:case 240:case 241:case 242:case 246:case 255:case 251:case 248:case 249:case 156:case 157:case 166:r(a),e.forEachChild(a,i);break;case 149:if(!e.hasModifier(a,92))break;case 235:case 184:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 276:case 152:case 151:r(a);break;case 253:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 247:var _=a.importClause;_&&(_.name&&r(_.name),_.namedBindings&&(249===_.namedBindings.kind?r(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;case 202:0!==e.getSpecialPropertyAssignmentKind(a)&&r(a);default:e.forEachChild(a,i)}}),t;function r(e){var r=n(e);r&&t.add(r,e)}function n(t){var r=e.getNonAssignedNameOfDeclaration(t);return r&&(e.isComputedPropertyName(r)&&e.isPropertyAccessExpression(r.expression)?r.expression.name.text:e.isPropertyName(r)?e.getNameFromPropertyName(r):void 0)}},r}(r),y=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function h(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!v(n)){r=!1;break}if(r)return t;var i={};for(var n in t){if(e.hasProperty(t,n))i[v(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]}return i}function v(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function b(){return{target:1,jsx:1}}e.toEditorSettings=h,e.displayPartsToString=function(t){return t?e.map(t,function(e){return e.text}).join(""):""},e.getDefaultCompilerOptions=b,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var x=function(){function t(t,r){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createMap();for(var n=0,i=t.getScriptFileNames();n=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();function N(t,r){var n=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(r));if(n&&t){var i=[],a=t.getProperty(n);if(262144&t.flags)return e.forEach(t.types,function(e){var t=e.getProperty(n);t&&i.push(t)}),i;if(a)return i.push(a),i}}e.ThrottledCancellationToken=E,e.createLanguageService=function(t,r,i){var a;void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),void 0===i&&(i=!1);var o,s,c=new S(t),u=0,l=new C(t.getCancellationToken&&t.getCancellationToken()),_=t.getCurrentDirectory();function d(e){t.log&&t.log(e)}!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=t.getLocalizedDiagnosticMessages());var p=e.hostUsesCaseSensitiveFileNames(t),f=e.createGetCanonicalFileName(p),m=e.getSourceMapper(f,_,d,t,function(){return o});function g(e){var t=o.getSourceFile(e);if(!t)throw new Error("Could not find file: '"+e+"'.");return t}function y(){if(e.Debug.assert(!i),t.getProjectVersion){var n=t.getProjectVersion();if(n){if(s===n&&!t.hasChangedAutomaticTypeDirectiveNames)return;s=n}}var a=t.getTypeRootsVersion?t.getTypeRootsVersion():0;u!==a&&(d("TypeRoots version has changed; provide new program"),o=void 0,u=a);var c=new x(t,f),g=c.getRootFileNames(),y=t.hasInvalidatedResolution||e.returnFalse;if(!e.isProgramUptoDate(o,g,c.compilationSettings(),function(e){return c.getVersion(e)},D,y,!!t.hasChangedAutomaticTypeDirectiveNames)){var h=c.compilationSettings(),v={getSourceFile:function(t,r,n,i){return k(t,e.toPath(t,_,f),0,0,i)},getSourceFileByPath:k,getCancellationToken:function(){return l},getCanonicalFileName:f,useCaseSensitiveFileNames:function(){return p},getNewLine:function(){return e.getNewLineCharacter(h,function(){return e.getNewLineOrDefaultFromHost(t)})},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return _},fileExists:D,readFile:function(r){var n=e.toPath(r,_,f),i=c&&c.getEntryByPath(n);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):t.readFile&&t.readFile(r)},realpath:t.realpath&&function(e){return t.realpath(e)},directoryExists:function(r){return e.directoryProbablyExists(r,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},onReleaseOldSourceFile:function(e,t){var n=r.getKeyForCompilationSettings(t);r.releaseDocumentWithKey(e.path,n)},hasInvalidatedResolution:y,hasChangedAutomaticTypeDirectiveNames:t.hasChangedAutomaticTypeDirectiveNames};t.trace&&(v.trace=function(e){return t.trace(e)}),t.resolveModuleNames&&(v.resolveModuleNames=function(e,r,n){return t.resolveModuleNames(e,r,n)}),t.resolveTypeReferenceDirectives&&(v.resolveTypeReferenceDirectives=function(e,r){return t.resolveTypeReferenceDirectives(e,r)});var b=r.getKeyForCompilationSettings(h),S={rootNames:g,options:h,host:v,oldProgram:o,projectReferences:c.getProjectReferences()};return o=e.createProgram(S),c=void 0,m.clearCache(),void o.getTypeChecker()}function D(r){var n=e.toPath(r,_,f),i=c&&c.getEntryByPath(n);return i?!e.isString(i):!!t.fileExists&&t.fileExists(r)}function k(t,n,i,a,s){e.Debug.assert(void 0!==c,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var u=c&&c.getOrCreateEntryByPath(t,n);if(u){if(!s){var l=o&&o.getSourceFileByPath(n);if(l)return e.Debug.assertEqual(u.scriptKind,l.scriptKind,"Registered script kind should match new script kind.",n),r.updateDocumentWithKey(t,n,h,b,u.scriptSnapshot,u.version,u.scriptKind)}return r.acquireDocumentWithKey(t,n,h,b,u.scriptSnapshot,u.version,u.scriptKind)}}}function v(){if(!i)return y(),o;e.Debug.assert(void 0===o)}function b(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some(function(t){return e.normalizePath(t)===i})),y();var a=e.map(n,function(t){return e.Debug.assertDefined(o.getSourceFile(t))}),s=g(t);return e.DocumentHighlights.getDocumentHighlights(o,l,s,r,a)}function D(t,r,n){y();var i=n&&n.isForRename?o.getSourceFiles().filter(function(e){return!o.isSourceFileDefaultLibrary(e)}):o.getSourceFiles();return e.FindAllReferences.findReferencedEntries(o,l,i,t,r,n)}function k(r){var n=e.getScriptKind(r,t);return 3===n||4===n}var T=e.createMapFromTemplate(((a={})[17]=18,a[19]=20,a[21]=22,a[29]=27,a));function E(r){switch(r.type){case"install package":return t.installPackage?t.installPackage({fileName:e.toPath(r.file,_,f),packageName:r.packageName}):Promise.reject("Host does not implement `installPackage`");default:return e.Debug.fail()}}function N(r,n,i,a){var o="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:o[0],endPosition:o[1],program:v(),host:t,formatContext:e.formatting.getFormatContext(a),cancellationToken:l,preferences:i}}return T.forEach(function(e,t){return T.set(e.toString(),Number(t))}),{dispose:function(){o&&(e.forEach(o.getSourceFiles(),function(e){return r.releaseDocument(e.fileName,o.getCompilerOptions())}),o=void 0),t=void 0},cleanupSemanticCache:function(){o=void 0},getSyntacticDiagnostics:function(e){return y(),o.getSyntacticDiagnostics(g(e),l).slice()},getSemanticDiagnostics:function(e){y();var t=g(e),r=o.getSemanticDiagnostics(t,l);if(!o.getCompilerOptions().declaration)return r.slice();var n=o.getDeclarationDiagnostics(t,l);return r.concat(n)},getSuggestionDiagnostics:function(t){return y(),e.computeSuggestionDiagnostics(g(t),o,l)},getCompilerOptionsDiagnostics:function(){return y(),o.getOptionsDiagnostics(l).concat(o.getGlobalDiagnostics(l))},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(l,c.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r){return k(t)?(y(),e.getSemanticClassifications(o.getTypeChecker(),l,g(t),o.getClassifiableNames(),r)):[]},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(l,c.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r){return k(t)?(y(),e.getEncodedSemanticClassifications(o.getTypeChecker(),l,g(t),o.getClassifiableNames(),r)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(r,i,a){void 0===a&&(a=e.emptyOptions);var s=n({},e.identity(a),{includeCompletionsForModuleExports:a.includeCompletionsForModuleExports||a.includeExternalModuleExports,includeCompletionsWithInsertText:a.includeCompletionsWithInsertText||a.includeInsertTextCompletions});return y(),e.Completions.getCompletionsAtPosition(t,o,d,g(r),i,s,a.triggerCharacter)},getCompletionEntryDetails:function(r,n,i,a,s,c){return void 0===c&&(c=e.emptyOptions),y(),e.Completions.getCompletionEntryDetails(o,d,g(r),n,{name:i,source:s},t,a&&e.formatting.getFormatContext(a),c,l)},getCompletionEntrySymbol:function(t,r,n,i){return y(),e.Completions.getCompletionEntrySymbol(o,d,g(t),r,{name:n,source:i})},getSignatureHelpItems:function(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;y();var a=g(t);return e.SignatureHelp.getSignatureHelpItems(o,a,r,i,l)},getQuickInfoAtPosition:function(t,r){y();var n=g(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var a=o.getTypeChecker(),s=function(t,r){if((e.isIdentifier(t)||e.isStringLiteral(t))&&e.isPropertyAssignment(t.parent)&&t.parent.name===t){var n=r.getContextualType(t.parent.parent),i=n&&r.getPropertyOfType(n,e.getTextOfIdentifierOrLiteral(t));if(i)return i}return r.getSymbolAtLocation(t)}(i,a);if(s&&!a.isUnknownSymbol(s)){var c=a.runWithCancellationToken(l,function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,s,n,e.getContainerNode(i),i)}),u=c.symbolKind,_=c.displayParts,d=c.documentation,p=c.tags;return{kind:u,kindModifiers:e.SymbolDisplay.getSymbolModifiers(s),textSpan:e.createTextSpanFromNode(i,n),displayParts:_,documentation:d,tags:p}}switch(i.kind){case 71:if(e.isLabelName(i))return;case 187:case 146:case 99:case 176:case 97:var f=a.getTypeAtLocation(i);return f&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(i,n),displayParts:a.runWithCancellationToken(l,function(t){return e.typeToDisplayParts(t,f,e.getContainerNode(i))}),documentation:f.symbol?f.symbol.getDocumentationComment(a):void 0,tags:f.symbol?f.symbol.getJsDocTags():void 0}}}},getDefinitionAtPosition:function(t,r){return y(),e.GoToDefinition.getDefinitionAtPosition(o,g(t),r)},getDefinitionAndBoundSpan:function(t,r){return y(),e.GoToDefinition.getDefinitionAndBoundSpan(o,g(t),r)},getImplementationAtPosition:function(t,r){return y(),e.FindAllReferences.getImplementationsAtPosition(o,l,o.getSourceFiles(),g(t),r)},getTypeDefinitionAtPosition:function(t,r){return y(),e.GoToDefinition.getTypeDefinitionAtPosition(o.getTypeChecker(),g(t),r)},getReferencesAtPosition:function(t,r){return y(),D(e.getTouchingPropertyName(g(t),r),r)},findReferences:function(t,r){return y(),e.FindAllReferences.findReferencedSymbols(o,l,o.getSourceFiles(),g(t),r)},getOccurrencesAtPosition:function(t,r){return e.flatMap(b(t,r,[t]),function(e){return e.highlightSpans.map(function(t){return{fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind,isDefinition:!1,isInString:t.isInString}})})},getDocumentHighlights:b,getNameOrDottedNameSpan:function(t,r,n){var i=c.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.kind){case 187:case 146:case 9:case 86:case 101:case 95:case 97:case 99:case 176:case 71:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(242!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}},getBreakpointStatementAtPosition:function(t,r){var n=c.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems:function(t,r,n,i){void 0===i&&(i=!1),y();var a=n?[g(n)]:o.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,o.getTypeChecker(),l,t,r,i)},getRenameInfo:function(t,r){return y(),e.Rename.getRenameInfo(o,g(t),r)},findRenameLocations:function(t,r,n,i){y();var a=g(t),o=e.getTouchingPropertyName(a,r);if(e.isIdentifier(o)&&e.isJsxOpeningElement(o.parent)||e.isJsxClosingElement(o.parent)){var s=o.parent.parent;return[s.openingElement,s.closingElement].map(function(t){return{fileName:a.fileName,textSpan:e.createTextSpanFromNode(t.tagName,a)}})}var c=D(o,r,{findInStrings:n,findInComments:i,isForRename:!0});return c&&c.map(function(e){return{fileName:e.fileName,textSpan:e.textSpan}})},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(c.getCurrentSourceFile(t),l)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(c.getCurrentSourceFile(t),l)},getOutliningSpans:function(t){var r=c.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,l)},getTodoComments:function(t,r){y();var n=g(t);l.throwIfCancellationRequested();var i,a,o=n.text,s=[];if(r.length>0&&(a=n.fileName,!e.stringContains(a,"/node_modules/")))for(var c=function(){var t="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+e.map(r,function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"}).join("|")+")";return new RegExp(t+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}(),u=void 0;u=c.exec(o);){l.throwIfCancellationRequested(),e.Debug.assert(u.length===r.length+3);var _=u[1],d=u.index+_.length;if(e.isInComment(n,d)){for(var p=void 0,f=0;f=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)){var m=u[2];s.push({descriptor:p,message:m,position:d})}}}return s},getBraceMatchingAtPosition:function(t,r){var n=c.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?T.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,n);return o?[e.createTextSpanFromNode(i,n),e.createTextSpanFromNode(o,n)].sort(function(e,t){return e.start-t.start}):e.emptyArray},getIndentationAtPosition:function(t,r,n){var i=e.timestamp(),a=h(n),o=c.getCurrentSourceFile(t);d("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return d("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(t,r,n,i){var a=c.getCurrentSourceFile(t);return e.formatting.formatSelection(r,n,a,e.formatting.getFormatContext(h(i)))},getFormattingEditsForDocument:function(t,r){return e.formatting.formatDocument(c.getCurrentSourceFile(t),e.formatting.getFormatContext(h(r)))},getFormattingEditsAfterKeystroke:function(t,r,n,i){var a=c.getCurrentSourceFile(t),o=e.formatting.getFormatContext(h(i));if(!e.isInComment(a,r))switch(n){case"{":return e.formatting.formatOnOpeningCurly(r,a,o);case"}":return e.formatting.formatOnClosingCurly(r,a,o);case";":return e.formatting.formatOnSemicolon(r,a,o);case"\n":return e.formatting.formatOnEnter(r,a,o)}return[]},getDocCommentTemplateAtPosition:function(r,n){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),c.getCurrentSourceFile(r),n)},isValidBraceCompletionAtPosition:function(t,r,n){if(60===n)return!1;var i=c.getCurrentSourceFile(t);if(e.isInString(i,r))return!1;if(e.isInsideJsxElementOrAttribute(i,r))return 123===n;if(e.isInTemplateString(i,r))return!1;switch(n){case 39:case 34:case 96:return!e.isInComment(i,r)}return!0},getJsxClosingTagAtPosition:function(t,r){var n=c.getCurrentSourceFile(t),i=e.findPrecedingToken(r,n);if(i){var a=29===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)?i.parent:void 0;return a&&function t(r){var n=r.openingElement,i=r.closingElement,a=r.parent;return!e.tagNamesAreEquivalent(n.tagName,i.tagName)||e.isJsxElement(a)&&e.tagNamesAreEquivalent(n.tagName,a.openingElement.tagName)&&t(a)}(a)?{newText:""}:void 0}},getSpanOfEnclosingComment:function(t,r,n){var i=c.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,r);return!a||n&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(r,n,i,a,s,c){void 0===c&&(c=e.emptyOptions),y();var u=g(r),_=e.createTextSpanFromBounds(n,i),d=e.formatting.getFormatContext(s);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),function(r){return l.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:u,span:_,program:o,host:t,cancellationToken:l,formatContext:d,preferences:c})})},getCombinedCodeFix:function(r,n,i,a){void 0===a&&(a=e.emptyOptions),y(),e.Debug.assert("file"===r.type);var s=g(r.fileName),c=e.formatting.getFormatContext(i);return e.codefix.getAllFixes({fixId:n,sourceFile:s,program:o,host:t,cancellationToken:l,formatContext:c,preferences:a})},applyCodeActionCommand:function(t,r){var n="string"==typeof t?r:t;return e.isArray(n)?Promise.all(n.map(E)):E(n)},organizeImports:function(r,n,i){void 0===i&&(i=e.emptyOptions),y(),e.Debug.assert("file"===r.type);var a=g(r.fileName),s=e.formatting.getFormatContext(n);return e.OrganizeImports.organizeImports(a,s,t,o,i)},getEditsForFileRename:function(r,n,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(v(),r,n,t,e.formatting.getFormatContext(i),a,m)},getEmitOutput:function(r,n){void 0===n&&(n=!1),y();var i=g(r),a=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(o,i,n,l,a)},getNonBoundSourceFile:function(e){return c.getCurrentSourceFile(e)},getProgram:v,getApplicableRefactors:function(t,r,n){void 0===n&&(n=e.emptyOptions),y();var i=g(t);return e.refactor.getApplicableRefactors(N(i,r,n))},getEditsForRefactor:function(t,r,n,i,a,o){void 0===o&&(o=e.emptyOptions),y();var s=g(t);return e.refactor.getEditsForRefactor(N(s,n,o,r),i,a)},toLineColumnOffset:m.toLineColumnOffset,getSourceMapper:function(){return m}}},e.getNameTable=function(t){return t.nameTable||function(t){var r=t.nameTable=e.createUnderscoreEscapedMap();t.forEachChild(function t(n){if(e.isIdentifier(n)&&n.escapedText||e.isStringOrNumericLiteral(n)&&function(t){return e.isDeclarationName(t)||257===t.parent.kind||function(e){return e&&e.parent&&188===e.parent.kind&&e.parent.argumentExpression===e}(t)||e.isLiteralComputedPropertyDeclarationName(t)}(n)){var i=e.getEscapedTextOfIdentifierOrLiteral(n);r.set(i,void 0===r.get(i)?n.pos:-1)}if(e.forEachChild(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;ai){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;n=a}if(!(4194304&n.flags))return _(n)}function o(r,n){var i=r.decorators?e.skipTrivia(t.text,r.decorators.end):r.getStart(t);return e.createTextSpanFromBounds(i,(n||r).getEnd())}function s(r,n){return o(r,e.findNextToken(n,n.parent,t))}function c(e,r){return e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line?_(e):_(r)}function u(r){return _(e.findPrecedingToken(r.pos,t))}function l(r){return _(e.findNextToken(r,r.parent,t))}function _(r){if(r){var n=r.parent;switch(r.kind){case 217:return x(r.declarationList.declarations[0]);case 235:case 152:case 151:return x(r);case 149:return function t(r){if(e.isBindingPattern(r.name))return T(r.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasModifier(t,12)}(r))return o(r);var n=r.parent,i=n.parameters.indexOf(r);return e.Debug.assert(-1!==i),0!==i?t(n.parameters[i-1]):_(n.body)}(r);case 237:case 154:case 153:case 156:case 157:case 155:case 194:case 195:return function(e){if(e.body)return S(e)?o(e):_(e.body)}(r);case 216:if(e.isFunctionBlock(r))return h=(y=r).statements.length?y.statements[0]:y.getLastToken(),S(y.parent)?c(y.parent,h):_(h);case 243:return D(r);case 272:return D(r.block);case 219:return o(r.expression);case 228:return o(r.getChildAt(0),r.expression);case 222:return s(r,r.expression);case 221:return _(r.statement);case 234:return o(r.getChildAt(0));case 220:return s(r,r.expression);case 231:return _(r.statement);case 227:case 226:return o(r.getChildAt(0),r.label);case 223:return(g=r).initializer?k(g):g.condition?o(g.condition):g.incrementor?o(g.incrementor):void 0;case 224:return s(r,r.expression);case 225:return k(r);case 230:return s(r,r.expression);case 269:case 270:return _(r.statements[0]);case 233:return D(r.tryBlock);case 232:case 252:return o(r,r.expression);case 246:return o(r,r.moduleReference);case 247:case 253:return o(r,r.moduleSpecifier);case 242:if(1!==e.getModuleInstanceState(r))return;case 238:case 241:case 276:case 184:return o(r);case 229:return _(r.statement);case 150:return v=n.decorators,e.createTextSpanFromBounds(e.skipTrivia(t.text,v.pos),v.end);case 182:case 183:return T(r);case 239:case 240:return;case 25:case 1:return c(e.findPrecedingToken(r.pos,t));case 26:return u(r);case 17:return function(r){switch(r.parent.kind){case 241:var n=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 238:var i=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 244:return c(r.parent.parent,r.parent.clauses[0])}return _(r.parent)}(r);case 18:return function(t){switch(t.parent.kind){case 243:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 241:case 238:return o(t);case 216:if(e.isFunctionBlock(t.parent))return o(t);case 272:return _(e.lastOrUndefined(t.parent.statements));case 244:var r=t.parent,n=e.lastOrUndefined(r.clauses);return n?_(e.lastOrUndefined(n.statements)):void 0;case 182:var i=t.parent;return _(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return o(e.lastOrUndefined(a.properties)||a)}return _(t.parent)}}(r);case 22:return function(t){switch(t.parent.kind){case 183:var r=t.parent;return o(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var n=t.parent;return o(e.lastOrUndefined(n.elements)||n)}return _(t.parent)}}(r);case 19:return function(e){return 221===e.parent.kind||189===e.parent.kind||190===e.parent.kind?u(e):193===e.parent.kind?l(e):_(e.parent)}(r);case 20:return function(e){switch(e.parent.kind){case 194:case 237:case 195:case 154:case 153:case 156:case 157:case 155:case 222:case 221:case 223:case 225:case 189:case 190:case 193:return u(e);default:return _(e.parent)}}(r);case 56:return function(t){return e.isFunctionLike(t.parent)||273===t.parent.kind||149===t.parent.kind?u(t):_(t.parent)}(r);case 29:case 27:return function(e){return 192===e.parent.kind?l(e):_(e.parent)}(r);case 106:return function(e){return 221===e.parent.kind?s(e,e.parent.expression):_(e.parent)}(r);case 82:case 74:case 87:return l(r);case 145:return function(e){return 225===e.parent.kind?l(e):_(e.parent)}(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return C(r);if((71===r.kind||206===r.kind||273===r.kind||274===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return o(r);if(202===r.kind){var i=r,a=i.left,d=i.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a))return C(a);if(58===d.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return o(r);if(26===d.kind)return _(a)}if(e.isExpressionNode(r))switch(n.kind){case 221:return u(r);case 150:return _(r.parent);case 223:case 225:return o(r);case 202:if(26===r.parent.operatorToken.kind)return o(r);break;case 195:if(r.parent.body===r)return o(r)}switch(r.parent.kind){case 273:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return _(r.parent.initializer);break;case 192:if(r.parent.type===r)return l(r.parent.type);break;case 235:case 149:var p=r.parent,f=p.initializer,m=p.type;if(f===r||m===r||e.isAssignmentOperator(r.kind))return u(r);break;case 202:if(a=r.parent.left,e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&r!==a)return u(r);break;default:if(e.isFunctionLike(r.parent)&&r.parent.type===r)return u(r)}return _(r.parent)}}var g,y,h,v;function b(r){return e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r?o(e.findPrecedingToken(r.pos,t,r.parent),r):o(r)}function x(r){if(224===r.parent.parent.kind)return _(r.parent.parent);var n=r.parent;return e.isBindingPattern(r.name)?T(r.name):r.initializer||e.hasModifier(r,1)||225===n.parent.kind?b(r):e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r?_(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function S(t){return e.hasModifier(t,1)||238===t.parent.kind&&155!==t.kind}function D(r){switch(r.parent.kind){case 242:if(1!==e.getModuleInstanceState(r.parent))return;case 222:case 220:case 224:return c(r.parent,r.statements[0]);case 223:case 225:return c(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return _(r.statements[0])}function k(e){if(236!==e.initializer.kind)return _(e.initializer);var t=e.initializer;return t.declarations.length>0?_(t.declarations[0]):void 0}function T(t){var r=e.forEach(t.elements,function(e){return 208!==e.kind?e:void 0});return r?_(r):184===t.parent.kind?o(t.parent):b(t.parent)}function C(t){e.Debug.assert(183!==t.kind&&182!==t.kind);var r=185===t.kind?t.elements:t.properties,n=e.forEach(r,function(e){return 208!==e.kind?e:void 0});return n?_(n):o(202===t.parent.kind?t.parent:t)}}}}(e.BreakpointResolver||(e.BreakpointResolver={}))}(s||(s={})),function(e){e.transform=function(t,r,n){var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(s||(s={}));var s,c,u=function(){return this}();!function(t){function r(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var n=function(){function e(e){this.scriptSnapshotShim=e}return 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){var r=e,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return t.createTextChangeRange(t.createTextSpan(i.span.start,i.span.length),i.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},e}(),i=function(){function e(e){var r=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return t.map(e,function(e){var r=t.getProperty(i,e);return r?{resolvedFileName:r,extension:t.extensionFromPath(r),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(e,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return t.map(e,function(e){return t.getProperty(i,e)})})}return e.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},e.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},e.prototype.error=function(e){this.shimHost.error(e)},e.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},e.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},e.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},e.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},e.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return this.files=JSON.parse(e)},e.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new n(t)},e.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},e.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},e.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}},e.prototype.getCancellationToken=function(){var e=this.shimHost.getCancellationToken();return new t.ThrottledCancellationToken(e)},e.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},e.prototype.readDirectory=function(e,r,n,i,a){var o=t.getFileMatcherPatterns(e,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e}();t.LanguageServiceShimHostAdapter=i;var a=function(){function e(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)}),"realpath"in this.shimHost&&(this.realpath=function(e){return t.shimHost.realpath(e)})}return e.prototype.readDirectory=function(e,r,n,i,a){var o=t.getFileMatcherPatterns(e,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e.prototype.readFile=function(e){return this.shimHost.readFile(e)},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e}();function s(e,t,r,n){return c(e,t,!0,r,n)}function c(e,n,i,a,o){try{var s=function(e,r,n,i){var a;i&&(e.log(r),a=t.timestamp());var o=n();if(i){var s=t.timestamp();if(e.log(r+" completed in "+(s-a)+" msec"),t.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),e.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}(e,n,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof t.OperationCanceledException?JSON.stringify({canceled:!0}):(r(e,i),i.description=n,JSON.stringify({error:i}))}}t.CoreServicesShimHostAdapter=a;var l=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function _(e,r){return e.map(function(e){return function(e,r){return{message:t.flattenDiagnosticMessageText(e.messageText,r),start:e.start,length:e.length,category:t.diagnosticCategoryName(e),code:e.code,reportsUnnecessary:e.reportsUnnecessary}}(e,r)})}t.realizeDiagnostics=_;var d=function(e){function r(t,r,n){var i=e.call(this,t)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return o(r,e),r.prototype.forwardJSONCall=function(e,t){return s(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(t){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,u&&u.CollectGarbage&&(u.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,e.prototype.dispose.call(this,t)},r.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null})},r.prototype.realizeDiagnostics=function(e){return _(e,t.getNewLineOrDefaultFromHost(this.host))},r.prototype.getSyntacticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+e+"', "+r+", "+n+")",function(){return i.languageService.getSyntacticClassifications(e,t.createTextSpan(r,n))})},r.prototype.getSemanticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+e+"', "+r+", "+n+")",function(){return i.languageService.getSemanticClassifications(e,t.createTextSpan(r,n))})},r.prototype.getEncodedSyntacticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+e+"', "+r+", "+n+")",function(){return p(i.languageService.getEncodedSyntacticClassifications(e,t.createTextSpan(r,n)))})},r.prototype.getEncodedSemanticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+e+"', "+r+", "+n+")",function(){return p(i.languageService.getEncodedSemanticClassifications(e,t.createTextSpan(r,n)))})},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)})},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)})},r.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))})},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})},r.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return r.languageService.getQuickInfoAtPosition(e,t)})},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)})},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBreakpointStatementAtPosition(e,t)})},r.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return n.languageService.getSignatureHelpItems(e,t,r)})},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAtPosition(e,t)})},r.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAndBoundSpan(e,t)})},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getTypeDefinitionAtPosition(e,t)})},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return r.languageService.getImplementationAtPosition(e,t)})},r.prototype.getRenameInfo=function(e,t){var r=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return r.languageService.getRenameInfo(e,t)})},r.prototype.findRenameLocations=function(e,t,r,n){var i=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+r+", "+n+")",function(){return i.languageService.findRenameLocations(e,t,r,n)})},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBraceMatchingAtPosition(e,t)})},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)})},r.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)})},r.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var i=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,i)})},r.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getReferencesAtPosition(e,t)})},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return r.languageService.findReferences(e,t)})},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getOccurrencesAtPosition(e,t)})},r.prototype.getDocumentHighlights=function(e,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+e+"', "+r+")",function(){var a=i.languageService.getDocumentHighlights(e,r,JSON.parse(n)),o=t.normalizeSlashes(e).toLowerCase();return t.filter(a,function(e){return t.normalizeSlashes(e.fileName).toLowerCase()===o})})},r.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.getCompletionsAtPosition(e,t,r)})},r.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a){var o=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+r+"')",function(){var s=void 0===n?void 0:JSON.parse(n);return o.languageService.getCompletionEntryDetails(e,t,r,s,i,a)})},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+r+")",function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsForRange(e,t,r,a)})},r.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)})},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+r+"')",function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)})},r.prototype.getDocCommentTemplateAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDocCommentTemplateAtPosition(e,t)})},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNavigateToItems(e,t,r)})},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},r.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return r.languageService.getTodoComments(e,JSON.parse(t))})},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return t.languageService.getEmitOutput(e)})},r.prototype.getEmitOutputObject=function(e){var t=this;return c(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},r}(l);function p(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var f=function(e){function r(r,n){var i=e.call(this,r)||this;return i.logger=n,i.logPerformance=!1,i.classifier=t.createClassifier(),i}return o(r,e),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),s(this.logger,"getEncodedLexicalClassifications",function(){return p(n.classifier.getEncodedLexicalClassifications(e,t,r))},this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,r){void 0===r&&(r=!1);for(var n=this.classifier.getClassificationsForLine(e,t,r),i="",a=0,o=n.entries;a",""":'"',"'":"'","`":"`"},function(e){return null==Ut?void 0:Ut[e]}),Vt=Object.prototype.toString,Wt=Kt.Symbol,Ht=Wt?Wt.prototype:void 0,Gt=Ht?Ht.toString:void 0;function Xt(e){if("string"==typeof e)return e;if(function(e){return"symbol"==p(e)||function(e){return!!e&&"object"==p(e)}(e)&&Vt.call(e)==Rt}(e))return Gt?Gt.call(e):"";var t=e+"";return"0"==t&&1/e==-Lt?"-0":t}var Qt=function(e){var t;return(e=null==(t=e)?"":Xt(t))&&jt.test(e)?e.replace(Bt,qt):e},Yt=Mt.SyntaxKind,$t=[Yt.EqualsToken,Yt.PlusEqualsToken,Yt.MinusEqualsToken,Yt.AsteriskEqualsToken,Yt.SlashEqualsToken,Yt.PercentEqualsToken,Yt.LessThanLessThanEqualsToken,Yt.GreaterThanGreaterThanEqualsToken,Yt.GreaterThanGreaterThanGreaterThanEqualsToken,Yt.AmpersandEqualsToken,Yt.BarEqualsToken,Yt.CaretEqualsToken],Zt=[Yt.BarBarToken,Yt.AmpersandAmpersandToken],er={};er[Yt.OpenBraceToken]="{",er[Yt.CloseBraceToken]="}",er[Yt.OpenParenToken]="(",er[Yt.CloseParenToken]=")",er[Yt.OpenBracketToken]="[",er[Yt.CloseBracketToken]="]",er[Yt.DotToken]=".",er[Yt.DotDotDotToken]="...",er[Yt.SemicolonToken]=";",er[Yt.CommaToken]=",",er[Yt.LessThanToken]="<",er[Yt.GreaterThanToken]=">",er[Yt.LessThanEqualsToken]="<=",er[Yt.GreaterThanEqualsToken]=">=",er[Yt.EqualsEqualsToken]="==",er[Yt.ExclamationEqualsToken]="!=",er[Yt.EqualsEqualsEqualsToken]="===",er[Yt.InstanceOfKeyword]="instanceof",er[Yt.ExclamationEqualsEqualsToken]="!==",er[Yt.EqualsGreaterThanToken]="=>",er[Yt.PlusToken]="+",er[Yt.MinusToken]="-",er[Yt.AsteriskToken]="*",er[Yt.AsteriskAsteriskToken]="**",er[Yt.SlashToken]="/",er[Yt.PercentToken]="%",er[Yt.PlusPlusToken]="++",er[Yt.MinusMinusToken]="--",er[Yt.LessThanLessThanToken]="<<",er[Yt.LessThanSlashToken]=">",er[Yt.GreaterThanGreaterThanGreaterThanToken]=">>>",er[Yt.AmpersandToken]="&",er[Yt.BarToken]="|",er[Yt.CaretToken]="^",er[Yt.ExclamationToken]="!",er[Yt.TildeToken]="~",er[Yt.AmpersandAmpersandToken]="&&",er[Yt.BarBarToken]="||",er[Yt.QuestionToken]="?",er[Yt.ColonToken]=":",er[Yt.EqualsToken]="=",er[Yt.PlusEqualsToken]="+=",er[Yt.MinusEqualsToken]="-=",er[Yt.AsteriskEqualsToken]="*=",er[Yt.AsteriskAsteriskEqualsToken]="**=",er[Yt.SlashEqualsToken]="/=",er[Yt.PercentEqualsToken]="%=",er[Yt.LessThanLessThanEqualsToken]="<<=",er[Yt.GreaterThanGreaterThanEqualsToken]=">>=",er[Yt.GreaterThanGreaterThanGreaterThanEqualsToken]=">>>=",er[Yt.AmpersandEqualsToken]="&=",er[Yt.BarEqualsToken]="|=",er[Yt.CaretEqualsToken]="^=",er[Yt.AtToken]="@",er[Yt.InKeyword]="in",er[Yt.UniqueKeyword]="unique",er[Yt.KeyOfKeyword]="keyof",er[Yt.NewKeyword]="new",er[Yt.ImportKeyword]="import";var tr={SyntaxKind:Yt,isAssignmentOperator:rr,isLogicalOperator:nr,getTextForTokenKind:function(e){return er[e]},isESTreeClassMember:function(e){return e.kind!==Yt.SemicolonClassElement},hasModifier:function(e,t){return!!t.modifiers&&!!t.modifiers.length&&t.modifiers.some(function(t){return t.kind===e})},isComma:function(e){return e.kind===Yt.CommaToken},getBinaryExpressionType:function(e){if(rr(e))return"AssignmentExpression";if(nr(e))return"LogicalExpression";return"BinaryExpression"},getLocFor:or,getLoc:function(e,t){return or(e.getStart(),e.end,t)},isToken:sr,isJSXToken:cr,getDeclarationKind:function(e){switch(e.kind){case Yt.TypeAliasDeclaration:return"type";case Yt.VariableDeclarationList:return e.flags&Mt.NodeFlags.Let?"let":e.flags&Mt.NodeFlags.Const?"const":"var";default:throw"Unable to determine declaration kind."}},getTSNodeAccessibility:function(e){var t=e.modifiers;if(!t)return null;for(var r=0;r=a&&r<=o&&(sr(i)?n=i:i.getChildren().forEach(e))}(e),n},isWithinTypeAnnotation:function(e){return e.parent.type===e||e.parent.types&&e.parent.types.indexOf(e)>-1},isTypeKeyword:function(e){switch(e){case Yt.AnyKeyword:case Yt.BooleanKeyword:case Yt.NeverKeyword:case Yt.NumberKeyword:case Yt.ObjectKeyword:case Yt.StringKeyword:case Yt.SymbolKeyword:case Yt.VoidKeyword:return!0;default:return!1}},isComment:ir,isJSDocComment:ar,createError:function(e,t,r){var n=e.getLineAndCharacterOfPosition(t);return{index:t,lineNumber:n.line+1,column:n.character,message:r}}};function rr(e){return $t.indexOf(e.kind)>-1}function nr(e){return Zt.indexOf(e.kind)>-1}function ir(e){return e.kind===Yt.SingleLineCommentTrivia||e.kind===Yt.MultiLineCommentTrivia}function ar(e){return e.kind===Yt.JSDocComment}function or(e,t,r){var n=r.getLineAndCharacterOfPosition(e),i=r.getLineAndCharacterOfPosition(t);return{start:{line:n.line+1,column:n.character},end:{line:i.line+1,column:i.character}}}function sr(e){return e.kind>=Yt.FirstToken&&e.kind<=Yt.LastToken}function cr(e){return e.kind>=Yt.JsxElement&&e.kind<=Yt.JsxAttribute}function ur(e,t){return Mt.findNextToken(e,t)}function lr(e,t){for(;e;){if(t(e))return e;e=e.parent}}function _r(e){return!!lr(e,cr)}function dr(e){if(e.originalKeywordKind)switch(e.originalKeywordKind){case Yt.NullKeyword:return"Null";case Yt.GetKeyword:case Yt.SetKeyword:case Yt.TypeKeyword:case Yt.ModuleKeyword:return"Identifier";default:return"Keyword"}if(e.kind>=Yt.FirstKeyword&&e.kind<=Yt.LastFutureReservedWord)return e.kind===Yt.FalseKeyword||e.kind===Yt.TrueKeyword?"Boolean":"Keyword";if(e.kind>=Yt.FirstPunctuation&&e.kind<=Yt.LastBinaryOperator)return"Punctuator";if(e.kind>=Yt.NoSubstitutionTemplateLiteral&&e.kind<=Yt.TemplateTail)return"Template";switch(e.kind){case Yt.NumericLiteral:return"Numeric";case Yt.JsxText:return"JSXText";case Yt.StringLiteral:return!e.parent||e.parent.kind!==Yt.JsxAttribute&&e.parent.kind!==Yt.JsxElement?"String":"JSXText";case Yt.RegularExpressionLiteral:return"RegularExpression";case Yt.Identifier:case Yt.ConstructorKeyword:case Yt.GetKeyword:case Yt.SetKeyword:}if(e.parent){if(e.kind===Yt.Identifier&&e.parent.kind===Yt.PropertyAccessExpression&&_r(e))return"JSXIdentifier";if(cr(e.parent)){if(e.kind===Yt.PropertyAccessExpression)return"JSXMemberExpression";if(e.kind===Yt.Identifier)return"JSXIdentifier"}}return"Identifier"}function pr(e,t){var r=e.kind===Yt.JsxText?e.getFullStart():e.getStart(),n=e.getEnd(),i=t.text.slice(r,n),a={type:dr(e),value:i,range:[r,n],loc:or(r,n,t)};return"RegularExpression"===a.type&&(a.regex={pattern:i.slice(1,i.lastIndexOf("/")),flags:i.slice(i.lastIndexOf("/")+1)}),a}var fr=tr.SyntaxKind;function mr(e,t,r){var n=e.getToken()===Mt.SyntaxKind.MultiLineCommentTrivia,i={pos:e.getTokenPos(),end:e.getTextPos(),kind:e.getToken()},a=r.substring(i.pos,i.end),o=n?a.replace(/^\/\*/,"").replace(/\*\/$/,""):a.replace(/^\/\//,""),s=tr.getLocFor(i.pos,i.end,t);return function(e,t,r,n,i,a){var o={type:e?"Block":"Line",value:t};return"number"==typeof r&&(o.range=[r,n]),"object"===p(i)&&(o.loc={start:i,end:a}),o}(n,o,i.pos,i.end,s.start,s.end)}var gr=function(e,t){var r=[],n=Mt.createScanner(e.languageVersion,!1,0,t),i=n.scan();for(;i!==Mt.SyntaxKind.EndOfFileToken;){var a=n.getTokenPos(),o=n.getTextPos(),s=null;switch(i){case Mt.SyntaxKind.SingleLineCommentTrivia:case Mt.SyntaxKind.MultiLineCommentTrivia:var c=mr(n,e,t);r.push(c);break;case Mt.SyntaxKind.CloseBraceToken:if((s=tr.getNodeContainer(e,a,o)).kind===Mt.SyntaxKind.TemplateMiddle||s.kind===Mt.SyntaxKind.TemplateTail){i=n.reScanTemplateToken();continue}break;case Mt.SyntaxKind.SlashToken:case Mt.SyntaxKind.SlashEqualsToken:if((s=tr.getNodeContainer(e,a,o)).kind===Mt.SyntaxKind.RegularExpressionLiteral){i=n.reScanSlashToken();continue}}i=n.scan()}return r};var yr,hr=i(function(e){var t=gr;e.exports=function(e,r){if(e.parseDiagnostics.length)throw n=e.parseDiagnostics[0],tr.createError(n.file,n.start,n.message||n.messageText);var n,i=function e(t){var r=t.node,n=t.parent,i=t.ast,a=t.additionalOptions||{};if(!r)return null;var o={type:"",range:[r.getStart(),r.end],loc:tr.getLoc(r,i)};function s(e){t.additionalOptions.parseForESLint&&!e.body&&(e.type="TSEmptyBody".concat(e.type))}function c(t){return e({node:t,parent:r,ast:i,additionalOptions:a})}function u(e){var t=c(e),r=e.getFullStart()-1,n=tr.getLocFor(r,e.end,i);return{type:f.TSTypeAnnotation,loc:n,range:[r,e.end],typeAnnotation:t}}function l(t){var r=t.pos-1,n=t.end+1;if(t&&t.length){var o=t[0].parent;if(o&&(o.kind===fr.CallExpression||o.kind===fr.TypeReference)){var s=t[t.length-1];n=tr.findNextToken(s,i).end}}return{type:f.TSTypeParameterInstantiation,range:[r,n],loc:tr.getLocFor(r,n,i),params:t.map(function(t){return tr.isTypeKeyword(t.kind)?{type:f["TS".concat(fr[t.kind])],range:[t.getStart(),t.getEnd()],loc:tr.getLoc(t,i)}:t.kind===fr.ImportType?e({node:t,parent:null,ast:i,additionalOptions:a}):{type:f.TSTypeReference,range:[t.getStart(),t.getEnd()],loc:tr.getLoc(t,i),typeName:c(t.typeName||t),typeParameters:t.typeArguments?l(t.typeArguments):void 0}})}}function _(t){var r=t[0],n=t[t.length-1],o=tr.findNextToken(n,i);return{type:f.TSTypeParameterDeclaration,range:[r.pos-1,o.end],loc:tr.getLocFor(r.pos-1,o.end,i),params:t.map(function(t){var r=t.name.text,n=t.constraint?e({node:t.constraint,parent:t,ast:i,additionalOptions:a}):void 0,o=t.default?e({node:t.default,parent:t,ast:i,additionalOptions:a}):t.default;return{type:f.TSTypeParameter,range:[t.getStart(),t.getEnd()],loc:tr.getLoc(t,i),name:r,constraint:n,default:o}})}}function d(e){return e&&e.length?e.map(function(e){var t=c(e.expression);return{type:f.Decorator,range:[e.getStart(),e.end],loc:tr.getLoc(e,i),expression:t}}):[]}function m(e){return e&&e.length?e.map(function(e){var t=c(e);return e.decorators&&e.decorators.length?Object.assign(t,{decorators:d(e.decorators)}):t}):[]}function g(e){var t=tr.convertToken(e,i);if(t.type===f.JSXMemberExpression){var n=r.tagName.expression.kind===fr.PropertyAccessExpression;t.object=c(r.tagName.expression),t.property=c(r.tagName.name),t.object.type=n?f.JSXMemberExpression:f.JSXIdentifier,t.property.type=f.JSXIdentifier,e.expression.kind===fr.ThisKeyword&&(t.object.name="this")}else t.type=f.JSXIdentifier,t.name=t.value;return delete t.value,t}function y(e){if(e&&e.length){for(var t={},r=0;rZ.pos)&&(Z=tr.findNextToken(ee,i)),o.typeParameters=_(r.typeParameters)}if(r.modifiers&&r.modifiers.length){r.kind===fr.ClassDeclaration&&tr.hasModifier(fr.AbstractKeyword,r)&&($="TSAbstract".concat($));var te=r.modifiers[r.modifiers.length-1];(!Z||te.pos>Z.pos)&&(Z=tr.findNextToken(te,i))}else Z||(Z=r.getFirstToken());var re=tr.findNextToken(Z,i),ne=Y.find(function(e){return e.token===fr.ExtendsKeyword});if(ne){if(ne.types.length>1)throw tr.createError(i,ne.types[1].pos,"Classes can only extend a single class.");ne.types[0]&&ne.types[0].typeArguments&&(o.superTypeParameters=l(ne.types[0].typeArguments))}var ie=Y.find(function(e){return e.token===fr.ImplementsKeyword});Object.assign(o,{type:$,id:c(r.name),body:{type:f.ClassBody,body:[],range:[re.getStart(),o.range[1]],loc:tr.getLocFor(re.getStart(),r.end,i)},superClass:ne&&ne.types[0]?c(ne.types[0].expression):null}),ie&&(o.implements=ie.types.map(function(e){var t=c(e.expression),r={type:f.ClassImplements,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(r.typeParameters=l(e.typeArguments)),r})),r.decorators&&(o.decorators=d(r.decorators));var ae=r.members.filter(tr.isESTreeClassMember);ae.length&&(o.body.body=ae.map(c)),o=tr.fixExports(r,o,i);break;case fr.ModuleBlock:Object.assign(o,{type:f.TSModuleBlock,body:r.statements.map(c)});break;case fr.ImportDeclaration:Object.assign(o,{type:f.ImportDeclaration,source:c(r.moduleSpecifier),specifiers:[]}),r.importClause&&(r.importClause.name&&o.specifiers.push(c(r.importClause)),r.importClause.namedBindings&&(r.importClause.namedBindings.kind===fr.NamespaceImport?o.specifiers.push(c(r.importClause.namedBindings)):o.specifiers=o.specifiers.concat(r.importClause.namedBindings.elements.map(c))));break;case fr.NamespaceImport:Object.assign(o,{type:f.ImportNamespaceSpecifier,local:c(r.name)});break;case fr.ImportSpecifier:Object.assign(o,{type:f.ImportSpecifier,local:c(r.name),imported:c(r.propertyName||r.name)});break;case fr.ImportClause:Object.assign(o,{type:f.ImportDefaultSpecifier,local:c(r.name)}),o.range[1]=r.name.end,o.loc=tr.getLocFor(o.range[0],o.range[1],i);break;case fr.NamedImports:Object.assign(o,{type:f.ImportDefaultSpecifier,local:c(r.name)});break;case fr.ExportDeclaration:r.exportClause?Object.assign(o,{type:f.ExportNamedDeclaration,source:c(r.moduleSpecifier),specifiers:r.exportClause.elements.map(c),declaration:null}):Object.assign(o,{type:f.ExportAllDeclaration,source:c(r.moduleSpecifier)});break;case fr.ExportSpecifier:Object.assign(o,{type:f.ExportSpecifier,local:c(r.propertyName||r.name),exported:c(r.name)});break;case fr.ExportAssignment:r.isExportEquals?Object.assign(o,{type:f.TSExportAssignment,expression:c(r.expression)}):Object.assign(o,{type:f.ExportDefaultDeclaration,declaration:c(r.expression)});break;case fr.PrefixUnaryExpression:case fr.PostfixUnaryExpression:var oe=tr.getTextForTokenKind(r.operator);Object.assign(o,{type:/^(?:\+\+|--)$/.test(oe)?f.UpdateExpression:f.UnaryExpression,operator:oe,prefix:r.kind===fr.PrefixUnaryExpression,argument:c(r.operand)});break;case fr.DeleteExpression:Object.assign(o,{type:f.UnaryExpression,operator:"delete",prefix:!0,argument:c(r.expression)});break;case fr.VoidExpression:Object.assign(o,{type:f.UnaryExpression,operator:"void",prefix:!0,argument:c(r.expression)});break;case fr.TypeOfExpression:Object.assign(o,{type:f.UnaryExpression,operator:"typeof",prefix:!0,argument:c(r.expression)});break;case fr.TypeOperator:Object.assign(o,{type:f.TSTypeOperator,operator:tr.getTextForTokenKind(r.operator),typeAnnotation:c(r.type)});break;case fr.BinaryExpression:if(tr.isComma(r.operatorToken)){Object.assign(o,{type:f.SequenceExpression,expressions:[]});var se=c(r.left),ce=c(r.right);se.type===f.SequenceExpression?o.expressions=o.expressions.concat(se.expressions):o.expressions.push(se),ce.type===f.SequenceExpression?o.expressions=o.expressions.concat(ce.expressions):o.expressions.push(ce)}else if(r.operatorToken&&r.operatorToken.kind===fr.AsteriskAsteriskEqualsToken)Object.assign(o,{type:f.AssignmentExpression,operator:tr.getTextForTokenKind(r.operatorToken.kind),left:c(r.left),right:c(r.right)});else if(Object.assign(o,{type:tr.getBinaryExpressionType(r.operatorToken),operator:tr.getTextForTokenKind(r.operatorToken.kind),left:c(r.left),right:c(r.right)}),o.type===f.AssignmentExpression){var ue,le=tr.findAncestorOfKind(r,fr.ArrayLiteralExpression),_e=le&&tr.findAncestorOfKind(le,fr.BinaryExpression);_e&&(ue=_e.left===le||tr.findChildOfKind(_e.left,fr.ArrayLiteralExpression,i)===le),ue&&(delete o.operator,o.type=f.AssignmentPattern)}break;case fr.PropertyAccessExpression:if(tr.isJSXToken(n)){var de={type:f.MemberExpression,object:c(r.expression),property:c(r.name)},pe=r.expression.kind===fr.PropertyAccessExpression;r.expression.kind===fr.ThisKeyword&&(de.object.name="this"),de.object.type=pe?f.MemberExpression:f.JSXIdentifier,de.property.type=f.JSXIdentifier,Object.assign(o,de)}else Object.assign(o,{type:f.MemberExpression,object:c(r.expression),property:c(r.name),computed:!1});break;case fr.ElementAccessExpression:Object.assign(o,{type:f.MemberExpression,object:c(r.expression),property:c(r.argumentExpression),computed:!0});break;case fr.ConditionalExpression:Object.assign(o,{type:f.ConditionalExpression,test:c(r.condition),consequent:c(r.whenTrue),alternate:c(r.whenFalse)});break;case fr.CallExpression:Object.assign(o,{type:f.CallExpression,callee:c(r.expression),arguments:r.arguments.map(c)}),r.typeArguments&&r.typeArguments.length&&(o.typeParameters=l(r.typeArguments));break;case fr.NewExpression:Object.assign(o,{type:f.NewExpression,callee:c(r.expression),arguments:r.arguments?r.arguments.map(c):[]}),r.typeArguments&&r.typeArguments.length&&(o.typeParameters=l(r.typeArguments));break;case fr.MetaProperty:var fe=tr.convertToken(r.getFirstToken(),i);Object.assign(o,{type:f.MetaProperty,meta:{type:f.Identifier,range:fe.range,loc:fe.loc,name:tr.getTextForTokenKind(r.keywordToken)},property:c(r.name)});break;case fr.StringLiteral:Object.assign(o,{type:f.Literal,raw:i.text.slice(o.range[0],o.range[1])}),n.name&&n.name===r?o.value=r.text:o.value=tr.unescapeStringLiteralText(r.text);break;case fr.NumericLiteral:Object.assign(o,{type:f.Literal,value:Number(r.text),raw:i.text.slice(o.range[0],o.range[1])});break;case fr.RegularExpressionLiteral:var me=r.text.slice(1,r.text.lastIndexOf("/")),ge=r.text.slice(r.text.lastIndexOf("/")+1),ye=null;try{ye=new RegExp(me,ge)}catch(e){ye=null}Object.assign(o,{type:f.Literal,value:ye,raw:r.text,regex:{pattern:me,flags:ge}});break;case fr.TrueKeyword:Object.assign(o,{type:f.Literal,value:!0,raw:"true"});break;case fr.FalseKeyword:Object.assign(o,{type:f.Literal,value:!1,raw:"false"});break;case fr.NullKeyword:tr.isWithinTypeAnnotation(r)?Object.assign(o,{type:f.TSNullKeyword}):Object.assign(o,{type:f.Literal,value:null,raw:"null"});break;case fr.ImportKeyword:Object.assign(o,{type:f.Import});break;case fr.EmptyStatement:case fr.DebuggerStatement:Object.assign(o,{type:fr[r.kind]});break;case fr.JsxElement:Object.assign(o,{type:f.JSXElement,openingElement:c(r.openingElement),closingElement:c(r.closingElement),children:r.children.map(c)});break;case fr.JsxSelfClosingElement:r.kind=fr.JsxOpeningElement;var he=c(r);he.selfClosing=!0,Object.assign(o,{type:f.JSXElement,openingElement:he,closingElement:null,children:[]});break;case fr.JsxOpeningElement:Object.assign(o,{type:f.JSXOpeningElement,typeParameters:r.typeArguments?l(r.typeArguments):void 0,selfClosing:!1,name:g(r.tagName),attributes:r.attributes.properties.map(c)});break;case fr.JsxClosingElement:Object.assign(o,{type:f.JSXClosingElement,name:g(r.tagName)});break;case fr.JsxExpression:var ve=i.getLineAndCharacterOfPosition(o.range[0]+1),be=r.expression?c(r.expression):{type:f.JSXEmptyExpression,loc:{start:{line:ve.line+1,column:ve.character},end:{line:o.loc.end.line,column:o.loc.end.column-1}},range:[o.range[0]+1,o.range[1]-1]};Object.assign(o,{type:r.dotDotDotToken?f.JSXSpreadChild:f.JSXExpressionContainer,expression:be});break;case fr.JsxAttribute:var xe=tr.convertToken(r.name,i);xe.type=f.JSXIdentifier,xe.name=xe.value,delete xe.value,Object.assign(o,{type:f.JSXAttribute,name:xe,value:c(r.initializer)});break;case fr.JsxText:var Se=r.getFullStart(),De=r.getEnd(),ke=a.useJSXTextNode?f.JSXText:f.Literal;Object.assign(o,{type:ke,value:i.text.slice(Se,De),raw:i.text.slice(Se,De)}),o.loc=tr.getLocFor(Se,De,i),o.range=[Se,De];break;case fr.JsxSpreadAttribute:Object.assign(o,{type:f.JSXSpreadAttribute,argument:c(r.expression)});break;case fr.FirstNode:Object.assign(o,{type:f.TSQualifiedName,left:c(r.left),right:c(r.right)});break;case fr.ParenthesizedExpression:return e({node:r.expression,parent:n,ast:i,additionalOptions:a});case fr.TypeAliasDeclaration:var Te={type:f.VariableDeclarator,id:c(r.name),init:c(r.type),range:[r.name.getStart(),r.end]};Te.loc=tr.getLocFor(Te.range[0],Te.range[1],i),r.typeParameters&&r.typeParameters.length&&(Te.typeParameters=_(r.typeParameters)),Object.assign(o,{type:f.VariableDeclaration,kind:tr.getDeclarationKind(r),declarations:[Te]}),o=tr.fixExports(r,o,i);break;case fr.MethodSignature:Object.assign(o,{type:f.TSMethodSignature,optional:tr.isOptional(r),computed:tr.isComputedProperty(r.name),key:c(r.name),params:m(r.parameters),typeAnnotation:r.type?u(r.type):null,readonly:tr.hasModifier(fr.ReadonlyKeyword,r)||void 0,static:tr.hasModifier(fr.StaticKeyword,r),export:tr.hasModifier(fr.ExportKeyword,r)||void 0});var Ce=tr.getTSNodeAccessibility(r);Ce&&(o.accessibility=Ce),r.typeParameters&&(o.typeParameters=_(r.typeParameters));break;case fr.PropertySignature:Object.assign(o,{type:f.TSPropertySignature,optional:tr.isOptional(r)||void 0,computed:tr.isComputedProperty(r.name),key:c(r.name),typeAnnotation:r.type?u(r.type):void 0,initializer:c(r.initializer)||void 0,readonly:tr.hasModifier(fr.ReadonlyKeyword,r)||void 0,static:tr.hasModifier(fr.StaticKeyword,r)||void 0,export:tr.hasModifier(fr.ExportKeyword,r)||void 0});var Ee=tr.getTSNodeAccessibility(r);Ee&&(o.accessibility=Ee);break;case fr.IndexSignature:Object.assign(o,{type:f.TSIndexSignature,index:c(r.parameters[0]),typeAnnotation:r.type?u(r.type):null,readonly:tr.hasModifier(fr.ReadonlyKeyword,r)||void 0,static:tr.hasModifier(fr.StaticKeyword,r),export:tr.hasModifier(fr.ExportKeyword,r)||void 0});var Ne=tr.getTSNodeAccessibility(r);Ne&&(o.accessibility=Ne);break;case fr.ConstructSignature:Object.assign(o,{type:f.TSConstructSignature,params:m(r.parameters),typeAnnotation:r.type?u(r.type):null}),r.typeParameters&&(o.typeParameters=_(r.typeParameters));break;case fr.InterfaceDeclaration:var Ae=r.heritageClauses||[],Pe=Ae.length?Ae[Ae.length-1]:r.name;if(r.typeParameters&&r.typeParameters.length){var Fe=r.typeParameters[r.typeParameters.length-1];(!Pe||Fe.pos>Pe.pos)&&(Pe=tr.findNextToken(Fe,i)),o.typeParameters=_(r.typeParameters)}var we=Ae.length>0,Ie=tr.hasModifier(fr.AbstractKeyword,r),Oe=tr.findNextToken(Pe,i),Me={type:f.TSInterfaceBody,body:r.members.map(function(e){return c(e)}),range:[Oe.getStart(),o.range[1]],loc:tr.getLocFor(Oe.getStart(),r.end,i)};Object.assign(o,{abstract:Ie,type:f.TSInterfaceDeclaration,body:Me,id:c(r.name),heritage:we?Ae[0].types.map(function(e){var t=c(e.expression),r={type:f.TSInterfaceHeritage,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(r.typeParameters=l(e.typeArguments)),r}):[]}),r.decorators&&(o.decorators=d(r.decorators)),o=tr.fixExports(r,o,i);break;case fr.FirstTypeNode:Object.assign(o,{type:f.TSTypePredicate,parameterName:c(r.parameterName),typeAnnotation:u(r.type)}),o.typeAnnotation.loc=o.typeAnnotation.typeAnnotation.loc,o.typeAnnotation.range=o.typeAnnotation.typeAnnotation.range;break;case fr.ImportType:Object.assign(o,{type:f.TSImportType,isTypeOf:!!r.isTypeOf,parameter:c(r.argument),qualifier:c(r.qualifier),typeParameters:r.typeArguments?l(r.typeArguments):null});break;case fr.EnumDeclaration:Object.assign(o,{type:f.TSEnumDeclaration,id:c(r.name),members:r.members.map(c)}),y(r.modifiers),o=tr.fixExports(r,o,i),r.decorators&&(o.decorators=d(r.decorators));break;case fr.EnumMember:Object.assign(o,{type:f.TSEnumMember,id:c(r.name)}),r.initializer&&(o.initializer=c(r.initializer));break;case fr.AbstractKeyword:Object.assign(o,{type:f.TSAbstractKeyword});break;case fr.ModuleDeclaration:Object.assign(o,{type:f.TSModuleDeclaration,id:c(r.name)}),r.body&&(o.body=c(r.body)),y(r.modifiers),o=tr.fixExports(r,o,i);break;default:!function(){var e="TS".concat(fr[r.kind]);if(a.errorOnUnknownASTType&&!f[e])throw new Error('Unknown AST_NODE_TYPE: "'.concat(e,'"'));o.type=e,Object.keys(r).filter(function(e){return!/^(?:_children|kind|parent|pos|end|flags|modifierFlagsCache|jsDoc)$/.test(e)}).forEach(function(e){if("type"===e)o.typeAnnotation=r.type?u(r.type):null;else if("typeArguments"===e)o.typeParameters=r.typeArguments?l(r.typeArguments):null;else if("typeParameters"===e)o.typeParameters=r.typeParameters?_(r.typeParameters):null;else if("decorators"===e){var t=d(r.decorators);t&&t.length&&(o.decorators=t)}else Array.isArray(r[e])?o[e]=r[e].map(c):r[e]&&"object"===p(r[e])?o[e]=c(r[e]):o[e]=r[e]})}()}return o}({node:e,parent:null,ast:e,additionalOptions:{errorOnUnknownASTType:r.errorOnUnknownASTType||!1,useJSXTextNode:r.useJSXTextNode||!1,parseForESLint:r.parseForESLint}});return r.tokens&&(i.tokens=tr.convertTokens(e)),r.comment&&(i.comments=t(e,r.code)),i}}),vr=i(function(e,t){var r;t=e.exports=X,r="object"===p(z)&&z.env&&z.env.NODE_DEBUG&&/\bsemver\b/i.test(z.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,a=t.re=[],o=t.src=[],s=0,c=s++;o[c]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var l=s++;o[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var _=s++;o[_]="("+o[c]+")\\.("+o[c]+")\\.("+o[c]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[c]+"|"+o[l]+")";var m=s++;o[m]="(?:"+o[u]+"|"+o[l]+")";var g=s++;o[g]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[m]+"(?:\\."+o[m]+")*))";var h=s++;o[h]="[0-9A-Za-z-]+";var v=s++;o[v]="(?:\\+("+o[h]+"(?:\\."+o[h]+")*))";var b=s++,x="v?"+o[_]+o[g]+"?"+o[v]+"?";o[b]="^"+x+"$";var S="[v=\\s]*"+o[d]+o[y]+"?"+o[v]+"?",D=s++;o[D]="^"+S+"$";var k=s++;o[k]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var C=s++;o[C]=o[c]+"|x|X|\\*";var E=s++;o[E]="[v=\\s]*("+o[C]+")(?:\\.("+o[C]+")(?:\\.("+o[C]+")(?:"+o[g]+")?"+o[v]+"?)?)?";var N=s++;o[N]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[v]+"?)?)?";var A=s++;o[A]="^"+o[k]+"\\s*"+o[E]+"$";var P=s++;o[P]="^"+o[k]+"\\s*"+o[N]+"$";var F=s++;o[F]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var w=s++;o[w]="(?:~>?)";var I=s++;o[I]="(\\s*)"+o[w]+"\\s+",a[I]=new RegExp(o[I],"g");var O=s++;o[O]="^"+o[w]+o[E]+"$";var M=s++;o[M]="^"+o[w]+o[N]+"$";var L=s++;o[L]="(?:\\^)";var R=s++;o[R]="(\\s*)"+o[L]+"\\s+",a[R]=new RegExp(o[R],"g");var B=s++;o[B]="^"+o[L]+o[E]+"$";var j=s++;o[j]="^"+o[L]+o[N]+"$";var J=s++;o[J]="^"+o[k]+"\\s*("+S+")$|^$";var K=s++;o[K]="^"+o[k]+"\\s*("+x+")$|^$";var U=s++;o[U]="(\\s*)"+o[k]+"\\s*("+S+"|"+o[E]+")",a[U]=new RegExp(o[U],"g");var q=s++;o[q]="^\\s*("+o[E]+")\\s+-\\s+("+o[E]+")\\s*$";var V=s++;o[V]="^\\s*("+o[N]+")\\s+-\\s+("+o[N]+")\\s*$";var W=s++;o[W]="(<|>)?=?\\s*\\*";for(var H=0;Hn)return null;if(!(t?a[D]:a[b]).test(e))return null;try{return new X(e,t)}catch(e){return null}}function X(e,t){if(e instanceof X){if(e.loose===t)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof X))return new X(e,t);r("SemVer",e,t),this.loose=t;var o=e.trim().match(t?a[D]:a[b]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new X(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(te(e,t))return null;var r=G(e),n=G(t);if(r.prerelease.length||n.prerelease.length){for(var i in r)if(("major"===i||"minor"===i||"patch"===i)&&r[i]!==n[i])return"pre"+i;return"prerelease"}for(var i in r)if(("major"===i||"minor"===i||"patch"===i)&&r[i]!==n[i])return i},t.compareIdentifiers=Y;var Q=/^[0-9]+$/;function Y(e,t){var r=Q.test(e),n=Q.test(t);return r&&n&&(e=+e,t=+t),r&&!n?-1:n&&!r?1:et?1:0}function $(e,t,r){return new X(e,r).compare(new X(t,r))}function Z(e,t,r){return $(e,t,r)>0}function ee(e,t,r){return $(e,t,r)<0}function te(e,t,r){return 0===$(e,t,r)}function re(e,t,r){return 0!==$(e,t,r)}function ne(e,t,r){return $(e,t,r)>=0}function ie(e,t,r){return $(e,t,r)<=0}function ae(e,t,r,n){var i;switch(t){case"===":"object"===p(e)&&(e=e.version),"object"===p(r)&&(r=r.version),i=e===r;break;case"!==":"object"===p(e)&&(e=e.version),"object"===p(r)&&(r=r.version),i=e!==r;break;case"":case"=":case"==":i=te(e,r,n);break;case"!=":i=re(e,r,n);break;case">":i=Z(e,r,n);break;case">=":i=ne(e,r,n);break;case"<":i=ee(e,r,n);break;case"<=":i=ie(e,r,n);break;default:throw new TypeError("Invalid operator: "+t)}return i}function oe(e,t){if(e instanceof oe){if(e.loose===t)return e;e=e.value}if(!(this instanceof oe))return new oe(e,t);r("comparator",e,t),this.loose=t,this.parse(e),this.semver===se?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new X(e,t).major},t.minor=function(e,t){return new X(e,t).minor},t.patch=function(e,t){return new X(e,t).patch},t.compare=$,t.compareLoose=function(e,t){return $(e,t,!0)},t.rcompare=function(e,t,r){return $(t,e,r)},t.sort=function(e,r){return e.sort(function(e,n){return t.compare(e,n,r)})},t.rsort=function(e,r){return e.sort(function(e,n){return t.rcompare(e,n,r)})},t.gt=Z,t.lt=ee,t.eq=te,t.neq=re,t.gte=ne,t.lte=ie,t.cmp=ae,t.Comparator=oe;var se={};function ce(e,t){if(e instanceof ce)return e.loose===t?e:new ce(e.raw,t);if(e instanceof oe)return new ce(e.value,t);if(!(this instanceof ce))return new ce(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function ue(e){return!e||"x"===e.toLowerCase()||"*"===e}function le(e,t,r,n,i,a,o,s,c,u,l,_,d){return((t=ue(r)?"":ue(n)?">="+r+".0.0":ue(i)?">="+r+"."+n+".0":">="+t)+" "+(s=ue(c)?"":ue(u)?"<"+(+c+1)+".0.0":ue(l)?"<"+c+"."+(+u+1)+".0":_?"<="+c+"."+u+"."+l+"-"+_:"<="+s)).trim()}function _e(e,t){for(var n=0;n0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function de(e,t,r){try{t=new ce(t,r)}catch(e){return!1}return t.test(e)}function pe(e,t,r,n){var i,a,o,s,c;switch(e=new X(e,n),t=new ce(t,n),r){case">":i=Z,a=ie,o=ee,s=">",c=">=";break;case"<":i=ee,a=ne,o=Z,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(de(e,t,n))return!1;for(var u=0;u=0.0.0")),l=l||e,_=_||e,i(e.semver,l.semver,n)?l=e:o(e.semver,_.semver,n)&&(_=e)}),l.operator===s||l.operator===c)return!1;if((!_.operator||_.operator===s)&&a(e,_.semver))return!1;if(_.operator===c&&o(e,_.semver))return!1}return!0}oe.prototype.parse=function(e){var t=this.loose?a[J]:a[K],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1],"="===this.operator&&(this.operator=""),r[2]?this.semver=new X(r[2],this.loose):this.semver=se},oe.prototype.toString=function(){return this.value},oe.prototype.test=function(e){return r("Comparator.test",e,this.loose),this.semver===se||("string"==typeof e&&(e=new X(e,this.loose)),ae(e,this.operator,this.semver,this.loose))},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Comparator is required");var r;if(""===this.operator)return r=new ce(e.value,t),de(this.value,r,t);if(""===e.operator)return r=new ce(this.value,t),de(e.semver,r,t);var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=ae(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ae(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||a&&o||s||c},t.Range=ce,ce.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},ce.prototype.toString=function(){return this.range},ce.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),r("range",e,t);var n=t?a[V]:a[q];e=e.replace(n,le),r("hyphen replace",e),e=e.replace(a[U],"$1$2$3"),r("comparator trim",e,a[U]),e=(e=(e=e.replace(a[I],"$1~")).replace(a[R],"$1^")).split(/\s+/).join(" ");var i=t?a[J]:a[K],o=e.split(" ").map(function(e){return function(e,t){return r("comp",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){r("caret",e,t);var n=t?a[j]:a[B];return e.replace(n,function(t,n,i,a,o){var s;return r("caret",e,t,n,i,a,o),ue(n)?s="":ue(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":ue(a)?s="0"===n?">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":">="+n+"."+i+".0 <"+(+n+1)+".0.0":o?(r("replaceCaret pr",o),"-"!==o.charAt(0)&&(o="-"+o),s="0"===n?"0"===i?">="+n+"."+i+"."+a+o+" <"+n+"."+i+"."+(+a+1):">="+n+"."+i+"."+a+o+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+a+o+" <"+(+n+1)+".0.0"):(r("no pr"),s="0"===n?"0"===i?">="+n+"."+i+"."+a+" <"+n+"."+i+"."+(+a+1):">="+n+"."+i+"."+a+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+a+" <"+(+n+1)+".0.0"),r("caret return",s),s})}(e,t)}).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){var n=t?a[M]:a[O];return e.replace(n,function(t,n,i,a,o){var s;return r("tilde",e,t,n,i,a,o),ue(n)?s="":ue(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":ue(a)?s=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":o?(r("replaceTilde pr",o),"-"!==o.charAt(0)&&(o="-"+o),s=">="+n+"."+i+"."+a+o+" <"+n+"."+(+i+1)+".0"):s=">="+n+"."+i+"."+a+" <"+n+"."+(+i+1)+".0",r("tilde return",s),s})}(e,t)}).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(e,t){e=e.trim();var n=t?a[P]:a[A];return e.replace(n,function(t,n,i,a,o,s){r("xRange",e,t,n,i,a,o,s);var c=ue(i),u=c||ue(a),l=u||ue(o),_=l;return"="===n&&_&&(n=""),c?t=">"===n||"<"===n?"<0.0.0":"*":n&&_?(u&&(a=0),l&&(o=0),">"===n?(n=">=",u?(i=+i+1,a=0,o=0):l&&(a=+a+1,o=0)):"<="===n&&(n="<",u?i=+i+1:a=+a+1),t=n+i+"."+a+"."+o):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+a+".0 <"+i+"."+(+a+1)+".0"),r("xRange return",t),t})}(e,t)}).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(a[W],"")}(e,t),r("stars",e),e}(e,t)}).join(" ").split(/\s+/);return this.loose&&(o=o.filter(function(e){return!!e.match(i)})),o=o.map(function(e){return new oe(e,t)})},ce.prototype.intersects=function(e,t){if(!(e instanceof ce))throw new TypeError("a Range is required");return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})},t.toComparators=function(e,t){return new ce(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},ce.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new X(e,this.loose));for(var t=0;t",r)},t.outside=pe,t.prerelease=function(e,t){var r=G(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new ce(e,r),t=new ce(t,r),e.intersects(t)},t.coerce=function(e){if(e instanceof X)return e;if("string"!=typeof e)return null;var t=e.match(a[F]);return null==t?null:G((t[1]||"0")+"."+(t[2]||"0")+"."+(t[3]||"0"))}}),br="typescript-eslint-parser",xr="An Esprima-style parser for TypeScript",Sr="Nicholas C. Zakas ",Dr="https://github.com/eslint/typescript-eslint-parser",kr=["lib","parser.js"],Tr={node:">=6.14.0"},Cr="eslint/typescript-eslint-parser",Er={url:"https://github.com/eslint/typescript-eslint-parser/issues"},Nr={"babel-code-frame":"6.26.0",babylon:"7.0.0-beta.39",eslint:"4.19.1","eslint-config-eslint":"4.0.0","eslint-plugin-node":"6.0.1","eslint-release":"0.11.1",glob:"7.1.2",jest:"23.1.0","lodash.isplainobject":"4.0.6","npm-license":"0.3.3",shelljs:"0.8.2","shelljs-nodecli":"0.1.1",typescript:"~3.0.1"},Ar=["ast","ecmascript","javascript","typescript","parser","syntax","eslint"],Pr={test:"node Makefile.js test && npm run ast-alignment-tests",jest:"jest","ast-alignment-tests":"jest --config=./tests/ast-alignment/jest.config.js","integration-tests":"docker-compose -f tests/integration/docker-compose.yml up","kill-integration-test-containers":"docker-compose -f tests/integration/docker-compose.yml down -v --rmi local",lint:"node Makefile.js lint",release:"eslint-release","ci-release":"eslint-ci-release","gh-release":"eslint-gh-release",alpharelease:"eslint-prerelease alpha",betarelease:"eslint-prerelease beta"},Fr={"lodash.unescape":"4.0.1",semver:"5.5.0"},wr={typescript:"*"},Ir={testEnvironment:"node",testRegex:"tests/lib/.+\\.js$",testPathIgnorePatterns:[],collectCoverage:!0,coverageReporters:["text-summary"]},Or={name:br,description:xr,author:Sr,homepage:Dr,main:"parser.js",version:"18.0.0",files:kr,engines:Tr,repository:Cr,bugs:Er,license:"BSD-2-Clause",devDependencies:Nr,keywords:Ar,scripts:Pr,dependencies:Fr,peerDependencies:wr,jest:Ir},Mr=Object.freeze({name:br,description:xr,author:Sr,homepage:Dr,main:"parser.js",version:"18.0.0",files:kr,engines:Tr,repository:Cr,bugs:Er,license:"BSD-2-Clause",devDependencies:Nr,keywords:Ar,scripts:Pr,dependencies:Fr,peerDependencies:wr,jest:Ir,default:Or}),Lr=Mr&&Or||Mr,Rr=Lr.devDependencies.typescript,Br=Mt.version,jr=vr.satisfies(Br,Rr),Jr=!1;function zr(e,t,r){r=r||{};var n=String;if("string"==typeof e||e instanceof String||(e=n(e)),yr={tokens:null,range:!1,loc:!1,comment:!1,comments:[],tolerant:!1,errors:[],strict:!1,ecmaFeatures:{},useJSXTextNode:!1,log:console.log},void 0!==t&&(yr.range="boolean"==typeof t.range&&t.range,yr.loc="boolean"==typeof t.loc&&t.loc,yr.loc&&null!==t.source&&void 0!==t.source&&(yr.source=n(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(yr.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(yr.comment=!0,yr.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(yr.errors=[]),t.ecmaFeatures&&"object"===p(t.ecmaFeatures)&&(yr.ecmaFeatures.jsx=t.ecmaFeatures.jsx),t.errorOnUnknownASTType&&(yr.errorOnUnknownASTType=!0),"boolean"==typeof t.useJSXTextNode&&t.useJSXTextNode&&(yr.useJSXTextNode=!0),"function"==typeof t.loggerFn?yr.log=t.loggerFn:!1===t.loggerFn&&(yr.log=Function.prototype),r.isParseForESLint&&(yr.parseForESLint=!0)),!jr&&!Jr){var i=["=============","WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-eslint-parser.","You may find that it works just fine, or you may not.","SUPPORTED TYPESCRIPT VERSIONS: ".concat(Rr),"YOUR TYPESCRIPT VERSION: ".concat(Br),"Please only submit bug reports when using the officially supported version.","============="];yr.log(i.join("\n\n")),Jr=!0}var a=yr.ecmaFeatures.jsx?"eslint.tsx":"eslint.ts",o={fileExists:function(){return!0},getCanonicalFileName:function(){return a},getCurrentDirectory:function(){return""},getDefaultLibFileName:function(){return"lib.d.ts"},getNewLine:function(){return"\n"},getSourceFile:function(t){return Mt.createSourceFile(t,e,Mt.ScriptTarget.Latest,!0)},readFile:function(){return null},useCaseSensitiveFileNames:function(){return!0},writeFile:function(){return null}},s=Mt.createProgram([a],{noResolve:!0,target:Mt.ScriptTarget.Latest,jsx:yr.ecmaFeatures.jsx?"preserve":void 0},o).getSourceFile(a);return yr.code=e,hr(s,yr)}var Kr={version:Lr.version,parse:function(e,t){return zr(e,t,{isParseForESLint:!1})},parseForESLint:function(e,t){return{ast:zr(e,t,{isParseForESLint:!0})}},Syntax:function(){var e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),f)f.hasOwnProperty(e)&&(t[e]=f[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}()},Ur=l;function qr(e,t){return Kr.parse(e,{loc:!0,range:!0,tokens:!0,comment:!0,useJSXTextNode:!0,ecmaFeatures:{jsx:t},loggerFn:function(){}})}var Vr=Object.assign({parse:function(r){var n,i=function(e){return new RegExp(["(^[^\"'`]*)"].join(""),"m").test(e)}(r);try{n=qr(r,i)}catch(t){try{n=qr(r,!i)}catch(r){var a=t;if(void 0===a.lineNumber)throw a;throw e(a.message,{start:{line:a.lineNumber,column:a.column+1}})}}return delete n.tokens,t(r,n),n},astFormat:"estree",hasPragma:Ur},d);return{parsers:{typescript:Vr,"typescript-eslint":Vr}}});